chronocat/packages/llqqntv0/pack.cts
2024-03-05 12:32:12 +08:00

15 lines
458 B
TypeScript

import { cp, mkdir } from 'node:fs/promises'
import { join, resolve } from 'node:path'
void (async () => {
const distPath = resolve(
__dirname,
'../../build/dist/llqqntv0/LiteLoaderQQNT-Plugin-Chronocat',
)
const srcPath = join(distPath, 'src')
await mkdir(srcPath, { recursive: true })
await cp(join(__dirname, 'lib/index.js'), join(srcPath, 'main.js'))
await cp(join(__dirname, 'manifest.json'), join(distPath, 'manifest.json'))
})()