diff --git a/.gitignore b/.gitignore index 1a16d11ca..b409b3d95 100644 --- a/.gitignore +++ b/.gitignore @@ -14,6 +14,7 @@ docs .env .next out +*.min.js # debug npm-debug.log* diff --git a/packages/w3up-client/package.json b/packages/w3up-client/package.json index 5ebf262cc..065872a6b 100644 --- a/packages/w3up-client/package.json +++ b/packages/w3up-client/package.json @@ -32,8 +32,8 @@ "types": "./dist/src/account.d.ts", "import": "./dist/src/account.js" }, - "./browser.bundle.js": { - "default": "./browser.bundle.js" + "./browser.min.js": { + "default": "./browser.min.js" }, "./delegation": { "types": "./dist/src/delegation.d.ts", @@ -122,14 +122,14 @@ }, "files": [ "dist", - "*.bundle.js" + "*.min.js" ], "scripts": { "attw": "attw --pack .", "lint": "tsc --build && eslint '**/*.{js,ts}' && prettier --check '**/*.{js,ts,yml,json}' --ignore-path ../../.gitignore", "build": "npm run build:tsc && npm run build:bundle:browser", "build:tsc": "tsc --build", - "build:bundle:browser": "esbuild src/index.js --bundle --minify --target=chrome130 --format=iife --global-name=w3up --outfile=browser.bundle.js", + "build:bundle:browser": "esbuild src/index.js --bundle --minify --target=chrome130 --format=iife --global-name=w3up --outfile=browser.min.js", "dev": "tsc --build --watch", "check": "tsc --build", "prepare": "npm run build", @@ -199,7 +199,7 @@ "docs-generated", "coverage", "src/types.js", - "*.bundle.js" + "*.min.js" ] }, "directories": {