diff --git a/.eslintrc b/.eslintrc index b919411..f6fc964 100644 --- a/.eslintrc +++ b/.eslintrc @@ -16,6 +16,7 @@ "import/namespace": "off", "indent": ["error", 2, {"MemberExpression": 1}], "node/no-missing-import": "off", + "n/shebang": "warn", "perfectionist/sort-objects": "warn", "unicorn/no-array-for-each": "off", "unicorn/no-useless-undefined": "warn", diff --git a/bin/run b/bin/run index 3c4ae3a..40575f0 100755 --- a/bin/run +++ b/bin/run @@ -1,4 +1,7 @@ #!/usr/bin/env node -require('@oclif/command').run() -.catch(require('@oclif/errors/handle')) +const oclif = require('@oclif/core') + +oclif.run() + .then(require('@oclif/core/flush')) + .catch(async error => require('@oclif/core/handle')(error))