diff --git a/demo/package.json b/demo/package.json index 465a32c..47cf4f3 100644 --- a/demo/package.json +++ b/demo/package.json @@ -5,7 +5,7 @@ "dependencies": { "nativescript-theme-core": "^1.0.4", "nativescript-unit-test-runner": "^0.3.4", - "nativescript-yourplugin": "../src", + "nativescript-yourplugin": "file:../src", "tns-core-modules": "^4.2.0" }, "devDependencies": { diff --git a/demo/tsconfig.json b/demo/tsconfig.json index b8410e1..e5a86c7 100644 --- a/demo/tsconfig.json +++ b/demo/tsconfig.json @@ -24,6 +24,9 @@ "paths": { "*": [ "./node_modules/*" + ], + "~/*": [ + "app/*" ] } }, diff --git a/src/package.json b/src/package.json index 1274007..4d2db7d 100644 --- a/src/package.json +++ b/src/package.json @@ -11,19 +11,19 @@ } }, "scripts": { - "tsc": "tsc -skipLibCheck", - "build": "npm i && tsc && npm run build.native", + "tsc": "tsc", + "build": "npm run tsc && npm run build.native", "build.native": "node scripts/build-native.js", - "postclone": "npm i && node scripts/postclone.js && cd ../demo && npm i", - "test.android": "npm i && npm run tsc && npm run tslint && cd ../demo && tns build android && tns test android --justlaunch", - "test.ios": "npm i && npm run tsc && npm run tslint && cd ../demo && tns build ios && tns test ios --justlaunch", + "postclone": "npm i && node scripts/postclone.js && cd ../demo && npm i && npx rimraf -- package-lock.json && cd ../src", + "test.android": "npm run tsc && npm run tslint && cd ../demo && tns build android && tns test android --justlaunch", + "test.ios": "npm run tsc && npm run tslint && cd ../demo && tns build ios && tns test ios --justlaunch", "tslint": "cd .. && tslint \"**/*.ts\" --config tslint.json --exclude \"**/node_modules/**\"", "plugin.tscwatch": "npm run tsc -- -w", - "demo.ios": "npm i && npm run tsc && cd ../demo && tns run ios --syncAllFiles", - "demo.android": "npm i && npm run tsc && cd ../demo && tns run android --syncAllFiles", - "demo.reset": "cd ../demo && rimraf platforms", + "demo.ios": "npm run tsc && cd ../demo && tns run ios --syncAllFiles --emulator", + "demo.android": "npm run tsc && cd ../demo && tns run android --syncAllFiles --emulator", + "demo.reset": "cd ../demo && npx rimraf -- hooks node_modules platforms package-lock.json", "plugin.prepare": "npm run build && cd ../demo && tns plugin remove nativescript-yourplugin && tns plugin add ../src", - "clean": "cd ../demo && rimraf hooks node_modules platforms && cd ../src && rimraf node_modules", + "clean": "npm run demo.reset && npx rimraf -- node_modules package-lock.json && npm i", "ci.tslint": "npm i && tslint '**/*.ts' --config '../tslint.json' --exclude '**/node_modules/**'", "prepack": "npm run build.native" }, diff --git a/src/tsconfig.json b/src/tsconfig.json index 2c33e90..5e33b3f 100644 --- a/src/tsconfig.json +++ b/src/tsconfig.json @@ -7,6 +7,7 @@ "noLib": false, "emitDecoratorMetadata": true, "experimentalDecorators": true, + "skipLibCheck": true, "lib": ["es6", "dom"], "sourceMap": true, "pretty": true,