Skip to content

Commit

Permalink
minify and exclude dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmcallister0210 committed Nov 2, 2024
1 parent dd9c623 commit f4eb140
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
},
"scripts": {
"build": "npm run build:cjs && npm run build:esm && npm run build:types",
"build:cjs": "esbuild src/index.ts --bundle --format=cjs --outfile=dist/cjs/index.js && echo '{ \"type\": \"commonjs\" }' > dist/cjs/package.json",
"build:esm": "esbuild src/index.ts --bundle --format=esm --outfile=dist/esm/index.js && echo '{ \"type\": \"module\" }' > dist/esm/package.json",
"build:cjs": "esbuild src/index.ts --bundle --packages=external --minify --format=cjs --outfile=dist/cjs/index.js && echo '{ \"type\": \"commonjs\" }' > dist/cjs/package.json",
"build:esm": "esbuild src/index.ts --bundle --packages=external --minify --format=esm --outfile=dist/esm/index.js && echo '{ \"type\": \"module\" }' > dist/esm/package.json",
"build:types": "tsc --emitDeclarationOnly --declaration src/index.ts --esModuleInterop --outDir dist/types",
"format": "npm run format:eslint && npm run format:prettier",
"format:eslint": "eslint -c .eslintrc.cjs --fix src/**",
Expand Down

0 comments on commit f4eb140

Please sign in to comment.