Fix CommonJS build using esbuild
- Replace Bun CJS build with esbuild for proper Node.js compatibility - Fixes import issues with CJS/require environments - Bump version to 0.1.2
This commit is contained in:
parent
d8c5e4a1d5
commit
4affa51978
1 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@catalystlabs/typedfetch",
|
||||
"version": "0.1.1",
|
||||
"version": "0.1.2",
|
||||
"description": "Type-safe HTTP client that doesn't suck - Fetch for humans who have stuff to build",
|
||||
"type": "module",
|
||||
"main": "./dist/index.js",
|
||||
|
@ -22,7 +22,7 @@
|
|||
"build": "bun run build:clean && bun run build:esm && bun run build:cjs && bun run build:types",
|
||||
"build:clean": "rm -rf dist && mkdir dist",
|
||||
"build:esm": "bun build src/index.ts --outdir dist --target browser --format esm",
|
||||
"build:cjs": "bun build src/index.ts --outfile dist/index.cjs --target node --format cjs",
|
||||
"build:cjs": "esbuild src/index.ts --bundle --outfile=dist/index.cjs --target=node16 --format=cjs --platform=node",
|
||||
"build:types": "tsc --emitDeclarationOnly --outDir dist",
|
||||
"typecheck": "tsc --noEmit",
|
||||
"prepublishOnly": "bun run build && bun run typecheck"
|
||||
|
|
Loading…
Reference in a new issue