Skip to content

Commit 17fa35f

Browse files
committed
tweak
1 parent 2ce08ef commit 17fa35f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

rescript

+4-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ var bsconfig = "bsconfig.json";
1414
var bsb_exe = path.join(__dirname, process.platform, "rescript.exe");
1515

1616
var LAST_SUCCESS_BUILD_STAMP = 0;
17-
process.env.BSB_PROJECT_ROOT = process.cwd();
17+
var cwd = process.cwd();
18+
var lockFileName = path.join(cwd, ".bsb.lock");
19+
process.env.BSB_PROJECT_ROOT = cwd ;
1820
// console.log('BSB_PROJECT_ROOT:', process.env.BSB_PROJECT_ROOT)
1921

2022
// All clients of type MiniWebSocket
@@ -216,8 +218,7 @@ if (
216218
setUpWebSocket();
217219
}
218220
// for column one based error message
219-
var cwd = process.cwd();
220-
var lockFileName = path.join(cwd, ".bsb.lock");
221+
221222
/**
222223
* @type {[string,string][]}
223224
*/

0 commit comments

Comments
 (0)