We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 971f1f9 commit 7722259Copy full SHA for 7722259
.config/rollup.dist.config.mjs
@@ -87,7 +87,11 @@ function updateDepStatsSync(depStats) {
87
const oldDepStats = existsSync(depStatsPath)
88
? readJsonSync(depStatsPath)
89
: undefined
90
- Object.assign(depStats.dependencies, Object.fromEntries(
+ Object.assign(depStats.dependencies,
91
+ // Add existing package.json dependencies without old transitives. This
92
+ // preserves dependencies like '@cyclonedx/cdxgen' and 'synp' that are
93
+ // indirectly referenced through spawned processes and not directly imported.
94
+ Object.fromEntries(
95
Object.entries(pkgJson.dependencies).filter(
96
({ 0: key }) => !oldDepStats?.transitives?.[key]
97
)
0 commit comments