@bamboocss/dev 1.30.1 → 1.32.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.30.1";
7630
+ var version = "1.32.0";
7631
7631
  //#endregion
7632
7632
  //#region src/interactive.ts
7633
7633
  const interactive = async () => {
@@ -7766,8 +7766,8 @@ async function main() {
7766
7766
  else stream.end();
7767
7767
  stopProfiling();
7768
7768
  });
7769
- cli.command("cssgen [globOrType]", "Generate the css from files, or generate the css from the specified type which can be: preflight, tokens, static, global, keyframes").option("--silent", "Don't print any logs").option("-m, --minify", "Minify generated code").option("--clean", "Clean the output before generating").option("-c, --config <path>", "Path to bamboo config file").option("-w, --watch", "Watch files and rebuild").option("--minimal", "Do not include CSS generation for theme tokens, preflight, keyframes, static and global css").option("--lightningcss", "Use `lightningcss` instead of `postcss` for css optimization.").option("--polyfill", "Polyfill CSS @layers at-rules for older browsers.").option("-p, --poll", "Use polling instead of filesystem events when watching").option("-o, --outfile [file]", "Output file for extracted css, default to './styled-system/styles.css'").option("--splitting", "Emit CSS as separate files per layer (reset, global, tokens, utilities) and per recipe").option("--cwd <cwd>", "Current working directory", { default: cwd }).option("--cpu-prof", "Generates a `.cpuprofile` to help debug performance issues").option("--logfile <file>", "Outputs logs to a file").action(async (maybeGlob, flags = {}) => {
7770
- const { silent, config: configPath, outfile, watch, poll, minimal, splitting, ...rest } = flags;
7769
+ cli.command("cssgen [globOrType]", "Generate the css from files, or generate the css from the specified type which can be: preflight, tokens, static, global, keyframes").option("--silent", "Don't print any logs").option("-m, --minify", "Minify generated code").option("--clean", "Clean the output before generating").option("-c, --config <path>", "Path to bamboo config file").option("-w, --watch", "Watch files and rebuild").option("--polyfill", "Polyfill CSS @layers at-rules for older browsers.").option("-p, --poll", "Use polling instead of filesystem events when watching").option("-o, --outfile [file]", "Output file for extracted css, default to './styled-system/styles.css'").option("--splitting", "Emit CSS as separate files per layer (reset, global, tokens, utilities) and per recipe").option("--cwd <cwd>", "Current working directory", { default: cwd }).option("--cpu-prof", "Generates a `.cpuprofile` to help debug performance issues").option("--logfile <file>", "Outputs logs to a file").action(async (maybeGlob, flags = {}) => {
7770
+ const { silent, config: configPath, outfile, watch, poll, splitting, ...rest } = flags;
7771
7771
  const cwd = (0, path.resolve)(flags.cwd ?? "");
7772
7772
  const stream = (0, _bamboocss_node.setLogStream)({
7773
7773
  cwd,
@@ -7796,7 +7796,6 @@ async function main() {
7796
7796
  cwd,
7797
7797
  outfile,
7798
7798
  type: cssArtifact,
7799
- minimal,
7800
7799
  splitting
7801
7800
  };
7802
7801
  await (0, _bamboocss_node.cssgen)(ctx, options);
@@ -7830,7 +7829,7 @@ async function main() {
7830
7829
  stopProfiling();
7831
7830
  }
7832
7831
  });
7833
- cli.command("[files]", "Include file glob", { ignoreOptionDefaultValue: true }).option("-o, --outdir <dir>", "Output directory", { default: "styled-system" }).option("-m, --minify", "Minify generated code").option("-w, --watch", "Watch files and rebuild").option("-p, --poll", "Use polling instead of filesystem events when watching").option("-c, --config <path>", "Path to bamboo config file").option("--cwd <cwd>", "Current working directory", { default: cwd }).option("--preflight", "Enable css reset").option("--silent", "Suppress all messages except errors").option("-e, --exclude <files>", "Exclude files", { default: [] }).option("--clean", "Clean output directory").option("--hash", "Hash the generated classnames to make them shorter").option("--lightningcss", "Use `lightningcss` instead of `postcss` for css optimization.").option("--polyfill", "Polyfill CSS @layers at-rules for older browsers.").option("--emitTokensOnly", "Whether to only emit the `tokens` directory").option("--cpu-prof", "Generates a `.cpuprofile` to help debug performance issues").option("--logfile <file>", "Outputs logs to a file").action(async (files, flags) => {
7832
+ cli.command("[files]", "Include file glob", { ignoreOptionDefaultValue: true }).option("-o, --outdir <dir>", "Output directory", { default: "styled-system" }).option("-m, --minify", "Minify generated code").option("-w, --watch", "Watch files and rebuild").option("-p, --poll", "Use polling instead of filesystem events when watching").option("-c, --config <path>", "Path to bamboo config file").option("--cwd <cwd>", "Current working directory", { default: cwd }).option("--preflight", "Enable css reset").option("--silent", "Suppress all messages except errors").option("-e, --exclude <files>", "Exclude files", { default: [] }).option("--clean", "Clean output directory").option("--hash", "Hash the generated classnames to make them shorter").option("--polyfill", "Polyfill CSS @layers at-rules for older browsers.").option("--emitTokensOnly", "Whether to only emit the `tokens` directory").option("--cpu-prof", "Generates a `.cpuprofile` to help debug performance issues").option("--logfile <file>", "Outputs logs to a file").action(async (files, flags) => {
7834
7833
  const { config: configPath, silent, ...rest } = flags;
7835
7834
  const cwd = (0, path.resolve)(flags.cwd ?? "");
7836
7835
  const stream = (0, _bamboocss_node.setLogStream)({
@@ -7956,24 +7955,14 @@ async function main() {
7956
7955
  });
7957
7956
  const pkgPath = (0, path.resolve)(cwd, outdir, "package.json");
7958
7957
  const exists = ctx.runtime.fs.existsSync(pkgPath);
7959
- const exports = [];
7960
- const createDir = (...dir) => {
7961
- return [
7962
- ".",
7963
- base,
7964
- ...dir
7965
- ].filter(Boolean).join("/");
7966
- };
7967
- const createEntry = (dir) => ({
7968
- types: ctx.file.extDts(createDir(dir, "index")),
7969
- require: ctx.file.ext(createDir(dir, "index")),
7970
- import: ctx.file.ext(createDir(dir, "index"))
7971
- });
7972
- exports.push(["./css", createEntry("css")], ["./tokens", createEntry("tokens")], ["./types", createEntry("types")]);
7973
- if (!ctx.patterns.isEmpty()) exports.push(["./patterns", createEntry("patterns")]);
7974
- if (!ctx.recipes.isEmpty()) exports.push(["./recipes", createEntry("recipes")]);
7975
- if (ctx.config.themes) exports.push(["./themes", createEntry("themes")]);
7976
- const stylesDir = createDir("styles.css");
7958
+ /**
7959
+ * The same map codegen writes into the outdir, re-derived here with the package's
7960
+ * `base` prefix. Shared rather than restated so the entry list has one definition —
7961
+ * this copy had drifted: it advertised a `require` condition pointing at `.mjs`, for
7962
+ * output that is ESM under every setting, and it listed `./types` as a runtime entry
7963
+ * for a directory holding only declarations.
7964
+ */
7965
+ const generated = (0, _bamboocss_node.generatePackageExports)(ctx, base);
7977
7966
  const identity = {
7978
7967
  name: outdir,
7979
7968
  description: "This package is auto-generated by Bamboo CSS",
@@ -8015,8 +8004,7 @@ async function main() {
8015
8004
  if (isGenerated) delete content.private;
8016
8005
  content.exports = {
8017
8006
  ...content.exports,
8018
- ...Object.fromEntries(exports),
8019
- "./styles.css": stylesDir
8007
+ ...generated
8020
8008
  };
8021
8009
  await ctx.runtime.fs.writeFile(pkgPath, JSON.stringify(content, null, 2) + "\n");
8022
8010
  _bamboocss_logger.logger.info("cli", `Emit package.json to ${pkgPath}`);
@@ -13,7 +13,7 @@ import tty from "node:tty";
13
13
  import { isMainThread, parentPort } from "worker_threads";
14
14
  import { BambooError, compact } from "@bamboocss/shared";
15
15
  import { logger } from "@bamboocss/logger";
16
- import { BambooContext, analyze, buildInfo, codegen, cssgen, debug, generate, loadConfigAndCreateContext, setLogStream, setupConfig, setupGitIgnore, setupPostcss, spec, startProfiling } from "@bamboocss/node";
16
+ import { BambooContext, analyze, buildInfo, codegen, cssgen, debug, generate, generatePackageExports, loadConfigAndCreateContext, setLogStream, setupConfig, setupGitIgnore, setupPostcss, spec, startProfiling } from "@bamboocss/node";
17
17
  import { cac } from "cac";
18
18
  import * as p from "@clack/prompts";
19
19
  //#region \0rolldown/runtime.js
@@ -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.30.1";
7633
+ var version = "1.32.0";
7634
7634
  //#endregion
7635
7635
  //#region src/interactive.ts
7636
7636
  const interactive = async () => {
@@ -7769,8 +7769,8 @@ async function main() {
7769
7769
  else stream.end();
7770
7770
  stopProfiling();
7771
7771
  });
7772
- cli.command("cssgen [globOrType]", "Generate the css from files, or generate the css from the specified type which can be: preflight, tokens, static, global, keyframes").option("--silent", "Don't print any logs").option("-m, --minify", "Minify generated code").option("--clean", "Clean the output before generating").option("-c, --config <path>", "Path to bamboo config file").option("-w, --watch", "Watch files and rebuild").option("--minimal", "Do not include CSS generation for theme tokens, preflight, keyframes, static and global css").option("--lightningcss", "Use `lightningcss` instead of `postcss` for css optimization.").option("--polyfill", "Polyfill CSS @layers at-rules for older browsers.").option("-p, --poll", "Use polling instead of filesystem events when watching").option("-o, --outfile [file]", "Output file for extracted css, default to './styled-system/styles.css'").option("--splitting", "Emit CSS as separate files per layer (reset, global, tokens, utilities) and per recipe").option("--cwd <cwd>", "Current working directory", { default: cwd }).option("--cpu-prof", "Generates a `.cpuprofile` to help debug performance issues").option("--logfile <file>", "Outputs logs to a file").action(async (maybeGlob, flags = {}) => {
7773
- const { silent, config: configPath, outfile, watch, poll, minimal, splitting, ...rest } = flags;
7772
+ cli.command("cssgen [globOrType]", "Generate the css from files, or generate the css from the specified type which can be: preflight, tokens, static, global, keyframes").option("--silent", "Don't print any logs").option("-m, --minify", "Minify generated code").option("--clean", "Clean the output before generating").option("-c, --config <path>", "Path to bamboo config file").option("-w, --watch", "Watch files and rebuild").option("--polyfill", "Polyfill CSS @layers at-rules for older browsers.").option("-p, --poll", "Use polling instead of filesystem events when watching").option("-o, --outfile [file]", "Output file for extracted css, default to './styled-system/styles.css'").option("--splitting", "Emit CSS as separate files per layer (reset, global, tokens, utilities) and per recipe").option("--cwd <cwd>", "Current working directory", { default: cwd }).option("--cpu-prof", "Generates a `.cpuprofile` to help debug performance issues").option("--logfile <file>", "Outputs logs to a file").action(async (maybeGlob, flags = {}) => {
7773
+ const { silent, config: configPath, outfile, watch, poll, splitting, ...rest } = flags;
7774
7774
  const cwd = resolve(flags.cwd ?? "");
7775
7775
  const stream = setLogStream({
7776
7776
  cwd,
@@ -7799,7 +7799,6 @@ async function main() {
7799
7799
  cwd,
7800
7800
  outfile,
7801
7801
  type: cssArtifact,
7802
- minimal,
7803
7802
  splitting
7804
7803
  };
7805
7804
  await cssgen(ctx, options);
@@ -7833,7 +7832,7 @@ async function main() {
7833
7832
  stopProfiling();
7834
7833
  }
7835
7834
  });
7836
- cli.command("[files]", "Include file glob", { ignoreOptionDefaultValue: true }).option("-o, --outdir <dir>", "Output directory", { default: "styled-system" }).option("-m, --minify", "Minify generated code").option("-w, --watch", "Watch files and rebuild").option("-p, --poll", "Use polling instead of filesystem events when watching").option("-c, --config <path>", "Path to bamboo config file").option("--cwd <cwd>", "Current working directory", { default: cwd }).option("--preflight", "Enable css reset").option("--silent", "Suppress all messages except errors").option("-e, --exclude <files>", "Exclude files", { default: [] }).option("--clean", "Clean output directory").option("--hash", "Hash the generated classnames to make them shorter").option("--lightningcss", "Use `lightningcss` instead of `postcss` for css optimization.").option("--polyfill", "Polyfill CSS @layers at-rules for older browsers.").option("--emitTokensOnly", "Whether to only emit the `tokens` directory").option("--cpu-prof", "Generates a `.cpuprofile` to help debug performance issues").option("--logfile <file>", "Outputs logs to a file").action(async (files, flags) => {
7835
+ cli.command("[files]", "Include file glob", { ignoreOptionDefaultValue: true }).option("-o, --outdir <dir>", "Output directory", { default: "styled-system" }).option("-m, --minify", "Minify generated code").option("-w, --watch", "Watch files and rebuild").option("-p, --poll", "Use polling instead of filesystem events when watching").option("-c, --config <path>", "Path to bamboo config file").option("--cwd <cwd>", "Current working directory", { default: cwd }).option("--preflight", "Enable css reset").option("--silent", "Suppress all messages except errors").option("-e, --exclude <files>", "Exclude files", { default: [] }).option("--clean", "Clean output directory").option("--hash", "Hash the generated classnames to make them shorter").option("--polyfill", "Polyfill CSS @layers at-rules for older browsers.").option("--emitTokensOnly", "Whether to only emit the `tokens` directory").option("--cpu-prof", "Generates a `.cpuprofile` to help debug performance issues").option("--logfile <file>", "Outputs logs to a file").action(async (files, flags) => {
7837
7836
  const { config: configPath, silent, ...rest } = flags;
7838
7837
  const cwd = resolve(flags.cwd ?? "");
7839
7838
  const stream = setLogStream({
@@ -7959,24 +7958,14 @@ async function main() {
7959
7958
  });
7960
7959
  const pkgPath = resolve(cwd, outdir, "package.json");
7961
7960
  const exists = ctx.runtime.fs.existsSync(pkgPath);
7962
- const exports = [];
7963
- const createDir = (...dir) => {
7964
- return [
7965
- ".",
7966
- base,
7967
- ...dir
7968
- ].filter(Boolean).join("/");
7969
- };
7970
- const createEntry = (dir) => ({
7971
- types: ctx.file.extDts(createDir(dir, "index")),
7972
- require: ctx.file.ext(createDir(dir, "index")),
7973
- import: ctx.file.ext(createDir(dir, "index"))
7974
- });
7975
- exports.push(["./css", createEntry("css")], ["./tokens", createEntry("tokens")], ["./types", createEntry("types")]);
7976
- if (!ctx.patterns.isEmpty()) exports.push(["./patterns", createEntry("patterns")]);
7977
- if (!ctx.recipes.isEmpty()) exports.push(["./recipes", createEntry("recipes")]);
7978
- if (ctx.config.themes) exports.push(["./themes", createEntry("themes")]);
7979
- const stylesDir = createDir("styles.css");
7961
+ /**
7962
+ * The same map codegen writes into the outdir, re-derived here with the package's
7963
+ * `base` prefix. Shared rather than restated so the entry list has one definition —
7964
+ * this copy had drifted: it advertised a `require` condition pointing at `.mjs`, for
7965
+ * output that is ESM under every setting, and it listed `./types` as a runtime entry
7966
+ * for a directory holding only declarations.
7967
+ */
7968
+ const generated = generatePackageExports(ctx, base);
7980
7969
  const identity = {
7981
7970
  name: outdir,
7982
7971
  description: "This package is auto-generated by Bamboo CSS",
@@ -8018,8 +8007,7 @@ async function main() {
8018
8007
  if (isGenerated) delete content.private;
8019
8008
  content.exports = {
8020
8009
  ...content.exports,
8021
- ...Object.fromEntries(exports),
8022
- "./styles.css": stylesDir
8010
+ ...generated
8023
8011
  };
8024
8012
  await ctx.runtime.fs.writeFile(pkgPath, JSON.stringify(content, null, 2) + "\n");
8025
8013
  logger.info("cli", `Emit package.json to ${pkgPath}`);
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-BOnXC3Wi.cjs");
2
+ const require_package = require("./package-DXgfGokJ.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");
@@ -144,8 +144,8 @@ async function main() {
144
144
  else stream.end();
145
145
  stopProfiling();
146
146
  });
147
- cli.command("cssgen [globOrType]", "Generate the css from files, or generate the css from the specified type which can be: preflight, tokens, static, global, keyframes").option("--silent", "Don't print any logs").option("-m, --minify", "Minify generated code").option("--clean", "Clean the output before generating").option("-c, --config <path>", "Path to bamboo config file").option("-w, --watch", "Watch files and rebuild").option("--minimal", "Do not include CSS generation for theme tokens, preflight, keyframes, static and global css").option("--lightningcss", "Use `lightningcss` instead of `postcss` for css optimization.").option("--polyfill", "Polyfill CSS @layers at-rules for older browsers.").option("-p, --poll", "Use polling instead of filesystem events when watching").option("-o, --outfile [file]", "Output file for extracted css, default to './styled-system/styles.css'").option("--splitting", "Emit CSS as separate files per layer (reset, global, tokens, utilities) and per recipe").option("--cwd <cwd>", "Current working directory", { default: cwd }).option("--cpu-prof", "Generates a `.cpuprofile` to help debug performance issues").option("--logfile <file>", "Outputs logs to a file").action(async (maybeGlob, flags = {}) => {
148
- const { silent, config: configPath, outfile, watch, poll, minimal, splitting, ...rest } = flags;
147
+ cli.command("cssgen [globOrType]", "Generate the css from files, or generate the css from the specified type which can be: preflight, tokens, static, global, keyframes").option("--silent", "Don't print any logs").option("-m, --minify", "Minify generated code").option("--clean", "Clean the output before generating").option("-c, --config <path>", "Path to bamboo config file").option("-w, --watch", "Watch files and rebuild").option("--polyfill", "Polyfill CSS @layers at-rules for older browsers.").option("-p, --poll", "Use polling instead of filesystem events when watching").option("-o, --outfile [file]", "Output file for extracted css, default to './styled-system/styles.css'").option("--splitting", "Emit CSS as separate files per layer (reset, global, tokens, utilities) and per recipe").option("--cwd <cwd>", "Current working directory", { default: cwd }).option("--cpu-prof", "Generates a `.cpuprofile` to help debug performance issues").option("--logfile <file>", "Outputs logs to a file").action(async (maybeGlob, flags = {}) => {
148
+ const { silent, config: configPath, outfile, watch, poll, splitting, ...rest } = flags;
149
149
  const cwd = (0, path.resolve)(flags.cwd ?? "");
150
150
  const stream = (0, _bamboocss_node.setLogStream)({
151
151
  cwd,
@@ -174,7 +174,6 @@ async function main() {
174
174
  cwd,
175
175
  outfile,
176
176
  type: cssArtifact,
177
- minimal,
178
177
  splitting
179
178
  };
180
179
  await (0, _bamboocss_node.cssgen)(ctx, options);
@@ -208,7 +207,7 @@ async function main() {
208
207
  stopProfiling();
209
208
  }
210
209
  });
211
- cli.command("[files]", "Include file glob", { ignoreOptionDefaultValue: true }).option("-o, --outdir <dir>", "Output directory", { default: "styled-system" }).option("-m, --minify", "Minify generated code").option("-w, --watch", "Watch files and rebuild").option("-p, --poll", "Use polling instead of filesystem events when watching").option("-c, --config <path>", "Path to bamboo config file").option("--cwd <cwd>", "Current working directory", { default: cwd }).option("--preflight", "Enable css reset").option("--silent", "Suppress all messages except errors").option("-e, --exclude <files>", "Exclude files", { default: [] }).option("--clean", "Clean output directory").option("--hash", "Hash the generated classnames to make them shorter").option("--lightningcss", "Use `lightningcss` instead of `postcss` for css optimization.").option("--polyfill", "Polyfill CSS @layers at-rules for older browsers.").option("--emitTokensOnly", "Whether to only emit the `tokens` directory").option("--cpu-prof", "Generates a `.cpuprofile` to help debug performance issues").option("--logfile <file>", "Outputs logs to a file").action(async (files, flags) => {
210
+ cli.command("[files]", "Include file glob", { ignoreOptionDefaultValue: true }).option("-o, --outdir <dir>", "Output directory", { default: "styled-system" }).option("-m, --minify", "Minify generated code").option("-w, --watch", "Watch files and rebuild").option("-p, --poll", "Use polling instead of filesystem events when watching").option("-c, --config <path>", "Path to bamboo config file").option("--cwd <cwd>", "Current working directory", { default: cwd }).option("--preflight", "Enable css reset").option("--silent", "Suppress all messages except errors").option("-e, --exclude <files>", "Exclude files", { default: [] }).option("--clean", "Clean output directory").option("--hash", "Hash the generated classnames to make them shorter").option("--polyfill", "Polyfill CSS @layers at-rules for older browsers.").option("--emitTokensOnly", "Whether to only emit the `tokens` directory").option("--cpu-prof", "Generates a `.cpuprofile` to help debug performance issues").option("--logfile <file>", "Outputs logs to a file").action(async (files, flags) => {
212
211
  const { config: configPath, silent, ...rest } = flags;
213
212
  const cwd = (0, path.resolve)(flags.cwd ?? "");
214
213
  const stream = (0, _bamboocss_node.setLogStream)({
@@ -334,24 +333,14 @@ async function main() {
334
333
  });
335
334
  const pkgPath = (0, path.resolve)(cwd, outdir, "package.json");
336
335
  const exists = ctx.runtime.fs.existsSync(pkgPath);
337
- const exports = [];
338
- const createDir = (...dir) => {
339
- return [
340
- ".",
341
- base,
342
- ...dir
343
- ].filter(Boolean).join("/");
344
- };
345
- const createEntry = (dir) => ({
346
- types: ctx.file.extDts(createDir(dir, "index")),
347
- require: ctx.file.ext(createDir(dir, "index")),
348
- import: ctx.file.ext(createDir(dir, "index"))
349
- });
350
- exports.push(["./css", createEntry("css")], ["./tokens", createEntry("tokens")], ["./types", createEntry("types")]);
351
- if (!ctx.patterns.isEmpty()) exports.push(["./patterns", createEntry("patterns")]);
352
- if (!ctx.recipes.isEmpty()) exports.push(["./recipes", createEntry("recipes")]);
353
- if (ctx.config.themes) exports.push(["./themes", createEntry("themes")]);
354
- const stylesDir = createDir("styles.css");
336
+ /**
337
+ * The same map codegen writes into the outdir, re-derived here with the package's
338
+ * `base` prefix. Shared rather than restated so the entry list has one definition —
339
+ * this copy had drifted: it advertised a `require` condition pointing at `.mjs`, for
340
+ * output that is ESM under every setting, and it listed `./types` as a runtime entry
341
+ * for a directory holding only declarations.
342
+ */
343
+ const generated = (0, _bamboocss_node.generatePackageExports)(ctx, base);
355
344
  const identity = {
356
345
  name: outdir,
357
346
  description: "This package is auto-generated by Bamboo CSS",
@@ -393,8 +382,7 @@ async function main() {
393
382
  if (isGenerated) delete content.private;
394
383
  content.exports = {
395
384
  ...content.exports,
396
- ...Object.fromEntries(exports),
397
- "./styles.css": stylesDir
385
+ ...generated
398
386
  };
399
387
  await ctx.runtime.fs.writeFile(pkgPath, JSON.stringify(content, null, 2) + "\n");
400
388
  _bamboocss_logger.logger.info("cli", `Emit package.json to ${pkgPath}`);
@@ -412,7 +400,7 @@ async function main() {
412
400
  process.exitCode = 1;
413
401
  });
414
402
  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) => {
415
- const { initMcpConfig } = await Promise.resolve().then(() => require("./mcp-init-BvhoBfuw.cjs"));
403
+ const { initMcpConfig } = await Promise.resolve().then(() => require("./mcp-init-C0oaGoDl.cjs"));
416
404
  const resolvedCwd = (0, path.resolve)(mcpInitFlags.cwd ?? cwd);
417
405
  let clients;
418
406
  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,6 +1,6 @@
1
- import { t as version } from "./package-CarQ3yB-.mjs";
1
+ import { t as version } from "./package-hGuUFPQk.mjs";
2
2
  import { logger } from "@bamboocss/logger";
3
- import { BambooContext, analyze, buildInfo, codegen, cssgen, debug, generate, loadConfigAndCreateContext, setLogStream, setupConfig, setupGitIgnore, setupPostcss, spec, startProfiling } from "@bamboocss/node";
3
+ import { BambooContext, analyze, buildInfo, codegen, cssgen, debug, generate, generatePackageExports, loadConfigAndCreateContext, setLogStream, setupConfig, setupGitIgnore, setupPostcss, spec, startProfiling } from "@bamboocss/node";
4
4
  import { compact } from "@bamboocss/shared";
5
5
  import { cac } from "cac";
6
6
  import { join, resolve } from "path";
@@ -142,8 +142,8 @@ async function main() {
142
142
  else stream.end();
143
143
  stopProfiling();
144
144
  });
145
- cli.command("cssgen [globOrType]", "Generate the css from files, or generate the css from the specified type which can be: preflight, tokens, static, global, keyframes").option("--silent", "Don't print any logs").option("-m, --minify", "Minify generated code").option("--clean", "Clean the output before generating").option("-c, --config <path>", "Path to bamboo config file").option("-w, --watch", "Watch files and rebuild").option("--minimal", "Do not include CSS generation for theme tokens, preflight, keyframes, static and global css").option("--lightningcss", "Use `lightningcss` instead of `postcss` for css optimization.").option("--polyfill", "Polyfill CSS @layers at-rules for older browsers.").option("-p, --poll", "Use polling instead of filesystem events when watching").option("-o, --outfile [file]", "Output file for extracted css, default to './styled-system/styles.css'").option("--splitting", "Emit CSS as separate files per layer (reset, global, tokens, utilities) and per recipe").option("--cwd <cwd>", "Current working directory", { default: cwd }).option("--cpu-prof", "Generates a `.cpuprofile` to help debug performance issues").option("--logfile <file>", "Outputs logs to a file").action(async (maybeGlob, flags = {}) => {
146
- const { silent, config: configPath, outfile, watch, poll, minimal, splitting, ...rest } = flags;
145
+ cli.command("cssgen [globOrType]", "Generate the css from files, or generate the css from the specified type which can be: preflight, tokens, static, global, keyframes").option("--silent", "Don't print any logs").option("-m, --minify", "Minify generated code").option("--clean", "Clean the output before generating").option("-c, --config <path>", "Path to bamboo config file").option("-w, --watch", "Watch files and rebuild").option("--polyfill", "Polyfill CSS @layers at-rules for older browsers.").option("-p, --poll", "Use polling instead of filesystem events when watching").option("-o, --outfile [file]", "Output file for extracted css, default to './styled-system/styles.css'").option("--splitting", "Emit CSS as separate files per layer (reset, global, tokens, utilities) and per recipe").option("--cwd <cwd>", "Current working directory", { default: cwd }).option("--cpu-prof", "Generates a `.cpuprofile` to help debug performance issues").option("--logfile <file>", "Outputs logs to a file").action(async (maybeGlob, flags = {}) => {
146
+ const { silent, config: configPath, outfile, watch, poll, splitting, ...rest } = flags;
147
147
  const cwd = resolve(flags.cwd ?? "");
148
148
  const stream = setLogStream({
149
149
  cwd,
@@ -172,7 +172,6 @@ async function main() {
172
172
  cwd,
173
173
  outfile,
174
174
  type: cssArtifact,
175
- minimal,
176
175
  splitting
177
176
  };
178
177
  await cssgen(ctx, options);
@@ -206,7 +205,7 @@ async function main() {
206
205
  stopProfiling();
207
206
  }
208
207
  });
209
- cli.command("[files]", "Include file glob", { ignoreOptionDefaultValue: true }).option("-o, --outdir <dir>", "Output directory", { default: "styled-system" }).option("-m, --minify", "Minify generated code").option("-w, --watch", "Watch files and rebuild").option("-p, --poll", "Use polling instead of filesystem events when watching").option("-c, --config <path>", "Path to bamboo config file").option("--cwd <cwd>", "Current working directory", { default: cwd }).option("--preflight", "Enable css reset").option("--silent", "Suppress all messages except errors").option("-e, --exclude <files>", "Exclude files", { default: [] }).option("--clean", "Clean output directory").option("--hash", "Hash the generated classnames to make them shorter").option("--lightningcss", "Use `lightningcss` instead of `postcss` for css optimization.").option("--polyfill", "Polyfill CSS @layers at-rules for older browsers.").option("--emitTokensOnly", "Whether to only emit the `tokens` directory").option("--cpu-prof", "Generates a `.cpuprofile` to help debug performance issues").option("--logfile <file>", "Outputs logs to a file").action(async (files, flags) => {
208
+ cli.command("[files]", "Include file glob", { ignoreOptionDefaultValue: true }).option("-o, --outdir <dir>", "Output directory", { default: "styled-system" }).option("-m, --minify", "Minify generated code").option("-w, --watch", "Watch files and rebuild").option("-p, --poll", "Use polling instead of filesystem events when watching").option("-c, --config <path>", "Path to bamboo config file").option("--cwd <cwd>", "Current working directory", { default: cwd }).option("--preflight", "Enable css reset").option("--silent", "Suppress all messages except errors").option("-e, --exclude <files>", "Exclude files", { default: [] }).option("--clean", "Clean output directory").option("--hash", "Hash the generated classnames to make them shorter").option("--polyfill", "Polyfill CSS @layers at-rules for older browsers.").option("--emitTokensOnly", "Whether to only emit the `tokens` directory").option("--cpu-prof", "Generates a `.cpuprofile` to help debug performance issues").option("--logfile <file>", "Outputs logs to a file").action(async (files, flags) => {
210
209
  const { config: configPath, silent, ...rest } = flags;
211
210
  const cwd = resolve(flags.cwd ?? "");
212
211
  const stream = setLogStream({
@@ -332,24 +331,14 @@ async function main() {
332
331
  });
333
332
  const pkgPath = resolve(cwd, outdir, "package.json");
334
333
  const exists = ctx.runtime.fs.existsSync(pkgPath);
335
- const exports = [];
336
- const createDir = (...dir) => {
337
- return [
338
- ".",
339
- base,
340
- ...dir
341
- ].filter(Boolean).join("/");
342
- };
343
- const createEntry = (dir) => ({
344
- types: ctx.file.extDts(createDir(dir, "index")),
345
- require: ctx.file.ext(createDir(dir, "index")),
346
- import: ctx.file.ext(createDir(dir, "index"))
347
- });
348
- exports.push(["./css", createEntry("css")], ["./tokens", createEntry("tokens")], ["./types", createEntry("types")]);
349
- if (!ctx.patterns.isEmpty()) exports.push(["./patterns", createEntry("patterns")]);
350
- if (!ctx.recipes.isEmpty()) exports.push(["./recipes", createEntry("recipes")]);
351
- if (ctx.config.themes) exports.push(["./themes", createEntry("themes")]);
352
- const stylesDir = createDir("styles.css");
334
+ /**
335
+ * The same map codegen writes into the outdir, re-derived here with the package's
336
+ * `base` prefix. Shared rather than restated so the entry list has one definition —
337
+ * this copy had drifted: it advertised a `require` condition pointing at `.mjs`, for
338
+ * output that is ESM under every setting, and it listed `./types` as a runtime entry
339
+ * for a directory holding only declarations.
340
+ */
341
+ const generated = generatePackageExports(ctx, base);
353
342
  const identity = {
354
343
  name: outdir,
355
344
  description: "This package is auto-generated by Bamboo CSS",
@@ -391,8 +380,7 @@ async function main() {
391
380
  if (isGenerated) delete content.private;
392
381
  content.exports = {
393
382
  ...content.exports,
394
- ...Object.fromEntries(exports),
395
- "./styles.css": stylesDir
383
+ ...generated
396
384
  };
397
385
  await ctx.runtime.fs.writeFile(pkgPath, JSON.stringify(content, null, 2) + "\n");
398
386
  logger.info("cli", `Emit package.json to ${pkgPath}`);
@@ -410,7 +398,7 @@ async function main() {
410
398
  process.exitCode = 1;
411
399
  });
412
400
  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) => {
413
- const { initMcpConfig } = await import("./mcp-init-Cg37FkSz.mjs");
401
+ const { initMcpConfig } = await import("./mcp-init-CiYAgeNg.mjs");
414
402
  const resolvedCwd = resolve(mcpInitFlags.cwd ?? cwd);
415
403
  let clients;
416
404
  if (mcpInitFlags.client) clients = (Array.isArray(mcpInitFlags.client) ? mcpInitFlags.client : [mcpInitFlags.client]).flatMap((c) => c.split(",")).map((c) => c.trim());
package/dist/index.cjs CHANGED
@@ -1,5 +1,4 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- let _bamboocss_shared = require("@bamboocss/shared");
3
2
  //#region src/index.ts
4
3
  function defineConfig(config) {
5
4
  return Object.assign(config, { name: "__bamboo.config__" });
@@ -10,15 +9,6 @@ function defineRecipe(config) {
10
9
  function defineSlotRecipe(config) {
11
10
  return config;
12
11
  }
13
- function defineParts(parts) {
14
- return function(config) {
15
- return Object.fromEntries(Object.entries(config).map(([key, value]) => {
16
- const part = parts[key];
17
- if (part == null) throw new _bamboocss_shared.BambooError("NOT_FOUND", `Part "${key}" does not exist in the anatomy. Available parts: ${Object.keys(parts).join(", ")}`);
18
- return [part.selector, value];
19
- }));
20
- };
21
- }
22
12
  function definePattern(config) {
23
13
  return config;
24
14
  }
@@ -54,26 +44,18 @@ function createProxy() {
54
44
  }
55
45
  const defineTokens = /* @__PURE__ */ createProxy();
56
46
  const defineSemanticTokens = /* @__PURE__ */ createProxy();
57
- function defineTextStyles(definition) {
58
- return definition;
59
- }
60
- function defineLayerStyles(definition) {
47
+ function defineMixins(definition) {
61
48
  return definition;
62
49
  }
63
50
  function defineStyles(definition) {
64
51
  return definition;
65
52
  }
66
- function defineAnimationStyles(definition) {
67
- return definition;
68
- }
69
53
  //#endregion
70
- exports.defineAnimationStyles = defineAnimationStyles;
71
54
  exports.defineConfig = defineConfig;
72
55
  exports.defineGlobalFontface = defineGlobalFontface;
73
56
  exports.defineGlobalStyles = defineGlobalStyles;
74
57
  exports.defineKeyframes = defineKeyframes;
75
- exports.defineLayerStyles = defineLayerStyles;
76
- exports.defineParts = defineParts;
58
+ exports.defineMixins = defineMixins;
77
59
  exports.definePattern = definePattern;
78
60
  exports.definePlugin = definePlugin;
79
61
  exports.definePreset = definePreset;
@@ -81,7 +63,6 @@ exports.defineRecipe = defineRecipe;
81
63
  exports.defineSemanticTokens = defineSemanticTokens;
82
64
  exports.defineSlotRecipe = defineSlotRecipe;
83
65
  exports.defineStyles = defineStyles;
84
- exports.defineTextStyles = defineTextStyles;
85
66
  exports.defineThemeContract = defineThemeContract;
86
67
  exports.defineThemeVariant = defineThemeVariant;
87
68
  exports.defineTokens = defineTokens;
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { AnimationStyles, BambooPlugin, CompositionStyles, Config, CssKeyframes, GlobalFontface, GlobalStyleObject, HooksApiInterface, LayerStyles, Parts, PatternConfig, PatternProperties, Preset, PropertyConfig, RecipeConfig, RecipeVariantRecord, SemanticTokens, SlotRecipeConfig, SlotRecipeVariantRecord, SystemStyleObject, TextStyles, ThemeVariant, Tokens } from "@bamboocss/types";
1
+ import { BambooPlugin, CompositionStyles, Config, CssKeyframes, GlobalFontface, GlobalStyleObject, HooksApiInterface, Mixins, PatternConfig, PatternProperties, Preset, PropertyConfig, RecipeConfig, RecipeVariantRecord, SemanticTokens, SlotRecipeConfig, SlotRecipeVariantRecord, SystemStyleObject, ThemeVariant, Tokens } from "@bamboocss/types";
2
2
 
3
3
  //#region src/index.d.ts
4
4
  declare function defineConfig(config: Config): Config & {
@@ -6,7 +6,6 @@ declare function defineConfig(config: Config): Config & {
6
6
  };
7
7
  declare function defineRecipe<T extends RecipeVariantRecord>(config: RecipeConfig<T>): RecipeConfig;
8
8
  declare function defineSlotRecipe<S extends string, T extends SlotRecipeVariantRecord<S>>(config: SlotRecipeConfig<S, T>): SlotRecipeConfig;
9
- declare function defineParts<T extends Parts>(parts: T): (config: Partial<Record<keyof T, SystemStyleObject>>) => Partial<Record<keyof T, SystemStyleObject>>;
10
9
  declare function definePattern<T extends PatternConfig>(config: T): PatternConfig;
11
10
  declare function definePreset(preset: Preset): Preset;
12
11
  declare function defineKeyframes(keyframes: CssKeyframes): CssKeyframes;
@@ -21,9 +20,7 @@ type ProxyValue<T> = {
21
20
  } & { [K in keyof Required<T>]: <Value>(definition: Value extends T[K] ? Value : T[K]) => Value };
22
21
  declare const defineTokens: ProxyValue<Tokens>;
23
22
  declare const defineSemanticTokens: ProxyValue<SemanticTokens>;
24
- declare function defineTextStyles(definition: CompositionStyles['textStyles']): TextStyles;
25
- declare function defineLayerStyles(definition: CompositionStyles['layerStyles']): LayerStyles;
23
+ declare function defineMixins(definition: CompositionStyles['mixins']): Mixins;
26
24
  declare function defineStyles(definition: SystemStyleObject): SystemStyleObject;
27
- declare function defineAnimationStyles(definition: CompositionStyles['animationStyles']): AnimationStyles;
28
25
  //#endregion
29
- export { type AnimationStyles, type CompositionStyles, type Config, type CssKeyframes, type GlobalStyleObject, type HooksApiInterface, type LayerStyles, type PatternConfig, type PatternProperties, type Preset, type PropertyConfig, type RecipeConfig, type RecipeVariantRecord, type SemanticTokens, type SlotRecipeConfig, type SlotRecipeVariantRecord, type SystemStyleObject, type TextStyles, type Tokens, defineAnimationStyles, defineConfig, defineGlobalFontface, defineGlobalStyles, defineKeyframes, defineLayerStyles, defineParts, definePattern, definePlugin, definePreset, defineRecipe, defineSemanticTokens, defineSlotRecipe, defineStyles, defineTextStyles, defineThemeContract, defineThemeVariant, defineTokens, defineUtility };
26
+ export { type CompositionStyles, type Config, type CssKeyframes, type GlobalStyleObject, type HooksApiInterface, type Mixins, type PatternConfig, type PatternProperties, type Preset, type PropertyConfig, type RecipeConfig, type RecipeVariantRecord, type SemanticTokens, type SlotRecipeConfig, type SlotRecipeVariantRecord, type SystemStyleObject, type Tokens, defineConfig, defineGlobalFontface, defineGlobalStyles, defineKeyframes, defineMixins, definePattern, definePlugin, definePreset, defineRecipe, defineSemanticTokens, defineSlotRecipe, defineStyles, defineThemeContract, defineThemeVariant, defineTokens, defineUtility };
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { AnimationStyles, BambooPlugin, CompositionStyles, Config, CssKeyframes, GlobalFontface, GlobalStyleObject, HooksApiInterface, LayerStyles, Parts, PatternConfig, PatternProperties, Preset, PropertyConfig, RecipeConfig, RecipeVariantRecord, SemanticTokens, SlotRecipeConfig, SlotRecipeVariantRecord, SystemStyleObject, TextStyles, ThemeVariant, Tokens } from "@bamboocss/types";
1
+ import { BambooPlugin, CompositionStyles, Config, CssKeyframes, GlobalFontface, GlobalStyleObject, HooksApiInterface, Mixins, PatternConfig, PatternProperties, Preset, PropertyConfig, RecipeConfig, RecipeVariantRecord, SemanticTokens, SlotRecipeConfig, SlotRecipeVariantRecord, SystemStyleObject, ThemeVariant, Tokens } from "@bamboocss/types";
2
2
 
3
3
  //#region src/index.d.ts
4
4
  declare function defineConfig(config: Config): Config & {
@@ -6,7 +6,6 @@ declare function defineConfig(config: Config): Config & {
6
6
  };
7
7
  declare function defineRecipe<T extends RecipeVariantRecord>(config: RecipeConfig<T>): RecipeConfig;
8
8
  declare function defineSlotRecipe<S extends string, T extends SlotRecipeVariantRecord<S>>(config: SlotRecipeConfig<S, T>): SlotRecipeConfig;
9
- declare function defineParts<T extends Parts>(parts: T): (config: Partial<Record<keyof T, SystemStyleObject>>) => Partial<Record<keyof T, SystemStyleObject>>;
10
9
  declare function definePattern<T extends PatternConfig>(config: T): PatternConfig;
11
10
  declare function definePreset(preset: Preset): Preset;
12
11
  declare function defineKeyframes(keyframes: CssKeyframes): CssKeyframes;
@@ -21,9 +20,7 @@ type ProxyValue<T> = {
21
20
  } & { [K in keyof Required<T>]: <Value>(definition: Value extends T[K] ? Value : T[K]) => Value };
22
21
  declare const defineTokens: ProxyValue<Tokens>;
23
22
  declare const defineSemanticTokens: ProxyValue<SemanticTokens>;
24
- declare function defineTextStyles(definition: CompositionStyles['textStyles']): TextStyles;
25
- declare function defineLayerStyles(definition: CompositionStyles['layerStyles']): LayerStyles;
23
+ declare function defineMixins(definition: CompositionStyles['mixins']): Mixins;
26
24
  declare function defineStyles(definition: SystemStyleObject): SystemStyleObject;
27
- declare function defineAnimationStyles(definition: CompositionStyles['animationStyles']): AnimationStyles;
28
25
  //#endregion
29
- export { type AnimationStyles, type CompositionStyles, type Config, type CssKeyframes, type GlobalStyleObject, type HooksApiInterface, type LayerStyles, type PatternConfig, type PatternProperties, type Preset, type PropertyConfig, type RecipeConfig, type RecipeVariantRecord, type SemanticTokens, type SlotRecipeConfig, type SlotRecipeVariantRecord, type SystemStyleObject, type TextStyles, type Tokens, defineAnimationStyles, defineConfig, defineGlobalFontface, defineGlobalStyles, defineKeyframes, defineLayerStyles, defineParts, definePattern, definePlugin, definePreset, defineRecipe, defineSemanticTokens, defineSlotRecipe, defineStyles, defineTextStyles, defineThemeContract, defineThemeVariant, defineTokens, defineUtility };
26
+ export { type CompositionStyles, type Config, type CssKeyframes, type GlobalStyleObject, type HooksApiInterface, type Mixins, type PatternConfig, type PatternProperties, type Preset, type PropertyConfig, type RecipeConfig, type RecipeVariantRecord, type SemanticTokens, type SlotRecipeConfig, type SlotRecipeVariantRecord, type SystemStyleObject, type Tokens, defineConfig, defineGlobalFontface, defineGlobalStyles, defineKeyframes, defineMixins, definePattern, definePlugin, definePreset, defineRecipe, defineSemanticTokens, defineSlotRecipe, defineStyles, defineThemeContract, defineThemeVariant, defineTokens, defineUtility };
package/dist/index.mjs CHANGED
@@ -1,4 +1,3 @@
1
- import { BambooError } from "@bamboocss/shared";
2
1
  //#region src/index.ts
3
2
  function defineConfig(config) {
4
3
  return Object.assign(config, { name: "__bamboo.config__" });
@@ -9,15 +8,6 @@ function defineRecipe(config) {
9
8
  function defineSlotRecipe(config) {
10
9
  return config;
11
10
  }
12
- function defineParts(parts) {
13
- return function(config) {
14
- return Object.fromEntries(Object.entries(config).map(([key, value]) => {
15
- const part = parts[key];
16
- if (part == null) throw new BambooError("NOT_FOUND", `Part "${key}" does not exist in the anatomy. Available parts: ${Object.keys(parts).join(", ")}`);
17
- return [part.selector, value];
18
- }));
19
- };
20
- }
21
11
  function definePattern(config) {
22
12
  return config;
23
13
  }
@@ -53,17 +43,11 @@ function createProxy() {
53
43
  }
54
44
  const defineTokens = /* @__PURE__ */ createProxy();
55
45
  const defineSemanticTokens = /* @__PURE__ */ createProxy();
56
- function defineTextStyles(definition) {
57
- return definition;
58
- }
59
- function defineLayerStyles(definition) {
46
+ function defineMixins(definition) {
60
47
  return definition;
61
48
  }
62
49
  function defineStyles(definition) {
63
50
  return definition;
64
51
  }
65
- function defineAnimationStyles(definition) {
66
- return definition;
67
- }
68
52
  //#endregion
69
- export { defineAnimationStyles, defineConfig, defineGlobalFontface, defineGlobalStyles, defineKeyframes, defineLayerStyles, defineParts, definePattern, definePlugin, definePreset, defineRecipe, defineSemanticTokens, defineSlotRecipe, defineStyles, defineTextStyles, defineThemeContract, defineThemeVariant, defineTokens, defineUtility };
53
+ export { defineConfig, defineGlobalFontface, defineGlobalStyles, defineKeyframes, defineMixins, definePattern, definePlugin, definePreset, defineRecipe, defineSemanticTokens, defineSlotRecipe, defineStyles, defineThemeContract, defineThemeVariant, defineTokens, defineUtility };
@@ -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.30.1";
27
+ var version = "1.32.0";
28
28
  //#endregion
29
29
  //#region src/interactive.ts
30
30
  const interactive = async () => {
@@ -1,6 +1,6 @@
1
1
  import * as p from "@clack/prompts";
2
2
  //#region package.json
3
- var version = "1.30.1";
3
+ var version = "1.32.0";
4
4
  //#endregion
5
5
  //#region src/interactive.ts
6
6
  const interactive = async () => {
@@ -1,4 +1,4 @@
1
- const require_package = require("./package-BOnXC3Wi.cjs");
1
+ const require_package = require("./package-DXgfGokJ.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-CarQ3yB-.mjs";
1
+ import { t as version } from "./package-hGuUFPQk.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.30.1";
24
+ var version = "1.32.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.30.1";
2
+ var version = "1.32.0";
3
3
  //#endregion
4
4
  export { version as t };