Skip to content

Commit

Permalink
Merge pull request #114 from bcomnes/updates
Browse files Browse the repository at this point in the history
Update all esm only packages
  • Loading branch information
bcomnes committed Jul 4, 2023
2 parents 421a7fd + 79e2c97 commit 67dd879
Show file tree
Hide file tree
Showing 59 changed files with 3,101 additions and 3,153 deletions.
8 changes: 0 additions & 8 deletions .eslintrc.json

This file was deleted.

1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

74 changes: 37 additions & 37 deletions bin/common/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,49 +3,49 @@
* @copyright 2016 Toru Nagashima. All rights reserved.
* See LICENSE file in root directory for full license.
*/
"use strict"
'use strict'

//------------------------------------------------------------------------------
// ------------------------------------------------------------------------------
// Public Interface
//------------------------------------------------------------------------------
/*eslint-disable no-process-exit */
// ------------------------------------------------------------------------------
/* eslint-disable no-process-exit */

module.exports = function bootstrap(name) {
const argv = process.argv.slice(2)
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)
switch (argv[0]) {
case undefined:
case '-h':
case '--help':
return require(`../${name}/help`)(process.stdout)

case "-v":
case "--version":
return require("./version")(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)
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)
}
)
}
// 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 */
/* eslint-enable */

0 comments on commit 67dd879

Please sign in to comment.