Skip to content

Commit 9491e22

Browse files
authored
Use perl instead of replace for dependency updates (#103216)
* Use `sed` instead of `replace` for dependency updates * Use perl instead of sed for Linux compatibility
1 parent 525c34b commit 9491e22

File tree

2 files changed

+7
-220
lines changed

2 files changed

+7
-220
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
"translate:calypso": "wp-babel-makepot './{client,packages,apps}/**/*.{js,jsx,ts,tsx}' --ignore '**/node_modules/**,**/test/**,**/*.d.ts' --base './' --dir './build/strings' --output './public/calypso-strings.pot'",
139139
"tsc": "NODE_OPTIONS='--max-old-space-size=4096' tsc",
140140
"typecheck": "yarn run tsc --project client",
141-
"update-deps": "rm -rf yarn.lock && yarn run distclean && yarn install && replace --silent 'http://' 'https://' . --recursive --include='yarn.lock' && touch -m node_modules",
141+
"update-deps": "rm -rf yarn.lock && yarn run distclean && yarn install && perl -pi -e s,http://,https://,g yarn.lock && touch -m node_modules",
142142
"vscode:link": "node bin/set-up-vs-code.js",
143143
"vscode:unlink": "node bin/set-up-vs-code.js --unlink",
144144
"whybundled": "NODE_ENV=production CALYPSO_ENV=production EMIT_STATS=withreasons CONCATENATE_MODULES=false yarn run build-client && whybundled client/stats.json",
@@ -305,7 +305,6 @@
305305
"react-refresh": "^0.17.0",
306306
"readline-sync": "^1.4.10",
307307
"recursive-copy": "^2.0.14",
308-
"replace": "^1.1.5",
309308
"resize-observer-polyfill": "^1.5.1",
310309
"sass": "1.54.0",
311310
"sass-loader": "^13.3.3",

0 commit comments

Comments
 (0)