Commit b5d2669
fix(init): guard against missing sanity binary before dataset import
Add fs.access check before spawning the sanity binary for dataset
import. Gives a clear error message instead of a raw ENOENT if
dependencies weren't installed correctly.
Also fix misleading vitest config comment.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 020c660 commit b5d2669
File tree
2 files changed
+10
-1
lines changed- packages
- @sanity/cli/src/actions/init
- create-sanity
2 files changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
108 | 109 | | |
109 | 110 | | |
110 | 111 | | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
111 | 120 | | |
112 | 121 | | |
113 | 122 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
0 commit comments