We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df4de4d commit 96b60b8Copy full SHA for 96b60b8
bin/nyc.js
@@ -38,10 +38,6 @@ async function main () {
38
await nyc.createTempDirectory()
39
}
40
41
- if (argv.all) {
42
- await nyc.addAllFiles()
43
- }
44
-
45
const env = {
46
NYC_CONFIG: JSON.stringify(argv),
47
NYC_CWD: process.cwd()
@@ -65,7 +61,9 @@ async function main () {
65
61
Object.assign(propagateEnv, env)
66
62
67
63
68
- if (argv.all) nyc.addAllFiles()
64
+ if (argv.all) {
+ await nyc.addAllFiles()
+ }
69
70
if (argv.useSpawnWrap) {
71
const wrapper = require.resolve('./wrap.js')
@@ -103,4 +101,8 @@ async function main () {
103
101
})
104
102
105
106
-main()
+/* istanbul ignore next: the error branch should be unreachable */
+main().catch(error => {
+ console.log('nyc error:', error)
107
+ process.exit(1)
108
+})
0 commit comments