chore: make scripts windows compatible

This commit is contained in:
Igor Randjelovic
2021-02-01 18:04:03 +01:00
parent 3ddfb5c34a
commit d00f47f550
2 changed files with 4 additions and 5 deletions

View File

@ -29,12 +29,11 @@
"url": "https://github.com/NativeScript/nativescript-dev-webpack.git" "url": "https://github.com/NativeScript/nativescript-dev-webpack.git"
}, },
"scripts": { "scripts": {
"clean": "npx rimraf -- node_modules package-lock.json && npm i --ignore-scripts", "clean": "git clean -f -X -d",
"tsc": "tsc", "tsc": "tsc",
"postinstall": "node postinstall.js", "postinstall": "node postinstall.js",
"preuninstall": "node preuninstall.js", "preuninstall": "node preuninstall.js",
"postpack": "rm -rf node_modules", "setup": "npm run clean && npm i --ignore-scripts && npm run build",
"setup": "npm run clean && npm run build",
"build": "npm run tsc && npm run jasmine", "build": "npm run tsc && npm run jasmine",
"test": "npm run build", "test": "npm run build",
"jasmine": "jasmine --config=jasmine-config/jasmine.json", "jasmine": "jasmine --config=jasmine-config/jasmine.json",

View File

@ -237,7 +237,7 @@
"test": { "test": {
"builder": "@nrwl/workspace:run-commands", "builder": "@nrwl/workspace:run-commands",
"options": { "options": {
"commands": ["npm run tsc", "npm run jasmine"], "commands": ["npm run test"],
"cwd": "packages/webpack", "cwd": "packages/webpack",
"parallel": false "parallel": false
} }
@ -246,7 +246,7 @@
"builder": "@nrwl/workspace:run-commands", "builder": "@nrwl/workspace:run-commands",
"outputs": ["dist/packages"], "outputs": ["dist/packages"],
"options": { "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", "cwd": "packages/webpack",
"parallel": false "parallel": false
} }