Skip to content

Commit 6aa1e64

Browse files
committed
chore: add pack script in scoped pckg
1 parent 9e80404 commit 6aa1e64

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Diff for: build/pack-scripts/pack-compat.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const packageJsonObject = JSON.parse(fs.readFileSync(packageJsonPath, { encoding
1818
packageJsonObject.dependencies["@nativescript/angular"] = scopedVersion;
1919
fs.writeFileSync(packageJsonPath, JSON.stringify(packageJsonObject, null, 4));
2020

21-
execSync(`npm install`, {
21+
execSync(`npm install --save-exact`, {
2222
cwd: nsAngularPackagePath
2323
});
2424

Diff for: nativescript-angular/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"tsc-w": "tsc -p tsconfig.json -w",
3535
"ngc": "ngc -p tsconfig.json",
3636
"prepare": "npm run ngc",
37+
"pack": "cd ../dist && npm pack ../nativescript-angular",
3738
"version": "rm -rf package-lock.json && conventional-changelog -p angular -i ../CHANGELOG.md -s && git add ../CHANGELOG.md",
3839
"typedoc": "typedoc --tsconfig \"./tsconfig.typedoc.json\" --out ./bin/dist/ng-api-reference --includeDeclarations --name \"NativeScript Angular\" --theme ./node_modules/nativescript-typedoc-theme --excludeExternals --externalPattern \"**/+(tns-core-modules|module|declarations).d.ts\""
3940
},

0 commit comments

Comments
 (0)