Skip to content

fix: detect VitePress and VuePress as JavaScript (Web), not Vue#492

Merged
kelsonpw merged 3 commits into
mainfrom
fix/detect-vue-powered-docs-as-javascript-web
May 1, 2026
Merged

fix: detect VitePress and VuePress as JavaScript (Web), not Vue#492
kelsonpw merged 3 commits into
mainfrom
fix/detect-vue-powered-docs-as-javascript-web

Conversation

@kelsonpw

@kelsonpw kelsonpw commented May 1, 2026

Copy link
Copy Markdown
Member

Summary

  • VitePress, VuePress, and related docs meta-packages pull in vue, which made the wizard treat documentation repos (e.g. amplitude-docs) as Vue apps.
  • Add isVuePoweredDocsSite() and skip the Vue integration for those stacks.
  • Let JavaScript (Web) match by not treating vue as a blocking framework package when a docs stack is present.

Test plan

  • pnpm test src/frameworks/vue/__tests__/vue-wizard-agent.test.ts src/frameworks/javascript-web/__tests__/javascript-web-wizard-agent.test.ts

Made with Cursor


Note

Medium Risk
Adjusts framework detection and blocking rules that decide which integration the wizard applies, so misclassification could route users to the wrong setup flow. Scope is limited to Vue vs generic JS-Web detection plus prompt/context text updates and tests.

Overview
Ensures Vue-powered docs/presentation stacks (VitePress/VuePress/Slidev) are not detected as Vue apps and instead fall through to the JavaScript (Web) wizard.

Adds a shared isVuePoweredDocsSite() helper and updates javascriptWebBlockedByFrameworkPackage so vue no longer blocks JS-Web when one of these docs packages is present; the JS-Web wizard also now surfaces this classification in its additional context line.

Extends unit tests to cover Slidev alongside VitePress for both the Vue detector (ignore) and JS-Web detector (match).

Reviewed by Cursor Bugbot for commit 8b55f1e. Bugbot is set up for automated code reviews on this repo. Configure here.

Docs stacks such as VitePress declare `vue` but are not product Vue SPAs.
Skip the Vue integration for those packages and allow the JavaScript (Web)
detector to match so projects like amplitude-docs classify correctly.

Made-with: Cursor
@kelsonpw kelsonpw requested a review from a team as a code owner May 1, 2026 00:28
@kelsonpw kelsonpw force-pushed the fix/detect-vue-powered-docs-as-javascript-web branch 2 times, most recently from 91f2f3e to 91f7964 Compare May 1, 2026 19:27
Resolve conflicts with the shared javascript-web blocking policy: keep
VitePress/VuePress/Slidev exceptions for vue while using the centralized
blocker. Extend JavaScript (Web) context so docs/deck stacks get clearer
agent guidance, add Slidev parity tests, and retain main's optionalDependencies
Vue detection test.

Co-authored-by: Cursor <cursoragent@cursor.com>
@kelsonpw kelsonpw force-pushed the fix/detect-vue-powered-docs-as-javascript-web branch from 91f7964 to 8b55f1e Compare May 1, 2026 20:05
@kelsonpw kelsonpw merged commit f75f9cc into main May 1, 2026
10 checks passed
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.

1 participant