Skip to content

Commit

Permalink
build(package): build for web changed
Browse files Browse the repository at this point in the history
  • Loading branch information
mrspartak committed Jun 16, 2024
1 parent bcd6388 commit a8f1ca7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
},
"browser": "./dist/web.global.js"
}
}
},
"./web": "./dist/web.js"
},
"sideEffects": false,
"files": ["dist"],
Expand Down
9 changes: 0 additions & 9 deletions tsconfig.node.json

This file was deleted.

3 changes: 2 additions & 1 deletion tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@ export default defineConfig([
{
entry: ["./src/web.ts"],
clean: true,
format: ["iife"],
format: ["esm"],
minify: true,
sourcemap: true,
dts: true,
outDir: "./dist",
external: ["fs", "path", "os"],
},
Expand Down

0 comments on commit a8f1ca7

Please sign in to comment.