Update
This commit is contained in:
14
scripts/sync-deps.ts
Executable file
14
scripts/sync-deps.ts
Executable file
@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env node --experimental-strip-types
|
||||
import fs from 'node:fs';
|
||||
|
||||
const up = JSON.parse(
|
||||
fs.readFileSync('package.json', 'utf8'),
|
||||
) as typeof import('../package.json');
|
||||
|
||||
const down = JSON.parse(
|
||||
fs.readFileSync('dist/package.json', 'utf8'),
|
||||
) as typeof import('../dist/package.json');
|
||||
|
||||
down.dependencies = up.dependencies;
|
||||
|
||||
fs.writeFileSync('dist/package.json', JSON.stringify(down, null, 2));
|
Reference in New Issue
Block a user