diff options
author | Nobody <git@n0bodysec.com> | 2022-07-19 03:58:01 -0300 |
---|---|---|
committer | Erkin Alp Güney <erkinalp9035@gmail.com> | 2022-07-19 10:20:36 +0300 |
commit | a0914a126224371a2b3a46664bb027e36a8ed320 (patch) | |
tree | 79fcb6d650c494894eae93024567751e169f20b2 | |
parent | Display offline members in member list (#788) (diff) | |
download | server-a0914a126224371a2b3a46664bb027e36a8ed320.tar.xz |
chore: fix package.json scripts
npx should be used to execute local package binaries
-rw-r--r-- | api/package.json | 10 | ||||
-rw-r--r-- | bundle/package.json | 4 | ||||
-rw-r--r-- | cdn/package.json | 2 | ||||
-rw-r--r-- | dashboard/package.json | 2 | ||||
-rw-r--r-- | gateway/package.json | 2 | ||||
-rw-r--r-- | util/package.json | 2 |
6 files changed, 11 insertions, 11 deletions
diff --git a/api/package.json b/api/package.json index 29fa82a1..1bb49261 100644 --- a/api/package.json +++ b/api/package.json @@ -5,14 +5,14 @@ "main": "dist/index.js", "types": "src/index.ts", "scripts": { - "test:only": "jest --coverage --verbose --forceExit ./tests", - "test:routes": "jest --coverage --verbose --forceExit ./routes.test.ts", + "test:only": "npx jest --coverage --verbose --forceExit ./tests", + "test:routes": "npx jest --coverage --verbose --forceExit ./routes.test.ts", "test": "npm run build && npm run test:only", - "test:watch": "jest --watch", + "test:watch": "npx jest --watch", "start": "npm run build && node dist/start", "build": "npx tsc -p .", - "dev": "tsnd --respawn src/start.ts", - "patch": "ts-patch install -s && npx patch-package", + "dev": "npx tsnd --respawn src/start.ts", + "patch": "npx ts-patch install -s && npx patch-package", "postinstall": "npm run patch", "generate:docs": "node scripts/generate_openapi", "generate:schema": "node scripts/generate_schema" diff --git a/bundle/package.json b/bundle/package.json index d44d257f..c050a302 100644 --- a/bundle/package.json +++ b/bundle/package.json @@ -4,7 +4,7 @@ "description": "", "main": "src/start.js", "scripts": { - "setup": "node scripts/install.js && npm install --no-optional && ts-patch install -s && patch-package --patch-dir ../api/patches/ && npm run build", + "setup": "node scripts/install.js && npm install --no-optional && npx ts-patch install -s && npx patch-package --patch-dir ../api/patches/ && npm run build", "build": "node scripts/build.js", "start": "node scripts/build.js && node dist/bundle/src/start.js", "start:bundle": "node dist/bundle/src/start.js", @@ -111,4 +111,4 @@ "typescript-json-schema": "^0.50.1", "ws": "^7.4.2" } -} \ No newline at end of file +} diff --git a/cdn/package.json b/cdn/package.json index 46405b88..c63713c0 100644 --- a/cdn/package.json +++ b/cdn/package.json @@ -5,7 +5,7 @@ "main": "dist/index.js", "types": "src/index.ts", "scripts": { - "test": "npm run build && jest --coverage ./tests", + "test": "npm run build && npx jest --coverage ./tests", "build": "npx tsc -p .", "start": "node dist/start.js" }, diff --git a/dashboard/package.json b/dashboard/package.json index 9afe20f8..87bc1699 100644 --- a/dashboard/package.json +++ b/dashboard/package.json @@ -5,7 +5,7 @@ "main": "dist/index.js", "types": "src/index.ts", "scripts": { - "test": "npm run build && jest --coverage ./tests", + "test": "npm run build && npx jest --coverage ./tests", "build": "npx tsc -p .", "start": "node dist/start.js" }, diff --git a/gateway/package.json b/gateway/package.json index 7a3b1012..0524cc40 100644 --- a/gateway/package.json +++ b/gateway/package.json @@ -9,7 +9,7 @@ "test": "echo \"Error: no test specified\" && exit 1", "start": "npm run build && node dist/start.js", "build": "npx tsc -p .", - "dev": "tsnd --respawn src/start.ts" + "dev": "npx tsnd --respawn src/start.ts" }, "keywords": [], "author": "Fosscord", diff --git a/util/package.json b/util/package.json index 35d2fbbe..587e8a14 100644 --- a/util/package.json +++ b/util/package.json @@ -6,7 +6,7 @@ "types": "src/index.ts", "scripts": { "start": "npm run build && node dist/", - "test": "npm run build && jest", + "test": "npm run build && npx jest", "postinstall": "npm run build", "build": "npx tsc -p .", "typeorm": "node --require ts-node/register ./node_modules/typeorm/cli.js" |