Skip to content

Commit 92d11ee

Browse files
authored
Use rescript release versions, fix path to test-examples script (#786)
* Fix path to test-examples script * Use rescript release versions
1 parent 8ee8817 commit 92d11ee

File tree

4 files changed

+19
-19
lines changed

4 files changed

+19
-19
lines changed

_blogposts/archive/2020-05-11-state-of-reasonml-org-2020-q2-pt2.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ List.head([1, 2, 3]); /* This should actually be Belt.List */
3333
Running the test with the broken example would produce:
3434

3535
```sh
36-
node scripts/test-examples.js "pages/apis/latest/belt/list.mdx"
36+
node scripts/test-examples.mjs "pages/apis/latest/belt/list.mdx"
3737

3838
Testing example in 'pages/apis/latest/belt/list.mdx' on line 23...
3939
Testing example in 'pages/apis/latest/belt/list.mdx' on line 43...
@@ -54,7 +54,7 @@ Failed: 1
5454
Success: 55
5555

5656
Tip: You can also run tests just for specific files / globs:
57-
`node scripts/test-examples.js "pages/belt_docs/array.mdx"`
57+
`node scripts/test-examples.mjs "pages/belt_docs/array.mdx"`
5858

5959
-----------
6060
Error Preview:

compilers/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
This folder is needed to install additional rescript compiler versions for testing our documented source code on multiple compiler versions.
44

5-
Our `scripts/test-examples.js` script will automatically install all package.json dependencies if it cannot find any compiler versions.
5+
Our `scripts/test-examples.mjs` script will automatically install all package.json dependencies if it cannot find any compiler versions.

compilers/package-lock.json

Lines changed: 14 additions & 14 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 & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"dependencies": {
88
"@rescript/core": "^0.6.0",
99
"rescript-1000": "npm:[email protected]",
10-
"rescript-1010": "npm:[email protected]-rc.4",
11-
"rescript-1100": "npm:[email protected]-rc.8",
10+
"rescript-1010": "npm:[email protected]",
11+
"rescript-1100": "npm:[email protected]",
1212
"rescript-820": "npm:[email protected]",
1313
"rescript-902": "npm:[email protected]",
1414
"rescript-912": "npm:[email protected]"

0 commit comments

Comments
 (0)