Skip to content

Commit

Permalink
Add rimraf to clean lib directory before publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
mixaildudin committed Jul 17, 2022
1 parent 8afc29f commit 27728d4
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ lib/dict-transformer/
lib/test/
custom.json
*.map
.idea
.idea
.travis.yml
25 changes: 25 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,15 @@
"ts": "tsc -w",
"test": "tsc && mocha ./lib/test --reduplicate",
"repl": "tsc && node ./lib/repl.js",
"prepublishOnly": "npm run test"
"prepublishOnly": "rimraf lib && npm run test"
},
"devDependencies": {
"@types/chai": "^4.1.7",
"@types/mocha": "^5.2.6",
"@types/node": "^10.12.18",
"chai": "^4.2.0",
"mocha": "^8.0.1",
"rimraf": "^3.0.2",
"typescript": "^4.5.4"
},
"repository": {
Expand Down

0 comments on commit 27728d4

Please sign in to comment.