diff --git a/package.json b/package.json index 573fa01..7e23a28 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ }, "devDependencies": { "@changesets/cli": "2.27.1", - "git-validator": "0.15.13", + "git-validator": "0.16.0", "typescript": "5.4.5", "vitest": "1.5.0" }, diff --git a/packages/tscx/src/cmd/index.ts b/packages/tscx/src/cmd/index.ts index db1e59f..2c6a8f6 100644 --- a/packages/tscx/src/cmd/index.ts +++ b/packages/tscx/src/cmd/index.ts @@ -1,4 +1,4 @@ -import { spawn } from "node:child_process"; +import childProcess from "node:child_process"; import path from "node:path"; import process from "node:process"; import { fileURLToPath } from "node:url"; @@ -15,7 +15,7 @@ const TSC_PATH = path.resolve( ); function spawnNode(...args: string[]) { - return spawn("node", args, { stdio: "inherit" }); + return childProcess.spawn("node", args, { stdio: "inherit" }); } export function remove(filepath: string) { diff --git a/packages/tscx/src/compiler.ts b/packages/tscx/src/compiler.ts index a730628..0329efe 100644 --- a/packages/tscx/src/compiler.ts +++ b/packages/tscx/src/compiler.ts @@ -1,5 +1,5 @@ // this file should not have `async` and `await` -import childProcess, { type ChildProcess } from "node:child_process"; +import childProcess from "node:child_process"; import path from "node:path"; import process from "node:process"; import type ts from "typescript"; @@ -21,7 +21,7 @@ export interface TsConfig { export class Compiler { private id = ""; - private currentSubprocess?: ChildProcess; + private currentSubprocess?: childProcess.ChildProcess; private tsconfig: TsConfig; constructor(private readonly options: CompilerOptions) {