diff --git a/CHANGELOG.md b/CHANGELOG.md index 8c06a83..246d2c0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +# Code Connect v1.2.4 (5th December 2024) + +## Fixed +- Fix issue with CLI not working on some cases in 1.2.3 + # Code Connect v1.2.3 ## Features diff --git a/cli/package.json b/cli/package.json index aa6fa7f..16b4b17 100644 --- a/cli/package.json +++ b/cli/package.json @@ -1,6 +1,6 @@ { "name": "@figma/code-connect", - "version": "1.2.3", + "version": "1.2.4", "description": "A tool for connecting your design system components in code with your design system in Figma", "keywords": [], "author": "Figma", diff --git a/cli/src/connect/wizard/run_wizard.ts b/cli/src/connect/wizard/run_wizard.ts index bb5333c..d3e9aa8 100644 --- a/cli/src/connect/wizard/run_wizard.ts +++ b/cli/src/connect/wizard/run_wizard.ts @@ -491,6 +491,7 @@ async function createCodeConnectFiles({ embeddingsFetchSpinner.stop() } + let allFilesCreated = true for (const [nodeId, filepathExport] of Object.entries(linkedNodeIdsToFilepathExports)) { const urlObj = new URL(figmaFileUrl) urlObj.search = '' @@ -542,9 +543,11 @@ async function createCodeConnectFiles({ result.createdFiles.forEach((file) => { logger.info(success(`Created ${file.filePath}`)) }) + } else { + allFilesCreated = false } - return !hasErrors } + return allFilesCreated } export function convertRemoteFileUrlToRelativePath({