refactor: clean up build output (#53)
* refactor: clean up build output * refactor: add index.ts to package roots
This commit is contained in:
parent
a66ad2e2af
commit
f480ef4bbc
|
@ -6490,6 +6490,9 @@
|
|||
"react": "^18.3.1",
|
||||
"yargs": "^17.7.2"
|
||||
},
|
||||
"bin": {
|
||||
"cli": "dist/index.js"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/diff": "^7.0.2",
|
||||
"@types/dotenv": "^6.1.1",
|
||||
|
|
|
@ -8,10 +8,10 @@
|
|||
],
|
||||
"scripts": {
|
||||
"build": "npm run build --workspaces",
|
||||
"clean": "npm run clean --workspaces",
|
||||
"clean": "rm -rf node_modules && npm run clean --workspaces",
|
||||
"test": "npm run test --workspaces",
|
||||
"start": "node ./scripts/check-build-status.js && node node_modules/@gemini-code/cli/dist",
|
||||
"debug": "node ./scripts/check-build-status.js && node --inspect-brk node_modules/@gemini-code/cli/dist",
|
||||
"start": "node ./scripts/check-build-status.js && node node_modules/@gemini-code/cli",
|
||||
"debug": "node ./scripts/check-build-status.js && node --inspect-brk node_modules/@gemini-code/cli",
|
||||
"lint": "eslint . --ext .ts,.tsx",
|
||||
"typecheck": "tsc --noEmit --jsx react",
|
||||
"format": "prettier --write .",
|
||||
|
|
|
@ -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" }]
|
||||
}
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
/**
|
||||
* @license
|
||||
* Copyright 2025 Google LLC
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
export * from './src/index.js';
|
|
@ -3,10 +3,10 @@
|
|||
"version": "1.0.0",
|
||||
"description": "Gemini Code Server",
|
||||
"type": "module",
|
||||
"main": "dist/src/index.js",
|
||||
"main": "dist/index.js",
|
||||
"scripts": {
|
||||
"start": "node dist/src/index.js",
|
||||
"build": "tsc --build && cp package.json dist/",
|
||||
"build": "tsc --build",
|
||||
"clean": "rm -rf dist",
|
||||
"lint": "eslint . --ext .ts,.tsx",
|
||||
"format": "prettier --write .",
|
||||
|
|
|
@ -2,10 +2,7 @@
|
|||
"extends": "../../tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "dist",
|
||||
"rootDir": ".",
|
||||
"lib": ["DOM", "DOM.Iterable", "ES2020"],
|
||||
"module": "Node16",
|
||||
"target": "ES2022",
|
||||
"composite": true
|
||||
},
|
||||
"exclude": ["node_modules", "dist"]
|
||||
|
|
|
@ -7,11 +7,13 @@
|
|||
"resolveJsonModule": true,
|
||||
"sourceMap": true,
|
||||
"composite": true,
|
||||
// MONOREPO STUFF
|
||||
"incremental": true,
|
||||
"target": "ES2020",
|
||||
"module": "Node16",
|
||||
"declaration": true,
|
||||
"moduleResolution": "node16"
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"lib": ["ES2023"],
|
||||
"module": "NodeNext",
|
||||
"moduleResolution": "nodenext",
|
||||
"target": "es2022",
|
||||
"types": ["node"]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue