You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Review each changelog entry and determine if it affects user-facing behavior: new CLI options, changed defaults, new config fields, removed features, etc.
69
+
- The changelog contains links to the corresponding vite-task PRs. For complex changes, check the PR description and code diff (especially any docs changes in the PR) to understand the full scope of the change.
70
+
- If user-facing changes are found, update the relevant docs in `docs/` (e.g., `docs/guide/`, `docs/config/`).
Vite Task automatically detects which files are used by a command (see [Automatic File Tracking](/guide/cache#automatic-file-tracking)). The `input` option can be used to explicitly include or exclude certain files.
@@ -199,6 +199,24 @@ tasks: {
199
199
}
200
200
```
201
201
202
+
**Resolve patterns relative to the workspace root** using the object form:
The `base` field is required and controls how the glob pattern is resolved:
217
+
-`"package"`: relative to the package directory
218
+
-`"workspace"`: relative to the workspace root
219
+
202
220
**Disable file tracking** entirely and cache only on command/env changes:
203
221
204
222
```ts
@@ -211,7 +229,7 @@ tasks: {
211
229
```
212
230
213
231
::: tip
214
-
Glob patterns are resolved relative to the package directory, not the task's `cwd`.
232
+
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.
0 commit comments