Skip to content
This repository was archived by the owner on Jun 1, 2025. It is now read-only.

Commit 50e5a4f

Browse files
committed
chore: copy .npmignore into dist folder to avoid publishing test folder
- related to issue opened in ng-packagr ng-packagr/ng-packagr#2459
1 parent 7592c3b commit 50e5a4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"postinstall": "ngcc",
2222
"prebuild": "npm-run-all delete:dist lint",
2323
"build": "npm run packagr",
24-
"postbuild": "npm-run-all copy:i18n copy:lib",
24+
"postbuild": "npm-run-all copy:i18n copy:npmignore",
2525
"build:with-e2e": "npm-run-all build cypress:ci",
2626
"build:gh-demo": "npm run build",
2727
"postbuild:gh-demo": "npm-run-all del-demo:dist copy-demo:dist",
@@ -39,7 +39,7 @@
3939
"jest:coverage": "npx jest --config test/jest.config.js --runInBand --coverage",
4040
"jest:snapshot": "npx jest --config test/jest.config.js --coverage -u",
4141
"copy:i18n": "cross-env copyfiles -f src/assets/i18n/*.json dist/i18n",
42-
"copy:lib": "cross-env copyfiles --up 2 src/assets/lib/** dist",
42+
"copy:npmignore": "cross-env copyfiles -f .npmignore dist",
4343
"packagr": "ng-packagr -p ng-package.json",
4444
"build:demo": "ng build --configuration=production --base-href=\"\"",
4545
"pack-lib": "npm pack ./dist",

0 commit comments

Comments
 (0)