From fb54b0ca7ebe0a331dfd21bb3eb9abf38a8ddbbd Mon Sep 17 00:00:00 2001 From: kazuya kawaguchi Date: Sat, 23 Sep 2023 22:03:27 +0900 Subject: [PATCH] fix: build error --- .github/workflows/ci.yml | 14 ++++++++++++++ build.config.ts | 9 +++++++++ 2 files changed, 23 insertions(+) create mode 100644 build.config.ts diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6aa8cfd..68ac8eb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,6 +23,20 @@ jobs: with: fetch-depth: 0 + - name: Setup bun + uses: oven-sh/setup-bun@v1 + + - name: Enable corepack + run: corepack enable + + - name: Setup node + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node }} + + - name: Install dependencies + run: bun install + - name: Lint codes run: bun run lint diff --git a/build.config.ts b/build.config.ts new file mode 100644 index 0000000..ff0023a --- /dev/null +++ b/build.config.ts @@ -0,0 +1,9 @@ +import { defineBuildConfig } from 'unbuild' + +export default defineBuildConfig({ + declaration: true, + rollup: { + emitCJS: true + }, + entries: ['src/index.ts'] +})