summaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
authorJerop Kipruto <[email protected]>2025-06-23 18:01:22 -0400
committerGitHub <[email protected]>2025-06-23 22:01:22 +0000
commit58572a6eaab903a94402d4d9fa56e16b354d5330 (patch)
tree669fc74428f615f9751d610e9665095c25f8b1c1 /package.json
parente423d20a8d57d422eef1e9364cee26478f3e4a7d (diff)
Use concurrently to run start script with GCP telemetry (#1329)
## TLDR Introduces the `concurrently` package to simplify the dev startup process with GCP telemetry enabled. ## Dive Deeper Previously, developers had to run the telemetry script and the main application start script in separate terminals. This change updates the `start:gcp` script to use `concurrently`, allowing both processes to be launched and managed with a single command. This improves the developer experience and reduces the chance of forgetting to start one of the required processes. ## Reviewer Test Plan Set the required environment variable: ```shell export OTLP_GOOGLE_CLOUD_PROJECT=<your-project-id> ``` Run the following command: ```shell npm run start:gcp ``` #750 cc @teeler
Diffstat (limited to 'package.json')
-rw-r--r--package.json3
1 files changed, 2 insertions, 1 deletions
diff --git a/package.json b/package.json
index 958e5888..78ad2e2d 100644
--- a/package.json
+++ b/package.json
@@ -40,7 +40,7 @@
"publish:npm": "npm publish --workspaces ${NPM_PUBLISH_TAG:+--tag=$NPM_PUBLISH_TAG} ${NPM_DRY_RUN:+--dry-run}",
"publish:release": "npm run build:packages && npm run prepare:cli-packagejson && npm run build:docker && npm run publish:sandbox && npm run publish:npm",
"telemetry": "node scripts/telemetry.js",
- "start:gcp": "npm run telemetry -- --target=gcp & npm start"
+ "start:gcp": "concurrently --raw --kill-others \"npm run telemetry -- --target=gcp\" \"npm start\""
},
"bin": {
"gemini": "bundle/gemini.js"
@@ -55,6 +55,7 @@
"@types/mime-types": "^2.1.4",
"@types/minimatch": "^5.1.2",
"@vitest/coverage-v8": "^3.1.1",
+ "concurrently": "^9.2.0",
"cross-env": "^7.0.3",
"esbuild": "^0.25.0",
"eslint": "^9.24.0",