self-hosted-shared-dependencies
self-hosted-shared-dependencies copied to clipboard
Per version include/exclude not working
Include/exclude per version is not working.
From README
{
versions: [
// When the version is a string, the package's include and exclude lists
// are applied
">= 17",
// When the version is an object, the version's include and exclude lists
// take priority over the package's include and exclude lists
{
version: "16.14.0",
include: ["umd/**", "cjs/**"],
},
],
}
The problem is at self-hosted-shared-dependencies.js
in lines 310 and 310
In that context matchedVersion
is always a string as it comes from npm's metadata. Line 247