Skip to content

Commit

Permalink
Update to v1.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
figma-bot committed Dec 5, 2024
1 parent 3d2068b commit 0ea425b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion cli/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
5 changes: 4 additions & 1 deletion cli/src/connect/wizard/run_wizard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ''
Expand Down Expand Up @@ -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({
Expand Down

0 comments on commit 0ea425b

Please sign in to comment.