@bamboocss/dev 1.58.1 → 1.58.2

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.
@@ -127,7 +127,7 @@ function isLocError(error) {
127
127
  //#endregion
128
128
  //#region package.json
129
129
  var name = "@bamboocss/dev";
130
- var version = "1.58.1";
130
+ var version = "1.58.2";
131
131
  //#endregion
132
132
  //#region src/cli-main.ts
133
133
  /**
@@ -267,16 +267,18 @@ async function main() {
267
267
  });
268
268
  const { msg } = await (0, _bamboocss_node.codegen)(ctx);
269
269
  _bamboocss_logger.logger.log(msg);
270
- if (watch) ctx.watchConfig(async () => {
270
+ if (watch) ctx.watchConfig(async (_file, reloaded) => {
271
271
  const affecteds = await ctx.diff.reloadConfigAndRefreshContext((conf) => {
272
272
  ctx = new _bamboocss_node.BambooContext(conf);
273
273
  });
274
+ reloaded(ctx);
274
275
  await ctx.hooks["config:change"]?.({
275
276
  config: ctx.config,
276
277
  changes: affecteds
277
278
  });
278
279
  await (0, _bamboocss_node.codegen)(ctx, (0, _bamboocss_node.artifactsToRebuild)(affecteds));
279
280
  _bamboocss_logger.logger.info("ctx:updated", "config rebuilt ✅");
281
+ return ctx;
280
282
  }, {
281
283
  cwd,
282
284
  poll
@@ -318,16 +320,18 @@ async function main() {
318
320
  };
319
321
  await (0, _bamboocss_node.cssgen)(ctx, options);
320
322
  if (watch) {
321
- ctx.watchConfig(async () => {
323
+ ctx.watchConfig(async (_file, reloaded) => {
322
324
  const affecteds = await ctx.diff.reloadConfigAndRefreshContext((conf) => {
323
325
  ctx = new _bamboocss_node.BambooContext(conf);
324
326
  });
327
+ reloaded(ctx);
325
328
  await ctx.hooks["config:change"]?.({
326
329
  config: ctx.config,
327
330
  changes: affecteds
328
331
  });
329
332
  await (0, _bamboocss_node.cssgen)(ctx, options);
330
333
  _bamboocss_logger.logger.info("ctx:updated", "config rebuilt ✅");
334
+ return ctx;
331
335
  }, {
332
336
  cwd,
333
337
  poll
@@ -481,16 +485,18 @@ async function main() {
481
485
  const outfile = outfileFlag ?? (0, node_path.join)(...ctx.paths.root, "bamboo.buildinfo.json");
482
486
  await (0, _bamboocss_node.buildInfo)(ctx, outfile);
483
487
  if (watch) {
484
- ctx.watchConfig(async () => {
488
+ ctx.watchConfig(async (_file, reloaded) => {
485
489
  const affecteds = await ctx.diff.reloadConfigAndRefreshContext((conf) => {
486
490
  ctx = new _bamboocss_node.BambooContext(conf);
487
491
  });
492
+ reloaded(ctx);
488
493
  await ctx.hooks["config:change"]?.({
489
494
  config: ctx.config,
490
495
  changes: affecteds
491
496
  });
492
497
  await (0, _bamboocss_node.buildInfo)(ctx, outfile);
493
498
  _bamboocss_logger.logger.info("ctx:updated", "config rebuilt ✅");
499
+ return ctx;
494
500
  }, {
495
501
  cwd,
496
502
  poll
@@ -125,7 +125,7 @@ function isLocError(error) {
125
125
  //#endregion
126
126
  //#region package.json
127
127
  var name = "@bamboocss/dev";
128
- var version = "1.58.1";
128
+ var version = "1.58.2";
129
129
  //#endregion
130
130
  //#region src/cli-main.ts
131
131
  /**
@@ -265,16 +265,18 @@ async function main() {
265
265
  });
266
266
  const { msg } = await codegen(ctx);
267
267
  logger.log(msg);
268
- if (watch) ctx.watchConfig(async () => {
268
+ if (watch) ctx.watchConfig(async (_file, reloaded) => {
269
269
  const affecteds = await ctx.diff.reloadConfigAndRefreshContext((conf) => {
270
270
  ctx = new BambooContext(conf);
271
271
  });
272
+ reloaded(ctx);
272
273
  await ctx.hooks["config:change"]?.({
273
274
  config: ctx.config,
274
275
  changes: affecteds
275
276
  });
276
277
  await codegen(ctx, artifactsToRebuild(affecteds));
277
278
  logger.info("ctx:updated", "config rebuilt ✅");
279
+ return ctx;
278
280
  }, {
279
281
  cwd,
280
282
  poll
@@ -316,16 +318,18 @@ async function main() {
316
318
  };
317
319
  await cssgen(ctx, options);
318
320
  if (watch) {
319
- ctx.watchConfig(async () => {
321
+ ctx.watchConfig(async (_file, reloaded) => {
320
322
  const affecteds = await ctx.diff.reloadConfigAndRefreshContext((conf) => {
321
323
  ctx = new BambooContext(conf);
322
324
  });
325
+ reloaded(ctx);
323
326
  await ctx.hooks["config:change"]?.({
324
327
  config: ctx.config,
325
328
  changes: affecteds
326
329
  });
327
330
  await cssgen(ctx, options);
328
331
  logger.info("ctx:updated", "config rebuilt ✅");
332
+ return ctx;
329
333
  }, {
330
334
  cwd,
331
335
  poll
@@ -479,16 +483,18 @@ async function main() {
479
483
  const outfile = outfileFlag ?? join(...ctx.paths.root, "bamboo.buildinfo.json");
480
484
  await buildInfo(ctx, outfile);
481
485
  if (watch) {
482
- ctx.watchConfig(async () => {
486
+ ctx.watchConfig(async (_file, reloaded) => {
483
487
  const affecteds = await ctx.diff.reloadConfigAndRefreshContext((conf) => {
484
488
  ctx = new BambooContext(conf);
485
489
  });
490
+ reloaded(ctx);
486
491
  await ctx.hooks["config:change"]?.({
487
492
  config: ctx.config,
488
493
  changes: affecteds
489
494
  });
490
495
  await buildInfo(ctx, outfile);
491
496
  logger.info("ctx:updated", "config rebuilt ✅");
497
+ return ctx;
492
498
  }, {
493
499
  cwd,
494
500
  poll
package/dist/cli-main.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  require("./chunk-CKQMccvm.cjs");
3
- const require_package = require("./package-BDSmdG41.cjs");
3
+ const require_package = require("./package-BprG8-Al.cjs");
4
4
  let _bamboocss_logger = require("@bamboocss/logger");
5
5
  let _bamboocss_node = require("@bamboocss/node");
6
6
  let _bamboocss_shared = require("@bamboocss/shared");
@@ -91,7 +91,7 @@ async function main() {
91
91
  cli.command("init", "Initialize the bamboo config file").option("-i, --interactive", "Run in interactive mode", { default: false }).option("-f, --force", "Force overwrite existing config file").option("-c, --config <path>", "Path to bamboo config file").option("--cwd <cwd>", "Current working directory", { default: cwd }).option("--silent", "Suppress all messages except errors").option("--no-gitignore", "Don't update the .gitignore").option("--no-codegen", "Don't run the codegen logic").option("--out-extension <ext>", "The extension of the generated js files (default: 'mjs')").option("--outdir <dir>", "The output directory for the generated files").option("--strict-values [mode]", "Require every style value to be a token, so a raw css value is written `[14px]`").option("--logfile <file>", "Outputs logs to a file").action(async (initFlags = {}) => {
92
92
  let options = {};
93
93
  if (initFlags.interactive) {
94
- const { interactive } = await Promise.resolve().then(() => require("./interactive-Da4_fiyf.cjs"));
94
+ const { interactive } = await Promise.resolve().then(() => require("./interactive-o3qClRbb.cjs"));
95
95
  options = await interactive({ cwd: (0, node_path.resolve)(initFlags.cwd ?? "") });
96
96
  }
97
97
  const flags = {
@@ -146,16 +146,18 @@ async function main() {
146
146
  });
147
147
  const { msg } = await (0, _bamboocss_node.codegen)(ctx);
148
148
  _bamboocss_logger.logger.log(msg);
149
- if (watch) ctx.watchConfig(async () => {
149
+ if (watch) ctx.watchConfig(async (_file, reloaded) => {
150
150
  const affecteds = await ctx.diff.reloadConfigAndRefreshContext((conf) => {
151
151
  ctx = new _bamboocss_node.BambooContext(conf);
152
152
  });
153
+ reloaded(ctx);
153
154
  await ctx.hooks["config:change"]?.({
154
155
  config: ctx.config,
155
156
  changes: affecteds
156
157
  });
157
158
  await (0, _bamboocss_node.codegen)(ctx, (0, _bamboocss_node.artifactsToRebuild)(affecteds));
158
159
  _bamboocss_logger.logger.info("ctx:updated", "config rebuilt ✅");
160
+ return ctx;
159
161
  }, {
160
162
  cwd,
161
163
  poll
@@ -197,16 +199,18 @@ async function main() {
197
199
  };
198
200
  await (0, _bamboocss_node.cssgen)(ctx, options);
199
201
  if (watch) {
200
- ctx.watchConfig(async () => {
202
+ ctx.watchConfig(async (_file, reloaded) => {
201
203
  const affecteds = await ctx.diff.reloadConfigAndRefreshContext((conf) => {
202
204
  ctx = new _bamboocss_node.BambooContext(conf);
203
205
  });
206
+ reloaded(ctx);
204
207
  await ctx.hooks["config:change"]?.({
205
208
  config: ctx.config,
206
209
  changes: affecteds
207
210
  });
208
211
  await (0, _bamboocss_node.cssgen)(ctx, options);
209
212
  _bamboocss_logger.logger.info("ctx:updated", "config rebuilt ✅");
213
+ return ctx;
210
214
  }, {
211
215
  cwd,
212
216
  poll
@@ -360,16 +364,18 @@ async function main() {
360
364
  const outfile = outfileFlag ?? (0, node_path.join)(...ctx.paths.root, "bamboo.buildinfo.json");
361
365
  await (0, _bamboocss_node.buildInfo)(ctx, outfile);
362
366
  if (watch) {
363
- ctx.watchConfig(async () => {
367
+ ctx.watchConfig(async (_file, reloaded) => {
364
368
  const affecteds = await ctx.diff.reloadConfigAndRefreshContext((conf) => {
365
369
  ctx = new _bamboocss_node.BambooContext(conf);
366
370
  });
371
+ reloaded(ctx);
367
372
  await ctx.hooks["config:change"]?.({
368
373
  config: ctx.config,
369
374
  changes: affecteds
370
375
  });
371
376
  await (0, _bamboocss_node.buildInfo)(ctx, outfile);
372
377
  _bamboocss_logger.logger.info("ctx:updated", "config rebuilt ✅");
378
+ return ctx;
373
379
  }, {
374
380
  cwd,
375
381
  poll
@@ -463,7 +469,7 @@ async function main() {
463
469
  process.exitCode = 1;
464
470
  });
465
471
  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) => {
466
- const { initMcpConfig } = await Promise.resolve().then(() => require("./mcp-init-D4XOoR05.cjs"));
472
+ const { initMcpConfig } = await Promise.resolve().then(() => require("./mcp-init-4QixAHdM.cjs"));
467
473
  const resolvedCwd = (0, node_path.resolve)(mcpInitFlags.cwd ?? cwd);
468
474
  let clients;
469
475
  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-Cls6GqVK.mjs";
1
+ import { t as version } from "./package-DkET7TGE.mjs";
2
2
  import { logger } from "@bamboocss/logger";
3
3
  import { BambooContext, analyze, artifactsToRebuild, buildInfo, codegen, cssgen, debug, doctor, formatDoctorReport, generate, generatePackageExports, loadConfigAndCreateContext, setLogStream, setupConfig, setupGitIgnore, spec, startProfiling } from "@bamboocss/node";
4
4
  import { BambooError, closestMatch, compact } from "@bamboocss/shared";
@@ -89,7 +89,7 @@ async function main() {
89
89
  cli.command("init", "Initialize the bamboo config file").option("-i, --interactive", "Run in interactive mode", { default: false }).option("-f, --force", "Force overwrite existing config file").option("-c, --config <path>", "Path to bamboo config file").option("--cwd <cwd>", "Current working directory", { default: cwd }).option("--silent", "Suppress all messages except errors").option("--no-gitignore", "Don't update the .gitignore").option("--no-codegen", "Don't run the codegen logic").option("--out-extension <ext>", "The extension of the generated js files (default: 'mjs')").option("--outdir <dir>", "The output directory for the generated files").option("--strict-values [mode]", "Require every style value to be a token, so a raw css value is written `[14px]`").option("--logfile <file>", "Outputs logs to a file").action(async (initFlags = {}) => {
90
90
  let options = {};
91
91
  if (initFlags.interactive) {
92
- const { interactive } = await import("./interactive-BgKHl_kc.mjs");
92
+ const { interactive } = await import("./interactive-DOYQiPSn.mjs");
93
93
  options = await interactive({ cwd: resolve(initFlags.cwd ?? "") });
94
94
  }
95
95
  const flags = {
@@ -144,16 +144,18 @@ async function main() {
144
144
  });
145
145
  const { msg } = await codegen(ctx);
146
146
  logger.log(msg);
147
- if (watch) ctx.watchConfig(async () => {
147
+ if (watch) ctx.watchConfig(async (_file, reloaded) => {
148
148
  const affecteds = await ctx.diff.reloadConfigAndRefreshContext((conf) => {
149
149
  ctx = new BambooContext(conf);
150
150
  });
151
+ reloaded(ctx);
151
152
  await ctx.hooks["config:change"]?.({
152
153
  config: ctx.config,
153
154
  changes: affecteds
154
155
  });
155
156
  await codegen(ctx, artifactsToRebuild(affecteds));
156
157
  logger.info("ctx:updated", "config rebuilt ✅");
158
+ return ctx;
157
159
  }, {
158
160
  cwd,
159
161
  poll
@@ -195,16 +197,18 @@ async function main() {
195
197
  };
196
198
  await cssgen(ctx, options);
197
199
  if (watch) {
198
- ctx.watchConfig(async () => {
200
+ ctx.watchConfig(async (_file, reloaded) => {
199
201
  const affecteds = await ctx.diff.reloadConfigAndRefreshContext((conf) => {
200
202
  ctx = new BambooContext(conf);
201
203
  });
204
+ reloaded(ctx);
202
205
  await ctx.hooks["config:change"]?.({
203
206
  config: ctx.config,
204
207
  changes: affecteds
205
208
  });
206
209
  await cssgen(ctx, options);
207
210
  logger.info("ctx:updated", "config rebuilt ✅");
211
+ return ctx;
208
212
  }, {
209
213
  cwd,
210
214
  poll
@@ -358,16 +362,18 @@ async function main() {
358
362
  const outfile = outfileFlag ?? join(...ctx.paths.root, "bamboo.buildinfo.json");
359
363
  await buildInfo(ctx, outfile);
360
364
  if (watch) {
361
- ctx.watchConfig(async () => {
365
+ ctx.watchConfig(async (_file, reloaded) => {
362
366
  const affecteds = await ctx.diff.reloadConfigAndRefreshContext((conf) => {
363
367
  ctx = new BambooContext(conf);
364
368
  });
369
+ reloaded(ctx);
365
370
  await ctx.hooks["config:change"]?.({
366
371
  config: ctx.config,
367
372
  changes: affecteds
368
373
  });
369
374
  await buildInfo(ctx, outfile);
370
375
  logger.info("ctx:updated", "config rebuilt ✅");
376
+ return ctx;
371
377
  }, {
372
378
  cwd,
373
379
  poll
@@ -461,7 +467,7 @@ async function main() {
461
467
  process.exitCode = 1;
462
468
  });
463
469
  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) => {
464
- const { initMcpConfig } = await import("./mcp-init-E7LKCS0j.mjs");
470
+ const { initMcpConfig } = await import("./mcp-init-DB37O-aT.mjs");
465
471
  const resolvedCwd = resolve(mcpInitFlags.cwd ?? cwd);
466
472
  let clients;
467
473
  if (mcpInitFlags.client) clients = (Array.isArray(mcpInitFlags.client) ? mcpInitFlags.client : [mcpInitFlags.client]).flatMap((c) => c.split(",")).map((c) => c.trim());
@@ -1,4 +1,4 @@
1
- import { t as version } from "./package-Cls6GqVK.mjs";
1
+ import { t as version } from "./package-DkET7TGE.mjs";
2
2
  import * as p from "@clack/prompts";
3
3
  //#region src/interactive.ts
4
4
  const interactive = async (_options = {}) => {
@@ -1,5 +1,5 @@
1
1
  const require_chunk = require("./chunk-CKQMccvm.cjs");
2
- const require_package = require("./package-BDSmdG41.cjs");
2
+ const require_package = require("./package-BprG8-Al.cjs");
3
3
  let _clack_prompts = require("@clack/prompts");
4
4
  _clack_prompts = require_chunk.__toESM(_clack_prompts);
5
5
  //#region src/interactive.ts
@@ -24,7 +24,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
24
24
  let _clack_prompts = require("@clack/prompts");
25
25
  _clack_prompts = __toESM(_clack_prompts);
26
26
  //#region package.json
27
- var version = "1.58.1";
27
+ var version = "1.58.2";
28
28
  //#endregion
29
29
  //#region src/interactive.ts
30
30
  const interactive = async (_options = {}) => {
@@ -1,6 +1,6 @@
1
1
  import * as p from "@clack/prompts";
2
2
  //#region package.json
3
- var version = "1.58.1";
3
+ var version = "1.58.2";
4
4
  //#endregion
5
5
  //#region src/interactive.ts
6
6
  const interactive = async (_options = {}) => {
@@ -1,5 +1,5 @@
1
1
  const require_chunk = require("./chunk-CKQMccvm.cjs");
2
- const require_package = require("./package-BDSmdG41.cjs");
2
+ const require_package = require("./package-BprG8-Al.cjs");
3
3
  let _bamboocss_logger = require("@bamboocss/logger");
4
4
  let node_fs = require("node:fs");
5
5
  let node_path = require("node:path");
@@ -1,4 +1,4 @@
1
- import { t as version } from "./package-Cls6GqVK.mjs";
1
+ import { t as version } from "./package-DkET7TGE.mjs";
2
2
  import { logger } from "@bamboocss/logger";
3
3
  import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
4
4
  import { dirname, resolve } from "node:path";
@@ -1,5 +1,5 @@
1
1
  //#region package.json
2
- var version = "1.58.1";
2
+ var version = "1.58.2";
3
3
  //#endregion
4
4
  Object.defineProperty(exports, "version", {
5
5
  enumerable: true,
@@ -1,4 +1,4 @@
1
1
  //#region package.json
2
- var version = "1.58.1";
2
+ var version = "1.58.2";
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.58.1",
3
+ "version": "1.58.2",
4
4
  "description": "Build-time, type-safe, zero-runtime CSS-in-JS",
5
5
  "homepage": "https://bamboocss.com",
6
6
  "license": "MIT",
@@ -52,13 +52,13 @@
52
52
  "dependencies": {
53
53
  "@clack/prompts": "0.11.0",
54
54
  "cac": "6.7.14",
55
- "@bamboocss/logger": "1.58.1",
56
- "@bamboocss/node": "1.58.1",
57
- "@bamboocss/preset-bamboo": "1.58.1",
58
- "@bamboocss/preset-base": "1.58.1",
59
- "@bamboocss/shared": "1.58.1",
60
- "@bamboocss/token-dictionary": "1.58.1",
61
- "@bamboocss/types": "1.58.1"
55
+ "@bamboocss/logger": "1.58.2",
56
+ "@bamboocss/node": "1.58.2",
57
+ "@bamboocss/preset-bamboo": "1.58.2",
58
+ "@bamboocss/preset-base": "1.58.2",
59
+ "@bamboocss/shared": "1.58.2",
60
+ "@bamboocss/token-dictionary": "1.58.2",
61
+ "@bamboocss/types": "1.58.2"
62
62
  },
63
63
  "devDependencies": {
64
64
  "@types/update-notifier": "6.0.8",