Conversation
Add npm scripts to clean build artifacts before building. This prevents the glob-stream stack overflow error that occurs when the docs/ directory accumulates too many files from previous builds. - npm run clean: removes docs/ and .cache/ directories - npm run build:clean: cleans then builds in one command
📝 WalkthroughWalkthroughTwo npm scripts were added to Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes 🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
✅ Deploy Preview for redpanda-docs-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
package.json (1)
7-7: Use a cross-platform delete utility in thecleanscript.The
rm -rfcommand is POSIX-only and will fail on Windows CMD. The project already usescross-envfor portability, so addingrimraf(a cross-platform alternative) aligns with that pattern.Proposed update
- "clean": "rm -rf docs .cache", + "clean": "rimraf docs .cache",Then add
rimraftodevDependencies.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@package.json` at line 7, Update the npm "clean" script in package.json to use a cross-platform delete tool instead of the POSIX-only "rm -rf": replace the current "clean" script value ("rm -rf docs .cache") with a rimraf-based command (e.g., "rimraf docs .cache"), and add "rimraf" to devDependencies so installs include the tool; ensure the change targets the "clean" script entry and the package.json devDependencies section.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@package.json`:
- Line 7: Update the npm "clean" script in package.json to use a cross-platform
delete tool instead of the POSIX-only "rm -rf": replace the current "clean"
script value ("rm -rf docs .cache") with a rimraf-based command (e.g., "rimraf
docs .cache"), and add "rimraf" to devDependencies so installs include the tool;
ensure the change targets the "clean" script entry and the package.json
devDependencies section.
Summary
npm run cleanscript to removedocs/and.cache/directoriesnpm run build:cleanscript that cleans then builds in one commandThis prevents the glob-stream stack overflow error that occurs when the
docs/directory accumulates too many files from previous builds.Usage
When you encounter the stack overflow error during build:
Or manually clean first:
🤖 Generated with Claude Code