Skip to content

Commit d3a1a70

Browse files
authored
Fix build script (#370)
1 parent d91dfbe commit d3a1a70

File tree

4 files changed

+14
-5
lines changed

4 files changed

+14
-5
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,4 @@ jobs:
4949
disable_search: true
5050
files: coverage/lcov.info
5151
token: ${{ secrets.CODECOV_TOKEN }}
52+
- run: yarn run build

package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@
1111
"url": "https://github.com/ikatyang"
1212
},
1313
"exports": {
14-
".": {
15-
"types": "./dist/index.d.mts",
16-
"default": "./dist/index.mjs"
17-
}
14+
".": "./dist/index.js"
1815
},
1916
"license": "MIT",
2017
"scripts": {

tsconfig.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,10 @@
1111
"noEmit": true,
1212
"allowImportingTsExtensions": true
1313
},
14-
"include": ["src/**/*.ts", "tests/**/*.ts", "vitest.config.ts"]
14+
"include": [
15+
"src/**/*.ts",
16+
"tests/**/*.ts",
17+
"vitest.config.ts",
18+
"tsdown.config.ts"
19+
]
1520
}

tsdown.config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { defineConfig } from 'tsdown';
2+
3+
export default defineConfig({
4+
external: ['@babel/types'],
5+
fixedExtension: false,
6+
});

0 commit comments

Comments
 (0)