Skip to content

Commit 05898a3

Browse files
committed
fmt
1 parent eb4059c commit 05898a3

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

lib_dev/process.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,7 @@ export function setup(cwd = process.cwd()) {
172172
* `rescript` CLI
173173
*/
174174
rewatch(command, args = [], options = {}) {
175-
const cliPath = path.join(
176-
import.meta.dirname,
177-
"../cli/rescript.js",
178-
);
175+
const cliPath = path.join(import.meta.dirname, "../cli/rescript.js");
179176
return exec("node", [cliPath, command, ...args].filter(Boolean), options);
180177
},
181178

scripts/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,4 +219,4 @@ if (rewatch) {
219219
cwd: rewatchTestDir,
220220
stdio: "inherit",
221221
});
222-
}
222+
}

tests/rewatch_tests/src/Setup.res

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,14 @@ type commands = {
3434
/// Returns a set of helpers to invoke cli/rescript.js in a working directory
3535
let commands = async (workingDirectory: string): commands => {
3636
// Ensure working directory exists before invoking any process
37-
let pwdExists = await FsPromises.access(workingDirectory)->Promise.thenResolve(_ => true)->Promise.catch(_ => Promise.resolve(false))
37+
let pwdExists = await FsPromises.access(workingDirectory)
38+
->Promise.thenResolve(_ => true)
39+
->Promise.catch(_ => Promise.resolve(false))
3840

39-
if (!pwdExists) {
41+
if !pwdExists {
4042
throw(Failure("Working directory does not exist: " ++ workingDirectory))
4143
}
42-
44+
4345
let rescript = {
4446
let build = async () => {
4547
let _ = await processUtils.rewatch("build", [], {cwd: workingDirectory})

0 commit comments

Comments
 (0)