chronocat/packages/iife/pack.cts
2024-03-08 23:52:23 +08:00

12 lines
311 B
TypeScript

import { cp, mkdir } from 'node:fs/promises'
import { join, resolve } from 'node:path'
void (async () => {
const distPath = resolve(
__dirname,
'../../build/dist/iife/',
)
await mkdir(distPath, { recursive: true })
await cp(join(__dirname, 'lib/index.js'), join(distPath, 'chronocat.js'))
})()