Skip to content

Commit 80128dd

Browse files
authored
chore: bump vite-task to 28f371a (latest main) (#800)
## Summary - Bump vite-task dependency from `7e28617` to `28f371a` (latest main) - Picks up: - feat: add pre/post lifecycle hooks for package.json scripts (#231) - feat: fast-fail execution when a task fails (#233) - Syncs `run-config.ts` types for new `enablePrePostScripts` option ## Test plan - [x] `cargo check --all-targets --all-features` passes - [x] `cargo test -p vite-plus-cli` passes (22 tests) - [x] `run-config.ts` types synced - [ ] CI passes
1 parent dde1909 commit 80128dd

File tree

3 files changed

+48
-37
lines changed

3 files changed

+48
-37
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ dunce = "1.0.5"
8484
fast-glob = "1.0.0"
8585
flate2 = { version = "=1.1.9", features = ["zlib-rs"] }
8686
form_urlencoded = "1.2.1"
87-
fspy = { git = "ssh://git@github.com/voidzero-dev/vite-task.git", rev = "7e28617fab72035f373880a8e5d35a75376f9dbc" }
87+
fspy = { git = "ssh://git@github.com/voidzero-dev/vite-task.git", rev = "28f371a168b80a84e66bbf4707232522be5f31cf" }
8888
futures = "0.3.31"
8989
futures-util = "0.3.31"
9090
glob = "0.3.2"
@@ -183,15 +183,15 @@ vfs = "0.12.1"
183183
vite_command = { path = "crates/vite_command" }
184184
vite_error = { path = "crates/vite_error" }
185185
vite_js_runtime = { path = "crates/vite_js_runtime" }
186-
vite_glob = { git = "ssh://git@github.com/voidzero-dev/vite-task.git", rev = "7e28617fab72035f373880a8e5d35a75376f9dbc" }
186+
vite_glob = { git = "ssh://git@github.com/voidzero-dev/vite-task.git", rev = "28f371a168b80a84e66bbf4707232522be5f31cf" }
187187
vite_install = { path = "crates/vite_install" }
188188
vite_migration = { path = "crates/vite_migration" }
189189
vite_shared = { path = "crates/vite_shared" }
190190
vite_static_config = { path = "crates/vite_static_config" }
191-
vite_path = { git = "ssh://git@github.com/voidzero-dev/vite-task.git", rev = "7e28617fab72035f373880a8e5d35a75376f9dbc" }
192-
vite_str = { git = "ssh://git@github.com/voidzero-dev/vite-task.git", rev = "7e28617fab72035f373880a8e5d35a75376f9dbc" }
193-
vite_task = { git = "ssh://git@github.com/voidzero-dev/vite-task.git", rev = "7e28617fab72035f373880a8e5d35a75376f9dbc" }
194-
vite_workspace = { git = "ssh://git@github.com/voidzero-dev/vite-task.git", rev = "7e28617fab72035f373880a8e5d35a75376f9dbc" }
191+
vite_path = { git = "ssh://git@github.com/voidzero-dev/vite-task.git", rev = "28f371a168b80a84e66bbf4707232522be5f31cf" }
192+
vite_str = { git = "ssh://git@github.com/voidzero-dev/vite-task.git", rev = "28f371a168b80a84e66bbf4707232522be5f31cf" }
193+
vite_task = { git = "ssh://git@github.com/voidzero-dev/vite-task.git", rev = "28f371a168b80a84e66bbf4707232522be5f31cf" }
194+
vite_workspace = { git = "ssh://git@github.com/voidzero-dev/vite-task.git", rev = "28f371a168b80a84e66bbf4707232522be5f31cf" }
195195
walkdir = "2.5.0"
196196
wax = "0.6.0"
197197
which = "8.0.0"

packages/cli/src/run-config.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,15 @@ export type RunConfig = {
9292
* Task definitions
9393
*/
9494
tasks?: { [key in string]?: Task };
95+
/**
96+
* Whether to automatically run `preX`/`postX` package.json scripts as
97+
* lifecycle hooks when script `X` is executed.
98+
*
99+
* When `true` (the default), running script `test` will automatically
100+
* run `pretest` before and `posttest` after, if they exist.
101+
*
102+
* This option can only be set in the workspace root's config file.
103+
* Setting it in a package's config will result in an error.
104+
*/
105+
enablePrePostScripts?: boolean;
95106
};

0 commit comments

Comments
 (0)