Skip to content

Commit

Permalink
feat(focus): allow multiple lib/package focus in OSS projects
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanWalker committed Sep 8, 2020
1 parent f12b635 commit 841ab5e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ The scope must be one of the following:

- angular - anything Angular specific
- core - anything xplat core specific
- focus - anything related to focus tools
- docs - anything related to docs infrastructure
- electron - anything Electron specific
- ionic - anything Ionic specific
Expand Down
8 changes: 4 additions & 4 deletions packages/focus/src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,14 +122,14 @@ export namespace FocusHelpers {
const handledPlatforms: any = {};
for (const target of platforms) {
for (const p of options.allLibs) {
if (!handledPlatforms[target]) {
const libName = p.replace('**/libs/', '');
const libName = p.replace('**/libs/', '');
if (!handledPlatforms[libName]) {
userUpdates[p] = libName === target ? false : true;
}
}
for (const p of options.allPackages) {
if (!handledPlatforms[target]) {
const packageName = p.replace('**/packages/', '');
const packageName = p.replace('**/packages/', '');
if (!handledPlatforms[packageName]) {
userUpdates[p] = packageName === target ? false : true;
}
}
Expand Down

0 comments on commit 841ab5e

Please sign in to comment.