Files
twenty/packages/twenty-sdk/scripts/postpack.ts
T
2026-02-04 15:21:17 +00:00

17 lines
394 B
TypeScript

import fs from 'fs-extra';
import { BACKUP_PATH, PKG_PATH } from './prepack';
const main = async () => {
if (await fs.pathExists(BACKUP_PATH)) {
const original = await fs.readJson(BACKUP_PATH);
await fs.rm(PKG_PATH);
await fs.writeJson(PKG_PATH, original, { spaces: 2 });
await fs.remove(BACKUP_PATH);
}
};
main().catch((e) => {
console.error(e);
process.exit(1);
});