diff --git a/scripts/build/clang-format-diff.sh b/scripts/build/clang-format-diff.sh index 515074013..b0564b1f7 100755 --- a/scripts/build/clang-format-diff.sh +++ b/scripts/build/clang-format-diff.sh @@ -3,8 +3,8 @@ set -eo pipefail if [[ -z $DEBUG ]]; then brew install clang-format - curl --silent --show-error --remote-name https://raw.githubusercontent.com/llvm/llvm-project/release/18.x/clang/tools/clang-format/clang-format-diff.py + curl --silent --show-error --remote-name https://raw.githubusercontent.com/llvm/llvm-project/release/21.x/clang/tools/clang-format/clang-format-diff.py fi git diff --unified=0 --no-color @^ \ - | python clang-format-diff.py -p1 -regex '.*\.(cpp|cc|c\+\+|cxx|c|cl|h|hh|hpp|m|mm|inc)' -sort-includes \ + | python3 clang-format-diff.py -p1 -regex '.*\.(cpp|cc|c\+\+|cxx|c|cl|h|hh|hpp|m|mm|inc)' -sort-includes \ | npx suggestion-bot diff --git a/scripts/build/copy-yarnrc.mjs b/scripts/build/copy-yarnrc.mjs index e60e83a1a..1ede1d9dd 100644 --- a/scripts/build/copy-yarnrc.mjs +++ b/scripts/build/copy-yarnrc.mjs @@ -16,13 +16,19 @@ function main(src, dst) { }); const yml = fs.readFileSync(src, { encoding: "utf-8" }); - const rc = /** @type {Record} */ (yaml.load(yml)); + const rc = /** @type {Record} */ ( + yaml.load(yml) + ); rc["nmHoistingLimits"] = undefined; - rc["plugins"] = undefined; + rc["plugins"] = []; + if (rc.globalFolder) { + const globalFolder = rc.globalFolder.toString(); + rc["globalFolder"] = path.join(path.dirname(src), globalFolder); + } if (rc.yarnPath) { - rc["yarnPath"] = path.join(path.dirname(src), rc.yarnPath); + rc["yarnPath"] = path.join(path.dirname(src), rc.yarnPath.toString()); } fs.writeFileSync(dst, yaml.dump(rc));