Skip to content

Commit

Permalink
build: support ESM only for now
Browse files Browse the repository at this point in the history
  • Loading branch information
aniravi24 committed Sep 2, 2024
1 parent 163b501 commit bae3d1f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
5 changes: 5 additions & 0 deletions .changeset/afraid-eggs-shave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"typefusion": patch
---

ESM only
13 changes: 3 additions & 10 deletions packages/typefusion/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,10 @@
"typefusion": "./dist/cli.js"
},
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"./effect": {
"import": "./dist/effect.js",
"require": "./dist/effect.cjs"
}
".": "./dist/index.js",
"./effect": "./dist/effect.js"
},
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"main": "./dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "tsup",
Expand Down
2 changes: 1 addition & 1 deletion packages/typefusion/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default defineConfig((opts) => ({
clean: !opts.watch,
dts: true,
entry: ["src/index.ts", "src/effect.ts", "src/cli.ts"],
format: ["cjs", "esm"],
format: ["esm"],
minify: !opts.watch,
bundle: true,
}));

0 comments on commit bae3d1f

Please sign in to comment.