Skip to content

Commit

Permalink
clear dist before build
Browse files Browse the repository at this point in the history
  • Loading branch information
EmeraldBlock committed Oct 3, 2021
1 parent 2555171 commit 021acab
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nodemon.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"watch": ["./src/"],
"ext": "*",
"exec": "npx tsc && node --inspect --enable-source-maps --experimental-json-modules ."
"exec": "npm run build && node --inspect --enable-source-maps --experimental-json-modules ."
}
1 change: 1 addition & 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 @@ -11,7 +11,7 @@
"start": "node --experimental-json-modules .",
"dev": "npx nodemon",
"lint": "npx eslint .",
"build": "npx tsc"
"build": "npx rimraf ./dist/ && npx tsc"
},
"dependencies": {
"chalk": "^4.1.1",
Expand All @@ -24,6 +24,7 @@
"eslint": "^7.26.0",
"eslint-plugin-jsdoc": "^34.2.0",
"nodemon": "^2.0.7",
"rimraf": "^3.0.2",
"ts-node": "^9.1.1",
"typescript": "^4.2.4"
}
Expand Down

0 comments on commit 021acab

Please sign in to comment.