Skip to content

Commit fdc3b4e

Browse files
committed
format
1 parent 208d292 commit fdc3b4e

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

packages/playground-bundling/bsconfig.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"in-source": false
88
},
99
"sources": {
10-
"dir" : "src",
11-
"subdirs" : true
10+
"dir": "src",
11+
"subdirs": true
1212
}
1313
}

packages/playground-bundling/scripts/generate_cmijs.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ const path = require("path");
2424
const bsconfig = require("../bsconfig.json");
2525

2626
const PLAYGROUND_DIR =
27-
process.env.PLAYGROUND || path.join(__dirname, "..", "..", "..", "playground");
27+
process.env.PLAYGROUND ||
28+
path.join(__dirname, "..", "..", "..", "playground");
2829

2930
const PROJECT_ROOT_DIR = path.join(__dirname, "..");
3031
const PACKAGES_DIR = path.join(PLAYGROUND_DIR, "packages");

scripts/repl.js

+9-5
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,12 @@ var playground = process.env.PLAYGROUND;
5858
var OCAMLC = `ocamlc.opt`;
5959

6060
// This mini project is needed to build cmij files for third party deps like @rescript/react
61-
const PLAYGROUND_BUNDLING = path.join(__dirname, "..", "packages", "playground-bundling");
61+
const PLAYGROUND_BUNDLING = path.join(
62+
__dirname,
63+
"..",
64+
"packages",
65+
"playground-bundling"
66+
);
6267

6368
var JSOO = `js_of_ocaml`;
6469

@@ -95,11 +100,10 @@ function prepare(isDev, targetCompilerFile) {
95100
e(`cp ../lib/js/*.js ${playground}/stdlib`);
96101
e(`mv ./compiler.js ${playground}`);
97102

98-
99103
// BUILDING THIRD PARTY CMIJ FILES
100-
if(BUILD_THIRD_PARTY) {
101-
console.log('Building third party packages...');
102-
e(`cd ${PLAYGROUND_BUNDLING} && npm run build`)
104+
if (BUILD_THIRD_PARTY) {
105+
console.log("Building third party packages...");
106+
e(`cd ${PLAYGROUND_BUNDLING} && npm run build`);
103107
}
104108
}
105109

0 commit comments

Comments
 (0)