Skip to content

Commit fb54b0c

Browse files
committed
fix: build error
1 parent 3c63d20 commit fb54b0c

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.github/workflows/ci.yml

+14
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,20 @@ jobs:
2323
with:
2424
fetch-depth: 0
2525

26+
- name: Setup bun
27+
uses: oven-sh/setup-bun@v1
28+
29+
- name: Enable corepack
30+
run: corepack enable
31+
32+
- name: Setup node
33+
uses: actions/setup-node@v3
34+
with:
35+
node-version: ${{ matrix.node }}
36+
37+
- name: Install dependencies
38+
run: bun install
39+
2640
- name: Lint codes
2741
run: bun run lint
2842

build.config.ts

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { defineBuildConfig } from 'unbuild'
2+
3+
export default defineBuildConfig({
4+
declaration: true,
5+
rollup: {
6+
emitCJS: true
7+
},
8+
entries: ['src/index.ts']
9+
})

0 commit comments

Comments
 (0)