diff --git a/lib/self-hosted-shared-dependencies.js b/lib/self-hosted-shared-dependencies.js index b54a505..7873b14 100644 --- a/lib/self-hosted-shared-dependencies.js +++ b/lib/self-hosted-shared-dependencies.js @@ -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 = [];