Skip to content

Commit a88563f

Browse files
authored
Make "rescript format" work with node 10 again and set "engines" field (#6186)
* Make "rescript format" work with node 10 again * Add engines field to package.json * Update CHANGELOG
1 parent ec6ae34 commit a88563f

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616

1717
- Parse `assert` as a regular function. `assert` is no longer a unary expression. Example: before `assert 1 == 2` is parsed as `(assert 1) == 2`, now it is parsed as `assert(1 == 2)`. https://github.com/rescript-lang/rescript-compiler/pull/6180
1818

19+
#### :bug: Bug Fix
20+
21+
- Make "rescript format" work with node 10 again and set minimum required node version to 10 in package.json. https://github.com/rescript-lang/rescript-compiler/pull/6186
22+
1923
# 11.0.0-alpha.4
2024

2125
#### :rocket: Main New Feature

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
"prettier": "^2.7.1",
88
"rollup": "^0.49.2"
99
},
10+
"engines": {
11+
"node": ">=10"
12+
},
1013
"bin": {
1114
"bsc": "bsc",
1215
"bstracing": "lib/bstracing",

scripts/rescript_format.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ var format_usage = `Usage: rescript format <options> [files]
55
\`rescript format\` formats the current directory
66
`;
77
var child_process = require("child_process");
8-
var util = require("node:util");
8+
var util = require("util");
99
var asyncExecFile = util.promisify(child_process.execFile);
1010
var path = require("path");
1111
var fs = require("fs");

0 commit comments

Comments
 (0)