@calibrate-ds/cli 0.1.2 → 0.1.3
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 +12 -11
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -24,31 +24,32 @@ When your designer updates a component in Figma, `ptb scan` picks up the change,
|
|
|
24
24
|
|
|
25
25
|
**Requirements:** Node.js ≥ 20
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
> **macOS users:** Do not use the system Node or a Homebrew Node for global installs — you'll hit permission errors. Use nvm (step 1 below). It takes 30 seconds and fixes the problem permanently.
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
### Step 1 — Install nvm (skip if you already have it)
|
|
30
30
|
|
|
31
31
|
```bash
|
|
32
32
|
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
|
|
33
|
-
source ~/.zshrc # or ~/.bashrc
|
|
34
|
-
nvm install 22
|
|
33
|
+
source ~/.zshrc # or: source ~/.bashrc (if you use bash)
|
|
35
34
|
```
|
|
36
35
|
|
|
37
|
-
### Install
|
|
36
|
+
### Step 2 — Install Node 22
|
|
38
37
|
|
|
39
38
|
```bash
|
|
40
|
-
|
|
41
|
-
source ~/.zshrc # reload PATH so the ptb command is found
|
|
42
|
-
ptb --version # should print 0.1.1
|
|
39
|
+
nvm install 22
|
|
43
40
|
```
|
|
44
41
|
|
|
45
|
-
|
|
42
|
+
### Step 3 — Install Calibrate
|
|
46
43
|
|
|
47
44
|
```bash
|
|
48
|
-
|
|
45
|
+
npm install -g @calibrate-ds/cli
|
|
46
|
+
source ~/.zshrc # reload PATH so ptb is found
|
|
47
|
+
ptb --version # should print the installed version
|
|
49
48
|
```
|
|
50
49
|
|
|
51
|
-
|
|
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.
|
|
52
53
|
|
|
53
54
|
---
|
|
54
55
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@calibrate-ds/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
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/
|
|
26
|
-
"@calibrate-ds/
|
|
27
|
-
"@calibrate-ds/
|
|
28
|
-
"@calibrate-ds/
|
|
25
|
+
"@calibrate-ds/core": "0.1.3",
|
|
26
|
+
"@calibrate-ds/generator-react": "0.1.3",
|
|
27
|
+
"@calibrate-ds/figma-client": "0.1.3",
|
|
28
|
+
"@calibrate-ds/shared-types": "0.1.3"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/node": "^22.13.5",
|