feat: release script

This commit is contained in:
Michal Szczepanski 2023-09-19 19:30:54 +02:00
parent bc0655a0cc
commit a2b5eb8fc2
2 changed files with 5 additions and 1 deletions

4
bin/release Executable file
View File

@ -0,0 +1,4 @@
#!/bin/bash
rm -r dist
rm -r .parcel-cache
npm run release

View File

@ -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",