Skip to content

Commit 41596ef

Browse files
committed
Add [email protected] as rescript-820 package, run tests with that instead
1 parent c59af37 commit 41596ef

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"react-dom": "^16.12.0",
3030
"reason-promise": "^1.0.2",
3131
"reason-react": "^0.9.1",
32+
"rescript-820": "npm:bs-platform@^8.2.0",
3233
"remark-parse": "^7.0.1",
3334
"remark-slug": "^5.1.2",
3435
"remark-stringify": "^7.0.3",

scripts/test-examples.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ const path = require("path");
55

66
let tempFileName = path.join(__dirname, '..', '_tempFile.res')
77
let tempFileNameRegex = /_tempFile\.res/g
8-
let bsc = path.join(__dirname, '..', 'node_modules', 'bs-platform', process.platform, 'bsc.exe')
8+
9+
// TODO: In the future we need to use the appropriate rescript version for each doc version variant
10+
// see the package.json on how to define another rescript version
11+
let bsc = path.join(__dirname, '..', 'node_modules', 'rescript-820', process.platform, 'bsc.exe')
912

1013
let parseFile = content => {
1114
if (!/```res (example|prelude|sig)/.test(content)) {

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6853,6 +6853,11 @@ require-main-filename@^2.0.0:
68536853
resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-2.0.0.tgz#d0b329ecc7cc0f61649f62215be69af54aa8989b"
68546854
integrity sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==
68556855

6856+
"rescript-820@npm:bs-platform@^8.2.0":
6857+
version "8.3.2"
6858+
resolved "https://registry.yarnpkg.com/bs-platform/-/bs-platform-8.3.2.tgz#c307f1cc2d2397c3d088c7f3b62e9f493283cdcf"
6859+
integrity sha512-iOTi5JIlNPoCPq31NS9ET79FLyCpwTL2JZbgHz35LzY9Bch1iDtbBR3FVGhRbjphxelAP4fLlFONfUNp5Y3a5g==
6860+
68566861
resolve-from@^3.0.0:
68576862
version "3.0.0"
68586863
resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-3.0.0.tgz#b22c7af7d9d6881bc8b6e653335eebcb0a188748"

0 commit comments

Comments
 (0)