Skip to content

Commit 029f1c3

Browse files
committed
Update 'preversion' script
Auto-minify on version bumps. Ensures the minified version published matches the unminified version.
1 parent ce42e59 commit 029f1c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"lint:semistandard": "npx semistandard",
2727
"minify": "npx uglify-js src/jquery.csv.js -o src/jquery.csv.min.js --compress --mangle",
2828
"package": "npx rimraf package && npm pack | tail -n 1 | xargs tar -xf",
29-
"preversion": "npm run lint && npm run test",
29+
"preversion": "npm run lint && npm run test && npm minify",
3030
"postversion": "git push --follow-tags",
3131
"prepublish": "npm run lint && npm run test"
3232
},

0 commit comments

Comments
 (0)