chore: fix package.json scripts
npx should be used to execute local package binaries
This commit is contained in:
parent
072f6ab862
commit
469e55fffa
@ -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"
|
||||||
|
@ -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",
|
||||||
|
@ -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"
|
||||||
},
|
},
|
||||||
|
@ -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"
|
||||||
},
|
},
|
||||||
|
@ -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",
|
||||||
|
@ -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"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user