Repository navigation
chore(deps): move build-only packages to devDependencies - #177
Merged
Merged
Conversation
@photonjs/cloudflare and @vitejs/plugin-react sat in dependencies, but no source file reaches either. wrangler.toml's `main` resolves the Photon Cloudflare entry through a build-time virtual module, and vite.config.ts is the only importer of the React plugin. The wrong scope made every advisory against the Workers toolchain arrive classified as production, which is how GHSA-wq5f-xc86-pv6w (sharp) surfaced in #170. The lockfile change is importer scope only: no resolution moves, and dist/server and dist/client keep all 199 file names. Closes #171 Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01AjhWVSc9DErHBkNB7HABnX
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
wemeditate-web | ce03212 | Commit Preview URL Branch Preview URL |
Oct 13 2026, 01:45 PM |
Contributor
Author
|
This draft has had no CI activity for hours and no session holds it. Comment or push to wake me. 🤖 sydevs dispatcher |
25 tasks
Deploying wemeditate-design with
|
| Latest commit: |
ce03212
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://3d3634b4.wm-design.pages.dev |
| Branch Preview URL: | https://claude-chore-171-build-only.wm-design.pages.dev |
Contributor
Author
The main-merge in e7abb43 re-added `@photonjs/cloudflare` under `importers.dependencies` while leaving the devDependencies entry this branch added, so the lockfile listed it in both scopes. `pnpm install --frozen-lockfile` then reported ERR_PNPM_OUTDATED_LOCKFILE against package.json, which has it only in devDependencies — failing Lint, Typecheck & Unit, Smoke (web) and Smoke (ladle) before any of them ran a step of their own. Regenerated with `pnpm install --lockfile-only`. Beyond dropping the duplicate it refreshes that entry's stale `[email protected]` peer suffix to the 4.149.0 main already resolves, and records two `deprecated` strings the registry now returns for vidstack. Neither changes the resolved graph. `pnpm install --frozen-lockfile` passes, and the full lean gate is green. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01DAXnvaueGjeNsmTFNMmCN3
sydevs-bot
marked this pull request as ready for review
October 13, 2026 13:45
sydevs-bot
enabled auto-merge
October 13, 2026 13:45
Contributor
Author
|
Adversarial review skipped: 2 file(s), 18 changed line(s), under 🤖 sydevs dispatcher |
Ardnived
approved these changes
Oct 14, 2026
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
@photonjs/cloudflareand@vitejs/plugin-reactmove todevDependencies. Neither ships code.pnpm audit --prodstill flagssharp, now viavike-photon. See Notes — one criterion is half-met.Change outline
The contract here is the manifest section itself: two consumers classify an advisory by the scope a package sits in.
vike-photonresolves the Cloudflare target by asking whether the user installed the package at all, checkingdevDependenciesbeforedependencies— so the move does not change target detection.Preview
Both hosts are keyed on the branch slug, and no alias exists before the first build. Preview pending — Cloudflare posts the Worker URL as a bot comment, and
package.jsonpluspnpm-lock.yamlare Ladle build watch paths, so the Pages preview builds too.Test results
.claude/skills/pr-prep/check.sh --full— lint,tsc --noEmit,test:run, build (109s)dist/serveranddist/clientkeep all 199 file names, byte-for-byte identical listingManual verification
Dependency Review / reviewpasses, and that the next Dependabot pass reports@photonjs/cloudflareas development scope.Notes for reviewer
Acceptance criterion 5 is only half-met, and the remaining half needs your call.
@vitejs/plugin-reactcarries no advisory, so it is clean.@photonjs/cloudflarestill reachespnpm audit --prod— the advisory path moved rather than disappeared:@photonjs/cloudflareis an optional peer ofvike-photon, which stays independencies. pnpm gives a peer edge the scope of the depender, not of the declarer, so a production dependency keeps our dev copy production-reachable. High-severity count is unchanged at 3 either way.Three options, and I did not pick one:
vike-photontoo.pages/+config.tsis its only importer, and nothing from it reachesdist. But this widens the question tovike,vike-reactand the premise that a bundled Worker loads nonode_modulesat runtime — a bigger ticket than chore(deps): move build-only packages to devDependencies #171, and not mine to open on your behalf.pnpm audit --prod:dependency-review.ymlgates onfail-on-scopes: runtime, and the loop's Dependabot check filtersscopes: ["runtime"]. Whether GitHub propagates runtime scope across an optional-peer edge the way pnpm does is the one thing I could not settle locally — this PR's ownDependency Review / reviewrun and the next Dependabot pass answer it.pnpm.auditConfig.ignoreGhsas. Rejected: it hides the advisory instead of scoping it.Recommendation: option 2 now, then a follow-up ticket for option 1 once this PR's CI shows how GitHub scores the edge.
The dashboard check the ticket asked for went the other way round. I cannot read Cloudflare's dashboard, so I settled it from the repo instead:
vite,@tailwindcss/vite,@sentry/vite-plugin,typescriptandwranglerare alreadydevDependencies, andpnpm buildcannot run without them. Cloudflare builds both previews green onmaintoday, so its install command demonstrably installsdevDependencies. The build command needs no change.Detail
Lockfile. The diff touches only the
importers:block — 12 changed lines, all specifier/version pairs moving between the two scopes. Nosnapshots:orpackages:entry changed, so the resolved graph is identical andpnpm install --frozen-lockfilereports "Lockfile is up to date".Neither package ships code.
@photonjs/cloudflare/dist/index.jsisexport {}; only its./vitesubpath has content, a pure Vite plugin. Grepping a fresh build for@photonjs/cloudflare,@universal-middleware/cloudflare,@vitejs/plugin-reactandreact-refreshmodule paths finds nothing indist/clientordist/server..npmrcmatters here.auto-install-peers=falsemeans an optional peer is installed only because we declare it directly. Removing the declaration rather than moving it would leavevike-photonwithout the Cloudflare target and break the build.Pre-existing, not introduced here: pnpm skips
devDependenciesunderNODE_ENV=production, which would already breakpnpm buildbefore this change. Nothing in the repo sets it.Review passes.
/code-review high— no findings, verified againstpackage.json,pnpm-lock.yaml,vite.config.ts,wrangler.toml,server/entry.ts,.npmrc,.github/workflows/ci.ymland the shareddependency-review.yml.comment-lint— 0 changed files./simplifyhad no surface: the diff contains no code./security-reviewskipped — neither changed path matchessecurityReview.triggerPattern. Docs checked, nothing stale: no guide or.env.examplestates either package's scope.Closes #171
🤖 Generated with Claude Code
https://claude.ai/code/session_01AjhWVSc9DErHBkNB7HABnX
Generated by Claude Code