fix: npm commands

This commit is contained in:
windingwind 2023-07-28 19:04:48 +08:00
parent 10d19e5e1c
commit 778922db3a
2 changed files with 3 additions and 14 deletions

11
.vscode/launch.json vendored
View File

@ -14,16 +14,9 @@
{
"type": "node",
"request": "launch",
"name": "Restart-Z6",
"name": "Restart",
"runtimeExecutable": "npm",
"runtimeArgs": ["run", "restart-dev-z6"]
},
{
"type": "node",
"request": "launch",
"name": "Restart-Z7",
"runtimeExecutable": "npm",
"runtimeArgs": ["run", "restart-dev-z7"]
"runtimeArgs": ["run", "restart"]
},
{
"type": "node",

View File

@ -18,17 +18,13 @@
"build-prod": "cross-env NODE_ENV=production node scripts/build.mjs",
"build": "concurrently -c auto npm:build-prod npm:tsc",
"tsc": "tsc --noEmit",
"start-z6": "node scripts/start.mjs --z 6",
"start-z7": "node scripts/start.mjs --z 7",
"start": "node scripts/start.mjs",
"stop": "node scripts/stop.mjs",
"start-watch": "npm run build-dev && concurrently -c auto npm:start npm:watch",
"restart-dev-z6": "npm run build-dev && npm run stop && npm run start-z6",
"restart-dev-z7": "npm run build-dev && npm run stop && npm run start-z7",
"restart-dev": "npm run build-dev && npm run stop && npm run start",
"restart-prod": "npm run build-prod && npm run stop && npm run start",
"restart": "npm run restart-dev",
"reload": "npm run build-dev && node scripts/reload.mjs --z 7",
"reload": "npm run build-dev && node scripts/reload.mjs",
"watch": "chokidar \"src/**\" \"addon/**\" -c \"npm run reload\"",
"release": "release-it",
"lint": "prettier --write . '!addon/chrome/content/lib/**' && eslint . --ext .ts --fix",