fp/services/scout/tsup.config.ts

19 lines
367 B
TypeScript

import { defineConfig } from 'tsup'
import { exec } from 'node:child_process'
import { promisify } from 'node:util'
export default defineConfig({
entry: [
'src/index.ts'
],
shims: true,
clean: true,
loader: {
'.yml': 'file'
},
onSuccess: async () => {
const execP = promisify(exec)
// execP('cp ./src/api.yaml ./dist/api.yaml')
},
})