@nubjs/nub-win32-x64 0.0.21 → 0.0.22

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/bin/nub.exe CHANGED
Binary file
package/bin/nubx.exe CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nubjs/nub-win32-x64",
3
- "version": "0.0.21",
3
+ "version": "0.0.22",
4
4
  "description": "Nub binary for win32-x64",
5
5
  "license": "MIT",
6
6
  "repository": "https://github.com/nubjs/nub",
Binary file
@@ -42,7 +42,13 @@ function binsOf(pkg) {
42
42
  }
43
43
 
44
44
  let script = null;
45
- const top = api.getPackageInformation(api.topLevel);
45
+ // Anchor on the package that OWNS cwd — a workspace member, or the project root for a
46
+ // single-package install. Its dependencies are the bins runnable here, matching
47
+ // `yarn bin`. Using `api.topLevel` (the workspace ROOT) would, in a monorepo, list
48
+ // only the member packages and miss a member's own dep/devDep bins. `findPackageLocator`
49
+ // falls back to topLevel for the single-package case (cwd === root).
50
+ const locator = api.findPackageLocator(cwdIssuer()) || api.topLevel;
51
+ const top = api.getPackageInformation(locator);
46
52
  for (const [name, reference] of top.packageDependencies) {
47
53
  if (reference == null) continue;
48
54
  const info = api.getPackageInformation(api.getLocator(name, reference));
@@ -9,4 +9,4 @@
9
9
  // previously lived as a literal inside preload.mjs, which `make version` patched,
10
10
  // while the worker carried a hand-maintained "…-compat" copy that `make version`
11
11
  // never touched — a latent staleness bug this module closes.)
12
- export const NUB_VERSION = "0.0.21";
12
+ export const NUB_VERSION = "0.0.22";