chore: refine scripts

This commit is contained in:
daief
2020-11-30 16:09:03 +08:00
parent 8eef7958fd
commit bde9e2a9bd
2 changed files with 5 additions and 3 deletions

View File

@@ -13,8 +13,9 @@
}, },
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"watch": "cross-env NODE_ENV=development TS_NODE_PROJECT=\"tsconfig.webpack.json\" webpack --config ./config/index.ts -w", "runpack": "cross-env TS_NODE_PROJECT=\"tsconfig.webpack.json\" webpack --config ./config/index.ts --progress",
"build": "cross-env NODE_ENV=production TS_NODE_PROJECT=\"tsconfig.webpack.json\" webpack --config ./config/index.ts" "watch": "cross-env NODE_ENV=development yarn runpack --watch",
"build": "cross-env NODE_ENV=production yarn runpack"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^14.14.10", "@types/node": "^14.14.10",

View File

@@ -18,7 +18,8 @@
"rootDir": ".", "rootDir": ".",
"allowJs": true, "allowJs": true,
"resolveJsonModule": true, "resolveJsonModule": true,
"skipLibCheck": true "skipLibCheck": true,
"downlevelIteration": true
}, },
"exclude": ["node_modules", "dist"], "exclude": ["node_modules", "dist"],
"compileOnSave": false "compileOnSave": false