← Back to PRs

#10303: Docs: fix docs:dev script to use pnpm dlx

by janckerchen open 2026-02-06 09:40 View on GitHub →
stale
## Summary - Fixed `docs:dev` script failing with "mint: command not found" - Changed to use `pnpm dlx mintlify dev` instead of bare `mint dev` - Matches the pattern used in `docs:build` script ## Problem The `docs:dev` script was calling `mint dev` directly, which required `mintlify` to be globally installed. This caused the command to fail for users without global installation. ## Solution Use `pnpm dlx mintlify dev` which automatically downloads and runs mintlify without requiring global installation, consistent with the `docs:build` script pattern. ## Test plan - [x] Verified `pnpm docs:dev` now works without global mintlify installation - [x] Confirmed the script downloads mintlify via `pnpm dlx` and starts the dev server 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- greptile_comment --> <h2>Greptile Overview</h2> <h3>Greptile Summary</h3> - Updates the root `package.json` `docs:dev` script to run Mintlify via `pnpm dlx`, removing the need for a global `mint/mintlify` install. - Aligns `docs:dev` invocation style with the existing `docs:build` script that already uses `pnpm dlx`. - Change is isolated to npm scripts and does not affect runtime code paths outside the docs workflow. <h3>Confidence Score: 5/5</h3> - This PR is safe to merge with minimal risk. - Single-line change to an npm script; aligns with existing docs tooling pattern and does not touch production code paths. - No files require special attention <!-- greptile_other_comments_section --> <sub>(3/5) Reply to the agent's comments like "Can you suggest a fix for this @greptileai?" or ask follow-up questions!</sub> <!-- /greptile_comment -->

Most Similar PRs