Skip to content

Commit

Permalink
feat: modified compression algo
Browse files Browse the repository at this point in the history
  • Loading branch information
Siddharth9890 committed Jan 30, 2024
1 parent 055091e commit 42c7158
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"lint:fix": "eslint . --fix",
"format": "prettier --write .",
"prepare": "husky install",
"build": "rm -rf dist && tsc && scripts/compress.sh"
"build": "rm -rf dist && tsc && scripts/compress.sh && node scripts/compress.js"
},
"lint-staged": {
"*.ts": [
Expand Down
2 changes: 1 addition & 1 deletion scripts/compress.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

files="dist/.mesh/sources/GatewaySDK/introspectionSchema.js dist/.mesh/index.js dist/src/auth/auth.js dist/src/data-model/data-model.js dist/src/dataRequestsTemplate/dataRequestsTemplate.js dist/src/organization/organization.js dist/src/pda/pda.js dist/src/proof/proof.js dist/src/request/request.js dist/src/user/user.js"
files="dist/.mesh/sources/GatewaySDK/introspectionSchema.js dist/src/auth/auth.js dist/src/data-model/data-model.js dist/src/dataRequestsTemplate/dataRequestsTemplate.js dist/src/organization/organization.js dist/src/pda/pda.js dist/src/proof/proof.js dist/src/request/request.js dist/src/user/user.js"

for file in $files; do
uglifyjs "$file" -o "$file"
Expand Down

0 comments on commit 42c7158

Please sign in to comment.