From 42c7158796e840e0e3be58e9fb9fcfd844be69e8 Mon Sep 17 00:00:00 2001 From: Siddharth9890 Date: Tue, 30 Jan 2024 18:28:38 +0530 Subject: [PATCH] feat: modified compression algo --- package.json | 2 +- scripts/compress.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 2bc4c2b..d93ccfe 100644 --- a/package.json +++ b/package.json @@ -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": [ diff --git a/scripts/compress.sh b/scripts/compress.sh index bbecb8b..6da2e2e 100755 --- a/scripts/compress.sh +++ b/scripts/compress.sh @@ -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"