diff --git a/README.md b/README.md index 2fabcabb7..e1fc5e040 100644 --- a/README.md +++ b/README.md @@ -740,9 +740,9 @@ To debug Expo applications the extension requires additional dependencies, such ```json { "react-native.expo.dependencies": { - "xdl": "59.1.0", - "@expo/metro-config": "0.1.72", - "@expo/ngrok": "4.1.0" + "xdl": "59.2.0", + "@expo/metro-config": "0.2.0", + "@expo/ngrok": "^4.1.0" } } ``` diff --git a/package.json b/package.json index 35af25ca9..dcdf17d53 100644 --- a/package.json +++ b/package.json @@ -788,9 +788,9 @@ "type": "string" }, "default": { - "xdl": "59.1.0", - "@expo/metro-config": "0.1.84", - "@expo/ngrok": "4.1.0" + "xdl": "59.2.0", + "@expo/metro-config": "0.2.0", + "@expo/ngrok": "^4.1.0" }, "scope": "resource" }, diff --git a/src/extension/exponent/xdlInterface.ts b/src/extension/exponent/xdlInterface.ts index 175779fe6..deecafc63 100644 --- a/src/extension/exponent/xdlInterface.ts +++ b/src/extension/exponent/xdlInterface.ts @@ -94,11 +94,8 @@ export async function publish( return (await getXDLPackage()).Project.publishAsync(projectRoot, options); } -export async function setOptions( - projectRoot: string, - options?: XDLPackage.IOptions, -): Promise { - await (await getXDLPackage()).Project.setOptionsAsync(projectRoot, options); +export async function setOptions(projectRoot: string, options: XDLPackage.IOptions): Promise { + await (await getXDLPackage()).ProjectSettings.setPackagerInfoAsync(projectRoot, options); } export async function startExponentServer(projectRoot: string): Promise { diff --git a/src/typings/exponent/xdl.d.ts b/src/typings/exponent/xdl.d.ts index cb72cac6f..c2d9a17ce 100644 --- a/src/typings/exponent/xdl.d.ts +++ b/src/typings/exponent/xdl.d.ts @@ -89,7 +89,10 @@ declare module xdl { stopReactNativeServerAsync(projectRoot: string): Promise; startTunnelsAsync(projectRoot: string): Promise; stopTunnelsAsync(projectRoot: string): Promise; - setOptionsAsync(projectRoot: string, options?: IOptions): Promise; + } + + var ProjectSettings: { + setPackagerInfoAsync(projectRoot: string, json: Partial): Promise; } var UrlUtils: {