5 lines
277 B
JavaScript
5 lines
277 B
JavaScript
import fs from 'node:fs';
|
|
if (process.argv.includes('--common'))
|
|
fs.writeFileSync('./build/cjs/package.json', JSON.stringify({ type: 'commonjs' }));
|
|
if (process.argv.includes('--module'))
|
|
fs.writeFileSync('./build/esm/package.json', JSON.stringify({ type: 'module' })); |