@calibrate-ds/cli 0.1.2 → 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 +15 -17
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -22,34 +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
|
-
|
|
34
|
-
|
|
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
|
|
35
38
|
```
|
|
36
39
|
|
|
37
|
-
|
|
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`.
|
|
38
41
|
|
|
39
|
-
|
|
40
|
-
npm install -g @calibrate-ds/cli
|
|
41
|
-
source ~/.zshrc # reload PATH so the ptb command is found
|
|
42
|
-
ptb --version # should print 0.1.1
|
|
43
|
-
```
|
|
42
|
+
### Windows
|
|
44
43
|
|
|
45
|
-
|
|
44
|
+
Open **PowerShell as Administrator** and run:
|
|
46
45
|
|
|
47
|
-
```
|
|
48
|
-
|
|
46
|
+
```powershell
|
|
47
|
+
npm install -g @calibrate-ds/cli
|
|
48
|
+
ptb --version
|
|
49
49
|
```
|
|
50
50
|
|
|
51
|
-
> **Already have Node 20+?** Just run `npm install -g @calibrate-ds/cli`. If `ptb` is not found after install, run `source ~/.zshrc` (or open a new terminal tab) to reload your PATH.
|
|
52
|
-
|
|
53
51
|
---
|
|
54
52
|
|
|
55
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/
|
|
26
|
-
"@calibrate-ds/
|
|
27
|
-
"@calibrate-ds/
|
|
28
|
-
"@calibrate-ds/generator-react": "0.1.
|
|
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",
|