mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-12 01:23:52 +00:00
yarn: add patch for react-dev-utils
https://github.com/facebook/create-react-app/pull/11878
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
diff --git a/openBrowser.js b/openBrowser.js
|
||||
index babdc9b854ed1c8ba0d2d08d10b4c6b1d91c3c34..0776cb10c027f9ca5f162060944c2a18618660d0 100644
|
||||
--- a/openBrowser.js
|
||||
+++ b/openBrowser.js
|
||||
@@ -115,15 +115,12 @@ function startBrowserProcess(browser, url, args) {
|
||||
browser = undefined;
|
||||
}
|
||||
|
||||
- // If there are arguments, they must be passed as array with the browser
|
||||
- if (typeof browser === 'string' && args.length > 0) {
|
||||
- browser = [browser].concat(args);
|
||||
- }
|
||||
-
|
||||
// Fallback to open
|
||||
// (It will always open new tab)
|
||||
try {
|
||||
- var options = { app: browser, wait: false, url: true };
|
||||
+ var options = {
|
||||
+ app: { name: browser, arguments: args },
|
||||
+ };
|
||||
open(url, options).catch(() => {}); // Prevent `unhandledRejection` error.
|
||||
return true;
|
||||
} catch (err) {
|
||||
+2
-1
@@ -153,7 +153,8 @@
|
||||
"packageManager": "yarn@3.2.0",
|
||||
"resolutions": {
|
||||
"mq-polyfill@1.1.8": "patch:mq-polyfill@npm:1.1.8#.yarn/patches/mq-polyfill-npm-1.1.8-62fe162439.patch",
|
||||
"react-error-overlay": "6.0.9"
|
||||
"react-error-overlay": "6.0.9",
|
||||
"react-dev-utils@^12.0.1": "patch:react-dev-utils@npm:12.0.1#.yarn/patches/react-dev-utils-npm-12.0.1-83ba06e3ee.patch"
|
||||
},
|
||||
"jest": {
|
||||
"roots": [
|
||||
|
||||
@@ -11672,7 +11672,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"react-dev-utils@npm:^12.0.1":
|
||||
"react-dev-utils@npm:12.0.1":
|
||||
version: 12.0.1
|
||||
resolution: "react-dev-utils@npm:12.0.1"
|
||||
dependencies:
|
||||
@@ -11704,6 +11704,38 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"react-dev-utils@patch:react-dev-utils@npm:12.0.1#.yarn/patches/react-dev-utils-npm-12.0.1-83ba06e3ee.patch::locator=%40pybricks%2Fpybricks-code%40workspace%3A.":
|
||||
version: 12.0.1
|
||||
resolution: "react-dev-utils@patch:react-dev-utils@npm%3A12.0.1#.yarn/patches/react-dev-utils-npm-12.0.1-83ba06e3ee.patch::version=12.0.1&hash=2f4baa&locator=%40pybricks%2Fpybricks-code%40workspace%3A."
|
||||
dependencies:
|
||||
"@babel/code-frame": ^7.16.0
|
||||
address: ^1.1.2
|
||||
browserslist: ^4.18.1
|
||||
chalk: ^4.1.2
|
||||
cross-spawn: ^7.0.3
|
||||
detect-port-alt: ^1.1.6
|
||||
escape-string-regexp: ^4.0.0
|
||||
filesize: ^8.0.6
|
||||
find-up: ^5.0.0
|
||||
fork-ts-checker-webpack-plugin: ^6.5.0
|
||||
global-modules: ^2.0.0
|
||||
globby: ^11.0.4
|
||||
gzip-size: ^6.0.0
|
||||
immer: ^9.0.7
|
||||
is-root: ^2.1.0
|
||||
loader-utils: ^3.2.0
|
||||
open: ^8.4.0
|
||||
pkg-up: ^3.1.0
|
||||
prompts: ^2.4.2
|
||||
react-error-overlay: ^6.0.11
|
||||
recursive-readdir: ^2.2.2
|
||||
shell-quote: ^1.7.3
|
||||
strip-ansi: ^6.0.1
|
||||
text-table: ^0.2.0
|
||||
checksum: a07321ebe5529fd8e22d664b481f5fe0e1a84903360e52566bd9830eccbefa747a4050844d1a0607f1efcf002b26df7bb1223e20e131a83852483de536fbf65b
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"react-dom@npm:^16.13.1":
|
||||
version: 16.14.0
|
||||
resolution: "react-dom@npm:16.14.0"
|
||||
|
||||
Reference in New Issue
Block a user