Skip to content
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