mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-21 17:27:54 +00:00
infra: add multipackage support (#34)
This commit is contained in:
6
packages/server/README.md
Normal file
6
packages/server/README.md
Normal file
@@ -0,0 +1,6 @@
|
||||
Nested package template. Either fill this out with "backend" functionality or create similar packages that you want built separate from the CLI.
|
||||
|
||||
To use this package from another dependent package in this monorepo:
|
||||
|
||||
1. add `"@gemini-code/server"` to the dependent package's `package.json`
|
||||
1. import in a dependenant by calling `import { } from "@gemini-code/server"`
|
||||
24
packages/server/package.json
Normal file
24
packages/server/package.json
Normal file
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"name": "@gemini-code/server",
|
||||
"version": "1.0.0",
|
||||
"description": "Gemini Code Server",
|
||||
"type": "module",
|
||||
"main": "src/index.js",
|
||||
"scripts": {
|
||||
"build": "tsc && cp package.json dist/",
|
||||
"clean": "rm -rf dist",
|
||||
"lint": "eslint . --ext .ts,.tsx",
|
||||
"format": "prettier --write ."
|
||||
},
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"typescript": "^5.3.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
}
|
||||
}
|
||||
|
||||
3
packages/server/src/index.ts
Normal file
3
packages/server/src/index.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export function helloServer() {
|
||||
// TODO: add more things in this package
|
||||
}
|
||||
13
packages/server/tsconfig.json
Normal file
13
packages/server/tsconfig.json
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "dist",
|
||||
"rootDir": ".",
|
||||
"lib": ["DOM", "DOM.Iterable", "ES2020"],
|
||||
"module": "Node16",
|
||||
"target": "ES2022",
|
||||
"composite": true,
|
||||
},
|
||||
"exclude": ["node_modules", "dist"],
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user