Skip to content

Commit

Permalink
remove dist before build
Browse files Browse the repository at this point in the history
  • Loading branch information
the-vampiire committed Mar 3, 2022
1 parent 278f936 commit 5c9d5cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"scripts": {
"format": "prettier-eslint --eslint-config-path ./.eslintrc.js --write $PWD'/**/*.js'",
"dev": "webpack --mode development",
"build": "webpack --mode production",
"build": "rm -rf dist && webpack --mode production",
"test": "ava ./dist/test.js && npm run format",
"start": "npm run dev && node cli.js",
"prepublish": "npm run build"
Expand Down
3 changes: 2 additions & 1 deletion test.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ const defineFooEndpoint = (
ctx.body = fooProps.message;
ctx.status = fooProps.statusCode;
console.log(
`${fooProps.message}! ${await fooProps.counter.count()} of ${fooProps.counter.countTimes
`${fooProps.message}! ${await fooProps.counter.count()} of ${
fooProps.counter.countTimes
}`
);
await next();
Expand Down

0 comments on commit 5c9d5cc

Please sign in to comment.