Skip to content

Commit f15c7dc

Browse files
committedMar 20, 2025
fix: downgrade execa to be compatible with Node v18, fix #821
1 parent 4e9da7f commit f15c7dc

File tree

4 files changed

+582
-625
lines changed

4 files changed

+582
-625
lines changed
 

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"type": "module",
44
"version": "2.3.0",
55
"private": true,
6-
"packageManager": "pnpm@10.6.2",
6+
"packageManager": "pnpm@10.6.5",
77
"repository": {
88
"type": "git",
99
"url": "git+https://github.com/nuxt/devtools.git"

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

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type { BirpcGroup } from 'birpc'
2+
import type { ExecaChildProcess } from 'execa'
23
import type { ModuleCustomTab, NuxtDevtoolsInfo, NuxtDevtoolsServerContext, SubprocessOptions, TerminalState } from './types'
34
import { useNuxt } from '@nuxt/kit'
45
import { execa } from 'execa'
@@ -30,7 +31,12 @@ export function startSubprocess(
3031
execaOptions: SubprocessOptions,
3132
tabOptions: TerminalState,
3233
nuxt = useNuxt(),
33-
) {
34+
): {
35+
getProcess: () => ExecaChildProcess<string>
36+
terminate: () => void
37+
restart: () => void
38+
clear: () => void
39+
} {
3440
const id = tabOptions.id
3541
let restarting = false
3642

@@ -109,9 +115,7 @@ export function startSubprocess(
109115
}
110116

111117
return {
112-
getProcess(): ReturnType<typeof execa> {
113-
return process
114-
},
118+
getProcess: () => process,
115119
terminate,
116120
restart,
117121
clear,

0 commit comments

Comments
 (0)
Please sign in to comment.