Feat: prepublish script added in package.json. Fix: at end of publish need to remove dist folder
This commit is contained in:
parent
96dd626fb2
commit
d0388da624
2 changed files with 11 additions and 10 deletions
|
|
@ -9,7 +9,9 @@
|
|||
"scripts": {
|
||||
"transpile": "ngc",
|
||||
"build": "npm run transpile",
|
||||
"publish": "npm run build && cp publishPackage.json ./dist/package.json && cp README.md ./dist/README.md && cd dist && npm publish --access=public"
|
||||
"test": "ng test",
|
||||
"prepublish": "npm run test",
|
||||
"publish": "npm run build && cp publishPackage.json ./dist/package.json && cp README.md ./dist/README.md && cd dist && npm publish --access=public && rm -rf ./dist"
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "Lorenzo Iovino",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue