Commit 6d68c53
committed
fix(cli,build): correct warning suppression sources and harden the scanner
Deploy suppression now uses only the manifest externals (the actual image
contents when the warning runs); configured externals like build.external
no longer silence warnings for packages that are never installed. Dev
suppression adds extension-declared packages and stays silent when those
can't be determined (a hook throws, or an older additionalPackages lacks
the declaration hook), so it never makes a false deploys-will-fail claim,
and additionalPackages skips unparseable entries instead of throwing into
dev startup. The lexer blanks regex-literal bodies and records quoted
string spans so string contents can't false-positive, dynamic
import("node:module") bindings and declare-then-assign variables are
recognized, require functions exported from one file and imported into
another are followed, dev rebuilds cache per-file scans by mtime and stat
in parallel, and the dev/deploy pipelines share one warning builder.1 parent 25df644 commit 6d68c53
1 file changed
Lines changed: 12 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
| 20 | + | |
24 | 21 | | |
25 | | - | |
26 | | - | |
| 22 | + | |
27 | 23 | | |
28 | 24 | | |
29 | 25 | | |
| |||
93 | 89 | | |
94 | 90 | | |
95 | 91 | | |
96 | | - | |
| 92 | + | |
97 | 93 | | |
98 | 94 | | |
99 | 95 | | |
| |||
126 | 122 | | |
127 | 123 | | |
128 | 124 | | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
134 | 131 | | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
| 132 | + | |
| 133 | + | |
139 | 134 | | |
140 | 135 | | |
141 | 136 | | |
| |||
0 commit comments