From d9d49c8d67510e659cf9b3b0a5cc12b434d9b67e Mon Sep 17 00:00:00 2001 From: David Dal Busco Date: Thu, 15 Feb 2024 14:01:43 +0100 Subject: [PATCH] fix: write config with orbiter --- src/configs/juno.config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/configs/juno.config.ts b/src/configs/juno.config.ts index 926da3c..debac21 100644 --- a/src/configs/juno.config.ts +++ b/src/configs/juno.config.ts @@ -1,5 +1,5 @@ import type {JunoConfig, JunoConfigFnOrObject, SatelliteConfig} from '@junobuild/config'; -import {isNullish} from '@junobuild/utils'; +import {nonNullish} from '@junobuild/utils'; import {existsSync} from 'node:fs'; import {access, readFile, writeFile} from 'node:fs/promises'; import {join} from 'node:path'; @@ -114,7 +114,7 @@ const writeJunoConfig = async ({ } = config; const template = await readTemplateFile({ - template: isNullish(orbiter) + template: nonNullish(orbiter) ? `${JUNO_CONFIG_FILENAME}.${configType}` : `${TEMPLATE_SATELLITE_CONFIG_FILENAME}.${configType}`, sourceFolder: TEMPLATE_INIT_PATH