summaryrefslogtreecommitdiffstats
path: root/node_modules/npm-run-all/bin/common/bootstrap.js
diff options
context:
space:
mode:
authorGravatar Piotr Russ <mail@pruss.it> 2020-11-18 23:26:45 +0100
committerGravatar Piotr Russ <mail@pruss.it> 2020-11-18 23:26:45 +0100
commit81ddf9b700bc48a1f8e472209f080f9c1d9a9b09 (patch)
tree8b959d50c5a614cbf9fcb346ed556140374d4b6d /node_modules/npm-run-all/bin/common/bootstrap.js
parent1870f3fdf43707a15fda0f609a021f516f45eb63 (diff)
downloadwebsite_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.tar.gz
website_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.tar.bz2
website_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.zip
rm node_modules
Diffstat (limited to 'node_modules/npm-run-all/bin/common/bootstrap.js')
-rw-r--r--node_modules/npm-run-all/bin/common/bootstrap.js51
1 files changed, 0 insertions, 51 deletions
diff --git a/node_modules/npm-run-all/bin/common/bootstrap.js b/node_modules/npm-run-all/bin/common/bootstrap.js
deleted file mode 100644
index e73b093..0000000
--- a/node_modules/npm-run-all/bin/common/bootstrap.js
+++ /dev/null
@@ -1,51 +0,0 @@
-/**
- * @author Toru Nagashima
- * @copyright 2016 Toru Nagashima. All rights reserved.
- * See LICENSE file in root directory for full license.
- */
-"use strict"
-
-//------------------------------------------------------------------------------
-// Public Interface
-//------------------------------------------------------------------------------
-/*eslint-disable no-process-exit */
-
-module.exports = function bootstrap(name) {
- const argv = process.argv.slice(2)
-
- switch (argv[0]) {
- case undefined:
- case "-h":
- case "--help":
- return require(`../${name}/help`)(process.stdout)
-
- case "-v":
- case "--version":
- return require("./version")(process.stdout)
-
- default:
- // https://github.com/mysticatea/npm-run-all/issues/105
- // Avoid MaxListenersExceededWarnings.
- process.stdout.setMaxListeners(0)
- process.stderr.setMaxListeners(0)
- process.stdin.setMaxListeners(0)
-
- // Main
- return require(`../${name}/main`)(
- argv,
- process.stdout,
- process.stderr
- ).then(
- () => {
- // I'm not sure why, but maybe the process never exits
- // on Git Bash (MINGW64)
- process.exit(0)
- },
- () => {
- process.exit(1)
- }
- )
- }
-}
-
-/*eslint-enable */