mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 12:14:41 +01:00
* wip: improve types * feat: improve types * Apply suggestions from code review Co-authored-by: Sylvain Marroufin <marroufin.sylvain@gmail.com> * chore: update * chore: enable ci typecheck * chore: fix Co-authored-by: Sylvain Marroufin <marroufin.sylvain@gmail.com>
13 lines
334 B
TypeScript
13 lines
334 B
TypeScript
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'))
|
|
}
|
|
}
|
|
})
|