refactor: extract version in a seprate file (#1032)

This commit is contained in:
Nikolay Vitkov authored and GitHub committed 2026-02-24 14:22:26 +00:00
1 parent dd26bbf172
commit 0106865aad
4 files changed
+14 -8

No files matched your search

+1 -1
View File
@@ -18,7 +18,7 @@
"extra-files": [
{
"type": "generic",
"path": "src/main.ts"
"path": "src/version.ts"
},
{
"type": "json",
+2 -2
View File
@@ -15,6 +15,7 @@ import {StdioClientTransport} from '@modelcontextprotocol/sdk/client/stdio.js';
import {logger} from '../logger.js';
import {PipeTransport} from '../third_party/index.js';
import {VERSION} from '../version.js';
import {
getSocketPath,
@@ -43,8 +44,7 @@ async function setupMCPClient() {
mcpClient = new Client(
{
name: 'chrome-devtools-cli-daemon',
// TODO: handle client version (optional).
version: '0.1.0',
version: VERSION,
},
{
capabilities: {},
+1 -5
View File
@@ -30,11 +30,7 @@ import {ToolCategory} from './tools/categories.js';
import {tools as slimTools} from './tools/slim/tools.js';
import type {ToolDefinition} from './tools/ToolDefinition.js';
import {tools} from './tools/tools.js';
// If moved update release-please config
// x-release-please-start-version
const VERSION = '0.17.3';
// x-release-please-end
import {VERSION} from './version.js';
export const args = parseArguments(VERSION);
+10
View File
@@ -0,0 +1,10 @@
/**
* @license
* Copyright 2026 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
// If moved update release-please config
// x-release-please-start-version
export const VERSION = '0.17.3';
// x-release-please-end