Skip to content

Commit 2589a12

Browse files
authored
using posix for join instead, gives us the proper / for file path separator (commontoolsinc#1807)
1 parent 9cca85d commit 2589a12

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/js-runtime/program.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { isDeno } from "@commontools/utils/env";
22
import { ProgramResolver, Source } from "./interface.ts";
3-
import { dirname, join } from "@std/path";
3+
import { dirname, join } from "@std/path/posix";
44

55
export class InMemoryProgram implements ProgramResolver {
66
private modules: Record<string, string>;

packages/js-runtime/typescript/resolver.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import ts from "typescript";
22
import { Program, ProgramResolver, Source } from "../interface.ts";
3-
import { dirname, join } from "@std/path";
3+
import { dirname, join } from "@std/path/posix";
44

55
export type UnresolvedModuleHandling =
66
| { type: "allow"; identifiers: string[] }

0 commit comments

Comments
 (0)