Skip to content

Commit f6a6734

Browse files
Create npm script clean that removes dist/ directory
Rename `build` to `build-unmin` and update `prepublish` to run `clean` before the build scripts.
1 parent 3ee6e78 commit f6a6734

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
"author": "Mark <mark@remarkablemark.org>",
66
"main": "index.js",
77
"scripts": {
8-
"build": "NODE_ENV=development webpack index.js dist/html-react-parser.js",
8+
"build-unmin": "NODE_ENV=development webpack index.js dist/html-react-parser.js",
99
"build-min": "NODE_ENV=production webpack -p index.js dist/html-react-parser.min.js",
10-
"prepublish": "npm run build && npm run build-min",
10+
"clean": "rm -rf dist",
11+
"prepublish": "npm run clean && npm run build-unmin && npm run build-min",
1112
"test": "mocha",
1213
"lint": "eslint index.js \"lib/**\" \"test/**\"",
1314
"cover": "istanbul cover _mocha -- -R spec \"test/**/*\"",

0 commit comments

Comments
 (0)