Skip to content

fix: remove blog post import when example is skipped in create-app#764

Open
lane711 wants to merge 1 commit intomainfrom
fix/issue-629-starter-template-blog-import
Open

fix: remove blog post import when example is skipped in create-app#764
lane711 wants to merge 1 commit intomainfrom
fix/issue-629-starter-template-blog-import

Conversation

@lane711
Copy link
Copy Markdown
Collaborator

@lane711 lane711 commented Apr 9, 2026

Summary

  • The create-app CLI deletes blog-posts.collection.ts when the user opts out of example content, but left the import and registerCollections entry in index.ts, causing a build error on fresh projects
  • Now also cleans up the import line and registration entry from index.ts

Test plan

  • Run npx create-sonicjs-app test-app and choose No for example content
  • Verify src/index.ts has no reference to blog-posts.collection
  • Verify the project builds successfully with npm run build

Closes #629

🤖 Generated with Claude Code

…ipped

The create-app CLI deletes blog-posts.collection.ts when the user opts
out of example content, but left the import and registration in index.ts,
causing a build error on fresh projects.

Clean up the import line and registration entry from index.ts when
example content is not wanted.

Closes #629

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

Start template includes blog post collection in code, breaking build if not included

2 participants