From 1285b6bd1fd95df8585722f15f07766be5d73610 Mon Sep 17 00:00:00 2001 From: ChristopherPHolder Date: Fri, 23 Oct 2026 22:38:13 +0200 Subject: [PATCH] fix(cli): restore published bin path broken by the nx 24 upgrade `package.json` declares `bin: { "user-flow": "src/cli.mjs" }`, but the build was emitting it to `dist/packages/cli/packages/cli/src/cli.mjs`, so the published package pointed at a file that does not exist. Nx 24 changed how `@nx/js:tsc` resolves string assets: the full path is now preserved rather than being relativised to the project root. Every string entry here was affected, not just the binary. `nx-plugin` already used the object form and was unaffected. Converted to the object form so the output path is explicit. Verified by packing `dist/packages/cli` and diffing the file list against the published 0.21.4 tarball: 312 files, identical in both directions. --- packages/cli/project.json | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/packages/cli/project.json b/packages/cli/project.json index 52196182..91fc57e9 100644 --- a/packages/cli/project.json +++ b/packages/cli/project.json @@ -14,10 +14,26 @@ "tsConfig": "packages/cli/tsconfig.lib.json", "assets": [ "README.md", - "packages/cli/*.md", - "packages/cli/src/cli.mjs", - "packages/cli/*.schema.json", - "packages/cli/**/static/**" + { + "input": "./packages/cli", + "glob": "*.md", + "output": "." + }, + { + "input": "./packages/cli/src", + "glob": "cli.mjs", + "output": "./src" + }, + { + "input": "./packages/cli", + "glob": "*.schema.json", + "output": "." + }, + { + "input": "./packages/cli/src", + "glob": "**/static/**", + "output": "./src" + } ] } },