@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.
Files changed (2) hide show
  1. package/README.md +14 -17
  2. 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
- > **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.
27
+ ### Mac / Linux
28
28
 
29
- ### Step 1 Install nvm (skip if you already have it)
29
+ Run these once to fix npm permissions, then install:
30
30
 
31
31
  ```bash
32
- curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
33
- source ~/.zshrc # or: source ~/.bashrc (if you use bash)
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
- ### Step 2Install Node 22
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
- ```bash
39
- nvm install 22
40
- ```
42
+ ### Windows
41
43
 
42
- ### Step 3 Install Calibrate
44
+ Open **PowerShell as Administrator** and run:
43
45
 
44
- ```bash
46
+ ```powershell
45
47
  npm install -g @calibrate-ds/cli
46
- source ~/.zshrc # reload PATH so ptb is found
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",
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.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"
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",