mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-14 18:12:09 +08:00
chore: make scripts windows compatible
This commit is contained in:
@ -29,12 +29,11 @@
|
||||
"url": "https://github.com/NativeScript/nativescript-dev-webpack.git"
|
||||
},
|
||||
"scripts": {
|
||||
"clean": "npx rimraf -- node_modules package-lock.json && npm i --ignore-scripts",
|
||||
"clean": "git clean -f -X -d",
|
||||
"tsc": "tsc",
|
||||
"postinstall": "node postinstall.js",
|
||||
"preuninstall": "node preuninstall.js",
|
||||
"postpack": "rm -rf node_modules",
|
||||
"setup": "npm run clean && npm run build",
|
||||
"setup": "npm run clean && npm i --ignore-scripts && npm run build",
|
||||
"build": "npm run tsc && npm run jasmine",
|
||||
"test": "npm run build",
|
||||
"jasmine": "jasmine --config=jasmine-config/jasmine.json",
|
||||
|
@ -237,7 +237,7 @@
|
||||
"test": {
|
||||
"builder": "@nrwl/workspace:run-commands",
|
||||
"options": {
|
||||
"commands": ["npm run tsc", "npm run jasmine"],
|
||||
"commands": ["npm run test"],
|
||||
"cwd": "packages/webpack",
|
||||
"parallel": false
|
||||
}
|
||||
@ -246,7 +246,7 @@
|
||||
"builder": "@nrwl/workspace:run-commands",
|
||||
"outputs": ["dist/packages"],
|
||||
"options": {
|
||||
"commands": ["npm run setup", "mkdir -p ../../dist/packages", "mv \"$(npm pack | tail -n 1)\" ../../dist/packages/nativescript-webpack.tgz"],
|
||||
"commands": ["npm run setup", "npx mkdirp ../../dist/packages", "npm pack", "mv *.tgz ../../dist/packages/nativescript-webpack.tgz"],
|
||||
"cwd": "packages/webpack",
|
||||
"parallel": false
|
||||
}
|
||||
|
Reference in New Issue
Block a user