Skip to content

Commit aa7875d

Browse files
authored
chore: Replace sudo-prompt with @expo/sudo-prompt fork (#4)
* Add `@vscode/sudo-prompt` * Swap sudo-prompt for @vscode/sudo-prompt * Remove type declaration * Replace `@vscode/sudo-prompt` with `@expo/sudo-prompt` * Update package.json & lockfile
1 parent 758c795 commit aa7875d

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
"typescript": "^5.1.3"
3838
},
3939
"dependencies": {
40+
"@expo/sudo-prompt": "^9.3.1",
4041
"application-config-path": "^0.1.0",
4142
"command-exists": "^1.2.4",
4243
"debug": "^3.1.0",
@@ -46,7 +47,6 @@
4647
"lodash": "^4.17.21",
4748
"mkdirp": "^0.5.1",
4849
"password-prompt": "^1.0.4",
49-
"sudo-prompt": "^8.2.0",
5050
"tmp": "^0.0.33",
5151
"tslib": "^2.4.0"
5252
}

src/types.d.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
declare module "command-exists";
22
declare module "eol";
3-
declare module "sudo-prompt";
43
declare module "password-prompt";
54
declare module "application-config-path" {
65
export = (appName: string) => string;
7-
}
6+
}

src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { execFileSync, ExecFileSyncOptions } from 'child_process';
22
import tmp from 'tmp';
33
import createDebug from 'debug';
44
import path from 'path';
5-
import sudoPrompt from 'sudo-prompt';
5+
import sudoPrompt from '@expo/sudo-prompt';
66

77
import { configPath } from './constants';
88

yarn.lock

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@
2323
chalk "^2.0.0"
2424
js-tokens "^4.0.0"
2525

26+
"@expo/sudo-prompt@^9.3.1":
27+
version "9.3.2"
28+
resolved "https://registry.yarnpkg.com/@expo/sudo-prompt/-/sudo-prompt-9.3.2.tgz#0fd2813402a42988e49145cab220e25bea74b308"
29+
integrity sha512-HHQigo3rQWKMDzYDLkubN5WQOYXJJE2eNqIQC2axC2iO3mHdwnIR7FgZVvHWtBwAdzBgAP0ECp8KqS8TiMKvgw==
30+
2631
"@isaacs/cliui@^8.0.2":
2732
version "8.0.2"
2833
resolved "https://registry.yarnpkg.com/@isaacs/cliui/-/cliui-8.0.2.tgz#b37667b7bc181c168782259bab42474fbf52b550"
@@ -1659,10 +1664,6 @@ strip-indent@^3.0.0:
16591664
dependencies:
16601665
min-indent "^1.0.0"
16611666

1662-
sudo-prompt@^8.2.0:
1663-
version "8.2.0"
1664-
resolved "https://registry.yarnpkg.com/sudo-prompt/-/sudo-prompt-8.2.0.tgz#bcd4aaacdb367b77b4bffcce1c658c2b1dd327f3"
1665-
16661667
supports-color@^5.3.0:
16671668
version "5.5.0"
16681669
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f"

0 commit comments

Comments
 (0)