Some checks failed
CI/CD / lint (push) Successful in 46s
CI/CD / test (push) Successful in 1m3s
CI/CD / typecheck (push) Has started running
CI/CD / smoke (push) Has been cancelled
CI/CD / build (amd64) (push) Has been cancelled
CI/CD / build (arm64) (push) Has been cancelled
CI/CD / publish-rpm (amd64) (push) Has been cancelled
CI/CD / publish-rpm (arm64) (push) Has been cancelled
CI/CD / publish-deb (amd64) (push) Has been cancelled
CI/CD / publish-deb (arm64) (push) Has been cancelled
Add cross-architecture build support so the project can be developed on ARM64 (Fedora aarch64 laptop) while still producing amd64 packages for production. All build, package, publish, and install scripts are now architecture-aware via shared arch-helper.sh detection. - Add scripts/arch-helper.sh for shared architecture detection - CI builds both amd64 and arm64 in matrix strategy - nfpm.yaml uses NFPM_ARCH env var instead of hardcoded amd64 - Build scripts support MCPCTL_TARGET_ARCH for cross-compilation - installlocal.sh auto-detects RPM/DEB and filters by architecture - release.sh gains --both-arches flag for dual-arch releases - Package cleanup is arch-scoped (won't clobber other arch's packages) - build-mcpd.sh supports --platform and --multi-arch flags - Add pnpm scripts: rpm:build:amd64, deb:build:arm64, release:both - Conditional rpm/dpkg-deb checks for cross-distro compatibility Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
55 lines
2.0 KiB
JSON
55 lines
2.0 KiB
JSON
{
|
|
"name": "mcpctl",
|
|
"version": "0.0.1",
|
|
"private": true,
|
|
"description": "kubectl-like CLI for managing MCP servers",
|
|
"type": "module",
|
|
"scripts": {
|
|
"build": "pnpm -r run build",
|
|
"test": "vitest",
|
|
"test:run": "vitest run",
|
|
"test:coverage": "vitest run --coverage",
|
|
"test:smoke": "pnpm --filter mcplocal run test:smoke",
|
|
"test:ui": "vitest --ui",
|
|
"lint": "eslint 'src/*/src/**/*.ts'",
|
|
"lint:fix": "eslint 'src/*/src/**/*.ts' --fix",
|
|
"clean": "pnpm -r run clean && rimraf node_modules",
|
|
"db:up": "docker compose -f deploy/docker-compose.yml up -d",
|
|
"db:down": "docker compose -f deploy/docker-compose.yml down",
|
|
"typecheck": "tsc --build",
|
|
"completions:generate": "tsx scripts/generate-completions.ts --write",
|
|
"completions:check": "tsx scripts/generate-completions.ts --check",
|
|
"rpm:build": "bash scripts/build-rpm.sh",
|
|
"rpm:build:amd64": "MCPCTL_TARGET_ARCH=amd64 bash scripts/build-rpm.sh",
|
|
"rpm:build:arm64": "MCPCTL_TARGET_ARCH=arm64 bash scripts/build-rpm.sh",
|
|
"rpm:publish": "bash scripts/publish-rpm.sh",
|
|
"deb:build": "bash scripts/build-deb.sh",
|
|
"deb:build:amd64": "MCPCTL_TARGET_ARCH=amd64 bash scripts/build-deb.sh",
|
|
"deb:build:arm64": "MCPCTL_TARGET_ARCH=arm64 bash scripts/build-deb.sh",
|
|
"deb:publish": "bash scripts/publish-deb.sh",
|
|
"release": "bash scripts/release.sh",
|
|
"release:both": "bash scripts/release.sh --both-arches",
|
|
"mcpd:build": "bash scripts/build-mcpd.sh",
|
|
"mcpd:deploy": "bash deploy.sh",
|
|
"mcpd:deploy-dry": "bash deploy.sh --dry-run",
|
|
"mcpd:logs": "bash logs.sh"
|
|
},
|
|
"engines": {
|
|
"node": ">=20.0.0",
|
|
"pnpm": ">=9.0.0"
|
|
},
|
|
"packageManager": "pnpm@9.15.0",
|
|
"devDependencies": {
|
|
"@types/node": "^25.3.0",
|
|
"@typescript-eslint/eslint-plugin": "^8.56.0",
|
|
"@typescript-eslint/parser": "^8.56.0",
|
|
"@vitest/coverage-v8": "^4.0.18",
|
|
"eslint": "^10.0.1",
|
|
"eslint-config-prettier": "^10.1.8",
|
|
"rimraf": "^6.1.3",
|
|
"tsx": "^4.21.0",
|
|
"typescript": "^5.9.3",
|
|
"vitest": "^4.0.18"
|
|
}
|
|
}
|