Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add minified fuels distribution #2762

Merged
merged 9 commits into from
Jul 16, 2024
5 changes: 5 additions & 0 deletions .changeset/shiny-paws-chew.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"fuels": patch
---

feat: add minified `fuels` distribution
petertonysmith94 marked this conversation as resolved.
Show resolved Hide resolved
6 changes: 5 additions & 1 deletion packages/fuels/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@
"dist"
],
"scripts": {
"build": "tsup && pnpm vite build",
"build": "run-s build:package build:browser build:minified",
"build:package": "tsup",
"build:browser": "pnpm vite build",
"build:minified": "pnpm uglifyjs --compress --mangle --output dist/browser.min.mjs -- dist/browser.mjs",
"postbuild": "tsc --emitDeclarationOnly -p tsconfig.dts.json",
"prepublishOnly": "cp ../../README.md ./README.md"
},
Expand Down Expand Up @@ -84,6 +87,7 @@
"lodash.camelcase": "^4.3.0",
"portfinder": "^1.0.32",
"toml": "^3.0.0",
"uglify-js": "^3.18.0",
"yup": "^1.4.0"
},
"devDependencies": {
Expand Down
42 changes: 26 additions & 16 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading