-
Notifications
You must be signed in to change notification settings - Fork 343
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Support ESM type declarations & remove test files in dist (#21)
* fix(*): migrate rollup to tsup, support esm correctly, remove *.spec.* for dist * chore: update * postbuild * Update .scripts/postbuild.sh * Update package.json Co-authored-by: Jonghyeon Ko <jonghyeon@toss.im> --------- Co-authored-by: raon0211 <raon0211@toss.im>
- Loading branch information
Showing
5 changed files
with
861 additions
and
242 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,6 @@ | |
node_modules | ||
coverage | ||
dist | ||
esm | ||
.junit | ||
out | ||
*.d.ts | ||
|
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { defineConfig } from 'tsup' | ||
|
||
export default defineConfig({ | ||
format: ['cjs', 'esm'], | ||
entry: ['src/*.ts', 'src/*/*.ts', '!**/*.{spec,test,test-d}.*'], | ||
sourcemap: true, | ||
dts: true, | ||
clean: true, | ||
}) |
Oops, something went wrong.