Skip to content

Commit 9b81aeb

Browse files
fix: πŸ› Fix wsl
βœ… Closes: #351
1 parent 8212358 commit 9b81aeb

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

β€Žpackage-lock.json

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žsrc/runner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { currentShell, getPath, getRunPrefix, parseShell } from "./utils/shell-u
99
import { basename } from "path";
1010
import { externalTerminal } from "./external-terminal";
1111
import { getOutputLocation } from "./utils/file-utils";
12-
const isWsl = require("is-wsl");
12+
import isWsl = require("is-wsl");
1313

1414
export class Runner {
1515
private file: File;

β€Žsrc/utils/common-utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import find from "find-process";
1+
import find = require("find-process");
22
import { lookpath } from "lookpath";
33
import { isStringNullOrWhiteSpace } from "./string-utils";
4-
const isWsl = require("is-wsl");
4+
import isWsl = require("is-wsl");
55

66
export async function commandExists(command: string): Promise<boolean> {
77
const result = await lookpath(command);

β€Žtsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"compilerOptions": {
3-
"module": "Node16",
3+
"module": "commonjs",
44
"outDir": "out",
55
"target": "ES2022",
66
"lib": [

0 commit comments

Comments
Β (0)