forked from smikula/good-fences
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow for multiple root directories when scanning for fence files (sm…
…ikula#91) ## Motivation In owa, we currently rely on excluding the node_modules directory. This works fine under current usage, but BuildXL by convention stores state in the Out directory, which stores unique logs across multiple runs -- this was causing good-fences to take upwards of 20 minutes on subsequent runs. By specifying the rootDirs as `packages` and `shared` instead of relying on traversing from the common directory `.`, we speed up good-fences (and avoid transient read errors caused by files being deleted out from under good-fences as it traverses BuildXL's internal state). ## Changes - changes rootDir to an array of strings - supports falling back to rootDir: string as an argument for backwords compatibility - upgrades commander to use variadic arguments to support rootDir from the cli
- Loading branch information
1 parent
a8e86be
commit d1c2711
Showing
8 changed files
with
30 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,12 +15,12 @@ | |
}, | ||
"author": "Scott Mikula <[email protected]>", | ||
"dependencies": { | ||
"commander": "^2.11.0", | ||
"commander": "^7.2.0", | ||
"minimatch": "^3.0.4", | ||
"typescript": "^4.0.3" | ||
}, | ||
"devDependencies": { | ||
"@types/commander": "^2.11.0", | ||
"@types/commander": "^2.12.2", | ||
"@types/jest": "^26.0.15", | ||
"@types/node": "^12.7.8", | ||
"jest": "^26.6.0" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
export default interface RawOptions { | ||
project?: string; | ||
rootDir?: string; | ||
rootDir?: string | string[]; | ||
ignoreExternalFences?: boolean; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters