Skip to content

Fix sst add requiring Prettier (or other dependencies)#6924

Merged
vimtor merged 1 commit into
devfrom
fix-prettier-install
Jun 24, 2026
Merged

Fix sst add requiring Prettier (or other dependencies)#6924
vimtor merged 1 commit into
devfrom
fix-prettier-install

Conversation

@vimtor

@vimtor vimtor commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • treat missing platform node_modules as requiring install
  • install platform dependencies before sst add runs its AST editor
  • prevent missing Prettier errors on fresh platform copies

Testing

  • go test ./pkg/project/... ./cmd/sst/...
  • bun run --cwd platform test -- test/ast/add.test.ts
  • local CLI against a temporary examples/cloudflare-worker copy
  • verified sst add cloudflare, subsequent provider add, and recovery after removing .sst/platform/node_modules

@vimtor vimtor changed the title Fix provider add dependency install Fix sst add requiring Prettier (or other dependencies) Jun 24, 2026
@vimtor vimtor merged commit adcdb2f into dev Jun 24, 2026
1 check passed
@vimtor vimtor deleted the fix-prettier-install branch June 24, 2026 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant