chore: fix package.json scripts

npx should be used to execute local package binaries
This commit is contained in:
Nobody 2022-07-19 03:58:01 -03:00 committed by Erkin Alp Güney
parent 072f6ab862
commit 469e55fffa
6 changed files with 11 additions and 11 deletions

View File

@ -5,14 +5,14 @@
"main": "dist/index.js", "main": "dist/index.js",
"types": "src/index.ts", "types": "src/index.ts",
"scripts": { "scripts": {
"test:only": "jest --coverage --verbose --forceExit ./tests", "test:only": "npx jest --coverage --verbose --forceExit ./tests",
"test:routes": "jest --coverage --verbose --forceExit ./routes.test.ts", "test:routes": "npx jest --coverage --verbose --forceExit ./routes.test.ts",
"test": "npm run build && npm run test:only", "test": "npm run build && npm run test:only",
"test:watch": "jest --watch", "test:watch": "npx jest --watch",
"start": "npm run build && node dist/start", "start": "npm run build && node dist/start",
"build": "npx tsc -p .", "build": "npx tsc -p .",
"dev": "tsnd --respawn src/start.ts", "dev": "npx tsnd --respawn src/start.ts",
"patch": "ts-patch install -s && npx patch-package", "patch": "npx ts-patch install -s && npx patch-package",
"postinstall": "npm run patch", "postinstall": "npm run patch",
"generate:docs": "node scripts/generate_openapi", "generate:docs": "node scripts/generate_openapi",
"generate:schema": "node scripts/generate_schema" "generate:schema": "node scripts/generate_schema"

View File

@ -4,7 +4,7 @@
"description": "", "description": "",
"main": "src/start.js", "main": "src/start.js",
"scripts": { "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", "build": "node scripts/build.js",
"start": "node scripts/build.js && node dist/bundle/src/start.js", "start": "node scripts/build.js && node dist/bundle/src/start.js",
"start:bundle": "node dist/bundle/src/start.js", "start:bundle": "node dist/bundle/src/start.js",

View File

@ -5,7 +5,7 @@
"main": "dist/index.js", "main": "dist/index.js",
"types": "src/index.ts", "types": "src/index.ts",
"scripts": { "scripts": {
"test": "npm run build && jest --coverage ./tests", "test": "npm run build && npx jest --coverage ./tests",
"build": "npx tsc -p .", "build": "npx tsc -p .",
"start": "node dist/start.js" "start": "node dist/start.js"
}, },

View File

@ -5,7 +5,7 @@
"main": "dist/index.js", "main": "dist/index.js",
"types": "src/index.ts", "types": "src/index.ts",
"scripts": { "scripts": {
"test": "npm run build && jest --coverage ./tests", "test": "npm run build && npx jest --coverage ./tests",
"build": "npx tsc -p .", "build": "npx tsc -p .",
"start": "node dist/start.js" "start": "node dist/start.js"
}, },

View File

@ -9,7 +9,7 @@
"test": "echo \"Error: no test specified\" && exit 1", "test": "echo \"Error: no test specified\" && exit 1",
"start": "npm run build && node dist/start.js", "start": "npm run build && node dist/start.js",
"build": "npx tsc -p .", "build": "npx tsc -p .",
"dev": "tsnd --respawn src/start.ts" "dev": "npx tsnd --respawn src/start.ts"
}, },
"keywords": [], "keywords": [],
"author": "Fosscord", "author": "Fosscord",

View File

@ -6,7 +6,7 @@
"types": "src/index.ts", "types": "src/index.ts",
"scripts": { "scripts": {
"start": "npm run build && node dist/", "start": "npm run build && node dist/",
"test": "npm run build && jest", "test": "npm run build && npx jest",
"postinstall": "npm run build", "postinstall": "npm run build",
"build": "npx tsc -p .", "build": "npx tsc -p .",
"typeorm": "node --require ts-node/register ./node_modules/typeorm/cli.js" "typeorm": "node --require ts-node/register ./node_modules/typeorm/cli.js"