self-hosted-shared-dependencies icon indicating copy to clipboard operation
self-hosted-shared-dependencies copied to clipboard

Per version include/exclude not working

Open thefat32 opened this issue 1 year ago • 0 comments

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

thefat32 avatar Nov 27 '23 02:11 thefat32