@vzn/vx 0.0.403 → 0.0.405
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.
|
|
3
|
+
"version": "0.0.405",
|
|
4
4
|
"description": "The fastest task runner and build cache for JavaScript monorepos.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
"node": ">=18"
|
|
22
22
|
},
|
|
23
23
|
"optionalDependencies": {
|
|
24
|
-
"@vzn/vx-linux-x64": "0.0.
|
|
25
|
-
"@vzn/vx-linux-arm64": "0.0.
|
|
26
|
-
"@vzn/vx-darwin-x64": "0.0.
|
|
27
|
-
"@vzn/vx-darwin-arm64": "0.0.
|
|
24
|
+
"@vzn/vx-linux-x64": "0.0.405",
|
|
25
|
+
"@vzn/vx-linux-arm64": "0.0.405",
|
|
26
|
+
"@vzn/vx-darwin-x64": "0.0.405",
|
|
27
|
+
"@vzn/vx-darwin-arm64": "0.0.405"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@anthropic-ai/sandbox-runtime": "^0.0.76"
|
|
@@ -874,6 +874,25 @@ export function migrateScripts(
|
|
|
874
874
|
`\`${sibling}\` runs another member's work outside the graph, again beside that member's own task: name that task under dependsOn (\`<member>#<task>\`) and drop it from the command`,
|
|
875
875
|
)
|
|
876
876
|
}
|
|
877
|
+
// A chain of this package's own scripts (`check: pnpm run build &&
|
|
878
|
+
// pnpm run lint`) ran each again inside the command, beside the task
|
|
879
|
+
// of that name: `vx run check` built twice. The chain's order may
|
|
880
|
+
// matter, so it is named rather than turned into a group.
|
|
881
|
+
const ownRuns = own
|
|
882
|
+
.split(/&&|\|\||;/)
|
|
883
|
+
.map((part) => part.trim())
|
|
884
|
+
.filter((part) => {
|
|
885
|
+
const d = delegatedScript(part)
|
|
886
|
+
return d !== null && d !== name && isTask(d)
|
|
887
|
+
})
|
|
888
|
+
if (ownRuns.length > 0) {
|
|
889
|
+
const list = ownRuns.map((r) => `\`${r}\``).join(', ')
|
|
890
|
+
todos.push(
|
|
891
|
+
ownRuns.length === 1
|
|
892
|
+
? `${list} runs this package's own task again inside the command, beside that task: name it under dependsOn and drop it from the command`
|
|
893
|
+
: `${list} run this package's own tasks again inside the command, beside those tasks: name them under dependsOn and drop them from the command`,
|
|
894
|
+
)
|
|
895
|
+
}
|
|
877
896
|
const exec: Record<string, unknown> = { command }
|
|
878
897
|
const npm = npmEnv(command, name, hooks.length > 0)
|
|
879
898
|
if (Object.keys(npm.define).length > 0) exec['env'] = { define: npm.define }
|
|
@@ -604,7 +604,12 @@ export async function discoverProjects(
|
|
|
604
604
|
projects.push({ name, dir, packageJson: pkg, configPath })
|
|
605
605
|
continue
|
|
606
606
|
}
|
|
607
|
-
|
|
607
|
+
// The root's own manifest is '' relative to itself, and the refusal read
|
|
608
|
+
// "in workspace: and packages/a" (D-127).
|
|
609
|
+
const dirs = group
|
|
610
|
+
.map((e) => relPosix(workspace.root, e.dir))
|
|
611
|
+
.sort()
|
|
612
|
+
.map((d) => (d === '' ? 'the workspace root' : d))
|
|
608
613
|
// pnpm accepts two manifests of one name (vite's playground, sveltejs/kit's
|
|
609
614
|
// test apps); vx cannot, since a project is addressed by it. Like a
|
|
610
615
|
// nameless one, a pair that declares no vx tasks is left out, so the
|