restore script command for npm build

Signed-off-by: s00912778 <shijiakai2@huawei.com>
Change-Id: I19a1cf7e63b6a225209119ae212b6e01eec550f4
This commit is contained in:
s00912778 2024-10-22 21:00:26 +08:00
parent 329a0e266b
commit 7a33a5b9c1

View File

@ -10,7 +10,7 @@
],
"scripts": {
"lint": "eslint --fix ./src --ext .ts",
"build": "npm run generateDeclarations && ./node_modules/.bin/babel ./src --out-dir lib --extensions .ts",
"build": "npm run generateDeclarations && ./node_modules/.bin/babel ./src --out-dir lib --extensions .ts && node uglify-source.js lib",
"create": "node ./lib/create.js --env projectName",
"compile": "webpack --config webpack.config.js --env buildMode=debug projectName",
"test": "npm run build && mocha test/test.js && mocha test/test.js --partialUpdate && mocha test/test.js --assertError",