mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 16:57:46 +00:00
refactor: clean up build output (#53)
* refactor: clean up build output * refactor: add index.ts to package roots
This commit is contained in:
7
packages/cli/index.ts
Normal file
7
packages/cli/index.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2025 Google LLC
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import './src/gemini.js';
|
||||
@@ -3,9 +3,10 @@
|
||||
"version": "1.0.0",
|
||||
"description": "Gemini Code CLI",
|
||||
"type": "module",
|
||||
"main": "src/gemini.js",
|
||||
"main": "dist/index.js",
|
||||
"bin": "dist/index.js",
|
||||
"scripts": {
|
||||
"build": "tsc --build && cp package.json README.md ../../LICENSE dist/ && touch dist/.last_build",
|
||||
"build": "tsc --build && touch dist/.last_build",
|
||||
"clean": "rm -rf dist",
|
||||
"start": "node dist/gemini.js",
|
||||
"debug": "node --inspect-brk dist/gemini.js",
|
||||
|
||||
@@ -2,17 +2,13 @@
|
||||
"extends": "../../tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "dist",
|
||||
"rootDir": ".",
|
||||
"jsx": "react",
|
||||
"lib": ["DOM", "DOM.Iterable", "ES2020"],
|
||||
"module": "Node16",
|
||||
"target": "ES2020",
|
||||
"paths": {
|
||||
"@gemini-code/*": ["./packages/*"]
|
||||
},
|
||||
"types": ["node", "vitest/globals"]
|
||||
},
|
||||
"exclude": ["node_modules", "dist"],
|
||||
"include": ["src"],
|
||||
"references": [{ "path": "../server" }]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user