@vzn/vx 0.0.160 → 0.0.161

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.160",
3
+ "version": "0.0.161",
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.160",
21
- "@vzn/vx-linux-arm64": "0.0.160",
22
- "@vzn/vx-darwin-x64": "0.0.160",
23
- "@vzn/vx-darwin-arm64": "0.0.160"
20
+ "@vzn/vx-linux-x64": "0.0.161",
21
+ "@vzn/vx-linux-arm64": "0.0.161",
22
+ "@vzn/vx-darwin-x64": "0.0.161",
23
+ "@vzn/vx-darwin-arm64": "0.0.161"
24
24
  },
25
25
  "dependencies": {
26
26
  "@anthropic-ai/sandbox-runtime": "^0.0.76"
@@ -848,6 +848,14 @@ const FOREIGN_TOKENS: readonly (readonly [string, string])[] = [
848
848
  ]
849
849
 
850
850
  function assertNoForeignToken(glob: string, where: string): void {
851
+ // `^production`: Nx's named input of the dependencies (D-51). No file
852
+ // starts with `^` in practice, while a bare `default` can be a directory,
853
+ // so only the upstream form is refused; the bare one keeps the warning.
854
+ if ((glob.startsWith('!') ? glob.slice(1) : glob).startsWith('^')) {
855
+ throw new UserError(
856
+ `${where}: "${glob}" starts with ^, Nx's named input of the dependencies — vx keys a task on its dependencies through \`dependsOn\` (\`^build\`); list this project's files here`,
857
+ )
858
+ }
851
859
  for (const [token, meaning] of FOREIGN_TOKENS) {
852
860
  if (glob.includes(token)) {
853
861
  throw new UserError(`${where}: "${glob}" holds ${token}, ${meaning}`)