Skip to content

Commit 993543a

Browse files
committed
refactor: use prepare npm hook for ngc compilation and metadata cleanup
- metadata will now be shipped with the package
1 parent c0660cc commit 993543a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
const { unlinkSync } = require("fs");
2+
3+
unlinkSync("./polyfills/console.metadata.json");
4+
unlinkSync("./polyfills/array.metadata.json");
5+

nativescript-angular/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"postinstall": "node postinstall.js",
3434
"tsc": "tsc -p tsconfig.json",
3535
"ngc": "ngc -p tsconfig.json",
36-
"prepublish": "npm run tsc && npm run ngc"
36+
"prepare": "npm run ngc && node ./bin/remove-polyfills-metadata.js"
3737
},
3838
"bin": {
3939
"update-app-ng-deps": "./bin/update-app-ng-deps"

0 commit comments

Comments
 (0)