mirror of
https://github.com/LukeHagar/skeleton.git
synced 2025-12-07 04:21:18 +00:00
8 lines
436 B
JavaScript
8 lines
436 B
JavaScript
#!/usr/bin/env node
|
|
import { del } from "edit-package-json";
|
|
import { readFileSync, writeFileSync } from 'fs'
|
|
|
|
//We chop out the exports field of ../package.json rather than manipulate the one in ../package/package.json in case there
|
|
//are changes to the behaviour of 'vite build'. post-build.js will patch it back in so that monorepos work again.
|
|
writeFileSync('package.json', del(readFileSync('package.json').toString(), 'exports'))
|