Skip to content

Commit 943a258

Browse files
committed
Process was exiting before stdout buffer was clear!
1 parent 06924ab commit 943a258

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

‎packages/cli/src/index.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,9 @@ particularly ESM-related module resolution issues.`
116116
if (analysis.types) {
117117
await render.typed(analysis, opts);
118118

119-
if (analysis.types && analysis.problems.some((problem) => !opts.ignoreRules?.includes(problem.kind)))
120-
process.exit(1);
119+
if (analysis.types && analysis.problems.some((problem) => !opts.ignoreRules?.includes(problem.kind))) {
120+
process.exitCode = 1;
121+
}
121122
} else {
122123
render.untyped(analysis as core.UntypedResult);
123124
}

‎packages/cli/test/snapshots/postcss@8.4.21.tgz.md‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,12 @@ $ attw postcss@8.4.21.tgz
2020
├────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┤
2121
│ node16 (from CJS) │ 🟢 (CJS) │ 🟢 (CJS) │ 🟢 (CJS) │ 🟢 (CJS) │ 🟢 (CJS) │ 🟢 (CJS) │ 🟢 (CJS) │ 🟢 (CJS) │ 🟢 (CJS) │ 🟢 (CJS) │ 🟢 (CJS) │ ❌ No types │ 🟢 (CJS) │ 🟢 (CJS) │ ❌ No types │ 🟢 (CJS) │ 🟢 (CJS) │ 🟢 (CJS) │ 🟢 (CJS) │ 🟢 (CJS) │ 🟢 (CJS) │ 🟢 (CJS) │ 🟢 (CJS) │ ❌ No types │ ❌ No types │ ❌ No types │ ❌ No types │ 🟢 (CJS) │ 🟢 (JSON) │
2222
├────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────��───────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┤
23-
│ node16 (from ESM) │ 🎭 Masquerading as CJS │ ❗️ Incorrect default expor
23+
│ node16 (from ESM) │ 🎭 Masquerading as CJS │ ❗️ Incorrect default export │ ❗️ Incorrect default export │ ❗️ Incorrect default export │ ❗️ Incorrect default export │ ❗️ Incorrect default export │ ❗️ Incorrect default export │ ❗️ Incorrect default export │ ❗️ Incorrect default export │ ❗️ Incorrect default export │ ❗️ Incorrect default export │ ❌ No types │ ❗️ Incorrect default export │ ❗️ Incorrect default export │ ❌ No types │ ❗️ Incorrect default export │ ❗️ Incorrect default export │ ❗️ Incorrect default export │ ❗️ Incorrect default export │ ❗️ Incorrect default export │ ❗️ Incorrect default export │ ❗️ Incorrect default export │ ❗️ Incorrect default export │ ❌ No types │ ❌ No types │ ❌ No types │ ❌ No types │ ❗️ Incorrect default export │ 🟢 (JSON) │
24+
│ │ 🐛 Used fallback condition │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
25+
├────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────┤
26+
│ bundler │ 🐛 Used fallback condition │ 🟢 │ 🟢 │ 🟢 │ 🟢 │ 🟢 │ 🟢 │ 🟢 │ 🟢 │ 🟢 │ 🟢 │ ❌ No types │ 🟢 │ 🟢 │ ❌ No types │ 🟢 │ 🟢 │ 🟢 │ 🟢 │ 🟢 │ 🟢 │ 🟢 │ 🟢 │ ❌ No types │ ❌ No types │ ❌ No types │ ❌ No types │ 🟢 │ 🟢 (JSON) │
27+
└────────────────────┴───────────────────────────────────┴───────────────────────────────────┴───────────────────────────────────┴───────────────────────────────────┴───────────────────────────────────┴───────────────────────────────────┴───────────────────────────────────┴───────────────────────────────────┴───────────────────────────────────┴───────────────────────────────────┴───────────────────────────────────┴───────────────────────────────────┴───────────────────────────────────┴───────────────────────────────────┴───────────────────────────────────┴───────────────────────────────────┴───────────────────────────────────┴───────────────────────────────────┴───────────────────────────────────┴───────────────────────────────────┴───────────────────────────────────┴───────────────────────────────────┴───────────────────────────────────┴───────────────────────────────────┴───────────────────────────────────┴───────────────────────────────────┴───────────────────────────────────┴───────────────────────────────────┴───────────────────────────────────┘
28+
2429
2530
```
2631

0 commit comments

Comments
 (0)