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:
Mario Zechner 2025-08-09 17:27:16 +02:00
parent a74c5da112
commit c615f3f011
5 changed files with 23 additions and 31 deletions

View file

@ -4,7 +4,7 @@
"description": "General-purpose agent with tool calling and session persistence",
"type": "module",
"bin": {
"pi-agent": "./dist/cli.js"
"pi-agent": "dist/cli.js"
},
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
@ -12,7 +12,7 @@
"dist"
],
"scripts": {
"clean": "rm -rf dist tsconfig.tsbuildinfo",
"clean": "rm -rf dist",
"build": "tsc -p tsconfig.build.json && chmod +x dist/cli.js",
"check": "biome check --write .",
"prepublishOnly": "npm run clean && npm run build"
@ -38,7 +38,7 @@
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/badlogic/pi-mono.git",
"url": "git+https://github.com/badlogic/pi-mono.git",
"directory": "packages/agent"
},
"engines": {

View file

@ -4,10 +4,10 @@
"description": "CLI tool for managing vLLM deployments on GPU pods",
"type": "module",
"bin": {
"pi": "./dist/cli.js"
"pi": "dist/cli.js"
},
"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/",
"check": "biome check --write .",
"prepublishOnly": "npm run clean && npm run build"
@ -26,7 +26,7 @@
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/badlogic/pi-mono.git",
"url": "git+https://github.com/badlogic/pi-mono.git",
"directory": "packages/pods"
},
"engines": {

View file

@ -5,7 +5,7 @@
"type": "module",
"main": "dist/index.js",
"scripts": {
"clean": "rm -rf dist tsconfig.tsbuildinfo",
"clean": "rm -rf dist",
"build": "tsc -p tsconfig.build.json",
"check": "biome check --write .",
"prepublishOnly": "npm run clean && npm run build"
@ -27,7 +27,7 @@
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/badlogic/pi-mono.git",
"url": "git+https://github.com/badlogic/pi-mono.git",
"directory": "packages/tui"
},
"engines": {