forked from rescript-lang/rescript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinput.js
18 lines (16 loc) · 789 Bytes
/
input.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
var p = require("child_process");
var assert = require("assert");
var { rescript_exe } = require("#cli/bin_path");
var { normalizeNewlines } = require("../utils.js");
var o = p.spawnSync(rescript_exe, { encoding: "utf8", cwd: __dirname });
if (
![
`Error: Invalid bsconfig.json implementation and interface have different path names or different cases src/X vs src/x\n`,
// Windows: path separator
`Error: Invalid bsconfig.json implementation and interface have different path names or different cases src\\X vs src\\x\n`,
// Linux: files are parsed in different order
`Error: Invalid bsconfig.json implementation and interface have different path names or different cases src/x vs src/X\n`,
].includes(normalizeNewlines(o.stderr))
) {
assert.fail(o.stderr);
}