@calibrate-ds/cli 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -17
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -22,35 +22,32 @@ When your designer updates a component in Figma, `ptb scan` picks up the change,
|
|
|
22
22
|
|
|
23
23
|
## Install
|
|
24
24
|
|
|
25
|
-
**Requirements:** Node.js ≥ 20
|
|
25
|
+
**Requirements:** Node.js ≥ 20 — [download here](https://nodejs.org) if you don't have it.
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
### Mac / Linux
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
Run these once to fix npm permissions, then install:
|
|
30
30
|
|
|
31
31
|
```bash
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
mkdir -p ~/.npm-global
|
|
33
|
+
npm config set prefix '~/.npm-global'
|
|
34
|
+
echo 'export PATH=$HOME/.npm-global/bin:$PATH' >> ~/.zshrc 2>/dev/null || echo 'export PATH=$HOME/.npm-global/bin:$PATH' >> ~/.bash_profile
|
|
35
|
+
export PATH=$HOME/.npm-global/bin:$PATH
|
|
36
|
+
npm install -g @calibrate-ds/cli
|
|
37
|
+
ptb --version
|
|
34
38
|
```
|
|
35
39
|
|
|
36
|
-
|
|
40
|
+
The first three lines only need to be run once — they fix the permission issue permanently. Next time, just `npm install -g @calibrate-ds/cli`.
|
|
37
41
|
|
|
38
|
-
|
|
39
|
-
nvm install 22
|
|
40
|
-
```
|
|
42
|
+
### Windows
|
|
41
43
|
|
|
42
|
-
|
|
44
|
+
Open **PowerShell as Administrator** and run:
|
|
43
45
|
|
|
44
|
-
```
|
|
46
|
+
```powershell
|
|
45
47
|
npm install -g @calibrate-ds/cli
|
|
46
|
-
|
|
47
|
-
ptb --version # should print the installed version
|
|
48
|
+
ptb --version
|
|
48
49
|
```
|
|
49
50
|
|
|
50
|
-
**Already have Node 20+ via nvm?** Skip to step 3.
|
|
51
|
-
|
|
52
|
-
**Getting `permission denied` errors?** You are using the system Node. Run steps 1–3 above.
|
|
53
|
-
|
|
54
51
|
---
|
|
55
52
|
|
|
56
53
|
## Quickstart
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@calibrate-ds/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -22,10 +22,10 @@
|
|
|
22
22
|
"commander": "^14.0.3",
|
|
23
23
|
"openai": "^6.34.0",
|
|
24
24
|
"zod": "^4.3.6",
|
|
25
|
-
"@calibrate-ds/core": "0.1.
|
|
26
|
-
"@calibrate-ds/
|
|
27
|
-
"@calibrate-ds/figma-client": "0.1.
|
|
28
|
-
"@calibrate-ds/
|
|
25
|
+
"@calibrate-ds/core": "0.1.4",
|
|
26
|
+
"@calibrate-ds/shared-types": "0.1.4",
|
|
27
|
+
"@calibrate-ds/figma-client": "0.1.4",
|
|
28
|
+
"@calibrate-ds/generator-react": "0.1.4"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/node": "^22.13.5",
|