mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
fix: add --build flag to tsc commands (#40)
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
"type": "module",
|
||||
"main": "src/gemini.js",
|
||||
"scripts": {
|
||||
"build": "tsc && cp package.json README.md ../../LICENSE dist/ && touch dist/.last_build",
|
||||
"build": "tsc --build && cp package.json README.md ../../LICENSE dist/ && touch dist/.last_build",
|
||||
"clean": "rm -rf dist",
|
||||
"start": "node dist/gemini.js",
|
||||
"debug": "node --inspect-brk dist/gemini.js",
|
||||
|
||||
@@ -12,6 +12,10 @@ import { WriteFileTool } from './tools/write-file.tool.js';
|
||||
import { WebFetchTool } from './tools/web-fetch.tool.js';
|
||||
import { globalConfig } from './config/config.js';
|
||||
|
||||
// TODO(b/411707095): remove. left here as an example of how to pull in inter-package deps
|
||||
import { helloServer } from '@gemini-code/server';
|
||||
helloServer();
|
||||
|
||||
async function main() {
|
||||
// Configure tools
|
||||
registerTools(globalConfig.getTargetDir());
|
||||
@@ -25,7 +29,7 @@ async function main() {
|
||||
}
|
||||
|
||||
// --- Global Unhandled Rejection Handler ---
|
||||
process.on('unhandledRejection', (reason, _) => {
|
||||
process.on('unhandledRejection', (reason, promise) => {
|
||||
// Check if this is the known 429 ClientError that sometimes escapes
|
||||
// this is a workaround for a specific issue with the way we are calling gemini
|
||||
// where a 429 error is thrown but not caught, causing an unhandled rejection
|
||||
|
||||
Reference in New Issue
Block a user