Commit b573cb7
committed
Fire-and-forget postrun hooks + process.exit(0)
Run the command first with exclusive CPU time, then fire prerun/postrun
hooks as fire-and-forget after command completes. Call process.exit(0)
in bootstrap to avoid blocking on pending analytics/version-check
network requests.
Startup time: 570ms → 250ms (-56%)
Made-with: Cursor1 parent 41b8681 commit b573cb7
File tree
2 files changed
+12
-2
lines changed- packages
- cli-kit/src/public/node
- cli/src
2 files changed
+12
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
87 | 94 | | |
88 | 95 | | |
89 | 96 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
67 | 70 | | |
68 | 71 | | |
69 | 72 | | |
0 commit comments