chronocat/packages/iife/pack.cts

9 lines
298 B
TypeScript
Raw Permalink Normal View History

2024-03-08 15:43:24 +00:00
import { cp, mkdir } from 'node:fs/promises'
import { join, resolve } from 'node:path'
void (async () => {
2024-03-09 17:14:56 +00:00
const distPath = resolve(__dirname, '../../build/dist/iife/')
2024-03-08 15:43:24 +00:00
await mkdir(distPath, { recursive: true })
2024-03-08 15:52:23 +00:00
await cp(join(__dirname, 'lib/index.js'), join(distPath, 'chronocat.js'))
2024-03-08 15:43:24 +00:00
})()