9 lines
221 B
JavaScript
9 lines
221 B
JavaScript
|
const { readFileSync, writeFileSync } = require('fs');
|
||
|
|
||
|
const { version } = JSON.parse(readFileSync('./package.json', {
|
||
|
encoding: 'UTF-8',
|
||
|
flag: 'r',
|
||
|
}));
|
||
|
|
||
|
writeFileSync('built/meta.json', JSON.stringify({ version }));
|