-
Notifications
You must be signed in to change notification settings - Fork 12.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into release-4.5
- Loading branch information
Showing
505 changed files
with
13,339 additions
and
2,411 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
const { join, resolve, dirname } = require("path"); | ||
const { existsSync } = require("fs"); | ||
|
||
// search directories upward to avoid hard-wired paths based on the | ||
// build tree (same as src/harness/findUpDir.ts) | ||
|
||
function findUpFile(name) { | ||
let dir = __dirname; | ||
while (true) { | ||
const fullPath = join(dir, name); | ||
if (existsSync(fullPath)) return fullPath; | ||
const up = resolve(dir, ".."); | ||
if (up === dir) return name; // it'll fail anyway | ||
dir = up; | ||
} | ||
} | ||
exports.findUpFile = findUpFile; | ||
|
||
const findUpRoot = () => | ||
findUpRoot.cached || (findUpRoot.cached = dirname(findUpFile("Gulpfile.js"))); | ||
exports.findUpRoot = findUpRoot; |
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
Oops, something went wrong.