Skip to content

Commit

Permalink
[optimize] add package shell
Browse files Browse the repository at this point in the history
  • Loading branch information
GarinZ committed Apr 13, 2023
1 parent 7366c46 commit dd1da00
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
10 changes: 10 additions & 0 deletions build-target.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

version=$(jq -r '.version' package.json)
echo "Building version $version"

pnpm build
zip -r "chrome_$version.zip" extension
pnpm build-edge
zip -r "edge_$version.zip" extension

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
"clean": "rimraf -rf ./extension ./dist ./*.zip ./*.crx",
"reinstall": "rimraf -rf ./node_modules && pnpm",
"prepare": "husky install",
"test-ext": "jest --config ./jest.config.js"
"test-ext": "jest --config ./jest.config.js",
"package": "./build-target.sh"
},
"lint-staged": {
"*.{ts,tsx,js}": [
Expand Down

0 comments on commit dd1da00

Please sign in to comment.