Repository navigation
Link The Cinematic Web book; fix generate:dry manifest loading - #31
Merged
Merged
Conversation
…te:dry manifest loading - README: add "The book" section pointing to the Kindle edition (ASIN B0HPYP923J) and the free sample chapter. - docs/book/sample-chapter.md: chapter 3 of the book (the twelve scroll patterns), under 10% of the text so it stays within KDP Select's exclusivity allowance. - templates/nextjs/scripts/generate-chapter-assets.mjs: load lib/editions-manifest.ts by transpiling it with the project's typescript dependency (native type-stripping fallback) instead of a regex-to-JSON hack that failed on the shipped manifest. `npm run generate:dry` now exits 0 and prints all eight prompts. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
docs/book/sample-chapter.mdpublishes chapter 3 (the twelve scroll patterns), 7.7% of the book, inside KDP Select's 10% allowance.templates/nextjs/scripts/generate-chapter-assets.mjsno longer parses the TypeScript manifest with a regex. It transpiles with the project'stypescriptdependency, falling back to Node's native type stripping.npm run generate:dryexits 0 on the shipped manifest (it previously crashed with a JSON.parse error).Test plan
node tools/check-skills.mjs --forbid-root-skillpassesnode tools/check-media-size.mjspassesnode tools/check-site-links.mjspassescd templates/nextjs && npm run generate:dryprints 8 prompts, exit 0node --experimental-strip-types🤖 Generated with Claude Code