mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2024-11-26 09:37:28 +00:00
Only start repl if standard input is a terminal
This commit is contained in:
parent
1b7269fae7
commit
f4969f86db
@ -41,5 +41,8 @@ subdirs("pug", async (err, dirs) => {
|
|||||||
Object.assign(passthrough, pinski.getExports())
|
Object.assign(passthrough, pinski.getExports())
|
||||||
|
|
||||||
console.log("Server started")
|
console.log("Server started")
|
||||||
|
|
||||||
|
if (process.stdin.isTTY || process.argv.includes("--enable-repl")) {
|
||||||
require("./repl")
|
require("./repl")
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user