@vzn/vx 0.0.162 → 0.0.163

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vzn/vx",
3
- "version": "0.0.162",
3
+ "version": "0.0.163",
4
4
  "description": "A fast, correct task runner and build cache for JavaScript monorepos.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -17,10 +17,10 @@
17
17
  "node": ">=18"
18
18
  },
19
19
  "optionalDependencies": {
20
- "@vzn/vx-linux-x64": "0.0.162",
21
- "@vzn/vx-linux-arm64": "0.0.162",
22
- "@vzn/vx-darwin-x64": "0.0.162",
23
- "@vzn/vx-darwin-arm64": "0.0.162"
20
+ "@vzn/vx-linux-x64": "0.0.163",
21
+ "@vzn/vx-linux-arm64": "0.0.163",
22
+ "@vzn/vx-darwin-x64": "0.0.163",
23
+ "@vzn/vx-darwin-arm64": "0.0.163"
24
24
  },
25
25
  "dependencies": {
26
26
  "@anthropic-ai/sandbox-runtime": "^0.0.76"
@@ -841,6 +841,11 @@ const FOREIGN_TOKENS: readonly (readonly [string, string])[] = [
841
841
  "Turbo's workspace root — name the path without it in `workspaceFiles`, which is workspace-root-relative",
842
842
  ],
843
843
  ['{projectRoot}', "Nx's project root — drop it: `files` globs are project-relative already"],
844
+ [
845
+ '{options.',
846
+ 'an Nx target option, which vx does not interpolate — write the path the option names',
847
+ ],
848
+ ['{projectName}', "Nx's project name, which vx does not interpolate — write the name"],
844
849
  [
845
850
  '{workspaceRoot}',
846
851
  "Nx's workspace root — name the path without it in `workspaceFiles`, which is workspace-root-relative",
@@ -858,7 +863,8 @@ function assertNoForeignToken(glob: string, where: string): void {
858
863
  }
859
864
  for (const [token, meaning] of FOREIGN_TOKENS) {
860
865
  if (glob.includes(token)) {
861
- throw new UserError(`${where}: "${glob}" holds ${token}, ${meaning}`)
866
+ const shown = token.endsWith('.') ? `${token}…}` : token
867
+ throw new UserError(`${where}: "${glob}" holds ${shown}, ${meaning}`)
862
868
  }
863
869
  }
864
870
  }