Skip to content

Commit 73182ec

Browse files
authored
avoid JS identifier (#6839)
1 parent f1ad9bd commit 73182ec

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

packages/playground-bundling/scripts/generate_cmijs.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/usr/bin/env node
22

3+
"use strict";
4+
35
/*
46
* Requires the version matching `rescript` binary to be `npm link`ed in this
57
* project. Or in other words: You need to build cmij files with the same
@@ -78,22 +80,22 @@ function buildCompilerCmij() {
7880
}
7981

8082
function buildThirdPartyCmijs() {
81-
packages.forEach(function installLib(package) {
83+
packages.forEach(function installLib(pkg) {
8284
const libOcamlFolder = path.join(
8385
PROJECT_ROOT_DIR,
8486
"node_modules",
85-
package,
87+
pkg,
8688
"lib",
8789
"ocaml"
8890
);
8991
const libEs6Folder = path.join(
9092
PROJECT_ROOT_DIR,
9193
"node_modules",
92-
package,
94+
pkg,
9395
"lib",
9496
"es6"
9597
);
96-
const outputFolder = path.join(PACKAGES_DIR, package);
98+
const outputFolder = path.join(PACKAGES_DIR, pkg);
9799

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

0 commit comments

Comments
 (0)