Skip to content

Commit

Permalink
Merge pull request #26 from dipiash/feature/remove-old-tgz-from-release
Browse files Browse the repository at this point in the history
build(package): 📦 add clean commands to remove `tgz` before pack
  • Loading branch information
dipiash authored Nov 2, 2023
2 parents 5a5e4ac + 5a9d9ee commit 8a6c797
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
"url": "https://github.com/dipiash/eslint-plugin-nimbus-clean.git"
},
"scripts": {
"init": "rm -rf dist node_modules && npm i",
"init": "npm run clean && npm i",
"build": "rm -rf ./dist && mkdir ./dist && cp -r ./lib/* ./dist",
"pack": "npm pack --pack-destination=./dist",
"pack": "npm run clean:tgz && npm pack --pack-destination=./dist",
"lint": "npm-run-all \"lint:*\"",
"lint:eslint-docs": "npm-run-all \"update:eslint-docs -- --check\"",
"lint:js": "eslint . --ext .js,.ts",
Expand All @@ -35,6 +35,10 @@
"update:eslint-docs": "eslint-doc-generator",
"commit": "cz",
"release:prod": "git checkout main && git pull && npm run build && npm run pack && dotenv release-it -- -VV",
"clean": "npm run clean:node-modules && npm run clean:dist",
"clean:node-modules": "rm -rf node_modules",
"clean:dist": "rm -rf dist",
"clean:tgz": "rm -rf dist/*.tgz",
"prepare": "husky install"
},
"devDependencies": {
Expand Down

0 comments on commit 8a6c797

Please sign in to comment.