From 62e914e344f870f6a0d214873f6bcd2d930957ff Mon Sep 17 00:00:00 2001 From: Alex Ross <38270282+alexr00@users.noreply.github.com> Date: Mon, 10 Mar 2025 17:54:49 +0100 Subject: [PATCH] Make the property init order checker script Windows friendly (#243093) Part of #243049 --- build/lib/propertyInitOrderChecker.js | 2 +- build/lib/propertyInitOrderChecker.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build/lib/propertyInitOrderChecker.js b/build/lib/propertyInitOrderChecker.js index 14c0e2cbd6c..8c287dbd852 100644 --- a/build/lib/propertyInitOrderChecker.js +++ b/build/lib/propertyInitOrderChecker.js @@ -257,7 +257,7 @@ for (const file of program.getSourceFiles()) { if (!file || file.isDeclarationFile) { continue; } - const relativePath = path.relative(path.dirname(TS_CONFIG_PATH), file.fileName); + const relativePath = path.relative(path.dirname(TS_CONFIG_PATH), file.fileName).replace(/\\/g, '/'); if (ignored.has(relativePath)) { continue; } diff --git a/build/lib/propertyInitOrderChecker.ts b/build/lib/propertyInitOrderChecker.ts index 2c3090d8dce..d83b8c3fa2d 100644 --- a/build/lib/propertyInitOrderChecker.ts +++ b/build/lib/propertyInitOrderChecker.ts @@ -239,7 +239,7 @@ for (const file of program.getSourceFiles()) { continue; } - const relativePath = path.relative(path.dirname(TS_CONFIG_PATH), file.fileName); + const relativePath = path.relative(path.dirname(TS_CONFIG_PATH), file.fileName).replace(/\\/g, '/'); if (ignored.has(relativePath)) { continue; }