-
Notifications
You must be signed in to change notification settings - Fork 113
Expand file tree
/
Copy pathpackage.json
More file actions
115 lines (113 loc) · 5.04 KB
/
package.json
File metadata and controls
115 lines (113 loc) · 5.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
{
"name": "@figma/code-connect",
"version": "1.3.1",
"description": "A tool for connecting your design system components in code with your design system in Figma",
"keywords": [],
"author": "Figma",
"license": "MIT",
"main": "./dist/react/index_react.js",
"exports": {
".": {
"types": "./dist/react/index_react.d.ts",
"default": "./dist/react/index_react.js"
},
"./html": {
"types": "./dist/html/index_html.d.ts",
"default": "./dist/html/index_html.js"
},
"./react": {
"types": "./dist/react/index_react.d.ts",
"default": "./dist/react/index_react.js"
}
},
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/figma/code-connect.git"
},
"homepage": "https://github.com/figma/code-connect#readme",
"bin": {
"figma": "bin/figma"
},
"files": [
"dist/**/*"
],
"engines": {
"node": ">=18"
},
"scripts": {
"dev": "tsx src/cli.ts",
"build": "rm -rf dist && npm run typecheck && tsc",
"build:web": "pnpm build",
"build:webpack": "cross-env NODE_OPTIONS=\"--max-old-space-size=4096\" webpack --mode production",
"test": "npm run test:no-coverage -- --coverage",
"test:no-coverage": "cross-env NODE_OPTIONS=\"--experimental-vm-modules --no-deprecation --max-old-space-size=10240\" npx jest --logHeapUsage --workerIdleMemoryLimit=1.5G",
"test:fast": "npm run test -- --testPathIgnorePatterns=template_rendering.test.ts --testPathIgnorePatterns=e2e_parse_command_swift.test.ts --testPathIgnorePatterns=e2e_wizard_swift.test.ts",
"test:ci": "npm run test:non-mac -- --runInBand",
"test:wizard": "npm run test -- --runInBand --testPathPattern=e2e_wizard_react.test.ts --testPathPattern=e2e_wizard_swift.test.ts",
"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.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 tsx ../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",
"bundle:cli": "npm run build:webpack && mkdir -p bundle-cli && pkg --compress Brotli webpack-dist/figma.js",
"bundle:cli:linux": "npm run bundle:cli -- -o bundle-cli/figma-linux --target node18-linux-x64,node18-linux-arm64",
"bundle:cli:mac": "npm run bundle:cli -- -o bundle-cli/figma-mac --target node18-mac-x64,node18-mac-arm64",
"bundle:cli:mac:arm64": "npm run bundle:cli -- -o bundle-cli/figma-mac-arm64 --target node18-mac-arm64",
"bundle:cli:win": "npm run bundle:cli -- -o bundle-cli/figma-win --target node18-win-x64",
"publish:npm": "npm install && npm run build && npm run bundle:npm-readme:prepare && npm publish --access public; npm run bundle:npm-readme:restore",
"typecheck": "tsc --noEmit -p tsconfig-typecheck.json",
"benchmarking:run": "npx tsx ./src/connect/wizard/__test__/prop_mapping/prop_mapping_benchmarking.ts"
},
"devDependencies": {
"@babel/core": "7.26.0",
"@babel/generator": "7.26.2",
"@babel/parser": "7.26.0",
"@babel/types": "7.26.0",
"@storybook/csf-tools": "^8.4.7",
"@types/cross-spawn": "^6.0.6",
"@types/jest": "^29.5.13",
"@types/jsdom": "^21.1.7",
"@types/lodash": "^4.17.0",
"@types/node": "^22.10.0",
"@types/prettier": "2.7.3",
"@types/prompts": "^2.4.9",
"@types/react": "18.0.26",
"cross-env": "^7.0.3",
"jest": "^29.7.0",
"patch-package": "^8.0.0",
"pkg": "^5.8.1",
"react": "18.2.0",
"ts-jest": "^29.2.5",
"ts-loader": "^9.5.1",
"tsx": "^4.11.0",
"yaml": "^2.7.0",
"webpack": "^5.91.0",
"webpack-cli": "^5.1.4"
},
"dependencies": {
"boxen": "5.1.1",
"chalk": "^4.1.2",
"commander": "^11.1.0",
"compare-versions": "^6.1.0",
"cross-spawn": "^7.0.3",
"dotenv": "^16.3.1",
"fast-fuzzy": "^1.12.0",
"find-up": "^5.0.0",
"glob": "^10.3.10",
"jsdom": "^24.1.1",
"lodash": "^4.17.21",
"minimatch": "^9.0.3",
"ora": "^5.4.1",
"parse5": "^7.1.2",
"prettier": "^2.8.8",
"prompts": "^2.4.2",
"strip-ansi": "^6.0.0",
"ts-morph": "^23.0.0",
"typescript": "5.5.4",
"undici": "^5.28.4",
"zod": "^3.23.8",
"zod-validation-error": "^3.2.0"
}
}