Skip to content

Ensure runtime is passed to mlmap generation#7888

Merged
nojaf merged 4 commits intorescript-lang:masterfrom
nojaf:mlmap-fix
Sep 16, 2025
Merged

Ensure runtime is passed to mlmap generation#7888
nojaf merged 4 commits intorescript-lang:masterfrom
nojaf:mlmap-fix

Conversation

@nojaf
Copy link
Copy Markdown
Member

@nojaf nojaf commented Sep 13, 2025

We need to pass the runtime as well when we compile the mlmap file.
This surfaced in a Deno setup, didn't had this problem with Bun.
Educated guess is the difference in folder layout (.deno).

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Sep 13, 2025

Open in StackBlitz

rescript

npm i https://pkg.pr.new/rescript-lang/rescript@7888

@rescript/darwin-arm64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/darwin-arm64@7888

@rescript/darwin-x64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/darwin-x64@7888

@rescript/linux-arm64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/linux-arm64@7888

@rescript/linux-x64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/linux-x64@7888

@rescript/runtime

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/runtime@7888

@rescript/win32-x64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/win32-x64@7888

commit: 8c6c212

@nojaf nojaf mentioned this pull request Sep 13, 2025
5 tasks
Comment thread cli/common/runtime.js
typeof globalThis.Deno !== "undefined"
? `npm:${pkgName}/package.json`
: `${pkgName}/package.json`;
const specifier = `${pkgName}/package.json`;
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified by @jderochervlk that we don't need this for Deno.

@nojaf nojaf marked this pull request as ready for review September 15, 2025 06:32
@nojaf nojaf merged commit 34cb6b8 into rescript-lang:master Sep 16, 2025
25 checks passed
@github-actions github-actions Bot deleted the mlmap-fix branch March 4, 2026 00:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants