@nuxt/devtools-kit 3.2.4 → 4.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const kit = require('@nuxt/kit');
4
- const execa = require('execa');
4
+ const tinyexec = require('tinyexec');
5
5
 
6
6
  function addCustomTab(tab, nuxt = kit.useNuxt()) {
7
7
  nuxt.hook("devtools:customTabs", async (tabs) => {
@@ -17,50 +17,52 @@ function startSubprocess(execaOptions, tabOptions, nuxt = kit.useNuxt()) {
17
17
  const id = tabOptions.id;
18
18
  let restarting = false;
19
19
  function start() {
20
- const process2 = execa.execa(
20
+ const proc = tinyexec.x(
21
21
  execaOptions.command,
22
22
  execaOptions.args,
23
23
  {
24
- reject: false,
25
- ...execaOptions,
26
- env: {
27
- COLORS: "true",
28
- FORCE_COLOR: "true",
29
- ...execaOptions.env,
30
- // Force disable Nuxi CLI override
31
- __CLI_ARGV__: void 0
24
+ nodeOptions: {
25
+ ...execaOptions.nodeOptions,
26
+ env: {
27
+ ...process.env,
28
+ COLORS: "true",
29
+ FORCE_COLOR: "true",
30
+ ...execaOptions.env,
31
+ ...execaOptions.nodeOptions?.env,
32
+ __CLI_ARGV__: void 0
33
+ }
32
34
  }
33
35
  }
34
36
  );
35
37
  nuxt.callHook("devtools:terminal:write", { id, data: `> ${[execaOptions.command, ...execaOptions.args || []].join(" ")}
36
38
 
37
39
  ` });
38
- process2.stdout.on("data", (data) => {
40
+ proc.process?.stdout?.on("data", (data) => {
39
41
  nuxt.callHook("devtools:terminal:write", { id, data: data.toString() });
40
42
  });
41
- process2.stderr.on("data", (data) => {
43
+ proc.process?.stderr?.on("data", (data) => {
42
44
  nuxt.callHook("devtools:terminal:write", { id, data: data.toString() });
43
45
  });
44
- process2.on("exit", (code) => {
46
+ proc.process?.on("exit", (code) => {
45
47
  if (!restarting) {
46
48
  nuxt.callHook("devtools:terminal:write", { id, data: `
47
- > process terminalated with ${code}
49
+ > process terminated with ${code}
48
50
  ` });
49
51
  nuxt.callHook("devtools:terminal:exit", { id, code: code || 0 });
50
52
  }
51
53
  });
52
- return process2;
54
+ return proc;
53
55
  }
54
56
  register();
55
57
  nuxt.hook("close", () => {
56
58
  terminate();
57
59
  });
58
- let process = start();
60
+ let result = start();
59
61
  function restart() {
60
62
  restarting = true;
61
- process?.kill();
63
+ result.kill();
62
64
  clear();
63
- process = start();
65
+ result = start();
64
66
  restarting = false;
65
67
  }
66
68
  function clear() {
@@ -70,7 +72,7 @@ function startSubprocess(execaOptions, tabOptions, nuxt = kit.useNuxt()) {
70
72
  function terminate() {
71
73
  restarting = false;
72
74
  try {
73
- process?.kill();
75
+ result.kill();
74
76
  } catch {
75
77
  }
76
78
  nuxt.callHook("devtools:terminal:remove", { id });
@@ -84,7 +86,12 @@ function startSubprocess(execaOptions, tabOptions, nuxt = kit.useNuxt()) {
84
86
  });
85
87
  }
86
88
  return {
87
- getProcess: () => process,
89
+ /** @deprecated Use `getResult()` instead */
90
+ getProcess: () => {
91
+ console.warn("[nuxt-devtools] `getProcess()` is deprecated, use `getResult()` instead.");
92
+ return result.process;
93
+ },
94
+ getResult: () => result,
88
95
  terminate,
89
96
  restart,
90
97
  clear
package/dist/index.d.cts CHANGED
@@ -1,7 +1,8 @@
1
1
  import * as _nuxt_schema from '@nuxt/schema';
2
2
  import { BirpcGroup } from 'birpc';
3
- import { ExecaChildProcess } from 'execa';
4
- import { M as ModuleCustomTab, N as NuxtDevtoolsInfo, S as SubprocessOptions, T as TerminalState } from './shared/devtools-kit.BE8MVpwl.cjs';
3
+ import { ChildProcess } from 'node:child_process';
4
+ import { Result } from 'tinyexec';
5
+ import { M as ModuleCustomTab, N as NuxtDevtoolsInfo, S as SubprocessOptions, T as TerminalState } from './shared/devtools-kit.f1VcjZlm.cjs';
5
6
  import 'vue';
6
7
  import 'nuxt/schema';
7
8
  import 'unimport';
@@ -24,7 +25,9 @@ declare function refreshCustomTabs(nuxt?: _nuxt_schema.Nuxt): void | Promise<any
24
25
  * Create a subprocess that handled by the DevTools.
25
26
  */
26
27
  declare function startSubprocess(execaOptions: SubprocessOptions, tabOptions: TerminalState, nuxt?: _nuxt_schema.Nuxt): {
27
- getProcess: () => ExecaChildProcess<string>;
28
+ /** @deprecated Use `getResult()` instead */
29
+ getProcess: () => ChildProcess | undefined;
30
+ getResult: () => Result;
28
31
  terminate: () => void;
29
32
  restart: () => void;
30
33
  clear: () => void;
package/dist/index.d.mts CHANGED
@@ -1,7 +1,8 @@
1
1
  import * as _nuxt_schema from '@nuxt/schema';
2
2
  import { BirpcGroup } from 'birpc';
3
- import { ExecaChildProcess } from 'execa';
4
- import { M as ModuleCustomTab, N as NuxtDevtoolsInfo, S as SubprocessOptions, T as TerminalState } from './shared/devtools-kit.BE8MVpwl.mjs';
3
+ import { ChildProcess } from 'node:child_process';
4
+ import { Result } from 'tinyexec';
5
+ import { M as ModuleCustomTab, N as NuxtDevtoolsInfo, S as SubprocessOptions, T as TerminalState } from './shared/devtools-kit.f1VcjZlm.mjs';
5
6
  import 'vue';
6
7
  import 'nuxt/schema';
7
8
  import 'unimport';
@@ -24,7 +25,9 @@ declare function refreshCustomTabs(nuxt?: _nuxt_schema.Nuxt): void | Promise<any
24
25
  * Create a subprocess that handled by the DevTools.
25
26
  */
26
27
  declare function startSubprocess(execaOptions: SubprocessOptions, tabOptions: TerminalState, nuxt?: _nuxt_schema.Nuxt): {
27
- getProcess: () => ExecaChildProcess<string>;
28
+ /** @deprecated Use `getResult()` instead */
29
+ getProcess: () => ChildProcess | undefined;
30
+ getResult: () => Result;
28
31
  terminate: () => void;
29
32
  restart: () => void;
30
33
  clear: () => void;
package/dist/index.d.ts CHANGED
@@ -1,7 +1,8 @@
1
1
  import * as _nuxt_schema from '@nuxt/schema';
2
2
  import { BirpcGroup } from 'birpc';
3
- import { ExecaChildProcess } from 'execa';
4
- import { M as ModuleCustomTab, N as NuxtDevtoolsInfo, S as SubprocessOptions, T as TerminalState } from './shared/devtools-kit.BE8MVpwl.js';
3
+ import { ChildProcess } from 'node:child_process';
4
+ import { Result } from 'tinyexec';
5
+ import { M as ModuleCustomTab, N as NuxtDevtoolsInfo, S as SubprocessOptions, T as TerminalState } from './shared/devtools-kit.f1VcjZlm.js';
5
6
  import 'vue';
6
7
  import 'nuxt/schema';
7
8
  import 'unimport';
@@ -24,7 +25,9 @@ declare function refreshCustomTabs(nuxt?: _nuxt_schema.Nuxt): void | Promise<any
24
25
  * Create a subprocess that handled by the DevTools.
25
26
  */
26
27
  declare function startSubprocess(execaOptions: SubprocessOptions, tabOptions: TerminalState, nuxt?: _nuxt_schema.Nuxt): {
27
- getProcess: () => ExecaChildProcess<string>;
28
+ /** @deprecated Use `getResult()` instead */
29
+ getProcess: () => ChildProcess | undefined;
30
+ getResult: () => Result;
28
31
  terminate: () => void;
29
32
  restart: () => void;
30
33
  clear: () => void;
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { useNuxt } from '@nuxt/kit';
2
- import { execa } from 'execa';
2
+ import { x } from 'tinyexec';
3
3
 
4
4
  function addCustomTab(tab, nuxt = useNuxt()) {
5
5
  nuxt.hook("devtools:customTabs", async (tabs) => {
@@ -15,50 +15,52 @@ function startSubprocess(execaOptions, tabOptions, nuxt = useNuxt()) {
15
15
  const id = tabOptions.id;
16
16
  let restarting = false;
17
17
  function start() {
18
- const process2 = execa(
18
+ const proc = x(
19
19
  execaOptions.command,
20
20
  execaOptions.args,
21
21
  {
22
- reject: false,
23
- ...execaOptions,
24
- env: {
25
- COLORS: "true",
26
- FORCE_COLOR: "true",
27
- ...execaOptions.env,
28
- // Force disable Nuxi CLI override
29
- __CLI_ARGV__: void 0
22
+ nodeOptions: {
23
+ ...execaOptions.nodeOptions,
24
+ env: {
25
+ ...process.env,
26
+ COLORS: "true",
27
+ FORCE_COLOR: "true",
28
+ ...execaOptions.env,
29
+ ...execaOptions.nodeOptions?.env,
30
+ __CLI_ARGV__: void 0
31
+ }
30
32
  }
31
33
  }
32
34
  );
33
35
  nuxt.callHook("devtools:terminal:write", { id, data: `> ${[execaOptions.command, ...execaOptions.args || []].join(" ")}
34
36
 
35
37
  ` });
36
- process2.stdout.on("data", (data) => {
38
+ proc.process?.stdout?.on("data", (data) => {
37
39
  nuxt.callHook("devtools:terminal:write", { id, data: data.toString() });
38
40
  });
39
- process2.stderr.on("data", (data) => {
41
+ proc.process?.stderr?.on("data", (data) => {
40
42
  nuxt.callHook("devtools:terminal:write", { id, data: data.toString() });
41
43
  });
42
- process2.on("exit", (code) => {
44
+ proc.process?.on("exit", (code) => {
43
45
  if (!restarting) {
44
46
  nuxt.callHook("devtools:terminal:write", { id, data: `
45
- > process terminalated with ${code}
47
+ > process terminated with ${code}
46
48
  ` });
47
49
  nuxt.callHook("devtools:terminal:exit", { id, code: code || 0 });
48
50
  }
49
51
  });
50
- return process2;
52
+ return proc;
51
53
  }
52
54
  register();
53
55
  nuxt.hook("close", () => {
54
56
  terminate();
55
57
  });
56
- let process = start();
58
+ let result = start();
57
59
  function restart() {
58
60
  restarting = true;
59
- process?.kill();
61
+ result.kill();
60
62
  clear();
61
- process = start();
63
+ result = start();
62
64
  restarting = false;
63
65
  }
64
66
  function clear() {
@@ -68,7 +70,7 @@ function startSubprocess(execaOptions, tabOptions, nuxt = useNuxt()) {
68
70
  function terminate() {
69
71
  restarting = false;
70
72
  try {
71
- process?.kill();
73
+ result.kill();
72
74
  } catch {
73
75
  }
74
76
  nuxt.callHook("devtools:terminal:remove", { id });
@@ -82,7 +84,12 @@ function startSubprocess(execaOptions, tabOptions, nuxt = useNuxt()) {
82
84
  });
83
85
  }
84
86
  return {
85
- getProcess: () => process,
87
+ /** @deprecated Use `getResult()` instead */
88
+ getProcess: () => {
89
+ console.warn("[nuxt-devtools] `getProcess()` is deprecated, use `getResult()` instead.");
90
+ return result.process;
91
+ },
92
+ getResult: () => result,
86
93
  terminate,
87
94
  restart,
88
95
  clear
@@ -7,7 +7,7 @@ import { Nitro, StorageMounts } from 'nitropack';
7
7
  import { StorageValue } from 'unstorage';
8
8
  import { ResolvedConfig } from 'vite';
9
9
  import { NuxtAnalyzeMeta } from '@nuxt/schema';
10
- import { Options } from 'execa';
10
+ import { SpawnOptions } from 'node:child_process';
11
11
 
12
12
  type TabCategory = 'pinned' | 'app' | 'vue-devtools' | 'analyze' | 'server' | 'modules' | 'documentation' | 'advanced';
13
13
 
@@ -161,7 +161,6 @@ type PackageManagerName = 'npm' | 'yarn' | 'pnpm' | 'bun';
161
161
  type NpmCommandType = 'install' | 'uninstall' | 'update';
162
162
  interface NpmCommandOptions {
163
163
  dev?: boolean;
164
- global?: boolean;
165
164
  }
166
165
  interface AutoImportsWithMetadata {
167
166
  imports: Import[];
@@ -379,13 +378,6 @@ interface ModuleOptions {
379
378
  * @default true
380
379
  */
381
380
  viteInspect?: boolean;
382
- /**
383
- * Enable Vite DevTools integration
384
- *
385
- * @experimental
386
- * @default false
387
- */
388
- viteDevTools?: boolean;
389
381
  /**
390
382
  * Disable dev time authorization check.
391
383
  *
@@ -454,12 +446,6 @@ interface ModuleOptions {
454
446
  */
455
447
  telemetry?: boolean;
456
448
  }
457
- interface ModuleGlobalOptions {
458
- /**
459
- * List of projects to enable devtools for. Only works when devtools is installed globally.
460
- */
461
- projects?: string[];
462
- }
463
449
  interface VSCodeIntegrationOptions {
464
450
  /**
465
451
  * Enable VS Code Server integration
@@ -528,12 +514,10 @@ interface NuxtDevToolsOptions {
528
514
  hiddenTabCategories: string[];
529
515
  hiddenTabs: string[];
530
516
  interactionCloseOnOutsideClick: boolean;
531
- minimizePanelInactive: number;
532
517
  pinnedTabs: string[];
533
518
  scale: number;
534
519
  showExperimentalFeatures: boolean;
535
520
  showHelpButtons: boolean;
536
- showPanel: boolean | null;
537
521
  sidebarExpanded: boolean;
538
522
  sidebarScrollable: boolean;
539
523
  };
@@ -577,9 +561,12 @@ interface TerminalBase {
577
561
  icon?: string;
578
562
  }
579
563
  type TerminalAction = 'restart' | 'terminate' | 'clear' | 'remove';
580
- interface SubprocessOptions extends Options {
564
+ interface SubprocessOptions {
581
565
  command: string;
582
566
  args?: string[];
567
+ cwd?: string;
568
+ env?: Record<string, string | undefined>;
569
+ nodeOptions?: SpawnOptions;
583
570
  }
584
571
  interface TerminalInfo extends TerminalBase {
585
572
  /**
@@ -610,12 +597,6 @@ interface TerminalState extends TerminalInfo {
610
597
  onActionTerminate?: () => Promise<void> | void;
611
598
  }
612
599
 
613
- interface WizardFunctions {
614
- enablePages: (nuxt: any) => Promise<void>;
615
- }
616
- type WizardActions = keyof WizardFunctions;
617
- type GetWizardArgs<T extends WizardActions> = WizardFunctions[T] extends (nuxt: any, ...args: infer A) => any ? A : never;
618
-
619
600
  interface ServerFunctions {
620
601
  getServerConfig: () => NuxtOptions;
621
602
  getServerDebugContext: () => Promise<ServerDebugContext | undefined>;
@@ -660,7 +641,7 @@ interface ServerFunctions {
660
641
  renameStaticAsset: (token: string, oldPath: string, newPath: string) => Promise<void>;
661
642
  telemetryEvent: (payload: object, immediate?: boolean) => void;
662
643
  customTabAction: (name: string, action: number) => Promise<boolean>;
663
- runWizard: <T extends WizardActions>(token: string, name: T, ...args: GetWizardArgs<T>) => Promise<void>;
644
+ enablePages: (token: string) => Promise<void>;
664
645
  openInEditor: (filepath: string) => Promise<boolean>;
665
646
  restartNuxt: (token: string, hard?: boolean) => Promise<void>;
666
647
  installNuxtModule: (token: string, name: string, dry?: boolean) => Promise<InstallModuleReturn>;
@@ -716,7 +697,6 @@ interface NuxtDevtoolsServerContext {
716
697
  interface NuxtDevtoolsInfo {
717
698
  version: string;
718
699
  packagePath: string;
719
- isGlobalInstall: boolean;
720
700
  }
721
701
  interface InstallModuleReturn {
722
702
  configOriginal: string;
@@ -794,4 +774,4 @@ declare module '@nuxt/schema' {
794
774
  }
795
775
  }
796
776
 
797
- export type { RouteInfo as $, AnalyzeBuildMeta as A, BasicModuleInfo as B, ClientFunctions as C, ModuleStaticInfo as D, ModuleStats as E, ModuleTabInfo as F, GetWizardArgs as G, HookInfo as H, ImageMeta as I, ModuleType as J, ModuleVNodeView as K, LoadingTimeMetric as L, ModuleCustomTab as M, NuxtDevtoolsInfo as N, ModuleView as O, PluginMetric as P, NpmCommandOptions as Q, NpmCommandType as R, SubprocessOptions as S, TerminalState as T, NuxtDevToolsOptions as U, NuxtDevtoolsServerContext as V, NuxtServerData as W, PackageManagerName as X, PackageUpdateInfo as Y, Payload as Z, PluginInfoWithMetic as _, ServerFunctions as a, ScannedNitroTasks as a0, ServerDebugContext as a1, ServerDebugModuleMutationRecord as a2, ServerRouteInfo as a3, ServerRouteInput as a4, ServerRouteInputType as a5, ServerTaskInfo as a6, TabCategory as a7, TerminalAction as a8, TerminalBase as a9, TerminalInfo as aa, VSCodeIntegrationOptions as ab, VSCodeTunnelOptions as ac, VueInspectorClient as ad, VueInspectorData as ae, WizardActions as af, WizardFunctions as ag, AnalyzeBuildsInfo as b, AssetEntry as c, AssetInfo as d, AssetType as e, AutoImportsWithMetadata as f, CategorizedTabs as g, ClientUpdateEvent as h, CodeServerOptions as i, CodeServerType as j, CodeSnippet as k, CompatibilityStatus as l, ComponentRelationship as m, ComponentWithRelationships as n, GitHubContributor as o, InstallModuleReturn as p, InstalledModuleInfo as q, MaintainerInfo as r, ModuleBuiltinTab as s, ModuleCompatibility as t, ModuleGlobalOptions as u, ModuleIframeTabLazyOptions as v, ModuleIframeView as w, ModuleLaunchAction as x, ModuleLaunchView as y, ModuleOptions as z };
777
+ export type { ServerDebugContext as $, AnalyzeBuildMeta as A, BasicModuleInfo as B, ClientFunctions as C, ModuleTabInfo as D, ModuleType as E, ModuleVNodeView as F, GitHubContributor as G, HookInfo as H, ImageMeta as I, ModuleView as J, NpmCommandOptions as K, LoadingTimeMetric as L, ModuleCustomTab as M, NuxtDevtoolsInfo as N, NpmCommandType as O, PluginMetric as P, NuxtDevToolsOptions as Q, NuxtDevtoolsServerContext as R, SubprocessOptions as S, TerminalState as T, NuxtServerData as U, PackageManagerName as V, PackageUpdateInfo as W, Payload as X, PluginInfoWithMetic as Y, RouteInfo as Z, ScannedNitroTasks as _, ServerFunctions as a, ServerDebugModuleMutationRecord as a0, ServerRouteInfo as a1, ServerRouteInput as a2, ServerRouteInputType as a3, ServerTaskInfo as a4, TabCategory as a5, TerminalAction as a6, TerminalBase as a7, TerminalInfo as a8, VSCodeIntegrationOptions as a9, VSCodeTunnelOptions as aa, VueInspectorClient as ab, VueInspectorData as ac, AnalyzeBuildsInfo as b, AssetEntry as c, AssetInfo as d, AssetType as e, AutoImportsWithMetadata as f, CategorizedTabs as g, ClientUpdateEvent as h, CodeServerOptions as i, CodeServerType as j, CodeSnippet as k, CompatibilityStatus as l, ComponentRelationship as m, ComponentWithRelationships as n, InstallModuleReturn as o, InstalledModuleInfo as p, MaintainerInfo as q, ModuleBuiltinTab as r, ModuleCompatibility as s, ModuleIframeTabLazyOptions as t, ModuleIframeView as u, ModuleLaunchAction as v, ModuleLaunchView as w, ModuleOptions as x, ModuleStaticInfo as y, ModuleStats as z };
@@ -7,7 +7,7 @@ import { Nitro, StorageMounts } from 'nitropack';
7
7
  import { StorageValue } from 'unstorage';
8
8
  import { ResolvedConfig } from 'vite';
9
9
  import { NuxtAnalyzeMeta } from '@nuxt/schema';
10
- import { Options } from 'execa';
10
+ import { SpawnOptions } from 'node:child_process';
11
11
 
12
12
  type TabCategory = 'pinned' | 'app' | 'vue-devtools' | 'analyze' | 'server' | 'modules' | 'documentation' | 'advanced';
13
13
 
@@ -161,7 +161,6 @@ type PackageManagerName = 'npm' | 'yarn' | 'pnpm' | 'bun';
161
161
  type NpmCommandType = 'install' | 'uninstall' | 'update';
162
162
  interface NpmCommandOptions {
163
163
  dev?: boolean;
164
- global?: boolean;
165
164
  }
166
165
  interface AutoImportsWithMetadata {
167
166
  imports: Import[];
@@ -379,13 +378,6 @@ interface ModuleOptions {
379
378
  * @default true
380
379
  */
381
380
  viteInspect?: boolean;
382
- /**
383
- * Enable Vite DevTools integration
384
- *
385
- * @experimental
386
- * @default false
387
- */
388
- viteDevTools?: boolean;
389
381
  /**
390
382
  * Disable dev time authorization check.
391
383
  *
@@ -454,12 +446,6 @@ interface ModuleOptions {
454
446
  */
455
447
  telemetry?: boolean;
456
448
  }
457
- interface ModuleGlobalOptions {
458
- /**
459
- * List of projects to enable devtools for. Only works when devtools is installed globally.
460
- */
461
- projects?: string[];
462
- }
463
449
  interface VSCodeIntegrationOptions {
464
450
  /**
465
451
  * Enable VS Code Server integration
@@ -528,12 +514,10 @@ interface NuxtDevToolsOptions {
528
514
  hiddenTabCategories: string[];
529
515
  hiddenTabs: string[];
530
516
  interactionCloseOnOutsideClick: boolean;
531
- minimizePanelInactive: number;
532
517
  pinnedTabs: string[];
533
518
  scale: number;
534
519
  showExperimentalFeatures: boolean;
535
520
  showHelpButtons: boolean;
536
- showPanel: boolean | null;
537
521
  sidebarExpanded: boolean;
538
522
  sidebarScrollable: boolean;
539
523
  };
@@ -577,9 +561,12 @@ interface TerminalBase {
577
561
  icon?: string;
578
562
  }
579
563
  type TerminalAction = 'restart' | 'terminate' | 'clear' | 'remove';
580
- interface SubprocessOptions extends Options {
564
+ interface SubprocessOptions {
581
565
  command: string;
582
566
  args?: string[];
567
+ cwd?: string;
568
+ env?: Record<string, string | undefined>;
569
+ nodeOptions?: SpawnOptions;
583
570
  }
584
571
  interface TerminalInfo extends TerminalBase {
585
572
  /**
@@ -610,12 +597,6 @@ interface TerminalState extends TerminalInfo {
610
597
  onActionTerminate?: () => Promise<void> | void;
611
598
  }
612
599
 
613
- interface WizardFunctions {
614
- enablePages: (nuxt: any) => Promise<void>;
615
- }
616
- type WizardActions = keyof WizardFunctions;
617
- type GetWizardArgs<T extends WizardActions> = WizardFunctions[T] extends (nuxt: any, ...args: infer A) => any ? A : never;
618
-
619
600
  interface ServerFunctions {
620
601
  getServerConfig: () => NuxtOptions;
621
602
  getServerDebugContext: () => Promise<ServerDebugContext | undefined>;
@@ -660,7 +641,7 @@ interface ServerFunctions {
660
641
  renameStaticAsset: (token: string, oldPath: string, newPath: string) => Promise<void>;
661
642
  telemetryEvent: (payload: object, immediate?: boolean) => void;
662
643
  customTabAction: (name: string, action: number) => Promise<boolean>;
663
- runWizard: <T extends WizardActions>(token: string, name: T, ...args: GetWizardArgs<T>) => Promise<void>;
644
+ enablePages: (token: string) => Promise<void>;
664
645
  openInEditor: (filepath: string) => Promise<boolean>;
665
646
  restartNuxt: (token: string, hard?: boolean) => Promise<void>;
666
647
  installNuxtModule: (token: string, name: string, dry?: boolean) => Promise<InstallModuleReturn>;
@@ -716,7 +697,6 @@ interface NuxtDevtoolsServerContext {
716
697
  interface NuxtDevtoolsInfo {
717
698
  version: string;
718
699
  packagePath: string;
719
- isGlobalInstall: boolean;
720
700
  }
721
701
  interface InstallModuleReturn {
722
702
  configOriginal: string;
@@ -794,4 +774,4 @@ declare module '@nuxt/schema' {
794
774
  }
795
775
  }
796
776
 
797
- export type { RouteInfo as $, AnalyzeBuildMeta as A, BasicModuleInfo as B, ClientFunctions as C, ModuleStaticInfo as D, ModuleStats as E, ModuleTabInfo as F, GetWizardArgs as G, HookInfo as H, ImageMeta as I, ModuleType as J, ModuleVNodeView as K, LoadingTimeMetric as L, ModuleCustomTab as M, NuxtDevtoolsInfo as N, ModuleView as O, PluginMetric as P, NpmCommandOptions as Q, NpmCommandType as R, SubprocessOptions as S, TerminalState as T, NuxtDevToolsOptions as U, NuxtDevtoolsServerContext as V, NuxtServerData as W, PackageManagerName as X, PackageUpdateInfo as Y, Payload as Z, PluginInfoWithMetic as _, ServerFunctions as a, ScannedNitroTasks as a0, ServerDebugContext as a1, ServerDebugModuleMutationRecord as a2, ServerRouteInfo as a3, ServerRouteInput as a4, ServerRouteInputType as a5, ServerTaskInfo as a6, TabCategory as a7, TerminalAction as a8, TerminalBase as a9, TerminalInfo as aa, VSCodeIntegrationOptions as ab, VSCodeTunnelOptions as ac, VueInspectorClient as ad, VueInspectorData as ae, WizardActions as af, WizardFunctions as ag, AnalyzeBuildsInfo as b, AssetEntry as c, AssetInfo as d, AssetType as e, AutoImportsWithMetadata as f, CategorizedTabs as g, ClientUpdateEvent as h, CodeServerOptions as i, CodeServerType as j, CodeSnippet as k, CompatibilityStatus as l, ComponentRelationship as m, ComponentWithRelationships as n, GitHubContributor as o, InstallModuleReturn as p, InstalledModuleInfo as q, MaintainerInfo as r, ModuleBuiltinTab as s, ModuleCompatibility as t, ModuleGlobalOptions as u, ModuleIframeTabLazyOptions as v, ModuleIframeView as w, ModuleLaunchAction as x, ModuleLaunchView as y, ModuleOptions as z };
777
+ export type { ServerDebugContext as $, AnalyzeBuildMeta as A, BasicModuleInfo as B, ClientFunctions as C, ModuleTabInfo as D, ModuleType as E, ModuleVNodeView as F, GitHubContributor as G, HookInfo as H, ImageMeta as I, ModuleView as J, NpmCommandOptions as K, LoadingTimeMetric as L, ModuleCustomTab as M, NuxtDevtoolsInfo as N, NpmCommandType as O, PluginMetric as P, NuxtDevToolsOptions as Q, NuxtDevtoolsServerContext as R, SubprocessOptions as S, TerminalState as T, NuxtServerData as U, PackageManagerName as V, PackageUpdateInfo as W, Payload as X, PluginInfoWithMetic as Y, RouteInfo as Z, ScannedNitroTasks as _, ServerFunctions as a, ServerDebugModuleMutationRecord as a0, ServerRouteInfo as a1, ServerRouteInput as a2, ServerRouteInputType as a3, ServerTaskInfo as a4, TabCategory as a5, TerminalAction as a6, TerminalBase as a7, TerminalInfo as a8, VSCodeIntegrationOptions as a9, VSCodeTunnelOptions as aa, VueInspectorClient as ab, VueInspectorData as ac, AnalyzeBuildsInfo as b, AssetEntry as c, AssetInfo as d, AssetType as e, AutoImportsWithMetadata as f, CategorizedTabs as g, ClientUpdateEvent as h, CodeServerOptions as i, CodeServerType as j, CodeSnippet as k, CompatibilityStatus as l, ComponentRelationship as m, ComponentWithRelationships as n, InstallModuleReturn as o, InstalledModuleInfo as p, MaintainerInfo as q, ModuleBuiltinTab as r, ModuleCompatibility as s, ModuleIframeTabLazyOptions as t, ModuleIframeView as u, ModuleLaunchAction as v, ModuleLaunchView as w, ModuleOptions as x, ModuleStaticInfo as y, ModuleStats as z };
@@ -7,7 +7,7 @@ import { Nitro, StorageMounts } from 'nitropack';
7
7
  import { StorageValue } from 'unstorage';
8
8
  import { ResolvedConfig } from 'vite';
9
9
  import { NuxtAnalyzeMeta } from '@nuxt/schema';
10
- import { Options } from 'execa';
10
+ import { SpawnOptions } from 'node:child_process';
11
11
 
12
12
  type TabCategory = 'pinned' | 'app' | 'vue-devtools' | 'analyze' | 'server' | 'modules' | 'documentation' | 'advanced';
13
13
 
@@ -161,7 +161,6 @@ type PackageManagerName = 'npm' | 'yarn' | 'pnpm' | 'bun';
161
161
  type NpmCommandType = 'install' | 'uninstall' | 'update';
162
162
  interface NpmCommandOptions {
163
163
  dev?: boolean;
164
- global?: boolean;
165
164
  }
166
165
  interface AutoImportsWithMetadata {
167
166
  imports: Import[];
@@ -379,13 +378,6 @@ interface ModuleOptions {
379
378
  * @default true
380
379
  */
381
380
  viteInspect?: boolean;
382
- /**
383
- * Enable Vite DevTools integration
384
- *
385
- * @experimental
386
- * @default false
387
- */
388
- viteDevTools?: boolean;
389
381
  /**
390
382
  * Disable dev time authorization check.
391
383
  *
@@ -454,12 +446,6 @@ interface ModuleOptions {
454
446
  */
455
447
  telemetry?: boolean;
456
448
  }
457
- interface ModuleGlobalOptions {
458
- /**
459
- * List of projects to enable devtools for. Only works when devtools is installed globally.
460
- */
461
- projects?: string[];
462
- }
463
449
  interface VSCodeIntegrationOptions {
464
450
  /**
465
451
  * Enable VS Code Server integration
@@ -528,12 +514,10 @@ interface NuxtDevToolsOptions {
528
514
  hiddenTabCategories: string[];
529
515
  hiddenTabs: string[];
530
516
  interactionCloseOnOutsideClick: boolean;
531
- minimizePanelInactive: number;
532
517
  pinnedTabs: string[];
533
518
  scale: number;
534
519
  showExperimentalFeatures: boolean;
535
520
  showHelpButtons: boolean;
536
- showPanel: boolean | null;
537
521
  sidebarExpanded: boolean;
538
522
  sidebarScrollable: boolean;
539
523
  };
@@ -577,9 +561,12 @@ interface TerminalBase {
577
561
  icon?: string;
578
562
  }
579
563
  type TerminalAction = 'restart' | 'terminate' | 'clear' | 'remove';
580
- interface SubprocessOptions extends Options {
564
+ interface SubprocessOptions {
581
565
  command: string;
582
566
  args?: string[];
567
+ cwd?: string;
568
+ env?: Record<string, string | undefined>;
569
+ nodeOptions?: SpawnOptions;
583
570
  }
584
571
  interface TerminalInfo extends TerminalBase {
585
572
  /**
@@ -610,12 +597,6 @@ interface TerminalState extends TerminalInfo {
610
597
  onActionTerminate?: () => Promise<void> | void;
611
598
  }
612
599
 
613
- interface WizardFunctions {
614
- enablePages: (nuxt: any) => Promise<void>;
615
- }
616
- type WizardActions = keyof WizardFunctions;
617
- type GetWizardArgs<T extends WizardActions> = WizardFunctions[T] extends (nuxt: any, ...args: infer A) => any ? A : never;
618
-
619
600
  interface ServerFunctions {
620
601
  getServerConfig: () => NuxtOptions;
621
602
  getServerDebugContext: () => Promise<ServerDebugContext | undefined>;
@@ -660,7 +641,7 @@ interface ServerFunctions {
660
641
  renameStaticAsset: (token: string, oldPath: string, newPath: string) => Promise<void>;
661
642
  telemetryEvent: (payload: object, immediate?: boolean) => void;
662
643
  customTabAction: (name: string, action: number) => Promise<boolean>;
663
- runWizard: <T extends WizardActions>(token: string, name: T, ...args: GetWizardArgs<T>) => Promise<void>;
644
+ enablePages: (token: string) => Promise<void>;
664
645
  openInEditor: (filepath: string) => Promise<boolean>;
665
646
  restartNuxt: (token: string, hard?: boolean) => Promise<void>;
666
647
  installNuxtModule: (token: string, name: string, dry?: boolean) => Promise<InstallModuleReturn>;
@@ -716,7 +697,6 @@ interface NuxtDevtoolsServerContext {
716
697
  interface NuxtDevtoolsInfo {
717
698
  version: string;
718
699
  packagePath: string;
719
- isGlobalInstall: boolean;
720
700
  }
721
701
  interface InstallModuleReturn {
722
702
  configOriginal: string;
@@ -794,4 +774,4 @@ declare module '@nuxt/schema' {
794
774
  }
795
775
  }
796
776
 
797
- export type { RouteInfo as $, AnalyzeBuildMeta as A, BasicModuleInfo as B, ClientFunctions as C, ModuleStaticInfo as D, ModuleStats as E, ModuleTabInfo as F, GetWizardArgs as G, HookInfo as H, ImageMeta as I, ModuleType as J, ModuleVNodeView as K, LoadingTimeMetric as L, ModuleCustomTab as M, NuxtDevtoolsInfo as N, ModuleView as O, PluginMetric as P, NpmCommandOptions as Q, NpmCommandType as R, SubprocessOptions as S, TerminalState as T, NuxtDevToolsOptions as U, NuxtDevtoolsServerContext as V, NuxtServerData as W, PackageManagerName as X, PackageUpdateInfo as Y, Payload as Z, PluginInfoWithMetic as _, ServerFunctions as a, ScannedNitroTasks as a0, ServerDebugContext as a1, ServerDebugModuleMutationRecord as a2, ServerRouteInfo as a3, ServerRouteInput as a4, ServerRouteInputType as a5, ServerTaskInfo as a6, TabCategory as a7, TerminalAction as a8, TerminalBase as a9, TerminalInfo as aa, VSCodeIntegrationOptions as ab, VSCodeTunnelOptions as ac, VueInspectorClient as ad, VueInspectorData as ae, WizardActions as af, WizardFunctions as ag, AnalyzeBuildsInfo as b, AssetEntry as c, AssetInfo as d, AssetType as e, AutoImportsWithMetadata as f, CategorizedTabs as g, ClientUpdateEvent as h, CodeServerOptions as i, CodeServerType as j, CodeSnippet as k, CompatibilityStatus as l, ComponentRelationship as m, ComponentWithRelationships as n, GitHubContributor as o, InstallModuleReturn as p, InstalledModuleInfo as q, MaintainerInfo as r, ModuleBuiltinTab as s, ModuleCompatibility as t, ModuleGlobalOptions as u, ModuleIframeTabLazyOptions as v, ModuleIframeView as w, ModuleLaunchAction as x, ModuleLaunchView as y, ModuleOptions as z };
777
+ export type { ServerDebugContext as $, AnalyzeBuildMeta as A, BasicModuleInfo as B, ClientFunctions as C, ModuleTabInfo as D, ModuleType as E, ModuleVNodeView as F, GitHubContributor as G, HookInfo as H, ImageMeta as I, ModuleView as J, NpmCommandOptions as K, LoadingTimeMetric as L, ModuleCustomTab as M, NuxtDevtoolsInfo as N, NpmCommandType as O, PluginMetric as P, NuxtDevToolsOptions as Q, NuxtDevtoolsServerContext as R, SubprocessOptions as S, TerminalState as T, NuxtServerData as U, PackageManagerName as V, PackageUpdateInfo as W, Payload as X, PluginInfoWithMetic as Y, RouteInfo as Z, ScannedNitroTasks as _, ServerFunctions as a, ServerDebugModuleMutationRecord as a0, ServerRouteInfo as a1, ServerRouteInput as a2, ServerRouteInputType as a3, ServerTaskInfo as a4, TabCategory as a5, TerminalAction as a6, TerminalBase as a7, TerminalInfo as a8, VSCodeIntegrationOptions as a9, VSCodeTunnelOptions as aa, VueInspectorClient as ab, VueInspectorData as ac, AnalyzeBuildsInfo as b, AssetEntry as c, AssetInfo as d, AssetType as e, AutoImportsWithMetadata as f, CategorizedTabs as g, ClientUpdateEvent as h, CodeServerOptions as i, CodeServerType as j, CodeSnippet as k, CompatibilityStatus as l, ComponentRelationship as m, ComponentWithRelationships as n, InstallModuleReturn as o, InstalledModuleInfo as p, MaintainerInfo as q, ModuleBuiltinTab as r, ModuleCompatibility as s, ModuleIframeTabLazyOptions as t, ModuleIframeView as u, ModuleLaunchAction as v, ModuleLaunchView as w, ModuleOptions as x, ModuleStaticInfo as y, ModuleStats as z };
package/dist/types.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { a as ServerFunctions, C as ClientFunctions, H as HookInfo, P as PluginMetric, L as LoadingTimeMetric } from './shared/devtools-kit.BE8MVpwl.cjs';
2
- export { A as AnalyzeBuildMeta, b as AnalyzeBuildsInfo, c as AssetEntry, d as AssetInfo, e as AssetType, f as AutoImportsWithMetadata, B as BasicModuleInfo, g as CategorizedTabs, h as ClientUpdateEvent, i as CodeServerOptions, j as CodeServerType, k as CodeSnippet, l as CompatibilityStatus, m as ComponentRelationship, n as ComponentWithRelationships, G as GetWizardArgs, o as GitHubContributor, I as ImageMeta, p as InstallModuleReturn, q as InstalledModuleInfo, r as MaintainerInfo, s as ModuleBuiltinTab, t as ModuleCompatibility, M as ModuleCustomTab, u as ModuleGlobalOptions, v as ModuleIframeTabLazyOptions, w as ModuleIframeView, x as ModuleLaunchAction, y as ModuleLaunchView, z as ModuleOptions, D as ModuleStaticInfo, E as ModuleStats, F as ModuleTabInfo, J as ModuleType, K as ModuleVNodeView, O as ModuleView, Q as NpmCommandOptions, R as NpmCommandType, U as NuxtDevToolsOptions, N as NuxtDevtoolsInfo, V as NuxtDevtoolsServerContext, W as NuxtServerData, X as PackageManagerName, Y as PackageUpdateInfo, Z as Payload, _ as PluginInfoWithMetic, $ as RouteInfo, a0 as ScannedNitroTasks, a1 as ServerDebugContext, a2 as ServerDebugModuleMutationRecord, a3 as ServerRouteInfo, a4 as ServerRouteInput, a5 as ServerRouteInputType, a6 as ServerTaskInfo, S as SubprocessOptions, a7 as TabCategory, a8 as TerminalAction, a9 as TerminalBase, aa as TerminalInfo, T as TerminalState, ab as VSCodeIntegrationOptions, ac as VSCodeTunnelOptions, ad as VueInspectorClient, ae as VueInspectorData, af as WizardActions, ag as WizardFunctions } from './shared/devtools-kit.BE8MVpwl.cjs';
1
+ import { a as ServerFunctions, C as ClientFunctions, H as HookInfo, P as PluginMetric, L as LoadingTimeMetric } from './shared/devtools-kit.f1VcjZlm.cjs';
2
+ export { A as AnalyzeBuildMeta, b as AnalyzeBuildsInfo, c as AssetEntry, d as AssetInfo, e as AssetType, f as AutoImportsWithMetadata, B as BasicModuleInfo, g as CategorizedTabs, h as ClientUpdateEvent, i as CodeServerOptions, j as CodeServerType, k as CodeSnippet, l as CompatibilityStatus, m as ComponentRelationship, n as ComponentWithRelationships, G as GitHubContributor, I as ImageMeta, o as InstallModuleReturn, p as InstalledModuleInfo, q as MaintainerInfo, r as ModuleBuiltinTab, s as ModuleCompatibility, M as ModuleCustomTab, t as ModuleIframeTabLazyOptions, u as ModuleIframeView, v as ModuleLaunchAction, w as ModuleLaunchView, x as ModuleOptions, y as ModuleStaticInfo, z as ModuleStats, D as ModuleTabInfo, E as ModuleType, F as ModuleVNodeView, J as ModuleView, K as NpmCommandOptions, O as NpmCommandType, Q as NuxtDevToolsOptions, N as NuxtDevtoolsInfo, R as NuxtDevtoolsServerContext, U as NuxtServerData, V as PackageManagerName, W as PackageUpdateInfo, X as Payload, Y as PluginInfoWithMetic, Z as RouteInfo, _ as ScannedNitroTasks, $ as ServerDebugContext, a0 as ServerDebugModuleMutationRecord, a1 as ServerRouteInfo, a2 as ServerRouteInput, a3 as ServerRouteInputType, a4 as ServerTaskInfo, S as SubprocessOptions, a5 as TabCategory, a6 as TerminalAction, a7 as TerminalBase, a8 as TerminalInfo, T as TerminalState, a9 as VSCodeIntegrationOptions, aa as VSCodeTunnelOptions, ab as VueInspectorClient, ac as VueInspectorData } from './shared/devtools-kit.f1VcjZlm.cjs';
3
3
  import { BirpcReturn } from 'birpc';
4
4
  import { Hookable } from 'hookable';
5
5
  import { NuxtApp } from 'nuxt/app';
@@ -14,7 +14,7 @@ import 'nitropack';
14
14
  import 'unstorage';
15
15
  import 'vite';
16
16
  import '@nuxt/schema';
17
- import 'execa';
17
+ import 'node:child_process';
18
18
 
19
19
  interface TimelineEventFunction {
20
20
  type: 'function';
@@ -121,16 +121,6 @@ interface NuxtDevtoolsHostClient {
121
121
  toggle: () => void;
122
122
  reload: () => void;
123
123
  navigate: (path: string) => void;
124
- /**
125
- * Popup the DevTools frame into Picture-in-Picture mode
126
- *
127
- * Requires Chrome 111 with experimental flag enabled.
128
- *
129
- * Function is undefined when not supported.
130
- *
131
- * @see https://developer.chrome.com/docs/web-platform/document-picture-in-picture/
132
- */
133
- popup?: () => any;
134
124
  };
135
125
  app: {
136
126
  reload: () => void;
package/dist/types.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { a as ServerFunctions, C as ClientFunctions, H as HookInfo, P as PluginMetric, L as LoadingTimeMetric } from './shared/devtools-kit.BE8MVpwl.mjs';
2
- export { A as AnalyzeBuildMeta, b as AnalyzeBuildsInfo, c as AssetEntry, d as AssetInfo, e as AssetType, f as AutoImportsWithMetadata, B as BasicModuleInfo, g as CategorizedTabs, h as ClientUpdateEvent, i as CodeServerOptions, j as CodeServerType, k as CodeSnippet, l as CompatibilityStatus, m as ComponentRelationship, n as ComponentWithRelationships, G as GetWizardArgs, o as GitHubContributor, I as ImageMeta, p as InstallModuleReturn, q as InstalledModuleInfo, r as MaintainerInfo, s as ModuleBuiltinTab, t as ModuleCompatibility, M as ModuleCustomTab, u as ModuleGlobalOptions, v as ModuleIframeTabLazyOptions, w as ModuleIframeView, x as ModuleLaunchAction, y as ModuleLaunchView, z as ModuleOptions, D as ModuleStaticInfo, E as ModuleStats, F as ModuleTabInfo, J as ModuleType, K as ModuleVNodeView, O as ModuleView, Q as NpmCommandOptions, R as NpmCommandType, U as NuxtDevToolsOptions, N as NuxtDevtoolsInfo, V as NuxtDevtoolsServerContext, W as NuxtServerData, X as PackageManagerName, Y as PackageUpdateInfo, Z as Payload, _ as PluginInfoWithMetic, $ as RouteInfo, a0 as ScannedNitroTasks, a1 as ServerDebugContext, a2 as ServerDebugModuleMutationRecord, a3 as ServerRouteInfo, a4 as ServerRouteInput, a5 as ServerRouteInputType, a6 as ServerTaskInfo, S as SubprocessOptions, a7 as TabCategory, a8 as TerminalAction, a9 as TerminalBase, aa as TerminalInfo, T as TerminalState, ab as VSCodeIntegrationOptions, ac as VSCodeTunnelOptions, ad as VueInspectorClient, ae as VueInspectorData, af as WizardActions, ag as WizardFunctions } from './shared/devtools-kit.BE8MVpwl.mjs';
1
+ import { a as ServerFunctions, C as ClientFunctions, H as HookInfo, P as PluginMetric, L as LoadingTimeMetric } from './shared/devtools-kit.f1VcjZlm.mjs';
2
+ export { A as AnalyzeBuildMeta, b as AnalyzeBuildsInfo, c as AssetEntry, d as AssetInfo, e as AssetType, f as AutoImportsWithMetadata, B as BasicModuleInfo, g as CategorizedTabs, h as ClientUpdateEvent, i as CodeServerOptions, j as CodeServerType, k as CodeSnippet, l as CompatibilityStatus, m as ComponentRelationship, n as ComponentWithRelationships, G as GitHubContributor, I as ImageMeta, o as InstallModuleReturn, p as InstalledModuleInfo, q as MaintainerInfo, r as ModuleBuiltinTab, s as ModuleCompatibility, M as ModuleCustomTab, t as ModuleIframeTabLazyOptions, u as ModuleIframeView, v as ModuleLaunchAction, w as ModuleLaunchView, x as ModuleOptions, y as ModuleStaticInfo, z as ModuleStats, D as ModuleTabInfo, E as ModuleType, F as ModuleVNodeView, J as ModuleView, K as NpmCommandOptions, O as NpmCommandType, Q as NuxtDevToolsOptions, N as NuxtDevtoolsInfo, R as NuxtDevtoolsServerContext, U as NuxtServerData, V as PackageManagerName, W as PackageUpdateInfo, X as Payload, Y as PluginInfoWithMetic, Z as RouteInfo, _ as ScannedNitroTasks, $ as ServerDebugContext, a0 as ServerDebugModuleMutationRecord, a1 as ServerRouteInfo, a2 as ServerRouteInput, a3 as ServerRouteInputType, a4 as ServerTaskInfo, S as SubprocessOptions, a5 as TabCategory, a6 as TerminalAction, a7 as TerminalBase, a8 as TerminalInfo, T as TerminalState, a9 as VSCodeIntegrationOptions, aa as VSCodeTunnelOptions, ab as VueInspectorClient, ac as VueInspectorData } from './shared/devtools-kit.f1VcjZlm.mjs';
3
3
  import { BirpcReturn } from 'birpc';
4
4
  import { Hookable } from 'hookable';
5
5
  import { NuxtApp } from 'nuxt/app';
@@ -14,7 +14,7 @@ import 'nitropack';
14
14
  import 'unstorage';
15
15
  import 'vite';
16
16
  import '@nuxt/schema';
17
- import 'execa';
17
+ import 'node:child_process';
18
18
 
19
19
  interface TimelineEventFunction {
20
20
  type: 'function';
@@ -121,16 +121,6 @@ interface NuxtDevtoolsHostClient {
121
121
  toggle: () => void;
122
122
  reload: () => void;
123
123
  navigate: (path: string) => void;
124
- /**
125
- * Popup the DevTools frame into Picture-in-Picture mode
126
- *
127
- * Requires Chrome 111 with experimental flag enabled.
128
- *
129
- * Function is undefined when not supported.
130
- *
131
- * @see https://developer.chrome.com/docs/web-platform/document-picture-in-picture/
132
- */
133
- popup?: () => any;
134
124
  };
135
125
  app: {
136
126
  reload: () => void;
package/dist/types.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { a as ServerFunctions, C as ClientFunctions, H as HookInfo, P as PluginMetric, L as LoadingTimeMetric } from './shared/devtools-kit.BE8MVpwl.js';
2
- export { A as AnalyzeBuildMeta, b as AnalyzeBuildsInfo, c as AssetEntry, d as AssetInfo, e as AssetType, f as AutoImportsWithMetadata, B as BasicModuleInfo, g as CategorizedTabs, h as ClientUpdateEvent, i as CodeServerOptions, j as CodeServerType, k as CodeSnippet, l as CompatibilityStatus, m as ComponentRelationship, n as ComponentWithRelationships, G as GetWizardArgs, o as GitHubContributor, I as ImageMeta, p as InstallModuleReturn, q as InstalledModuleInfo, r as MaintainerInfo, s as ModuleBuiltinTab, t as ModuleCompatibility, M as ModuleCustomTab, u as ModuleGlobalOptions, v as ModuleIframeTabLazyOptions, w as ModuleIframeView, x as ModuleLaunchAction, y as ModuleLaunchView, z as ModuleOptions, D as ModuleStaticInfo, E as ModuleStats, F as ModuleTabInfo, J as ModuleType, K as ModuleVNodeView, O as ModuleView, Q as NpmCommandOptions, R as NpmCommandType, U as NuxtDevToolsOptions, N as NuxtDevtoolsInfo, V as NuxtDevtoolsServerContext, W as NuxtServerData, X as PackageManagerName, Y as PackageUpdateInfo, Z as Payload, _ as PluginInfoWithMetic, $ as RouteInfo, a0 as ScannedNitroTasks, a1 as ServerDebugContext, a2 as ServerDebugModuleMutationRecord, a3 as ServerRouteInfo, a4 as ServerRouteInput, a5 as ServerRouteInputType, a6 as ServerTaskInfo, S as SubprocessOptions, a7 as TabCategory, a8 as TerminalAction, a9 as TerminalBase, aa as TerminalInfo, T as TerminalState, ab as VSCodeIntegrationOptions, ac as VSCodeTunnelOptions, ad as VueInspectorClient, ae as VueInspectorData, af as WizardActions, ag as WizardFunctions } from './shared/devtools-kit.BE8MVpwl.js';
1
+ import { a as ServerFunctions, C as ClientFunctions, H as HookInfo, P as PluginMetric, L as LoadingTimeMetric } from './shared/devtools-kit.f1VcjZlm.js';
2
+ export { A as AnalyzeBuildMeta, b as AnalyzeBuildsInfo, c as AssetEntry, d as AssetInfo, e as AssetType, f as AutoImportsWithMetadata, B as BasicModuleInfo, g as CategorizedTabs, h as ClientUpdateEvent, i as CodeServerOptions, j as CodeServerType, k as CodeSnippet, l as CompatibilityStatus, m as ComponentRelationship, n as ComponentWithRelationships, G as GitHubContributor, I as ImageMeta, o as InstallModuleReturn, p as InstalledModuleInfo, q as MaintainerInfo, r as ModuleBuiltinTab, s as ModuleCompatibility, M as ModuleCustomTab, t as ModuleIframeTabLazyOptions, u as ModuleIframeView, v as ModuleLaunchAction, w as ModuleLaunchView, x as ModuleOptions, y as ModuleStaticInfo, z as ModuleStats, D as ModuleTabInfo, E as ModuleType, F as ModuleVNodeView, J as ModuleView, K as NpmCommandOptions, O as NpmCommandType, Q as NuxtDevToolsOptions, N as NuxtDevtoolsInfo, R as NuxtDevtoolsServerContext, U as NuxtServerData, V as PackageManagerName, W as PackageUpdateInfo, X as Payload, Y as PluginInfoWithMetic, Z as RouteInfo, _ as ScannedNitroTasks, $ as ServerDebugContext, a0 as ServerDebugModuleMutationRecord, a1 as ServerRouteInfo, a2 as ServerRouteInput, a3 as ServerRouteInputType, a4 as ServerTaskInfo, S as SubprocessOptions, a5 as TabCategory, a6 as TerminalAction, a7 as TerminalBase, a8 as TerminalInfo, T as TerminalState, a9 as VSCodeIntegrationOptions, aa as VSCodeTunnelOptions, ab as VueInspectorClient, ac as VueInspectorData } from './shared/devtools-kit.f1VcjZlm.js';
3
3
  import { BirpcReturn } from 'birpc';
4
4
  import { Hookable } from 'hookable';
5
5
  import { NuxtApp } from 'nuxt/app';
@@ -14,7 +14,7 @@ import 'nitropack';
14
14
  import 'unstorage';
15
15
  import 'vite';
16
16
  import '@nuxt/schema';
17
- import 'execa';
17
+ import 'node:child_process';
18
18
 
19
19
  interface TimelineEventFunction {
20
20
  type: 'function';
@@ -121,16 +121,6 @@ interface NuxtDevtoolsHostClient {
121
121
  toggle: () => void;
122
122
  reload: () => void;
123
123
  navigate: (path: string) => void;
124
- /**
125
- * Popup the DevTools frame into Picture-in-Picture mode
126
- *
127
- * Requires Chrome 111 with experimental flag enabled.
128
- *
129
- * Function is undefined when not supported.
130
- *
131
- * @see https://developer.chrome.com/docs/web-platform/document-picture-in-picture/
132
- */
133
- popup?: () => any;
134
124
  };
135
125
  app: {
136
126
  reload: () => void;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nuxt/devtools-kit",
3
3
  "type": "module",
4
- "version": "3.2.4",
4
+ "version": "4.0.0-alpha.1",
5
5
  "license": "MIT",
6
6
  "homepage": "https://devtools.nuxt.com/module/utils-kit",
7
7
  "repository": {
@@ -42,7 +42,7 @@
42
42
  },
43
43
  "dependencies": {
44
44
  "@nuxt/kit": "^4.4.2",
45
- "execa": "^8.0.1"
45
+ "tinyexec": "^1.0.4"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@nuxt/schema": "^4.4.2",