Files
twenty/packages/twenty-utils/pack-scripts/post-publish.ts
T
martmullandGitHub 23df33172a Fix twenty sdk build 5 (#17744)
use prepublish instead of prepack
2026-02-05 15:54:06 +01:00

17 lines
400 B
TypeScript

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