-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix missing esm file in the build output (#7)
* fix: remove type module option from package.json, fixes #6 This option also changes the outputs of tsup. So it does not output index.mjs file but instead index.js and index.cjs files. This breaks esm imports * chore: set tsup version to ^8 to prevent future issues * chore: change tsup config for consistency with other packages
- Loading branch information
Showing
3 changed files
with
2 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
import { defineConfig } from "tsup"; | ||
|
||
export default defineConfig({ | ||
entry: ["./index.ts"], | ||
entry: ["index.ts"], | ||
format: ["cjs", "esm"], | ||
sourcemap: false, | ||
clean: true, | ||
dts: true, | ||
minify: true, | ||
}); |