We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39939f6 commit 12b52c2Copy full SHA for 12b52c2
Taskfile
@@ -13,10 +13,8 @@ commit_lint() {
13
build_hybrid() {
14
set -x
15
rm -rfv dist
16
- formats=('cjs' 'esm')
17
- for format in ${formats[*]}; do
18
- npx tsup src/index.ts -d=dist/${format} --keep-names --format=${format} --target=es2020 --external=reflect-metadata --sourcemap
19
- done
+ npx tsup src/index.ts -d=dist/esm --keep-names --format=esm --target=es2020 --external=reflect-metadata --sourcemap
+ npx tsup src/index.ts -d=dist/cjs --keep-names --format=cjs --target=es2020 --external=reflect-metadata --sourcemap
20
npx tsup src/index.ts -d=dist --dts-only
21
echo {\"type\": \"module\"} >dist/esm/package.json
22
echo {\"type\": \"commonjs\"} >dist/cjs/package.json
0 commit comments