From ce7b9e1df74b73d04ee64d789bf647530caa130b Mon Sep 17 00:00:00 2001 From: Lisi Linhart Date: Fri, 15 Dec 2023 11:42:22 +0100 Subject: [PATCH] fix: build issues --- src/commands/default.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands/default.ts b/src/commands/default.ts index c1e13c9..b04c3ef 100644 --- a/src/commands/default.ts +++ b/src/commands/default.ts @@ -12,7 +12,7 @@ import prompts from '../lib/prompts' import frameworks from '../lib/frameworks' import clone from '../lib/clone' import replace from '../lib/replace' -import regions, {Region} from '../lib/regions' +import regions from '../lib/regions' import {addCustomParentFramework} from '../lib/helper-replace' export default class CreateStoryblokAppCommand extends Command { @@ -89,11 +89,11 @@ export default class CreateStoryblokAppCommand extends Command { // region const spaceRegion: string = flags?.region || region // EU , US or CN - let selectedRegion: Region | undefined + let selectedRegion = regions.EU const possibleRegionValues = Object.values(regions).map(r => r.value) const isValidRegion = possibleRegionValues.includes(spaceRegion) if (isValidRegion) { - selectedRegion = Object.values(regions).find(r => r.value === spaceRegion) + selectedRegion = Object.values(regions).find(r => r.value === spaceRegion) ?? regions.EU } else { throw new Error(`Please provide a valid region via '-r' parameter : ${possibleRegionValues.join(', ')}`) }