@bamboocss/dev 1.45.4 → 1.46.0

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.
@@ -7627,7 +7627,7 @@ function isLocError(error) {
7627
7627
  //#endregion
7628
7628
  //#region package.json
7629
7629
  var name = "@bamboocss/dev";
7630
- var version = "1.45.4";
7630
+ var version = "1.46.0";
7631
7631
  //#endregion
7632
7632
  //#region src/interactive.ts
7633
7633
  /**
@@ -7872,8 +7872,10 @@ async function main() {
7872
7872
  poll
7873
7873
  });
7874
7874
  ctx.watchFiles(async (event, file) => {
7875
- if (event === "unlink") ctx.project.removeSourceFile(ctx.runtime.path.abs(cwd, file));
7876
- else if (event === "change") {
7875
+ if (event === "unlink") {
7876
+ ctx.project.removeSourceFile(ctx.runtime.path.abs(cwd, file));
7877
+ await (0, _bamboocss_node.cssgen)(ctx, options);
7878
+ } else if (event === "change") {
7877
7879
  ctx.project.reloadSourceFile(ctx.runtime.path.abs(cwd, file));
7878
7880
  await (0, _bamboocss_node.cssgen)(ctx, options);
7879
7881
  } else if (event === "add") {
@@ -4173,7 +4173,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
4173
4173
  __exportStar(require_ca_file(), exports);
4174
4174
  }));
4175
4175
  //#endregion
4176
- //#region ../../node_modules/.pnpm/tsdown@0.22.0_oxc-resolver@11.19.1_@emnapi+core@1.10.0_@emnapi+runtime@1.11.3__tsx@4.20.6_typescript@6.0.2/node_modules/tsdown/esm-shims.js
4176
+ //#region ../../node_modules/.pnpm/tsdown@0.22.0_@typescript+typescript6@6.0.2_oxc-resolver@11.19.1_@emnapi+core@1.10.0_@emnapi+runtime@1.11.3__tsx@4.20.6/node_modules/tsdown/esm-shims.js
4177
4177
  var getFilename, getDirname, __dirname$2;
4178
4178
  var init_esm_shims = __esmMin((() => {
4179
4179
  getFilename = () => fileURLToPath(import.meta.url);
@@ -7630,7 +7630,7 @@ function isLocError(error) {
7630
7630
  //#endregion
7631
7631
  //#region package.json
7632
7632
  var name = "@bamboocss/dev";
7633
- var version = "1.45.4";
7633
+ var version = "1.46.0";
7634
7634
  //#endregion
7635
7635
  //#region src/interactive.ts
7636
7636
  /**
@@ -7875,8 +7875,10 @@ async function main() {
7875
7875
  poll
7876
7876
  });
7877
7877
  ctx.watchFiles(async (event, file) => {
7878
- if (event === "unlink") ctx.project.removeSourceFile(ctx.runtime.path.abs(cwd, file));
7879
- else if (event === "change") {
7878
+ if (event === "unlink") {
7879
+ ctx.project.removeSourceFile(ctx.runtime.path.abs(cwd, file));
7880
+ await cssgen(ctx, options);
7881
+ } else if (event === "change") {
7880
7882
  ctx.project.reloadSourceFile(ctx.runtime.path.abs(cwd, file));
7881
7883
  await cssgen(ctx, options);
7882
7884
  } else if (event === "add") {
package/dist/cli-main.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_package = require("./package-yZY9RhGd.cjs");
2
+ const require_package = require("./package-Cjl5xZuz.cjs");
3
3
  let _bamboocss_logger = require("@bamboocss/logger");
4
4
  let _bamboocss_node = require("@bamboocss/node");
5
5
  let _bamboocss_shared = require("@bamboocss/shared");
@@ -250,8 +250,10 @@ async function main() {
250
250
  poll
251
251
  });
252
252
  ctx.watchFiles(async (event, file) => {
253
- if (event === "unlink") ctx.project.removeSourceFile(ctx.runtime.path.abs(cwd, file));
254
- else if (event === "change") {
253
+ if (event === "unlink") {
254
+ ctx.project.removeSourceFile(ctx.runtime.path.abs(cwd, file));
255
+ await (0, _bamboocss_node.cssgen)(ctx, options);
256
+ } else if (event === "change") {
255
257
  ctx.project.reloadSourceFile(ctx.runtime.path.abs(cwd, file));
256
258
  await (0, _bamboocss_node.cssgen)(ctx, options);
257
259
  } else if (event === "add") {
@@ -457,7 +459,7 @@ async function main() {
457
459
  process.exitCode = 1;
458
460
  });
459
461
  cli.command("init-mcp", "Initialize MCP configuration for AI clients").option("--cwd <cwd>", "Current working directory", { default: cwd }).option("--client <clients>", "AI clients to configure (claude, cursor, vscode, windsurf, codex)").action(async (mcpInitFlags) => {
460
- const { initMcpConfig } = await Promise.resolve().then(() => require("./mcp-init-D8F1wvPK.cjs"));
462
+ const { initMcpConfig } = await Promise.resolve().then(() => require("./mcp-init-7DyiMDev.cjs"));
461
463
  const resolvedCwd = (0, path.resolve)(mcpInitFlags.cwd ?? cwd);
462
464
  let clients;
463
465
  if (mcpInitFlags.client) clients = (Array.isArray(mcpInitFlags.client) ? mcpInitFlags.client : [mcpInitFlags.client]).flatMap((c) => c.split(",")).map((c) => c.trim());
package/dist/cli-main.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as version } from "./package-BD2izzEI.mjs";
1
+ import { t as version } from "./package-VsZm2tsv.mjs";
2
2
  import { logger } from "@bamboocss/logger";
3
3
  import { BambooContext, analyze, buildInfo, codegen, cssgen, debug, findViteConfig, generate, generatePackageExports, hasUncompilableSources, loadConfigAndCreateContext, setLogStream, setupConfig, setupGitIgnore, setupPostcss, spec, startProfiling } from "@bamboocss/node";
4
4
  import { BambooError, compact } from "@bamboocss/shared";
@@ -248,8 +248,10 @@ async function main() {
248
248
  poll
249
249
  });
250
250
  ctx.watchFiles(async (event, file) => {
251
- if (event === "unlink") ctx.project.removeSourceFile(ctx.runtime.path.abs(cwd, file));
252
- else if (event === "change") {
251
+ if (event === "unlink") {
252
+ ctx.project.removeSourceFile(ctx.runtime.path.abs(cwd, file));
253
+ await cssgen(ctx, options);
254
+ } else if (event === "change") {
253
255
  ctx.project.reloadSourceFile(ctx.runtime.path.abs(cwd, file));
254
256
  await cssgen(ctx, options);
255
257
  } else if (event === "add") {
@@ -455,7 +457,7 @@ async function main() {
455
457
  process.exitCode = 1;
456
458
  });
457
459
  cli.command("init-mcp", "Initialize MCP configuration for AI clients").option("--cwd <cwd>", "Current working directory", { default: cwd }).option("--client <clients>", "AI clients to configure (claude, cursor, vscode, windsurf, codex)").action(async (mcpInitFlags) => {
458
- const { initMcpConfig } = await import("./mcp-init-C4UQNYB_.mjs");
460
+ const { initMcpConfig } = await import("./mcp-init-u65X3Eup.mjs");
459
461
  const resolvedCwd = resolve(mcpInitFlags.cwd ?? cwd);
460
462
  let clients;
461
463
  if (mcpInitFlags.client) clients = (Array.isArray(mcpInitFlags.client) ? mcpInitFlags.client : [mcpInitFlags.client]).flatMap((c) => c.split(",")).map((c) => c.trim());
@@ -25,7 +25,7 @@ let _bamboocss_node = require("@bamboocss/node");
25
25
  let _clack_prompts = require("@clack/prompts");
26
26
  _clack_prompts = __toESM(_clack_prompts);
27
27
  //#region package.json
28
- var version = "1.45.4";
28
+ var version = "1.46.0";
29
29
  //#endregion
30
30
  //#region src/interactive.ts
31
31
  /**
@@ -1,7 +1,7 @@
1
1
  import { findViteConfig, hasUncompilableSources } from "@bamboocss/node";
2
2
  import * as p from "@clack/prompts";
3
3
  //#region package.json
4
- var version = "1.45.4";
4
+ var version = "1.46.0";
5
5
  //#endregion
6
6
  //#region src/interactive.ts
7
7
  /**
@@ -1,4 +1,4 @@
1
- const require_package = require("./package-yZY9RhGd.cjs");
1
+ const require_package = require("./package-Cjl5xZuz.cjs");
2
2
  let _bamboocss_logger = require("@bamboocss/logger");
3
3
  let path = require("path");
4
4
  let _clack_prompts = require("@clack/prompts");
@@ -1,4 +1,4 @@
1
- import { t as version } from "./package-BD2izzEI.mjs";
1
+ import { t as version } from "./package-VsZm2tsv.mjs";
2
2
  import { logger } from "@bamboocss/logger";
3
3
  import { dirname, resolve } from "path";
4
4
  import * as p from "@clack/prompts";
@@ -21,7 +21,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
21
21
  }) : target, mod));
22
22
  //#endregion
23
23
  //#region package.json
24
- var version = "1.45.4";
24
+ var version = "1.46.0";
25
25
  //#endregion
26
26
  Object.defineProperty(exports, "__toESM", {
27
27
  enumerable: true,
@@ -1,4 +1,4 @@
1
1
  //#region package.json
2
- var version = "1.45.4";
2
+ var version = "1.46.0";
3
3
  //#endregion
4
4
  export { version as t };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bamboocss/dev",
3
- "version": "1.45.4",
3
+ "version": "1.46.0",
4
4
  "description": "Build-time, type-safe, zero-runtime CSS-in-JS",
5
5
  "homepage": "https://bamboocss.com",
6
6
  "license": "MIT",
@@ -54,14 +54,14 @@
54
54
  "dependencies": {
55
55
  "@clack/prompts": "0.11.0",
56
56
  "cac": "6.7.14",
57
- "@bamboocss/logger": "1.45.4",
58
- "@bamboocss/node": "1.45.4",
59
- "@bamboocss/postcss": "1.45.4",
60
- "@bamboocss/preset-bamboo": "1.45.4",
61
- "@bamboocss/preset-base": "1.45.4",
62
- "@bamboocss/shared": "1.45.4",
63
- "@bamboocss/token-dictionary": "1.45.4",
64
- "@bamboocss/types": "1.45.4"
57
+ "@bamboocss/logger": "1.46.0",
58
+ "@bamboocss/node": "1.46.0",
59
+ "@bamboocss/postcss": "1.46.0",
60
+ "@bamboocss/preset-bamboo": "1.46.0",
61
+ "@bamboocss/preset-base": "1.46.0",
62
+ "@bamboocss/shared": "1.46.0",
63
+ "@bamboocss/token-dictionary": "1.46.0",
64
+ "@bamboocss/types": "1.46.0"
65
65
  },
66
66
  "devDependencies": {
67
67
  "@types/update-notifier": "6.0.8",