When CI/CD builds and release automation publish or test packages from a monorepo, inter-workspace dependency specs and lockfile contents must stay publish-safe and CI-consistent.
Standards 1) No unresolvable workspace paths in published deps
"file:../..." specifiers in package.json of packages intended for registry publication; they can break npm i for consumers.2) Use publish-time-resolved specs
workspace:* so the dependency resolves to the correct concrete version at publish time.3) Keep lockfile aligned with manifests
package.json dependencies must be followed by lockfile reconciliation; stale/phantom entries in package-lock.json can cause unexpected CI lock-diff failures.4) If CI starts running new workspaces, ensure reporting is wired
Example (recommended inter-workspace dependency style)
{
"dependencies": {
"@qwen-code/channel-base": "workspace:*"
}
}
Operational checklist for PRs affecting release/CI
file: in published package manifests).workspace:* or ensure your versioning/release scripts rewrite dependency ranges.package-lock.json after dependency changes.Enter the URL of a public GitHub repository