Skip to content

Commit

Permalink
Merge branch 'master' into mc/chore/integrate-launch-test-node
Browse files Browse the repository at this point in the history
  • Loading branch information
maschad committed Jul 16, 2024
2 parents 7ae80b8 + 3e9bc26 commit 1083c0c
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 8 deletions.
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
2 changes: 2 additions & 0 deletions .changeset/tall-foxes-applaud.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import type { CoinQuantityLike, ExcludeResourcesOption } from 'fuels';
import { FUEL_NETWORK_URL, Provider, ScriptTransactionRequest } from 'fuels';
import { generateTestWallet } from 'fuels/test-utils';

Expand Down Expand Up @@ -44,7 +45,7 @@ describe('querying the chain', () => {

it('get spendable resources', async () => {
// #region get-spendable-resources-1
// #import { Provider, FUEL_NETWORK_URL, generateTestWallet, ScriptTransactionRequest };
// #import { Provider, FUEL_NETWORK_URL, generateTestWallet, ScriptTransactionRequest, CoinQuantityLike, ExcludeResourcesOption };

const provider = await Provider.create(FUEL_NETWORK_URL);
const assetIdA = '0x0101010101010101010101010101010101010101010101010101010101010101';
Expand Down
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
22 changes: 16 additions & 6 deletions pnpm-lock.yaml

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

0 comments on commit 1083c0c

Please sign in to comment.