Skip to content

Commit 0261b6e

Browse files
author
Cédric Belin
committed
Fix a regression
1 parent 27db9b5 commit 0261b6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fast_transformer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {spawn, type ChildProcess} from "node:child_process";
2-
import {normalize, resolve} from "node:path";
2+
import {join, normalize, resolve} from "node:path";
33
import {setTimeout} from "node:timers";
44
import getPort from "get-port";
55
import type {Transformer} from "./transformer.js";
@@ -56,7 +56,7 @@ export class FastTransformer implements Transformer {
5656
this.#port = await getPort();
5757

5858
const {promise, reject, resolve: fulfill} = Promise.withResolvers<number>();
59-
const args = ["-S", `${FastTransformer.#address}:${this.#port}`, "-t", import.meta.dirname];
59+
const args = ["-S", `${FastTransformer.#address}:${this.#port}`, "-t", join(import.meta.dirname, "../src")];
6060
this.#process = spawn(this.#executable, args, {stdio: ["ignore", "pipe", "ignore"]});
6161
this.#process.on("error", reject);
6262
this.#process.on("spawn", () => setTimeout(() => fulfill(this.#port), 1_000));

0 commit comments

Comments
 (0)