Skip to content

Commit bc4caf4

Browse files
author
figma-bot
committed
Code Connect v1.1.0
1 parent 9b9f34b commit bc4caf4

File tree

6 files changed

+13
-5
lines changed

6 files changed

+13
-5
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ bundle/
1212
bundle-cli
1313
webpack-dist
1414
bundle-npm
15+
bundle-local

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# Code Connect v1.1.2 (10th September 2024)
2+
3+
## Fixed
4+
5+
### React
6+
- Fixed an issue with `client` export used by the icon script (fixes https://github.com/figma/code-connect/issues/156)
7+
18
# Code Connect v1.1.1 (10th September 2024)
29

310
## Fixed

cli/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@figma/code-connect",
3-
"version": "1.1.1",
3+
"version": "1.1.2",
44
"description": "A tool for connecting your design system components in code with your design system in Figma",
55
"keywords": [],
66
"author": "Figma",
@@ -47,7 +47,7 @@
4747
"test:swift": "npm run test -- --runInBand --testPathPattern=e2e_parse_command_swift.test.ts --testPathPattern=e2e_wizard_swift.test.ts --testPathPattern=e2e_parse_command_swift_xcodeproj.test.ts",
4848
"test:non-mac": "npm run test -- --testPathIgnorePatterns=e2e_parse_command_swift.test.ts --testPathIgnorePatterns=e2e_wizard_swift.test.ts --testPathIgnorePatterns=e2e_parse_command_swift_xcodeproj.test.ts",
4949
"bundle": "npm run build && npm pack && mkdir -p bundle && mv figma-code-connect*.tgz bundle",
50-
"bundle:local": "cp package.json package.json.bak && grep -v 'workspace:' package.json > package.json && npm run build && npm pack && mkdir -p bundle-local && mv figma-code-connect*.tgz bundle-local; mv package.json.bak package.json",
50+
"bundle:local": "cp package.json package.json.bak && grep -v 'workspace:' package.json > package.json.tmp && mv package.json.tmp package.json && npm run build && npm pack && mkdir -p bundle-local && mv figma-code-connect*.tgz bundle-local; mv package.json.bak package.json",
5151
"bundle:npm-readme:prepare": "mv README.md ../cli-README.md.bak && cp ../README.md . && npx ts-node ../scripts/make_readme_links_absolute.ts",
5252
"bundle:npm-readme:restore": "mv ../cli-README.md.bak README.md",
5353
"bundle:npm": "npm run build && npm run bundle:npm-readme:prepare && npm pack && mkdir -p bundle-npm && mv figma-code-connect*.tgz bundle-npm; npm run bundle:npm-readme:restore",

cli/scripts/import-icons-size-prop.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// change to: "import { client } from '@figma/code-connect'"
2-
import { client } from '../src'
2+
import { client } from '../src/react/index_react'
33
import fs from 'fs'
44
import path from 'path'
55

cli/scripts/import-icons.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// change to: "import { client } from '@figma/code-connect'"
2-
import { client } from '../src'
2+
import { client } from '../src/react/index_react'
33
import fs from 'fs'
44

55
async function generateIcons() {

cli/src/connect/index_common.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { FigmaConnectClient } from '../client/figma_client'
1515
export function getClient() {
1616
let client: FigmaConnectClient = {} as any
1717
if (typeof process !== 'undefined' && process.versions && process.versions.node) {
18-
client = require('./client/external')
18+
client = require('../client/external')
1919
}
2020
return client
2121
}

0 commit comments

Comments
 (0)