feat: initial configs for npm publishing (#30)

* feat: initial configs for npm publishing

* fix: workspace reference

* fix: include LICENSE in npm run build
This commit is contained in:
Brandon Keiji 2025-04-18 12:46:42 -07:00 committed by GitHub
parent abb60a4d10
commit 56d4a35d05
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 10 additions and 5 deletions

3
.npmrc Normal file
View File

@ -0,0 +1,3 @@
; TODO(b/411429188): move this to an artifact registry in the official gemini-code gcp project
@google:registry=https://us-west1-npm.pkg.dev/kkb-dev/gemini-code/
//us-west1-npm.pkg.dev/kkb-dev/gemini-code/:always-auth=true

View File

@ -11,8 +11,9 @@
"test": "npm run test --workspaces",
"lint": "eslint . --ext .ts,.tsx",
"typecheck": "tsc --noEmit --jsx react",
"start": "npm run start --workspace=gemini-code-cli -- \"$@\"",
"format": "prettier --write ."
"start": "npm run start --workspace=@google/gemini-code -- \"$@\"",
"format": "prettier --write .",
"artifactregistry-login": "npx google-artifactregistry-auth"
},
"devDependencies": {
"eslint": "^9.24.0",

View File

@ -1,11 +1,12 @@
{
"name": "gemini-code-cli",
"name": "@google/gemini-code",
"version": "1.0.0",
"description": "Gemini Code CLI",
"type": "module",
"main": "dist/gemini.js",
"main": "gemini.js",
"scripts": {
"build": "tsc",
"build": "tsc && cp package.json README.md ../../LICENSE dist/",
"clean": "rm -rf dist",
"start": "node dist/gemini.js",
"debug": "node --inspect-brk dist/gemini.js",
"lint": "eslint . --ext .ts,.tsx",