fix(ci): add missing @stackpanel/infra dep to apps/api#28
fix(ci): add missing @stackpanel/infra dep to apps/api#28cooper (czxtm) merged 1 commit intomainfrom
Conversation
apps/api/alchemy.run.ts imports from @stackpanel/infra/lib/deploy but the workspace dep wasn't declared, so bunx alchemy deploy failed with ResolveMessage when CI ran from a clean install. https://claude.ai/code/session_01WGbZGB93xMgBpBmoUDk91w
|
Preview |
|
Docs preview |
PR SummaryLow Risk Overview Updates Reviewed by Cursor Bugbot for commit 2c19960. Configure here. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is ON, but it could not run because the branch was deleted or merged before autofix could start.
Reviewed by Cursor Bugbot for commit 2c19960. Configure here.
| "@stackpanel/api": "workspace:*", | ||
| "@stackpanel/auth": "workspace:*", | ||
| "@stackpanel/db": "workspace:*", | ||
| "@stackpanel/infra": "workspace:*", |
There was a problem hiding this comment.
Infra dep placed in dependencies instead of devDependencies
Low Severity
@stackpanel/infra is added to dependencies but both apps/web and apps/docs declare it in devDependencies. This package is only used by alchemy.run.ts (a deployment-time script), not at runtime by the API server. Placing it in dependencies is inconsistent with the established pattern and misrepresents its role.
Reviewed by Cursor Bugbot for commit 2c19960. Configure here.


Summary
apps/api/alchemy.run.ts:23imports from@stackpanel/infra/lib/deploy, but the workspace dep was never declared inapps/api/package.json. CI'sbunx alchemy deploy --stage productionconsequently failed withResolveMessage: Cannot find module '@stackpanel/infra/lib/deploy' from '.../apps/api/alchemy.run.ts'.apps/webandapps/docs(which use the same helper) both already declare"@stackpanel/infra": "workspace:*"—apps/apiwas the outlier.bun.lock. After install,apps/api/node_modules/@stackpanel/infrasymlinks topackages/infra, andbun --print 'require.resolve("@stackpanel/infra/lib/deploy")'fromapps/apinow resolves topackages/infra/src/lib/deploy.ts.Test plan
alchemy deploy --stage productionstep and the resolve error no longer appears@stackpanel/infra/lib/deploy(no lockfile drift)https://claude.ai/code/session_01WGbZGB93xMgBpBmoUDk91w
Generated by Claude Code