Browser-Strutture-Musa/scripts/fixup-models.ts
2025-11-13 14:03:34 +01:00

8 lines
285 B
TypeScript

import fs from 'fs';
import path from 'path';
const modelsPath = path.join(__dirname, '..', 'src', 'api', 'models.ts');
const models = fs.readFileSync(modelsPath, 'utf-8');
const fixedModels = models.replace(/^export\s+/gm, 'export type ');
fs.writeFileSync(modelsPath, fixedModels);