diff --git a/bin/release b/bin/release new file mode 100755 index 0000000..afb55c3 --- /dev/null +++ b/bin/release @@ -0,0 +1,4 @@ +#!/bin/bash +rm -r dist +rm -r .parcel-cache +npm run release diff --git a/package.json b/package.json index 3aade0a..eccb3cb 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "module": "dist/module.js", "types": "dist/types.d.ts", "scripts": { - "build": "npm run prod && npm run uglify", + "release": "npm run prod && npm run uglify", "dev": "NODE_ENV=development parcel build", "prod": "parcel build --no-source-maps", "uglify": "uglifyjs --compress --mangle -o dist/module.js -- dist/module.js",