mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
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:
3
.npmrc
Normal file
3
.npmrc
Normal 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
|
||||||
@@ -11,8 +11,9 @@
|
|||||||
"test": "npm run test --workspaces",
|
"test": "npm run test --workspaces",
|
||||||
"lint": "eslint . --ext .ts,.tsx",
|
"lint": "eslint . --ext .ts,.tsx",
|
||||||
"typecheck": "tsc --noEmit --jsx react",
|
"typecheck": "tsc --noEmit --jsx react",
|
||||||
"start": "npm run start --workspace=gemini-code-cli -- \"$@\"",
|
"start": "npm run start --workspace=@google/gemini-code -- \"$@\"",
|
||||||
"format": "prettier --write ."
|
"format": "prettier --write .",
|
||||||
|
"artifactregistry-login": "npx google-artifactregistry-auth"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"eslint": "^9.24.0",
|
"eslint": "^9.24.0",
|
||||||
|
|||||||
@@ -1,11 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "gemini-code-cli",
|
"name": "@google/gemini-code",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "Gemini Code CLI",
|
"description": "Gemini Code CLI",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "dist/gemini.js",
|
"main": "gemini.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc",
|
"build": "tsc && cp package.json README.md ../../LICENSE dist/",
|
||||||
|
"clean": "rm -rf dist",
|
||||||
"start": "node dist/gemini.js",
|
"start": "node dist/gemini.js",
|
||||||
"debug": "node --inspect-brk dist/gemini.js",
|
"debug": "node --inspect-brk dist/gemini.js",
|
||||||
"lint": "eslint . --ext .ts,.tsx",
|
"lint": "eslint . --ext .ts,.tsx",
|
||||||
|
|||||||
Reference in New Issue
Block a user