@nomiclabs/buidler
Version:
Buidler is an extensible developer tool that helps smart contract developers increase productivity by reliably bringing together the tools they want.
24 lines • 862 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
function isNodeCalledWithoutAScript() {
const script = process.argv[1];
return script === undefined || script.trim() === "";
}
exports.isNodeCalledWithoutAScript = isNodeCalledWithoutAScript;
/**
* Starting at node 10, proxies are shown in the console by default, instead
* of actually inspecting them. This makes all our lazy loading efforts wicked,
* so we disable it ni buidler/register.
*/
function disableReplWriterShowProxy() {
const repl = require("repl");
if (repl.writer.options) {
Object.defineProperty(repl.writer.options, "showProxy", {
value: false,
writable: false,
configurable: false,
});
}
}
exports.disableReplWriterShowProxy = disableReplWriterShowProxy;
//# sourceMappingURL=console.js.map
;