Skip to content

Commit

Permalink
fix: do not prettier the bundled JS
Browse files Browse the repository at this point in the history
  • Loading branch information
alanshaw committed Nov 16, 2024
1 parent 5bdae0f commit ba99efd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ docs
.env
.next
out
*.min.js

# debug
npm-debug.log*
Expand Down
10 changes: 5 additions & 5 deletions packages/w3up-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -199,7 +199,7 @@
"docs-generated",
"coverage",
"src/types.js",
"*.bundle.js"
"*.min.js"
]
},
"directories": {
Expand Down

0 comments on commit ba99efd

Please sign in to comment.