Skip to content

Commit

Permalink
fixup! feat(scripts): add projecType filtering to isConvergedPkg helper
Browse files Browse the repository at this point in the history
  • Loading branch information
Hotell committed Jul 22, 2022
1 parent dd64082 commit 79a4462
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions scripts/monorepo/runPublished.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,24 @@ const websitePackages = [
// in the root package.json's publishing-related scripts and will need to be updated if --scope changes.
const beachballPackageScopes = Object.entries(getAllPackageInfo())
.filter(([, { packageJson, packagePath }]) => {
// Ignore northstar
if (/[\\/]fluentui[\\/]/.test(packagePath)) {
const isNorthstar = /[\\/]fluentui[\\/]/.test(packagePath);

if (isNorthstar) {
return false;
}

if (packageJson.private === true) {
return false;
}

const isConverged = isConvergedPackage({ packagePathOrJson: packageJson });
if (process.env.RELEASE_VNEXT) {
return isConvergedPackage({ packagePathOrJson: packageJson }) && packageJson.private !== true;
} else if (!isConvergedPackage({ packagePathOrJson: packageJson })) {
return isConverged;
}

if (!isConverged) {
// v8 scope
return packageJson.private !== true || websitePackages.includes(packageJson.name);
return websitePackages.includes(packageJson.name);
}

// Ignore v9/converged packages when releasing v8
Expand Down

0 comments on commit 79a4462

Please sign in to comment.