Skip to content

Commit

Permalink
Code Connect v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
figma-bot committed Sep 10, 2024
1 parent 9b9f34b commit bc4caf4
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ bundle/
bundle-cli
webpack-dist
bundle-npm
bundle-local
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# Code Connect v1.1.2 (10th September 2024)

## Fixed

### React
- Fixed an issue with `client` export used by the icon script (fixes https://github.com/figma/code-connect/issues/156)

# Code Connect v1.1.1 (10th September 2024)

## Fixed
Expand Down
4 changes: 2 additions & 2 deletions cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@figma/code-connect",
"version": "1.1.1",
"version": "1.1.2",
"description": "A tool for connecting your design system components in code with your design system in Figma",
"keywords": [],
"author": "Figma",
Expand Down Expand Up @@ -47,7 +47,7 @@
"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",
"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",
"bundle": "npm run build && npm pack && mkdir -p bundle && mv figma-code-connect*.tgz bundle",
"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",
"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",
"bundle:npm-readme:prepare": "mv README.md ../cli-README.md.bak && cp ../README.md . && npx ts-node ../scripts/make_readme_links_absolute.ts",
"bundle:npm-readme:restore": "mv ../cli-README.md.bak README.md",
"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",
Expand Down
2 changes: 1 addition & 1 deletion cli/scripts/import-icons-size-prop.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// change to: "import { client } from '@figma/code-connect'"
import { client } from '../src'
import { client } from '../src/react/index_react'
import fs from 'fs'
import path from 'path'

Expand Down
2 changes: 1 addition & 1 deletion cli/scripts/import-icons.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// change to: "import { client } from '@figma/code-connect'"
import { client } from '../src'
import { client } from '../src/react/index_react'
import fs from 'fs'

async function generateIcons() {
Expand Down
2 changes: 1 addition & 1 deletion cli/src/connect/index_common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { FigmaConnectClient } from '../client/figma_client'
export function getClient() {
let client: FigmaConnectClient = {} as any
if (typeof process !== 'undefined' && process.versions && process.versions.node) {
client = require('./client/external')
client = require('../client/external')
}
return client
}

0 comments on commit bc4caf4

Please sign in to comment.