Skip to content

Commit e73dd13

Browse files
manzoorwanijkciampo
authored andcommitted
Build: Remove patch-package (WordPress#83982)
Co-authored-by: manzoorwanijk <manzoorwanijk@git.wordpress.org> Co-authored-by: ciampo <mciampini@git.wordpress.org>
1 parent a6c63e5 commit e73dd13

5 files changed

Lines changed: 2 additions & 180 deletions

File tree

‎.github/setup-node/action.yml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ runs:
6767
path: C:\npm\cache\_logs
6868

6969
# On cache hit, we run the post-install script to match the native `npm ci` behavior.
70-
# An example of this is to patch `node_modules` using patch-package.
7170
- name: Post-install
7271
if: ${{ inputs.cache == 'true' && steps.cache-node_modules.outputs.cache-hit == 'true' }}
7372
run: |

‎.github/setup-npm/action.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@ runs:
4949
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
5050
with:
5151
path: ${{ steps.npm.outputs.cache-dir }}
52-
key: npm-cache-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles(format('{0}package-lock.json', steps.npm.outputs.path-prefix), format('{0}patches/**', steps.npm.outputs.path-prefix)) }}
52+
key: npm-cache-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles(format('{0}package-lock.json', steps.npm.outputs.path-prefix)) }}
5353
restore-keys: |
5454
npm-cache-${{ runner.os }}-${{ runner.arch }}-

‎package-lock.json‎

Lines changed: 0 additions & 165 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@
9797
"husky": "^7.0.0",
9898
"lerna": "^10.0.1",
9999
"lint-staged": "^16.4.0",
100-
"patch-package": "^8.0.0",
101100
"syncpack": "^15.3.1",
102101
"wait-on": "^8.0.1"
103102
},
@@ -162,7 +161,7 @@
162161
"other:cherry-pick": "npm run --workspace @wordpress/release-tools cherry-pick --",
163162
"other:generate-php-sync-issue": "npm run --workspace @wordpress/release-tools generate-php-sync-issue --",
164163
"other:update-packages:php": "wp-env run --env-cwd='wp-content/plugins/gutenberg' cli composer update --no-interaction",
165-
"postinstall": "patch-package && npm run agents:setup -- --if-safe",
164+
"postinstall": "npm run agents:setup -- --if-safe",
166165
"prepare": "husky install",
167166
"prepublishOnly": "npm run build",
168167
"rtc:http": "node ./test/e2e/bin/rtc-dev.mjs --mode=http",

‎patches/README.md‎

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)