We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2090e40 commit d5db85dCopy full SHA for d5db85d
scripts/repl.js
@@ -19,10 +19,10 @@ function e(cmd) {
19
console.log(`<<<<<<`)
20
}
21
22
-// process.env.BS_PLAYGROUND = `../../bucklescript-playground`
23
if (process.env.BS_PLAYGROUND == null) {
24
- console.error('please set env var BS_PLAYGROUND')
25
- process.exit(2)
+ var defaultPlayground = `../../bucklescript-playground`
+ console.warn(`BS_PLAYGROUND env var unset, defaulting to ${defaultPlayground}`)
+ process.env.BS_PLAYGROUND = defaultPlayground
26
27
28
var playground = process.env.BS_PLAYGROUND
0 commit comments