Remove tsx dependency (#32967)

* Remove tsx dependency

* Iterate

* Iterate

* Iterate
This commit is contained in:
Michael Telatynski
2026-03-30 15:17:36 +00:00
committed by GitHub
parent dda9ec061b
commit 0d1d889c28
21 changed files with 48 additions and 48 deletions
+4 -5
View File
@@ -11,7 +11,7 @@ import os from "node:os";
import { getElectronVersionFromInstalled } from "app-builder-lib/out/electron/electronVersion.js";
import childProcess, { type SpawnOptions } from "node:child_process";
import { type Arch, type Target, TARGETS, getHost, isHostId, type TargetId } from "./target.js";
import { type Arch, type Target, TARGETS, getHost, isHostId, type TargetId } from "./target.ts";
async function getRuntimeVersion(projectRoot: string): Promise<string> {
const electronVersion = await getElectronVersionFromInstalled(path.join(projectRoot, "..", ".."));
@@ -28,11 +28,10 @@ export default class HakEnv {
public runtime: string = "electron";
public runtimeVersion?: string;
public dotHakDir: string;
public readonly projectRoot: string;
public constructor(
public readonly projectRoot: string,
targetId: TargetId | null,
) {
public constructor(projectRoot: string, targetId: TargetId | null) {
this.projectRoot = projectRoot;
const target = targetId ? TARGETS[targetId] : getHost();
if (!target) {