From daccd77d53d23f7c1a1c1935f98fef08b460b139 Mon Sep 17 00:00:00 2001 From: Matt Chowning Date: Fri, 11 Feb 2022 11:55:32 -0500 Subject: [PATCH 1/3] Update reference to metro cache --- packages/react-native-editor/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-native-editor/package.json b/packages/react-native-editor/package.json index c6bbb5a7111d88..d07357e2c37278 100644 --- a/packages/react-native-editor/package.json +++ b/packages/react-native-editor/package.json @@ -126,7 +126,7 @@ "clean:haste": "rm -rf /tmp/haste-map-react-native-packager-*", "clean:install": "npm run clean; npm install", "clean:jest": "jest --clearCache --config ../../test/native/jest.config.js; rm -rf $TMPDIR/jest_*", - "clean:metro": "rm -rf $TMPDIR/metro-cache-*;", + "clean:metro": "rm -rf $TMPDIR/metro-cache/", "clean:react": "rm -rf $TMPDIR/react-*", "clean:watchman": "command -v watchman >/dev/null 2>&1 && watchman watch-del-all; true", "clean:babel-cache": "rm -rf ../../node_modules/.cache/babel-loader/*", From 0f9aa1b4d09a9d1668a8c04746655c3d17dfd844 Mon Sep 17 00:00:00 2001 From: Matt Chowning Date: Fri, 11 Feb 2022 11:59:57 -0500 Subject: [PATCH 2/3] Update path to haste cache --- packages/react-native-editor/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-native-editor/package.json b/packages/react-native-editor/package.json index d07357e2c37278..e02d7deb7a2385 100644 --- a/packages/react-native-editor/package.json +++ b/packages/react-native-editor/package.json @@ -123,7 +123,7 @@ "clean:runtime": "npm run clean:haste; npm run clean:react; npm run clean:metro; npm run clean:jest; npm run clean:watchman; npm run clean:babel-cache", "clean:build-artifacts": "rm -rf ./ios/build && rm -rf ./ios/Pods", "clean:aztec": "cd ../react-native-aztec && npm run clean", - "clean:haste": "rm -rf /tmp/haste-map-react-native-packager-*", + "clean:haste": "rm -rf $TMPDIR/haste-map-metro-*", "clean:install": "npm run clean; npm install", "clean:jest": "jest --clearCache --config ../../test/native/jest.config.js; rm -rf $TMPDIR/jest_*", "clean:metro": "rm -rf $TMPDIR/metro-cache/", From f7576701b8db535db29e903959a695e847aadf2e Mon Sep 17 00:00:00 2001 From: Matt Chowning Date: Mon, 14 Feb 2022 12:42:58 -0500 Subject: [PATCH 3/3] Remove clean:react command These files don't seem to get created anymore, so we don't need to clean them either --- packages/react-native-editor/package.json | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/react-native-editor/package.json b/packages/react-native-editor/package.json index e02d7deb7a2385..d6d2830b913ec2 100644 --- a/packages/react-native-editor/package.json +++ b/packages/react-native-editor/package.json @@ -119,15 +119,14 @@ "test:e2e:build-wda": "xcodebuild -project ../../node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination 'platform=iOS Simulator,name=iPhone 11' -derivedDataPath ios/build/WDA", "test:e2e:ios:local": "npm run test:e2e:bundle:ios && npm run test:e2e:build-app:ios && npm run test:e2e:build-wda && TEST_RN_PLATFORM=ios npm run device-tests:local", "build:gutenberg": "cd gutenberg && npm ci && npm run build", - "clean": "npm run clean:build-artifacts; npm run clean:aztec; npm run clean:haste; npm run clean:jest; npm run clean:metro; npm run clean:react; npm run clean:watchman", - "clean:runtime": "npm run clean:haste; npm run clean:react; npm run clean:metro; npm run clean:jest; npm run clean:watchman; npm run clean:babel-cache", + "clean": "npm run clean:build-artifacts; npm run clean:aztec; npm run clean:haste; npm run clean:jest; npm run clean:metro; npm run clean:watchman", + "clean:runtime": "npm run clean:haste; npm run clean:metro; npm run clean:jest; npm run clean:watchman; npm run clean:babel-cache", "clean:build-artifacts": "rm -rf ./ios/build && rm -rf ./ios/Pods", "clean:aztec": "cd ../react-native-aztec && npm run clean", "clean:haste": "rm -rf $TMPDIR/haste-map-metro-*", "clean:install": "npm run clean; npm install", "clean:jest": "jest --clearCache --config ../../test/native/jest.config.js; rm -rf $TMPDIR/jest_*", "clean:metro": "rm -rf $TMPDIR/metro-cache/", - "clean:react": "rm -rf $TMPDIR/react-*", "clean:watchman": "command -v watchman >/dev/null 2>&1 && watchman watch-del-all; true", "clean:babel-cache": "rm -rf ../../node_modules/.cache/babel-loader/*", "clean:i18n-cache": "rm -rf ./i18n-cache/data/*.json && rm -f ./i18n-cache/index.native.js"