command-parser/scripts/declareTypes.js

3 lines
191 B
JavaScript
Raw Normal View History

2023-04-13 19:18:40 +02:00
import fs from 'node:fs';
fs.writeFileSync('./build/cjs/package.json', JSON.stringify({ type: 'commonjs' }));
fs.writeFileSync('./build/esm/package.json', JSON.stringify({ type: 'module' }));