tiny-vue/packages/renderless/scripts/postbuild.ts

13 lines
376 B
TypeScript

import { resolve } from 'node:path'
import { promises as fs } from 'node:fs'
async function run() {
const content = await fs.readFile(resolve('package.json'), 'utf8')
const packageJson = JSON.parse(content)
delete packageJson.exports
delete packageJson.private
await fs.writeFile(resolve('dist', 'package.json'), JSON.stringify(packageJson, null, 2))
}
void run()