@nuxt/devtools-kit-nightly 3.2.4-29562007.6edb6d3 → 3.2.4-29562036.34d136f
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 +27 -20
- package/dist/index.d.cts +6 -3
- package/dist/index.d.mts +6 -3
- package/dist/index.d.ts +6 -3
- package/dist/index.mjs +27 -20
- package/dist/shared/{devtools-kit-nightly.BE8MVpwl.d.cts → devtools-kit-nightly.CaEhbN71.d.cts} +7 -18
- package/dist/shared/{devtools-kit-nightly.BE8MVpwl.d.mts → devtools-kit-nightly.CaEhbN71.d.mts} +7 -18
- package/dist/shared/{devtools-kit-nightly.BE8MVpwl.d.ts → devtools-kit-nightly.CaEhbN71.d.ts} +7 -18
- package/dist/types.d.cts +3 -3
- package/dist/types.d.mts +3 -3
- package/dist/types.d.ts +3 -3
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const kit = require('@nuxt/kit');
|
|
4
|
-
const
|
|
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
|
|
20
|
+
const proc = tinyexec.x(
|
|
21
21
|
execaOptions.command,
|
|
22
22
|
execaOptions.args,
|
|
23
23
|
{
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
-
|
|
40
|
+
proc.process?.stdout?.on("data", (data) => {
|
|
39
41
|
nuxt.callHook("devtools:terminal:write", { id, data: data.toString() });
|
|
40
42
|
});
|
|
41
|
-
|
|
43
|
+
proc.process?.stderr?.on("data", (data) => {
|
|
42
44
|
nuxt.callHook("devtools:terminal:write", { id, data: data.toString() });
|
|
43
45
|
});
|
|
44
|
-
|
|
46
|
+
proc.process?.on("exit", (code) => {
|
|
45
47
|
if (!restarting) {
|
|
46
48
|
nuxt.callHook("devtools:terminal:write", { id, data: `
|
|
47
|
-
> process
|
|
49
|
+
> process terminated with ${code}
|
|
48
50
|
` });
|
|
49
51
|
nuxt.callHook("devtools:terminal:exit", { id, code: code || 0 });
|
|
50
52
|
}
|
|
51
53
|
});
|
|
52
|
-
return
|
|
54
|
+
return proc;
|
|
53
55
|
}
|
|
54
56
|
register();
|
|
55
57
|
nuxt.hook("close", () => {
|
|
56
58
|
terminate();
|
|
57
59
|
});
|
|
58
|
-
let
|
|
60
|
+
let result = start();
|
|
59
61
|
function restart() {
|
|
60
62
|
restarting = true;
|
|
61
|
-
|
|
63
|
+
result.kill();
|
|
62
64
|
clear();
|
|
63
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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 {
|
|
4
|
-
import {
|
|
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-nightly.CaEhbN71.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
|
-
|
|
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 {
|
|
4
|
-
import {
|
|
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-nightly.CaEhbN71.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
|
-
|
|
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 {
|
|
4
|
-
import {
|
|
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-nightly.CaEhbN71.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
|
-
|
|
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 {
|
|
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
|
|
18
|
+
const proc = x(
|
|
19
19
|
execaOptions.command,
|
|
20
20
|
execaOptions.args,
|
|
21
21
|
{
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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
|
-
|
|
38
|
+
proc.process?.stdout?.on("data", (data) => {
|
|
37
39
|
nuxt.callHook("devtools:terminal:write", { id, data: data.toString() });
|
|
38
40
|
});
|
|
39
|
-
|
|
41
|
+
proc.process?.stderr?.on("data", (data) => {
|
|
40
42
|
nuxt.callHook("devtools:terminal:write", { id, data: data.toString() });
|
|
41
43
|
});
|
|
42
|
-
|
|
44
|
+
proc.process?.on("exit", (code) => {
|
|
43
45
|
if (!restarting) {
|
|
44
46
|
nuxt.callHook("devtools:terminal:write", { id, data: `
|
|
45
|
-
> process
|
|
47
|
+
> process terminated with ${code}
|
|
46
48
|
` });
|
|
47
49
|
nuxt.callHook("devtools:terminal:exit", { id, code: code || 0 });
|
|
48
50
|
}
|
|
49
51
|
});
|
|
50
|
-
return
|
|
52
|
+
return proc;
|
|
51
53
|
}
|
|
52
54
|
register();
|
|
53
55
|
nuxt.hook("close", () => {
|
|
54
56
|
terminate();
|
|
55
57
|
});
|
|
56
|
-
let
|
|
58
|
+
let result = start();
|
|
57
59
|
function restart() {
|
|
58
60
|
restarting = true;
|
|
59
|
-
|
|
61
|
+
result.kill();
|
|
60
62
|
clear();
|
|
61
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
package/dist/shared/{devtools-kit-nightly.BE8MVpwl.d.cts → devtools-kit-nightly.CaEhbN71.d.cts}
RENAMED
|
@@ -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 {
|
|
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[];
|
|
@@ -454,12 +453,6 @@ interface ModuleOptions {
|
|
|
454
453
|
*/
|
|
455
454
|
telemetry?: boolean;
|
|
456
455
|
}
|
|
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
456
|
interface VSCodeIntegrationOptions {
|
|
464
457
|
/**
|
|
465
458
|
* Enable VS Code Server integration
|
|
@@ -577,9 +570,12 @@ interface TerminalBase {
|
|
|
577
570
|
icon?: string;
|
|
578
571
|
}
|
|
579
572
|
type TerminalAction = 'restart' | 'terminate' | 'clear' | 'remove';
|
|
580
|
-
interface SubprocessOptions
|
|
573
|
+
interface SubprocessOptions {
|
|
581
574
|
command: string;
|
|
582
575
|
args?: string[];
|
|
576
|
+
cwd?: string;
|
|
577
|
+
env?: Record<string, string | undefined>;
|
|
578
|
+
nodeOptions?: SpawnOptions;
|
|
583
579
|
}
|
|
584
580
|
interface TerminalInfo extends TerminalBase {
|
|
585
581
|
/**
|
|
@@ -610,12 +606,6 @@ interface TerminalState extends TerminalInfo {
|
|
|
610
606
|
onActionTerminate?: () => Promise<void> | void;
|
|
611
607
|
}
|
|
612
608
|
|
|
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
609
|
interface ServerFunctions {
|
|
620
610
|
getServerConfig: () => NuxtOptions;
|
|
621
611
|
getServerDebugContext: () => Promise<ServerDebugContext | undefined>;
|
|
@@ -660,7 +650,7 @@ interface ServerFunctions {
|
|
|
660
650
|
renameStaticAsset: (token: string, oldPath: string, newPath: string) => Promise<void>;
|
|
661
651
|
telemetryEvent: (payload: object, immediate?: boolean) => void;
|
|
662
652
|
customTabAction: (name: string, action: number) => Promise<boolean>;
|
|
663
|
-
|
|
653
|
+
enablePages: (token: string) => Promise<void>;
|
|
664
654
|
openInEditor: (filepath: string) => Promise<boolean>;
|
|
665
655
|
restartNuxt: (token: string, hard?: boolean) => Promise<void>;
|
|
666
656
|
installNuxtModule: (token: string, name: string, dry?: boolean) => Promise<InstallModuleReturn>;
|
|
@@ -716,7 +706,6 @@ interface NuxtDevtoolsServerContext {
|
|
|
716
706
|
interface NuxtDevtoolsInfo {
|
|
717
707
|
version: string;
|
|
718
708
|
packagePath: string;
|
|
719
|
-
isGlobalInstall: boolean;
|
|
720
709
|
}
|
|
721
710
|
interface InstallModuleReturn {
|
|
722
711
|
configOriginal: string;
|
|
@@ -794,4 +783,4 @@ declare module '@nuxt/schema' {
|
|
|
794
783
|
}
|
|
795
784
|
}
|
|
796
785
|
|
|
797
|
-
export type {
|
|
786
|
+
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/shared/{devtools-kit-nightly.BE8MVpwl.d.mts → devtools-kit-nightly.CaEhbN71.d.mts}
RENAMED
|
@@ -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 {
|
|
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[];
|
|
@@ -454,12 +453,6 @@ interface ModuleOptions {
|
|
|
454
453
|
*/
|
|
455
454
|
telemetry?: boolean;
|
|
456
455
|
}
|
|
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
456
|
interface VSCodeIntegrationOptions {
|
|
464
457
|
/**
|
|
465
458
|
* Enable VS Code Server integration
|
|
@@ -577,9 +570,12 @@ interface TerminalBase {
|
|
|
577
570
|
icon?: string;
|
|
578
571
|
}
|
|
579
572
|
type TerminalAction = 'restart' | 'terminate' | 'clear' | 'remove';
|
|
580
|
-
interface SubprocessOptions
|
|
573
|
+
interface SubprocessOptions {
|
|
581
574
|
command: string;
|
|
582
575
|
args?: string[];
|
|
576
|
+
cwd?: string;
|
|
577
|
+
env?: Record<string, string | undefined>;
|
|
578
|
+
nodeOptions?: SpawnOptions;
|
|
583
579
|
}
|
|
584
580
|
interface TerminalInfo extends TerminalBase {
|
|
585
581
|
/**
|
|
@@ -610,12 +606,6 @@ interface TerminalState extends TerminalInfo {
|
|
|
610
606
|
onActionTerminate?: () => Promise<void> | void;
|
|
611
607
|
}
|
|
612
608
|
|
|
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
609
|
interface ServerFunctions {
|
|
620
610
|
getServerConfig: () => NuxtOptions;
|
|
621
611
|
getServerDebugContext: () => Promise<ServerDebugContext | undefined>;
|
|
@@ -660,7 +650,7 @@ interface ServerFunctions {
|
|
|
660
650
|
renameStaticAsset: (token: string, oldPath: string, newPath: string) => Promise<void>;
|
|
661
651
|
telemetryEvent: (payload: object, immediate?: boolean) => void;
|
|
662
652
|
customTabAction: (name: string, action: number) => Promise<boolean>;
|
|
663
|
-
|
|
653
|
+
enablePages: (token: string) => Promise<void>;
|
|
664
654
|
openInEditor: (filepath: string) => Promise<boolean>;
|
|
665
655
|
restartNuxt: (token: string, hard?: boolean) => Promise<void>;
|
|
666
656
|
installNuxtModule: (token: string, name: string, dry?: boolean) => Promise<InstallModuleReturn>;
|
|
@@ -716,7 +706,6 @@ interface NuxtDevtoolsServerContext {
|
|
|
716
706
|
interface NuxtDevtoolsInfo {
|
|
717
707
|
version: string;
|
|
718
708
|
packagePath: string;
|
|
719
|
-
isGlobalInstall: boolean;
|
|
720
709
|
}
|
|
721
710
|
interface InstallModuleReturn {
|
|
722
711
|
configOriginal: string;
|
|
@@ -794,4 +783,4 @@ declare module '@nuxt/schema' {
|
|
|
794
783
|
}
|
|
795
784
|
}
|
|
796
785
|
|
|
797
|
-
export type {
|
|
786
|
+
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/shared/{devtools-kit-nightly.BE8MVpwl.d.ts → devtools-kit-nightly.CaEhbN71.d.ts}
RENAMED
|
@@ -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 {
|
|
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[];
|
|
@@ -454,12 +453,6 @@ interface ModuleOptions {
|
|
|
454
453
|
*/
|
|
455
454
|
telemetry?: boolean;
|
|
456
455
|
}
|
|
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
456
|
interface VSCodeIntegrationOptions {
|
|
464
457
|
/**
|
|
465
458
|
* Enable VS Code Server integration
|
|
@@ -577,9 +570,12 @@ interface TerminalBase {
|
|
|
577
570
|
icon?: string;
|
|
578
571
|
}
|
|
579
572
|
type TerminalAction = 'restart' | 'terminate' | 'clear' | 'remove';
|
|
580
|
-
interface SubprocessOptions
|
|
573
|
+
interface SubprocessOptions {
|
|
581
574
|
command: string;
|
|
582
575
|
args?: string[];
|
|
576
|
+
cwd?: string;
|
|
577
|
+
env?: Record<string, string | undefined>;
|
|
578
|
+
nodeOptions?: SpawnOptions;
|
|
583
579
|
}
|
|
584
580
|
interface TerminalInfo extends TerminalBase {
|
|
585
581
|
/**
|
|
@@ -610,12 +606,6 @@ interface TerminalState extends TerminalInfo {
|
|
|
610
606
|
onActionTerminate?: () => Promise<void> | void;
|
|
611
607
|
}
|
|
612
608
|
|
|
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
609
|
interface ServerFunctions {
|
|
620
610
|
getServerConfig: () => NuxtOptions;
|
|
621
611
|
getServerDebugContext: () => Promise<ServerDebugContext | undefined>;
|
|
@@ -660,7 +650,7 @@ interface ServerFunctions {
|
|
|
660
650
|
renameStaticAsset: (token: string, oldPath: string, newPath: string) => Promise<void>;
|
|
661
651
|
telemetryEvent: (payload: object, immediate?: boolean) => void;
|
|
662
652
|
customTabAction: (name: string, action: number) => Promise<boolean>;
|
|
663
|
-
|
|
653
|
+
enablePages: (token: string) => Promise<void>;
|
|
664
654
|
openInEditor: (filepath: string) => Promise<boolean>;
|
|
665
655
|
restartNuxt: (token: string, hard?: boolean) => Promise<void>;
|
|
666
656
|
installNuxtModule: (token: string, name: string, dry?: boolean) => Promise<InstallModuleReturn>;
|
|
@@ -716,7 +706,6 @@ interface NuxtDevtoolsServerContext {
|
|
|
716
706
|
interface NuxtDevtoolsInfo {
|
|
717
707
|
version: string;
|
|
718
708
|
packagePath: string;
|
|
719
|
-
isGlobalInstall: boolean;
|
|
720
709
|
}
|
|
721
710
|
interface InstallModuleReturn {
|
|
722
711
|
configOriginal: string;
|
|
@@ -794,4 +783,4 @@ declare module '@nuxt/schema' {
|
|
|
794
783
|
}
|
|
795
784
|
}
|
|
796
785
|
|
|
797
|
-
export type {
|
|
786
|
+
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-nightly.
|
|
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
|
|
1
|
+
import { a as ServerFunctions, C as ClientFunctions, H as HookInfo, P as PluginMetric, L as LoadingTimeMetric } from './shared/devtools-kit-nightly.CaEhbN71.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-nightly.CaEhbN71.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 '
|
|
17
|
+
import 'node:child_process';
|
|
18
18
|
|
|
19
19
|
interface TimelineEventFunction {
|
|
20
20
|
type: 'function';
|
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-nightly.
|
|
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
|
|
1
|
+
import { a as ServerFunctions, C as ClientFunctions, H as HookInfo, P as PluginMetric, L as LoadingTimeMetric } from './shared/devtools-kit-nightly.CaEhbN71.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-nightly.CaEhbN71.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 '
|
|
17
|
+
import 'node:child_process';
|
|
18
18
|
|
|
19
19
|
interface TimelineEventFunction {
|
|
20
20
|
type: 'function';
|
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-nightly.
|
|
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
|
|
1
|
+
import { a as ServerFunctions, C as ClientFunctions, H as HookInfo, P as PluginMetric, L as LoadingTimeMetric } from './shared/devtools-kit-nightly.CaEhbN71.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-nightly.CaEhbN71.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 '
|
|
17
|
+
import 'node:child_process';
|
|
18
18
|
|
|
19
19
|
interface TimelineEventFunction {
|
|
20
20
|
type: 'function';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/devtools-kit-nightly",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.2.4-
|
|
4
|
+
"version": "3.2.4-29562036.34d136f",
|
|
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
|
-
"
|
|
45
|
+
"tinyexec": "^1.0.4"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@nuxt/schema": "^4.4.2",
|