Skip to content

internal: avoid JS identifier #6839

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions packages/playground-bundling/scripts/generate_cmijs.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env node

"use strict";

/*
* Requires the version matching `rescript` binary to be `npm link`ed in this
* project. Or in other words: You need to build cmij files with the same
Expand Down Expand Up @@ -78,22 +80,22 @@ function buildCompilerCmij() {
}

function buildThirdPartyCmijs() {
packages.forEach(function installLib(package) {
packages.forEach(function installLib(pkg) {
const libOcamlFolder = path.join(
PROJECT_ROOT_DIR,
"node_modules",
package,
pkg,
"lib",
"ocaml"
);
const libEs6Folder = path.join(
PROJECT_ROOT_DIR,
"node_modules",
package,
pkg,
"lib",
"es6"
);
const outputFolder = path.join(PACKAGES_DIR, package);
const outputFolder = path.join(PACKAGES_DIR, pkg);

const cmijFile = path.join(outputFolder, `cmij.js`);

Expand Down