Skip to content

Commit 746390e

Browse files
committed
feat: update
1 parent 45fe738 commit 746390e

File tree

1 file changed

+8
-15
lines changed

1 file changed

+8
-15
lines changed

index.ts

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,6 @@ const FEATURE_OPTIONS = [
7777
value: 'prettier',
7878
label: language.needsPrettier.message,
7979
},
80-
{
81-
value: 'experimental-features',
82-
label: language.needsExperimental.message,
83-
},
8480
] as const
8581
const EXPERIMENTAL_FEATURE_OPTIONS = [
8682
{
@@ -338,17 +334,14 @@ async function init() {
338334
}),
339335
)
340336
}
341-
342-
if (result.features.includes('experimental-features')) {
343-
result.experimentFeatures = await unwrapPrompt(
344-
multiselect({
345-
message: `${language.needsExperimentalFeatures.message} ${dim(language.needsExperimentalFeatures.hint)}`,
346-
// @ts-expect-error @clack/prompt's type doesn't support readonly array yet
347-
options: EXPERIMENTAL_FEATURE_OPTIONS,
348-
required: false,
349-
}),
350-
)
351-
}
337+
result.experimentFeatures = await unwrapPrompt(
338+
multiselect({
339+
message: `${language.needsExperimentalFeatures.message} ${dim(language.needsExperimentalFeatures.hint)}`,
340+
// @ts-expect-error @clack/prompt's type doesn't support readonly array yet
341+
options: EXPERIMENTAL_FEATURE_OPTIONS,
342+
required: false,
343+
}),
344+
)
352345
}
353346

354347
const { features, experimentFeatures } = result

0 commit comments

Comments
 (0)