summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrandon Keiji <[email protected]>2025-04-23 01:04:34 +0000
committerGitHub <[email protected]>2025-04-23 01:04:34 +0000
commitef7dcdb49ebc79f9d3cda5708a3ca4488a1899dc (patch)
tree20c0b91e5636d3cdc12b1629d5b21eeafd8500ea
parent05c568126fd0c1003dcfdee8650a6cd6013b259f (diff)
feat: add alias to the cli bin directive (#126)
-rw-r--r--package-lock.json2
-rw-r--r--packages/cli/index.ts2
-rw-r--r--packages/cli/package.json4
3 files changed, 6 insertions, 2 deletions
diff --git a/package-lock.json b/package-lock.json
index f19557fc..6a33fe6c 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -6520,7 +6520,7 @@
"yargs": "^17.7.2"
},
"bin": {
- "cli": "dist/index.js"
+ "gemini-code": "dist/index.js"
},
"devDependencies": {
"@types/diff": "^7.0.2",
diff --git a/packages/cli/index.ts b/packages/cli/index.ts
index 23e21097..7df29cd0 100644
--- a/packages/cli/index.ts
+++ b/packages/cli/index.ts
@@ -1,3 +1,5 @@
+#!/usr/bin/env node
+
/**
* @license
* Copyright 2025 Google LLC
diff --git a/packages/cli/package.json b/packages/cli/package.json
index 436a4b77..2f53c609 100644
--- a/packages/cli/package.json
+++ b/packages/cli/package.json
@@ -4,7 +4,9 @@
"description": "Gemini Code CLI",
"type": "module",
"main": "dist/index.js",
- "bin": "dist/index.js",
+ "bin": {
+ "gemini-code": "dist/index.js"
+ },
"scripts": {
"build": "tsc --build && touch dist/.last_build",
"clean": "rm -rf dist",