@bamboocss/node 1.57.4 → 1.57.5

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/dist/index.cjs CHANGED
@@ -3206,7 +3206,7 @@ function globDirname(globs) {
3206
3206
  continue;
3207
3207
  }
3208
3208
  const nonGlobTokens = scan.tokens?.filter((token) => !token.isPrefix && !token.isGlob);
3209
- rootDirs.add(nonGlobTokens?.length ? (0, node_path.join)(...nonGlobTokens.map((token) => token.value)) : ".");
3209
+ rootDirs.add(nonGlobTokens?.length ? node_path.posix.join(...nonGlobTokens.map((token) => token.value)) : ".");
3210
3210
  }
3211
3211
  if (rootDirs.size === 0) return ["."];
3212
3212
  return Array.from(rootDirs);
@@ -3956,8 +3956,16 @@ var BambooContext = class extends _bamboocss_generator.Generator {
3956
3956
  const count = occurrences.length;
3957
3957
  throw new _bamboocss_shared.BambooError("DEAD_IMPORT", `${count} call(s) name a binding that does not exist:\n\n${detail}\n\nBoth entrypoints are generated from your config, so what they export moves when it does — a pattern dropped from a preset, a recipe renamed. The call survives that as a binding to nothing: nothing extracts it, so every rule it would have contributed is absent from the stylesheet and the classes their components ask for have nothing behind them.`);
3958
3958
  };
3959
- /** A path as the user typed it, when it is under `cwd`. */
3960
- relative = (file) => file.startsWith(this.config.cwd) ? file.slice(this.config.cwd.length + 1) : file;
3959
+ /**
3960
+ * A path as the user typed it when it is under `cwd`, spelled with `/` on every platform. On
3961
+ * Windows the glob hands over `C:/app/src/a.tsx` against a `cwd` of `C:\app`, so comparing the
3962
+ * two as spelled never matched, and every entry printed absolute.
3963
+ */
3964
+ relative = (file) => {
3965
+ const { path } = this.runtime;
3966
+ const inside = path.relative(this.config.cwd, file);
3967
+ return (inside && !inside.startsWith("..") && !path.isAbsolute(inside) ? inside : file).replaceAll("\\", "/");
3968
+ };
3961
3969
  /**
3962
3970
  * Whether a file is one bamboo wrote.
3963
3971
  *
@@ -6293,7 +6301,8 @@ function formatDoctorReport(report) {
6293
6301
  title,
6294
6302
  ...items.map((item) => ` ${item}`)
6295
6303
  ] : [];
6296
- lines.push(...detail("missing", report.artifacts.missing), ...detail("out of date", report.artifacts.stale), ...detail("no longer generated", report.artifacts.leftover), ...detail("not extracted", report.unextracted.map(({ file, message }) => `${file}: ${message.split("\n").find(Boolean) ?? ""}`)), ...detail("calls to nothing", report.deadCalls));
6304
+ const files = (items) => items.map((item) => item.replaceAll("\\", "/"));
6305
+ lines.push(...detail("missing", files(report.artifacts.missing)), ...detail("out of date", files(report.artifacts.stale)), ...detail("no longer generated", files(report.artifacts.leftover)), ...detail("not extracted", report.unextracted.map(({ file, message }) => `${file.replaceAll("\\", "/")}: ${message.split("\n").find(Boolean) ?? ""}`)), ...detail("calls to nothing", files(report.deadCalls)));
6297
6306
  lines.push("", report.problems.length ? report.problems.join("\n") : "No problems found.");
6298
6307
  return lines.join("\n");
6299
6308
  }
package/dist/index.d.cts CHANGED
@@ -564,7 +564,11 @@ declare class BambooContext extends Generator {
564
564
  * fail every later build and wedge a dev server.
565
565
  */
566
566
  assertNoDeadCalls: (files?: Iterable<string>) => void;
567
- /** A path as the user typed it, when it is under `cwd`. */
567
+ /**
568
+ * A path as the user typed it when it is under `cwd`, spelled with `/` on every platform. On
569
+ * Windows the glob hands over `C:/app/src/a.tsx` against a `cwd` of `C:\app`, so comparing the
570
+ * two as spelled never matched, and every entry printed absolute.
571
+ */
568
572
  private relative;
569
573
  /**
570
574
  * Whether a file is one bamboo wrote.
package/dist/index.d.mts CHANGED
@@ -564,7 +564,11 @@ declare class BambooContext extends Generator {
564
564
  * fail every later build and wedge a dev server.
565
565
  */
566
566
  assertNoDeadCalls: (files?: Iterable<string>) => void;
567
- /** A path as the user typed it, when it is under `cwd`. */
567
+ /**
568
+ * A path as the user typed it when it is under `cwd`, spelled with `/` on every platform. On
569
+ * Windows the glob hands over `C:/app/src/a.tsx` against a `cwd` of `C:\app`, so comparing the
570
+ * two as spelled never matched, and every entry printed absolute.
571
+ */
568
572
  private relative;
569
573
  /**
570
574
  * Whether a file is one bamboo wrote.
package/dist/index.mjs CHANGED
@@ -3194,7 +3194,7 @@ function globDirname(globs) {
3194
3194
  continue;
3195
3195
  }
3196
3196
  const nonGlobTokens = scan.tokens?.filter((token) => !token.isPrefix && !token.isGlob);
3197
- rootDirs.add(nonGlobTokens?.length ? join(...nonGlobTokens.map((token) => token.value)) : ".");
3197
+ rootDirs.add(nonGlobTokens?.length ? posix.join(...nonGlobTokens.map((token) => token.value)) : ".");
3198
3198
  }
3199
3199
  if (rootDirs.size === 0) return ["."];
3200
3200
  return Array.from(rootDirs);
@@ -3944,8 +3944,16 @@ var BambooContext = class extends Generator {
3944
3944
  const count = occurrences.length;
3945
3945
  throw new BambooError("DEAD_IMPORT", `${count} call(s) name a binding that does not exist:\n\n${detail}\n\nBoth entrypoints are generated from your config, so what they export moves when it does — a pattern dropped from a preset, a recipe renamed. The call survives that as a binding to nothing: nothing extracts it, so every rule it would have contributed is absent from the stylesheet and the classes their components ask for have nothing behind them.`);
3946
3946
  };
3947
- /** A path as the user typed it, when it is under `cwd`. */
3948
- relative = (file) => file.startsWith(this.config.cwd) ? file.slice(this.config.cwd.length + 1) : file;
3947
+ /**
3948
+ * A path as the user typed it when it is under `cwd`, spelled with `/` on every platform. On
3949
+ * Windows the glob hands over `C:/app/src/a.tsx` against a `cwd` of `C:\app`, so comparing the
3950
+ * two as spelled never matched, and every entry printed absolute.
3951
+ */
3952
+ relative = (file) => {
3953
+ const { path } = this.runtime;
3954
+ const inside = path.relative(this.config.cwd, file);
3955
+ return (inside && !inside.startsWith("..") && !path.isAbsolute(inside) ? inside : file).replaceAll("\\", "/");
3956
+ };
3949
3957
  /**
3950
3958
  * Whether a file is one bamboo wrote.
3951
3959
  *
@@ -6281,7 +6289,8 @@ function formatDoctorReport(report) {
6281
6289
  title,
6282
6290
  ...items.map((item) => ` ${item}`)
6283
6291
  ] : [];
6284
- lines.push(...detail("missing", report.artifacts.missing), ...detail("out of date", report.artifacts.stale), ...detail("no longer generated", report.artifacts.leftover), ...detail("not extracted", report.unextracted.map(({ file, message }) => `${file}: ${message.split("\n").find(Boolean) ?? ""}`)), ...detail("calls to nothing", report.deadCalls));
6292
+ const files = (items) => items.map((item) => item.replaceAll("\\", "/"));
6293
+ lines.push(...detail("missing", files(report.artifacts.missing)), ...detail("out of date", files(report.artifacts.stale)), ...detail("no longer generated", files(report.artifacts.leftover)), ...detail("not extracted", report.unextracted.map(({ file, message }) => `${file.replaceAll("\\", "/")}: ${message.split("\n").find(Boolean) ?? ""}`)), ...detail("calls to nothing", files(report.deadCalls)));
6285
6294
  lines.push("", report.problems.length ? report.problems.join("\n") : "No problems found.");
6286
6295
  return lines.join("\n");
6287
6296
  }
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bamboocss/node",
3
- "version": "1.57.4",
3
+ "version": "1.57.5",
4
4
  "description": "The core css bamboo library",
5
5
  "homepage": "https://bamboocss.com",
6
6
  "license": "MIT",
@@ -60,16 +60,16 @@
60
60
  "pkg-types": "2.3.0",
61
61
  "pluralize": "8.0.0",
62
62
  "ts-pattern": "5.9.0",
63
- "@bamboocss/config": "1.57.4",
64
- "@bamboocss/core": "1.57.4",
65
- "@bamboocss/generator": "1.57.4",
66
- "@bamboocss/logger": "1.57.4",
67
- "@bamboocss/plugin-svelte": "1.57.4",
68
- "@bamboocss/plugin-vue": "1.57.4",
69
- "@bamboocss/reporter": "1.57.4",
70
- "@bamboocss/shared": "1.57.4",
71
- "@bamboocss/token-dictionary": "1.57.4",
72
- "@bamboocss/types": "1.57.4"
63
+ "@bamboocss/config": "1.57.5",
64
+ "@bamboocss/core": "1.57.5",
65
+ "@bamboocss/generator": "1.57.5",
66
+ "@bamboocss/logger": "1.57.5",
67
+ "@bamboocss/plugin-svelte": "1.57.5",
68
+ "@bamboocss/plugin-vue": "1.57.5",
69
+ "@bamboocss/reporter": "1.57.5",
70
+ "@bamboocss/shared": "1.57.5",
71
+ "@bamboocss/token-dictionary": "1.57.5",
72
+ "@bamboocss/types": "1.57.5"
73
73
  },
74
74
  "devDependencies": {
75
75
  "@astrojs/compiler": "3.0.1",
@@ -77,7 +77,7 @@
77
77
  "@types/fs-extra": "11.0.4",
78
78
  "@types/picomatch": "4.0.2",
79
79
  "boxen": "8.0.1",
80
- "@bamboocss/native-extractor": "1.57.4"
80
+ "@bamboocss/native-extractor": "1.57.5"
81
81
  },
82
82
  "peerDependencies": {
83
83
  "@astrojs/compiler": ">=2",