Skip to content

Commit 78aff3f

Browse files
Peter Wangmeta-codesync[bot]
authored andcommitted
remove the hardcoded mse_min_version
Summary: Once a new project is created and we haven't updated to the requested version, a message is displayed. However, the minimum version is hardcoded. Differential Revision: D94668264 fbshipit-source-id: 2d30881496bea880ce53f1b51ade2fbdde94b0c2
1 parent 9e95928 commit 78aff3f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/create/src/prompts.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
import prompts from 'prompts';
99
import { installMSE } from './mse-installer.js';
10+
import { MSE_MIN_VERSION } from './mse-config.js';
1011
import { MSEInstallResult, PromptResult, TriState, VariantId, AiTool } from './types.js';
1112

1213
export async function promptFlow(nameArg?: string): Promise<PromptResult> {
@@ -297,7 +298,7 @@ export async function promptFlow(nameArg?: string): Promise<PromptResult> {
297298
prerequisites.push({
298299
level: 'important',
299300
message:
300-
'Required: Install Meta Spatial Editor (v9 or later). The build pipeline depends on its CLI tool; without it, build or dev WILL FAIL. Download: https://developers.meta.com/horizon/documentation/spatial-sdk/spatial-editor-overview',
301+
`Required: Install Meta Spatial Editor (v${MSE_MIN_VERSION} or later). The build pipeline depends on its CLI tool; without it, build or dev WILL FAIL. Download: https://developers.meta.com/horizon/documentation/spatial-sdk/spatial-editor-overview`,
301302
});
302303
}
303304
}

0 commit comments

Comments
 (0)