Skip to content

Commit df79d2d

Browse files
branchseerclaude
andauthored
chore: bump vite-task to c63db22 (#1560)
Bumps the vite-task git dependency from `88bacaa` to `c63db22`. ## Notable upstream changes - feat(cache): add `output` globs for cache restoration ([vite-task#375](voidzero-dev/vite-task#375)) - feat(cache): store colored task logs, strip at display when needed ([vite-task#378](voidzero-dev/vite-task#378)) - fix(plan): move FORCE_COLOR fallback after pattern filtering ([vite-task#379](voidzero-dev/vite-task#379)) - fix: preserve `PATHEXT` for Windows cached tasks ([vite-task#366](voidzero-dev/vite-task#366)) ## Vite+ side changes - Added the new `output: None` field to all `EnabledCacheConfig` initializers in `packages/cli/binding/src/cli/{handler,resolver}.rs` to match the new field added in vite-task#375. - Bumped `rusqlite` to `0.39.0` to match vite-task's new requirement and resolve a `libsqlite3-sys` links conflict. - Regenerated `packages/cli/src/run-config.ts` types snapshot (vite-task task map type tightened). - Removed the `pass-no-color-env` snap test, which is no longer relevant now that `NO_COLOR` is not in vite-task's default env passthrough. - Updated `docs/config/run.md`: - Added an `output` cache config section. - Refreshed the default-passthrough terminal env vars list (only `FORCE_COLOR` is auto-passed; other color vars need opt-in). Compare: voidzero-dev/vite-task@88bacaa...c63db22#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent bed0936 commit df79d2d

11 files changed

Lines changed: 194 additions & 124 deletions

File tree

Cargo.lock

Lines changed: 137 additions & 87 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ dunce = "1.0.5"
8989
fast-glob = "1.0.0"
9090
flate2 = { version = "=1.1.9", features = ["zlib-rs"] }
9191
form_urlencoded = "1.2.1"
92-
fspy = { git = "https://github.com/voidzero-dev/vite-task.git", rev = "88bacaa770200ddab151dea252e04ba8cdcc4ade" }
92+
fspy = { git = "https://github.com/voidzero-dev/vite-task.git", rev = "c63db22ff0258e4e45f03205104838ab795161ac" }
9393
futures = "0.3.31"
9494
futures-util = "0.3.31"
9595
glob = "0.3.2"
@@ -150,7 +150,7 @@ reqwest = { version = "0.13", default-features = false }
150150
rolldown-notify = "10.2.0"
151151
rolldown-notify-debouncer-full = "0.7.5"
152152
ropey = "1.6.1"
153-
rusqlite = { version = "0.37.0", features = ["bundled"] }
153+
rusqlite = { version = "0.39.0", features = ["bundled"] }
154154
rustc-hash = "2.1.1"
155155
rustls = { version = "0.23", default-features = false, features = ["ring", "std", "tls12"] }
156156
schemars = "1.0.0"
@@ -194,18 +194,18 @@ vfs = "0.13.0"
194194
vite_command = { path = "crates/vite_command" }
195195
vite_error = { path = "crates/vite_error" }
196196
vite_js_runtime = { path = "crates/vite_js_runtime" }
197-
vite_glob = { git = "https://github.com/voidzero-dev/vite-task.git", rev = "88bacaa770200ddab151dea252e04ba8cdcc4ade" }
197+
vite_glob = { git = "https://github.com/voidzero-dev/vite-task.git", rev = "c63db22ff0258e4e45f03205104838ab795161ac" }
198198
vite_install = { path = "crates/vite_install" }
199199
vite_migration = { path = "crates/vite_migration" }
200200
vite_pm_cli = { path = "crates/vite_pm_cli" }
201201
vite_setup = { path = "crates/vite_setup" }
202202
vite_shared = { path = "crates/vite_shared" }
203203
vite_static_config = { path = "crates/vite_static_config" }
204-
vite_path = { git = "https://github.com/voidzero-dev/vite-task.git", rev = "88bacaa770200ddab151dea252e04ba8cdcc4ade" }
205-
vite_powershell = { git = "https://github.com/voidzero-dev/vite-task.git", rev = "88bacaa770200ddab151dea252e04ba8cdcc4ade" }
206-
vite_str = { git = "https://github.com/voidzero-dev/vite-task.git", rev = "88bacaa770200ddab151dea252e04ba8cdcc4ade" }
207-
vite_task = { git = "https://github.com/voidzero-dev/vite-task.git", rev = "88bacaa770200ddab151dea252e04ba8cdcc4ade" }
208-
vite_workspace = { git = "https://github.com/voidzero-dev/vite-task.git", rev = "88bacaa770200ddab151dea252e04ba8cdcc4ade" }
204+
vite_path = { git = "https://github.com/voidzero-dev/vite-task.git", rev = "c63db22ff0258e4e45f03205104838ab795161ac" }
205+
vite_powershell = { git = "https://github.com/voidzero-dev/vite-task.git", rev = "c63db22ff0258e4e45f03205104838ab795161ac" }
206+
vite_str = { git = "https://github.com/voidzero-dev/vite-task.git", rev = "c63db22ff0258e4e45f03205104838ab795161ac" }
207+
vite_task = { git = "https://github.com/voidzero-dev/vite-task.git", rev = "c63db22ff0258e4e45f03205104838ab795161ac" }
208+
vite_workspace = { git = "https://github.com/voidzero-dev/vite-task.git", rev = "c63db22ff0258e4e45f03205104838ab795161ac" }
209209
walkdir = "2.5.0"
210210
wax = "0.6.0"
211211
which = "8.0.0"

docs/config/run.md

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ A set of common environment variables are automatically passed through to all ta
167167
- **System:** `HOME`, `USER`, `PATH`, `SHELL`, `LANG`, `TZ`
168168
- **Node.js:** `NODE_OPTIONS`, `COREPACK_HOME`, `PNPM_HOME`
169169
- **CI/CD:** `CI`, `VERCEL_*`, `NEXT_*`
170-
- **Terminal:** `TERM`, `COLORTERM`, `FORCE_COLOR`, `NO_COLOR`
170+
- **Terminal:** Color variables (`FORCE_COLOR`, `NO_COLOR`, `COLORTERM`, `TERM`, `TERM_PROGRAM`) aren't passed to tasks unless you list them under `env` (the value gets fingerprinted, so changing it invalidates the cache) or `untrackedEnv` (passed without fingerprinting). If `FORCE_COLOR` isn't in either list, the child gets `FORCE_COLOR=1` so cached logs stay colored. Colors get stripped on display when the terminal can't render them.
171171

172172
### `input`
173173

@@ -233,6 +233,36 @@ tasks: {
233233
String glob patterns are resolved relative to the package directory by default. Use the object form with `base: "workspace"` to resolve relative to the workspace root.
234234
:::
235235

236+
### `output`
237+
238+
- **Type:** `Array<string | { pattern: string, base: "workspace" | "package" }>`
239+
- **Default:** `[]` (nothing is archived)
240+
241+
Files the task produces. They get archived after a successful run and restored on a cache hit, so you don't have to rebuild them. Leave it empty (or omit it) and nothing is archived.
242+
243+
```ts [vite.config.ts]
244+
tasks: {
245+
build: {
246+
command: 'vp build',
247+
output: ['dist/**', '!dist/cache/**'],
248+
},
249+
}
250+
```
251+
252+
If a task writes outside its own package, use the object form with `base: "workspace"`:
253+
254+
```ts [vite.config.ts]
255+
tasks: {
256+
build: {
257+
command: 'vp build',
258+
output: [
259+
'dist/**',
260+
{ pattern: 'shared-artifacts/**', base: 'workspace' },
261+
],
262+
},
263+
}
264+
```
265+
236266
### `cwd`
237267

238268
- **Type:** `string`

packages/cli/binding/src/cli/handler.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ impl CommandHandler for VitePlusCommandHandler {
6767
env: Some(Box::new([Str::from("OXLINT_TSGOLINT_PATH")])),
6868
untracked_env: None,
6969
input: Some(check_cache_inputs()),
70+
output: None,
7071
}),
7172
)))
7273
}

packages/cli/binding/src/cli/resolver.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ impl SubcommandResolver {
116116
env: Some(Box::new([Str::from("OXLINT_TSGOLINT_PATH")])),
117117
untracked_env: None,
118118
input: None,
119+
output: None,
119120
}),
120121
envs: merge_resolved_envs_with_version(envs, resolved.envs),
121122
})
@@ -151,6 +152,7 @@ impl SubcommandResolver {
151152
env: None,
152153
untracked_env: None,
153154
input: None,
155+
output: None,
154156
}),
155157
envs: merge_resolved_envs_with_version(envs, resolved.envs),
156158
})
@@ -173,6 +175,7 @@ impl SubcommandResolver {
173175
env: Some(Box::new([Str::from("VITE_*")])),
174176
untracked_env: None,
175177
input: Some(build_pack_cache_inputs()),
178+
output: None,
176179
}),
177180
envs: merge_resolved_envs_with_version(envs, resolved.envs),
178181
})
@@ -205,6 +208,7 @@ impl SubcommandResolver {
205208
InputBase::Package,
206209
),
207210
]),
211+
output: None,
208212
}),
209213
envs: merge_resolved_envs_with_version(envs, resolved.envs),
210214
})
@@ -226,6 +230,7 @@ impl SubcommandResolver {
226230
env: None,
227231
untracked_env: None,
228232
input: Some(build_pack_cache_inputs()),
233+
output: None,
229234
}),
230235
envs: merge_resolved_envs(envs, resolved.envs),
231236
})
@@ -283,6 +288,7 @@ impl SubcommandResolver {
283288
env: None,
284289
untracked_env: None,
285290
input: None,
291+
output: None,
286292
}),
287293
envs: merge_resolved_envs(envs, resolved.envs),
288294
})

packages/cli/snap-tests/pass-no-color-env/check.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/cli/snap-tests/pass-no-color-env/package.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

packages/cli/snap-tests/pass-no-color-env/snap.txt

Lines changed: 0 additions & 9 deletions
This file was deleted.

packages/cli/snap-tests/pass-no-color-env/steps.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

packages/cli/snap-tests/pass-no-color-env/vite.config.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)