Skip to content

Commit fb158d9

Browse files
committed
Fix playground build
1 parent e2a9bf9 commit fb158d9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/playground/rollup.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import nodeResolve from "@rollup/plugin-node-resolve";
33
import { glob } from "glob";
44

55
const RESCRIPT_COMPILER_ROOT_DIR = path.join(import.meta.dirname, "..", "..");
6-
const LIB_DIR = path.join(RESCRIPT_COMPILER_ROOT_DIR, "lib");
6+
const LIB_DIR = path.join(RESCRIPT_COMPILER_ROOT_DIR, "packages", "@rescript", "runtime", "lib");
77

88
// Final target output directory where all the cmijs will be stored
99
const PACKAGES_DIR = path.join(import.meta.dirname, "packages");

packages/playground/scripts/generate_cmijs.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ exec("yarn rescript legacy");
2828

2929
// We need to build the compiler's builtin modules as a separate cmij.
3030
// Otherwise we can't use them for compilation within the playground.
31-
buildCmij(compilerRootDir, "compiler-builtins");
31+
buildCmij(path.join(compilerRootDir, "packages", "@rescript", "runtime"), "compiler-builtins");
3232

3333
const packages = resConfig["dependencies"];
3434
for (const pkgName of packages) {

0 commit comments

Comments
 (0)