Skip to content

Commit 5953df3

Browse files
weakishcristianoc
authored andcommitted
Update test-examples to test against 10.0.0
1 parent 231471c commit 5953df3

File tree

3 files changed

+23
-3
lines changed

3 files changed

+23
-3
lines changed

compilers/package-lock.json

Lines changed: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

compilers/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"dependencies": {
88
"rescript-820": "npm:bs-platform@8.2.0",
99
"rescript-902": "npm:bs-platform@9.0.2",
10-
"rescript-912": "npm:rescript@9.1.2"
10+
"rescript-912": "npm:rescript@9.1.2",
11+
"rescript-1000": "npm:rescript@10.0.0"
1112
}
1213
}

scripts/test-examples.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ let tempFileNameRegex = /_tempFile\.res/g
1313
// see the package.json on how to define another rescript version
1414
let compilersDir = path.join(__dirname, "..", "compilers")
1515

16-
let bsc = path.join(compilersDir, 'node_modules', 'rescript-912', process.platform, 'bsc.exe')
16+
let bsc = path.join(compilersDir, 'node_modules', 'rescript-1000', process.platform, 'bsc.exe')
1717

1818
const prepareCompilers = () => {
1919
if (fs.existsSync(bsc)) {
@@ -82,7 +82,7 @@ glob.sync(__dirname + '/../pages/docs/manual/latest/**/*.mdx').forEach((file) =>
8282
try {
8383
// -109 for suppressing `Toplevel expression is expected to have unit type.`
8484
// Most doc snippets do e.g. `Belt.Array.length(["test"])`, which triggers this
85-
child_process.execFileSync(bsc, ['-i', tempFileName, '-w', '-109'], {stdio: 'pipe'})
85+
child_process.execFileSync(bsc, [tempFileName, '-w', '-109'], {stdio: 'pipe'})
8686
} catch (e) {
8787
process.stdout.write(postprocessOutput(file, e))
8888
success = false

0 commit comments

Comments
 (0)