macp package.json had a pre-existing exports map with default: './src/index.ts' which broke any consumer that loaded the compiled mosaic CLI via node (mosaic --help, mosaic <cmd> --help). Every other workspace package points at ./dist/index.js — align macp with the rest. Adds packages/mosaic/src/cli-smoke.spec.ts — the CU-05-10 integration smoke test that asserts every register<Name>Command from the eight sub-packages (auth, brain, forge, log, macp, memory, queue, storage) plus config attaches a top-level command and that its help output renders without throwing. Running this locally after the macp fix confirms mosaic --help and mosaic <cmd> --help exit 0 for all nine commands. Part of mission cli-unification-20260404.
41 lines
882 B
JSON
41 lines
882 B
JSON
{
|
|
"name": "@mosaicstack/macp",
|
|
"version": "0.0.2",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://git.mosaicstack.dev/mosaicstack/mosaic-stack.git",
|
|
"directory": "packages/macp"
|
|
},
|
|
"type": "module",
|
|
"main": "dist/index.js",
|
|
"types": "dist/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"default": "./dist/index.js"
|
|
}
|
|
},
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"lint": "eslint src",
|
|
"typecheck": "tsc --noEmit",
|
|
"test": "vitest run --passWithNoTests"
|
|
},
|
|
"dependencies": {
|
|
"commander": "^13.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^22.0.0",
|
|
"@vitest/coverage-v8": "^2.0.0",
|
|
"typescript": "^5.8.0",
|
|
"vitest": "^2.0.0"
|
|
},
|
|
"publishConfig": {
|
|
"registry": "https://git.mosaicstack.dev/api/packages/mosaicstack/npm/",
|
|
"access": "public"
|
|
},
|
|
"files": [
|
|
"dist"
|
|
]
|
|
}
|