diff --git a/.github/workflows/ci-dev.yml b/.github/workflows/ci-dev.yml index 149cc312..416392a0 100644 --- a/.github/workflows/ci-dev.yml +++ b/.github/workflows/ci-dev.yml @@ -41,6 +41,9 @@ jobs: - name: Lint run: yarn lint + - name: Typecheck + run: yarn typecheck + - name: Build run: yarn build diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eb3e0e54..60c29081 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,6 +41,9 @@ jobs: - name: Lint run: yarn lint + - name: Typecheck + run: yarn typecheck + - name: Build run: yarn build diff --git a/build.config.ts b/build.config.ts new file mode 100644 index 00000000..f00cb933 --- /dev/null +++ b/build.config.ts @@ -0,0 +1,12 @@ +import fs from 'node:fs/promises' +import { join, resolve } from 'node:path' +import { defineBuildConfig } from 'unbuild' + +export default defineBuildConfig({ + hooks: { + 'rollup:done': async (ctx) => { + // copy env.d.ts to dist + await fs.copyFile(resolve('src/env.d.ts'), join(ctx.options.outDir, 'env.d.ts')) + } + } +}) diff --git a/docs/app.vue b/docs/app.vue index 9016361e..2f3615c8 100644 --- a/docs/app.vue +++ b/docs/app.vue @@ -60,6 +60,13 @@