Commit 15f11ed
committed
fix(embed): pass --no-save to interactive TTY install
The non-TTY auto-install path already passes `--no-save`. The TTY path did
not, which was fine when `cwd` defaulted to `process.cwd()` because that
already polluted the user's working dir (a separate, original bug).
Now that `cwd` is pinned to codegraph's host directory, omitting
`--no-save` would silently add `@huggingface/transformers` to the
`package.json` sitting next to codegraph's `node_modules` (the user's
project root when codegraph is a local dep, or the npm global prefix when
global-installed). Match the non-TTY path so installs stay ephemeral
regardless of code path.
Updates the corresponding assertion in tests/unit/prompt-install.test.ts.1 parent f4d5a87 commit 15f11ed
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
| 163 | + | |
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
| 154 | + | |
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| |||
0 commit comments