项目文件夹

文件
T
Alex Rudenko cae1cf13d5 fix: manually bump server.json versions based on package.json (#105)
it appears that mcp registry publishing tools would not sync
automatically with package.json.
2025-09-24 10:23:06 +02:00

17 行
461 B
TypeScript

/**
* @license
* Copyright 2025 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
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));