Skip to content

Commit

Permalink
Fix include/exclude at version level
Browse files Browse the repository at this point in the history
  • Loading branch information
thefat32 authored Nov 27, 2023
1 parent 4d421cf commit af0bd37
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/self-hosted-shared-dependencies.js
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,9 @@ export async function build({
await fs.mkdir(dir, { recursive: true });
}

const include = matchedVersion.include || p.include || [];
const exclude = matchedVersion.exclude || p.exclude || [];
const matchedVersionConfig = p.versions.find(v => typeof v === "string" ? v === matchedVersion : v.version === matchedVersion)
const include = matchedVersionConfig.include || p.include || [];
const exclude = matchedVersionConfig.exclude || p.exclude || [];

let files = [];

Expand Down

0 comments on commit af0bd37

Please sign in to comment.