Skip to content

Commit bbe6eab

Browse files
committed
fix #139
1 parent 4556b87 commit bbe6eab

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

gruntfile.js

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,9 @@
4545
}
4646
},
4747
exec: {
48-
tsCompile: {
49-
cmd: "node ./node_modules/typescript/bin/tsc --project tsconfig.json --outDir " + localConfig.outDir
50-
},
51-
ngCompile: {
52-
cmd: "node ./node_modules/.bin/ngc --project tsconfig.aot.json --outDir " + localConfig.outDir
53-
},
54-
tslint: {
55-
cmd: "node ./node_modules/tslint/bin/tslint --project tsconfig.json"
56-
},
48+
tsCompile: "npm run tsc -- --outDir " + localConfig.outDir,
49+
ngCompile: "npm run ngc -- --outDir " + localConfig.outDir,
50+
tslint: "npm run tslint",
5751
checkRequiredReadmeSection: {
5852
cwd: "bin/dist",
5953
cmd: function (section) {

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
"url": "https://github.com/PeterStaev/NativeScript-Drop-Down"
2222
},
2323
"scripts": {
24+
"tslint": "tslint --project tsconfig.json",
25+
"tsc": "tsc --project tsconfig.json",
26+
"ngc": "ngc --project tsconfig.aot.json",
2427
"demo-ios": "grunt build && cd demo && tns run ios",
2528
"demo-android": "grunt build && cd demo && tns run android",
2629
"demo-ng-ios": "grunt build && cd demo-ng && tns run ios",

0 commit comments

Comments
 (0)