瀏覽代碼

update config

Shawn Lu 8 月之前
父節點
當前提交
daf4e47944
共有 2 個文件被更改,包括 2 次插入3 次删除
  1. 1 2
      package.json
  2. 1 1
      tsconfig.json

+ 1 - 2
package.json

@@ -21,8 +21,7 @@
     "typescript": "~5.1.0"
   },
   "scripts": {
-    "prestart": "npm run build",
-    "start": "node build/src/main.js",
+    "start": "yarn build && node build/src/main.js",
     "clean": "rimraf coverage build tmp",
     "build": "tsc -p tsconfig.json && tsc-alias",
     "build:watch": "tsc -w -p tsconfig.json && tsc-alias",

+ 1 - 1
tsconfig.json

@@ -15,7 +15,7 @@
     "noFallthroughCasesInSwitch": true,
     "noImplicitReturns": true,
     "noUnusedLocals": false,
-    "noUnusedParameters": true,
+    "noUnusedParameters": false,
     "noImplicitAny": false,
     "noImplicitThis": false,
     "strictNullChecks": false,