mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 07:04:45 +00:00
Fix npm publishing warnings and clean up package.json files
- Fixed repository URLs to use git+https:// format - Removed tsconfig.tsbuildinfo from clean scripts - Updated README with clearer build instructions and dependency order - Fixed bin paths to reference dist/cli.js correctly - Ready for npm publishing with no warnings
This commit is contained in:
parent
a74c5da112
commit
c615f3f011
5 changed files with 23 additions and 31 deletions
28
README.md
28
README.md
|
|
@ -12,34 +12,24 @@ A collection of tools for managing LLM deployments and building AI agents.
|
||||||
|
|
||||||
This is a monorepo using npm workspaces for package management and a dual TypeScript configuration for development and building.
|
This is a monorepo using npm workspaces for package management and a dual TypeScript configuration for development and building.
|
||||||
|
|
||||||
### Setup
|
### Common Commands
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Install all dependencies
|
# Install all dependencies
|
||||||
npm install
|
npm install
|
||||||
|
|
||||||
# Build all packages (required for production use)
|
# Build all packages (required for publishing to NPM)
|
||||||
npm run build
|
npm run build
|
||||||
|
|
||||||
# Or run directly with tsx during development (no build needed)
|
# Clean out dist/ folders in all packages
|
||||||
cd packages/pods && npx tsx src/cli.ts
|
|
||||||
cd packages/agent && npx tsx src/cli.ts
|
|
||||||
```
|
|
||||||
|
|
||||||
### Common Commands
|
|
||||||
|
|
||||||
```bash
|
|
||||||
# Clean all build artifacts and tsconfig.tsbuildinfo files
|
|
||||||
npm run clean
|
npm run clean
|
||||||
|
|
||||||
# Build all packages in dependency order
|
# Run linting, formatting, and tsc typechecking (no build needed)
|
||||||
npm run build
|
|
||||||
|
|
||||||
# Run biome checks and TypeScript type checking (no build required)
|
|
||||||
npm run check
|
npm run check
|
||||||
|
|
||||||
# Run tests (if present)
|
# Run directly with tsx during development (no build needed)
|
||||||
npm run test
|
cd packages/pods && npx tsx src/cli.ts
|
||||||
|
cd packages/agent && npx tsx src/cli.ts
|
||||||
```
|
```
|
||||||
|
|
||||||
### Package Dependencies
|
### Package Dependencies
|
||||||
|
|
@ -48,6 +38,8 @@ The packages have the following dependency structure:
|
||||||
|
|
||||||
`pi-tui` -> `pi-agent` -> `pi`
|
`pi-tui` -> `pi-agent` -> `pi`
|
||||||
|
|
||||||
|
When new packages are added, the must be inserted in the correct order in the `build` script in `package.json`.
|
||||||
|
|
||||||
### TypeScript Configuration
|
### TypeScript Configuration
|
||||||
|
|
||||||
The monorepo uses a dual TypeScript configuration approach:
|
The monorepo uses a dual TypeScript configuration approach:
|
||||||
|
|
@ -89,7 +81,7 @@ Quick version:
|
||||||
npm run publish:dry
|
npm run publish:dry
|
||||||
|
|
||||||
# Publish all packages to npm
|
# Publish all packages to npm
|
||||||
npm run publish:all
|
npm run publish
|
||||||
```
|
```
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
|
||||||
10
package.json
10
package.json
|
|
@ -14,10 +14,9 @@
|
||||||
"version:minor": "npm version minor -ws --no-git-tag-version && node scripts/sync-versions.js",
|
"version:minor": "npm version minor -ws --no-git-tag-version && node scripts/sync-versions.js",
|
||||||
"version:major": "npm version major -ws --no-git-tag-version && node scripts/sync-versions.js",
|
"version:major": "npm version major -ws --no-git-tag-version && node scripts/sync-versions.js",
|
||||||
"version:set": "npm version -ws",
|
"version:set": "npm version -ws",
|
||||||
"version:sync": "node scripts/sync-versions.js",
|
"prepublish": "npm run clean && npm run build && npm run check",
|
||||||
"prepublish:all": "npm run clean && npm run build && npm run check",
|
"publish": "npm run prepublish && npm publish -ws --access public",
|
||||||
"publish:all": "npm run prepublish:all && npm publish -ws --access public",
|
"publish:dry": "npm run prepublish && npm publish -ws --access public --dry-run"
|
||||||
"publish:dry": "npm run prepublish:all && npm publish -ws --access public --dry-run"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@biomejs/biome": "^2.1.4",
|
"@biomejs/biome": "^2.1.4",
|
||||||
|
|
@ -27,5 +26,6 @@
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=20.0.0"
|
"node": ">=20.0.0"
|
||||||
}
|
},
|
||||||
|
"version": ""
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
"description": "General-purpose agent with tool calling and session persistence",
|
"description": "General-purpose agent with tool calling and session persistence",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"bin": {
|
"bin": {
|
||||||
"pi-agent": "./dist/cli.js"
|
"pi-agent": "dist/cli.js"
|
||||||
},
|
},
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/index.d.ts",
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
"dist"
|
"dist"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"clean": "rm -rf dist tsconfig.tsbuildinfo",
|
"clean": "rm -rf dist",
|
||||||
"build": "tsc -p tsconfig.build.json && chmod +x dist/cli.js",
|
"build": "tsc -p tsconfig.build.json && chmod +x dist/cli.js",
|
||||||
"check": "biome check --write .",
|
"check": "biome check --write .",
|
||||||
"prepublishOnly": "npm run clean && npm run build"
|
"prepublishOnly": "npm run clean && npm run build"
|
||||||
|
|
@ -38,7 +38,7 @@
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/badlogic/pi-mono.git",
|
"url": "git+https://github.com/badlogic/pi-mono.git",
|
||||||
"directory": "packages/agent"
|
"directory": "packages/agent"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
|
|
|
||||||
|
|
@ -4,10 +4,10 @@
|
||||||
"description": "CLI tool for managing vLLM deployments on GPU pods",
|
"description": "CLI tool for managing vLLM deployments on GPU pods",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"bin": {
|
"bin": {
|
||||||
"pi": "./dist/cli.js"
|
"pi": "dist/cli.js"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"clean": "rm -rf dist tsconfig.tsbuildinfo",
|
"clean": "rm -rf dist",
|
||||||
"build": "tsc -p tsconfig.build.json && chmod +x dist/cli.js && cp src/models.json dist/",
|
"build": "tsc -p tsconfig.build.json && chmod +x dist/cli.js && cp src/models.json dist/",
|
||||||
"check": "biome check --write .",
|
"check": "biome check --write .",
|
||||||
"prepublishOnly": "npm run clean && npm run build"
|
"prepublishOnly": "npm run clean && npm run build"
|
||||||
|
|
@ -26,7 +26,7 @@
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/badlogic/pi-mono.git",
|
"url": "git+https://github.com/badlogic/pi-mono.git",
|
||||||
"directory": "packages/pods"
|
"directory": "packages/pods"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"clean": "rm -rf dist tsconfig.tsbuildinfo",
|
"clean": "rm -rf dist",
|
||||||
"build": "tsc -p tsconfig.build.json",
|
"build": "tsc -p tsconfig.build.json",
|
||||||
"check": "biome check --write .",
|
"check": "biome check --write .",
|
||||||
"prepublishOnly": "npm run clean && npm run build"
|
"prepublishOnly": "npm run clean && npm run build"
|
||||||
|
|
@ -27,7 +27,7 @@
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/badlogic/pi-mono.git",
|
"url": "git+https://github.com/badlogic/pi-mono.git",
|
||||||
"directory": "packages/tui"
|
"directory": "packages/tui"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue