fix: add path import for shell utils (#1298) (thanks @sibbl)
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
import fs from "node:fs";
|
|
||||||
import { spawn } from "node:child_process";
|
import { spawn } from "node:child_process";
|
||||||
|
import fs from "node:fs";
|
||||||
|
import path from "node:path";
|
||||||
|
|
||||||
function resolvePowerShellPath(): string {
|
function resolvePowerShellPath(): string {
|
||||||
const systemRoot = process.env.SystemRoot || process.env.WINDIR;
|
const systemRoot = process.env.SystemRoot || process.env.WINDIR;
|
||||||
|
|||||||
Reference in New Issue
Block a user