Skip to content

Commit 7bb59a1

Browse files
antfuclaude
andcommitted
chore(v4): remove global install and wizard package
Remove is-installed-globally dependency and global install detection logic. Remove @nuxt/devtools-wizard package entirely. Inline enablePages functionality directly as an RPC function in the general server module instead of going through the wizard system. This is a breaking change for v4 that simplifies the codebase and removes the wizard CLI tool. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
1 parent 89b9688 commit 7bb59a1

25 files changed

Lines changed: 38 additions & 458 deletions

File tree

packages/devtools-kit/src/_types/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,3 @@ export * from './rpc'
1010
export * from './server-ctx'
1111
export * from './terminals'
1212
export * from './timeline-metrics'
13-
export * from './wizard'

packages/devtools-kit/src/_types/integrations.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ export type NpmCommandType = 'install' | 'uninstall' | 'update'
3232

3333
export interface NpmCommandOptions {
3434
dev?: boolean
35-
global?: boolean
3635
}
3736

3837
export interface AutoImportsWithMetadata {

packages/devtools-kit/src/_types/options.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,6 @@ export interface ModuleOptions {
125125
telemetry?: boolean
126126
}
127127

128-
export interface ModuleGlobalOptions {
129-
/**
130-
* List of projects to enable devtools for. Only works when devtools is installed globally.
131-
*/
132-
projects?: string[]
133-
}
134-
135128
export interface VSCodeIntegrationOptions {
136129
/**
137130
* Enable VS Code Server integration

packages/devtools-kit/src/_types/rpc.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import type { AssetEntry, AssetInfo, AutoImportsWithMetadata, ComponentRelations
88
import type { ModuleOptions, NuxtDevToolsOptions } from './options'
99
import type { InstallModuleReturn, ServerDebugContext } from './server-ctx'
1010
import type { TerminalAction, TerminalInfo } from './terminals'
11-
import type { GetWizardArgs, WizardActions } from './wizard'
1211

1312
export interface ServerFunctions {
1413
// Static RPCs (can be provide on production build in the future)
@@ -67,7 +66,7 @@ export interface ServerFunctions {
6766
// Actions
6867
telemetryEvent: (payload: object, immediate?: boolean) => void
6968
customTabAction: (name: string, action: number) => Promise<boolean>
70-
runWizard: <T extends WizardActions>(token: string, name: T, ...args: GetWizardArgs<T>) => Promise<void>
69+
enablePages: (token: string) => Promise<void>
7170
openInEditor: (filepath: string) => Promise<boolean>
7271
restartNuxt: (token: string, hard?: boolean) => Promise<void>
7372
installNuxtModule: (token: string, name: string, dry?: boolean) => Promise<InstallModuleReturn>

packages/devtools-kit/src/_types/server-ctx.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ export interface NuxtDevtoolsServerContext {
3333
export interface NuxtDevtoolsInfo {
3434
version: string
3535
packagePath: string
36-
isGlobalInstall: boolean
3736
}
3837

3938
export interface InstallModuleReturn {

packages/devtools-kit/src/_types/wizard.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

packages/devtools-wizard/build.config.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

packages/devtools-wizard/cli.mjs

Lines changed: 0 additions & 2 deletions
This file was deleted.

packages/devtools-wizard/package.json

Lines changed: 0 additions & 41 deletions
This file was deleted.

packages/devtools-wizard/src/builtin.ts

Lines changed: 0 additions & 116 deletions
This file was deleted.

0 commit comments

Comments
 (0)