Files
twenty/packages/twenty-utils/pack-scripts/postpack.ts
T
martmullandGitHub de5764ede0 Fix twenty sdk build (#17729)
- remove worksapce:* dependencies from published packages
- Use common tsconfig.ts in create-twenty-app
- Increase version to 0.4.4
2026-02-05 14:25:49 +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);
});