Skip to content

Commit cf9b954

Browse files
committed
chore: replace sudo-prompt with @vscode/sudo-prompt
1 parent 35de7ac commit cf9b954

File tree

3 files changed

+35
-10
lines changed

3 files changed

+35
-10
lines changed

packages/cli-tools/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"prompts": "^2.4.2",
1818
"semver": "^7.5.2",
1919
"shell-quote": "^1.7.3",
20-
"sudo-prompt": "^9.0.0"
20+
"@vscode/sudo-prompt": "^9.0.0"
2121
},
2222
"devDependencies": {
2323
"@react-native-community/cli-types": "16.0.2",

packages/cli-tools/src/runSudo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import sudo from 'sudo-prompt';
1+
import sudo from '@vscode/sudo-prompt';
22

33
export default function runSudo(command: string): Promise<void> {
44
return new Promise((resolve, reject) => {

yarn.lock

Lines changed: 33 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3260,6 +3260,11 @@
32603260
resolved "https://registry.yarnpkg.com/@ungap/structured-clone/-/structured-clone-1.2.0.tgz#756641adb587851b5ccb3e095daf27ae581c8406"
32613261
integrity sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==
32623262

3263+
"@vscode/sudo-prompt@^9.0.0":
3264+
version "9.3.1"
3265+
resolved "https://registry.yarnpkg.com/@vscode/sudo-prompt/-/sudo-prompt-9.3.1.tgz#c562334bc6647733649fd42afc96c0eea8de3b65"
3266+
integrity sha512-9ORTwwS74VaTn38tNbQhsA5U44zkJfcb0BdTSyyG6frP4e8KMtHuTXYmwefe5dpL8XB1aGSIVTaLjD3BbWb5iA==
3267+
32633268
"@xmldom/xmldom@^0.8.8":
32643269
version "0.8.10"
32653270
resolved "https://registry.yarnpkg.com/@xmldom/xmldom/-/xmldom-0.8.10.tgz#a1337ca426aa61cef9fe15b5b28e340a72f6fa99"
@@ -10750,7 +10755,16 @@ string-natural-compare@^3.0.1:
1075010755
resolved "https://registry.yarnpkg.com/string-natural-compare/-/string-natural-compare-3.0.1.tgz#7a42d58474454963759e8e8b7ae63d71c1e7fdf4"
1075110756
integrity sha512-n3sPwynL1nwKi3WJ6AIsClwBMa0zTi54fn2oLU6ndfTSIO05xaznjSf15PcBZU6FNWbmN5Q6cxT4V5hGvB4taw==
1075210757

10753-
"string-width-cjs@npm:string-width@^4.2.0", "string-width@^1.0.2 || 2 || 3 || 4", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
10758+
"string-width-cjs@npm:string-width@^4.2.0":
10759+
version "4.2.3"
10760+
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
10761+
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
10762+
dependencies:
10763+
emoji-regex "^8.0.0"
10764+
is-fullwidth-code-point "^3.0.0"
10765+
strip-ansi "^6.0.1"
10766+
10767+
"string-width@^1.0.2 || 2 || 3 || 4", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
1075410768
version "4.2.3"
1075510769
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
1075610770
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
@@ -10845,7 +10859,7 @@ string_decoder@~1.1.1:
1084510859
dependencies:
1084610860
safe-buffer "~5.1.0"
1084710861

10848-
"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1:
10862+
"strip-ansi-cjs@npm:strip-ansi@^6.0.1":
1084910863
version "6.0.1"
1085010864
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
1085110865
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
@@ -10866,6 +10880,13 @@ strip-ansi@^5.0.0, strip-ansi@^5.2.0:
1086610880
dependencies:
1086710881
ansi-regex "^4.1.0"
1086810882

10883+
strip-ansi@^6.0.0, strip-ansi@^6.0.1:
10884+
version "6.0.1"
10885+
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
10886+
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
10887+
dependencies:
10888+
ansi-regex "^5.0.1"
10889+
1086910890
strip-ansi@^7.0.1:
1087010891
version "7.0.1"
1087110892
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-7.0.1.tgz#61740a08ce36b61e50e65653f07060d000975fb2"
@@ -10924,11 +10945,6 @@ strong-log-transformer@2.1.0, strong-log-transformer@^2.1.0:
1092410945
minimist "^1.2.0"
1092510946
through "^2.3.4"
1092610947

10927-
sudo-prompt@^9.0.0:
10928-
version "9.1.1"
10929-
resolved "https://registry.yarnpkg.com/sudo-prompt/-/sudo-prompt-9.1.1.tgz#73853d729770392caec029e2470db9c221754db0"
10930-
integrity sha512-es33J1g2HjMpyAhz8lOR+ICmXXAqTuKbuXuUWLhOLew20oN9oUCgCJx615U/v7aioZg7IX5lIh9x34vwneu4pA==
10931-
1093210948
supports-color@^5.3.0:
1093310949
version "5.5.0"
1093410950
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f"
@@ -11744,7 +11760,7 @@ wordwrap@^1.0.0:
1174411760
resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb"
1174511761
integrity sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus=
1174611762

11747-
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0:
11763+
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0":
1174811764
version "7.0.0"
1174911765
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
1175011766
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
@@ -11762,6 +11778,15 @@ wrap-ansi@^6.0.1, wrap-ansi@^6.2.0:
1176211778
string-width "^4.1.0"
1176311779
strip-ansi "^6.0.0"
1176411780

11781+
wrap-ansi@^7.0.0:
11782+
version "7.0.0"
11783+
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
11784+
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
11785+
dependencies:
11786+
ansi-styles "^4.0.0"
11787+
string-width "^4.1.0"
11788+
strip-ansi "^6.0.0"
11789+
1176511790
wrap-ansi@^8.1.0:
1176611791
version "8.1.0"
1176711792
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz#56dc22368ee570face1b49819975d9b9a5ead214"

0 commit comments

Comments
 (0)