chronocat/packages/iife/pack.cts
2024-03-10 01:14:56 +08:00

9 lines
298 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'))
})()