mirror of
https://github.com/browseros-ai/BrowserOS.git
synced 2026-05-18 11:06:19 +00:00
16 lines
421 B
TypeScript
16 lines
421 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2025 BrowserOS
|
|
*/
|
|
import fs from 'node:fs';
|
|
|
|
const packageJson = JSON.parse(fs.readFileSync('./package.json', 'utf-8'));
|
|
const serverJson = JSON.parse(fs.readFileSync('./server.json', 'utf-8'));
|
|
|
|
serverJson.version = packageJson.version;
|
|
for (const pkg of serverJson.packages) {
|
|
pkg.version = packageJson.version;
|
|
}
|
|
|
|
fs.writeFileSync('./server.json', JSON.stringify(serverJson, null, 2));
|