|
11 | 11 | }
|
12 | 12 | },
|
13 | 13 | "scripts": {
|
14 |
| - "tsc": "tsc -skipLibCheck", |
15 |
| - "build": "npm i && tsc && npm run build.native", |
| 14 | + "tsc": "tsc", |
| 15 | + "build": "npm run tsc && npm run build.native", |
16 | 16 | "build.native": "node scripts/build-native.js",
|
17 |
| - "postclone": "npm i && node scripts/postclone.js && cd ../demo && npm i", |
18 |
| - "test.android": "npm i && npm run tsc && npm run tslint && cd ../demo && tns build android && tns test android --justlaunch", |
19 |
| - "test.ios": "npm i && npm run tsc && npm run tslint && cd ../demo && tns build ios && tns test ios --justlaunch", |
| 17 | + "postclone": "npm i && node scripts/postclone.js && cd ../demo && npm i && npx rimraf -- package-lock.json && cd ../src", |
| 18 | + "test.android": "npm run tsc && npm run tslint && cd ../demo && tns build android && tns test android --justlaunch", |
| 19 | + "test.ios": "npm run tsc && npm run tslint && cd ../demo && tns build ios && tns test ios --justlaunch", |
20 | 20 | "tslint": "cd .. && tslint \"**/*.ts\" --config tslint.json --exclude \"**/node_modules/**\"",
|
21 | 21 | "plugin.tscwatch": "npm run tsc -- -w",
|
22 |
| - "demo.ios": "npm i && npm run tsc && cd ../demo && tns run ios --syncAllFiles", |
23 |
| - "demo.android": "npm i && npm run tsc && cd ../demo && tns run android --syncAllFiles", |
24 |
| - "demo.reset": "cd ../demo && rimraf platforms", |
| 22 | + "demo.ios": "npm run tsc && cd ../demo && tns run ios --syncAllFiles --emulator", |
| 23 | + "demo.android": "npm run tsc && cd ../demo && tns run android --syncAllFiles --emulator", |
| 24 | + "demo.reset": "cd ../demo && npx rimraf -- hooks node_modules platforms package-lock.json", |
25 | 25 | "plugin.prepare": "npm run build && cd ../demo && tns plugin remove nativescript-yourplugin && tns plugin add ../src",
|
26 |
| - "clean": "cd ../demo && rimraf hooks node_modules platforms && cd ../src && rimraf node_modules", |
| 26 | + "clean": "npm run demo.reset && npx rimraf -- node_modules package-lock.json && npm i", |
27 | 27 | "ci.tslint": "npm i && tslint '**/*.ts' --config '../tslint.json' --exclude '**/node_modules/**'",
|
28 | 28 | "prepack": "npm run build.native"
|
29 | 29 | },
|
|
0 commit comments