Package and verify MoonBit libraries for Mooncakes and npm
moon run apps/pubman --target native -- plan --config fixtures/pubman-consumer/pubman.json --json
moon run apps/pubman --target native -- pack --config fixtures/pubman-consumer/pubman.json --dry-run --json
moon run apps/pubman --target native -- pack --config fixtures/pubman-consumer/pubman.json
moon run apps/pubman --target native -- verify --bundle fixtures/pubman-consumer/_build/pubman/release
moon run apps/pubman --target native -- publish --bundle fixtures/pubman-consumer/_build/pubman/release --dry-run --json| Field | Meaning |
|---|---|
| schemaVersion | Required, 1. |
| module | Module directory relative to this config. Defaults to . outside ambiguous workspace roots. |
| npm.name, npm.access | Explicit npm identity and required "public" access. No automatic scope inference. |
| npm.version | Optional assertion equal to the library's moon.mod version. |
| npm.description | Optional description override. |
| npm.dependencies | Optional map of public npm names to exact semver strings. |
| npm.tag | Optional distribution tag, required for prereleases. Stable versions default to latest. |
| entries.js, entries.wasm | Required export package, wrapper and declaration sources. |
| assets | Required array of { "source": "relative/file", "destination": "package/file" }. |
| checks | Required nonempty node, browser, and types arrays of module-relative check files. |
| output | Tool-owned bundle path relative to config, default _build/pubman/release. |
{ "backend": "js", "path": "js/js.d.ts" }mise install
mise exec -- playwright install --with-deps chromium
mise run test:pubmanpubman publish --bundle /absolute/path/to/verified/bundle --json{"schemaVersion":1,"command":"pack","ok":false,"data":{},"error":{"code":"INVALID_INPUT","message":"missing wasm declaration","details":{}}}type Host