From b16971c9b4d6fb96129e11ca24fd6dc6a2c02aff Mon Sep 17 00:00:00 2001 From: Une Sofie Kinn Ekroll Date: Mon, 4 Nov 2024 12:20:35 +0100 Subject: [PATCH] fix(cli): creation of entry css files was skipped when run without --preview option (#2725) --- packages/cli/src/tokens/build.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/src/tokens/build.ts b/packages/cli/src/tokens/build.ts index ba9c32034e..0f9cfe437a 100644 --- a/packages/cli/src/tokens/build.ts +++ b/packages/cli/src/tokens/build.ts @@ -94,7 +94,7 @@ export async function buildTokens(options: Options): Promise { try { for (const [key, { buildConfig, sdConfigs }] of R.toPairs(buildAndSdConfigs)) { if (!(buildConfig.enabled?.() ?? true)) { - return; + continue; } if (sdConfigs.length > 0) { console.log(`\n🍱 Building ${chalk.green(buildConfig.name ?? key)}`);