@mornya/vessel
Version:
Creates/publishes a Node.js module with no build configuration.
1 lines • 662 B
JavaScript
Object.defineProperty(exports,"__esModule",{value:!0});var o=require("@mornya/cli-libs"),e=require("./command"),n=require("./paths");process.env.NODE_ENV="production",process.on("unhandledRejection",function(e){throw e}),["beforeExit","unhandledRejection","uncaughtException","SIGINT","SIGTERM"].forEach(function(e){return process.on(e,o.Log.showCursor)});try{n.paths.isLocal?o.Files.isExist("".concat(n.paths.ownPath,"/.local"))&&(o.Log.devOnly("Execution halt by local run."),process.exit(0)):"false"===process.env.IS_LOCAL_ENV&&(o.Log.devOnly("Execution bypassed by environment variable."),process.exit(0)),(0,e.initializeCommander)()}catch(e){o.Log.error(e)}