From 147b08d2927bbd82c7618442650079ec40bf8ad2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Luis=20Mill=C3=A1n?= Date: Tue, 21 May 2024 11:23:31 +0200 Subject: [PATCH] lint --- npm-scripts.mjs | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/npm-scripts.mjs b/npm-scripts.mjs index 145b5a89ae..479d65d09b 100644 --- a/npm-scripts.mjs +++ b/npm-scripts.mjs @@ -15,9 +15,7 @@ const MAYOR_VERSION = PKG.version.split('.')[0]; const PYTHON = getPython(); const PIP_INVOKE_DIR = path.resolve('worker/pip_invoke'); const WORKER_RELEASE_DIR = 'worker/out/Release'; -const WORKER_RELEASE_BIN = IS_WINDOWS - ? 'mediasoup-worker.exe' - : 'mediasoup-worker'; +const WORKER_RELEASE_BIN = 'libmediasoup-worker.a'; const WORKER_RELEASE_BIN_PATH = `${WORKER_RELEASE_DIR}/${WORKER_RELEASE_BIN}`; const WORKER_PREBUILD_DIR = 'worker/prebuild'; const WORKER_PREBUILD_TAR = getWorkerPrebuildTarName(); @@ -27,12 +25,9 @@ const GH_OWNER = 'versatica'; const GH_REPO = 'mediasoup'; // Paths for ESLint to check. Converted to string for convenience. -const ESLINT_PATHS = [ - 'node/src', - WORKER_CHANNEL_ADDON_PATH, - 'npm-scripts.mjs', - 'worker/scripts', -].join(' '); +const ESLINT_PATHS = ['node/src', 'npm-scripts.mjs', 'worker/scripts'].join( + ' ' +); // Paths for ESLint to ignore. Converted to string argument for convenience. const ESLINT_IGNORE_PATTERN_ARGS = ['node/src/fbs'] .map(entry => `--ignore-pattern ${entry}`) @@ -47,7 +42,6 @@ const PRETTIER_PATHS = [ 'doc', 'node/src', 'node/tsconfig.json', - `${WORKER_CHANNEL_ADDON_PATH}/src`, 'npm-scripts.mjs', 'package.json', 'worker/scripts', @@ -499,7 +493,7 @@ function checkRelease() { installNodeDeps(); flatcNode(); buildTypescript({ force: true }); - buildWorker(); + buildWorkerLib(); lintNode(); lintWorker(); testNode();