From f1f4b9519835db4a7077389590b848e52bbc5d33 Mon Sep 17 00:00:00 2001 From: Tommy Nguyen <4123478+tido64@users.noreply.github.com> Date: Tue, 8 Oct 2024 09:59:08 +0200 Subject: [PATCH 1/2] fix(metro-config): ignore files generated by Xcode during build --- .changeset/curvy-doors-report.md | 5 +++++ packages/metro-config/src/index.js | 2 +- packages/test-app/ios/Podfile.lock | 4 ++-- 3 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 .changeset/curvy-doors-report.md diff --git a/.changeset/curvy-doors-report.md b/.changeset/curvy-doors-report.md new file mode 100644 index 000000000..a5c210e40 --- /dev/null +++ b/.changeset/curvy-doors-report.md @@ -0,0 +1,5 @@ +--- +"@rnx-kit/metro-config": patch +--- + +Ignore files generated by Xcode during build diff --git a/packages/metro-config/src/index.js b/packages/metro-config/src/index.js index a7fd0bc6a..6d9ac6f2c 100644 --- a/packages/metro-config/src/index.js +++ b/packages/metro-config/src/index.js @@ -251,7 +251,7 @@ function exclusionList(additionalExclusions = [], projectRoot = process.cwd()) { /.*\/(\.vs|\.vscode|Pods)\/.*/, // Ignore unrelated file changes - /.*\.(apk|appx|bak|bat|binlog|c|cache|cc|class|cpp|cs|dex|dll|env|exe|flat|gz|h|hpp|jar|lock|m|mm|modulemap|o|obj|pch|pdb|plist|pbxproj|sh|so|tflite|tgz|tlog|xcconfig|xcscheme|xcworkspacedata|zip)$/, + /.*\.(a|apk|appx|bak|bat|binlog|bundle|c|cache|cc|class|cpp|cs|dex|dll|env|exe|flat|gz|h|hpp|jar|lock|m|mm|modulemap|noindex|o|obj|pch|pdb|plist|pbxproj|sh|so|tflite|tgz|tlog|xcconfig|xcscheme|xcworkspacedata|zip)$/, ...additionalExclusions, ]); diff --git a/packages/test-app/ios/Podfile.lock b/packages/test-app/ios/Podfile.lock index 783a795f8..628a42838 100644 --- a/packages/test-app/ios/Podfile.lock +++ b/packages/test-app/ios/Podfile.lock @@ -1484,7 +1484,7 @@ PODS: - ReactTestApp-MSAL (4.0.0): - MSAL - ReactTestApp-Resources (1.0.0-dev) - - RNWWebStorage (0.3.0): + - RNWWebStorage (0.3.1): - DoubleConversion - glog - RCT-Folly (= 2024.01.01.00) @@ -1786,7 +1786,7 @@ SPEC CHECKSUMS: ReactTestApp-DevSupport: 74676edd899013becce4eaecc5eabba1fc51e26e ReactTestApp-MSAL: a7ac8e821fce95fc4e27cd91cf2a931b277ffef3 ReactTestApp-Resources: a4cc1f968cd26bdbd18ee0bfbd0ab8dd0ea90101 - RNWWebStorage: 39af6c7aa24a9360372280338e0f5900630779a2 + RNWWebStorage: 16ea67c1467a5b91c2859c490bec800f001adf78 RNXAuth: 7716515bc74149d226d798138f2d76af9f34427f SocketRocket: abac6f5de4d4d62d24e11868d7a2f427e0ef940d Yoga: 4ef80d96a5534f0e01b3055f17d1e19a9fc61b63 From 7415bde3dc48d49a271d997635955718b4b5c02e Mon Sep 17 00:00:00 2001 From: Tommy Nguyen <4123478+tido64@users.noreply.github.com> Date: Tue, 8 Oct 2024 10:21:02 +0200 Subject: [PATCH 2/2] fixup! fix(metro-config): ignore files generated by Xcode during build --- packages/metro-config/src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/metro-config/src/index.js b/packages/metro-config/src/index.js index 6d9ac6f2c..71a88452a 100644 --- a/packages/metro-config/src/index.js +++ b/packages/metro-config/src/index.js @@ -248,10 +248,10 @@ function exclusionList(additionalExclusions = [], projectRoot = process.cwd()) { ...UNIQUE_MODULES.map((name) => excludeExtraCopiesOf(name, projectRoot)), // Ignore temporary directories generated by build tools - /.*\/(\.vs|\.vscode|Pods)\/.*/, + /.*\/(.*?\.bundle|.*?\.noindex|\.vs|\.vscode|Pods)\/.*/, // Ignore unrelated file changes - /.*\.(a|apk|appx|bak|bat|binlog|bundle|c|cache|cc|class|cpp|cs|dex|dll|env|exe|flat|gz|h|hpp|jar|lock|m|mm|modulemap|noindex|o|obj|pch|pdb|plist|pbxproj|sh|so|tflite|tgz|tlog|xcconfig|xcscheme|xcworkspacedata|zip)$/, + /.*\.(a|apk|appx|bak|bat|binlog|c|cache|cc|class|cpp|cs|dex|dll|env|exe|flat|gz|h|hpp|jar|lock|m|mm|modulemap|o|obj|pch|pdb|plist|pbxproj|sh|so|tflite|tgz|tlog|xcconfig|xcscheme|xcworkspacedata|zip)$/, ...additionalExclusions, ]);