mtcute/packages/create-bot/build.config.js

17 lines
422 B
JavaScript
Raw Normal View History

2024-08-21 11:05:07 +03:00
import { resolve } from 'node:path'
import { cpSync } from 'node:fs'
2024-11-16 16:00:12 +03:00
/** @type {import('@fuman/build/vite').CustomBuildConfig} */
2024-08-21 11:05:07 +03:00
export default () => ({
2024-11-16 16:00:12 +03:00
viteConfig: {
build: {
lib: {
formats: ['es'],
},
},
},
finalize({ outDir, packageDir }) {
2024-08-21 11:05:07 +03:00
cpSync(resolve(packageDir, 'template'), resolve(outDir, 'template'), { recursive: true })
},
})