@bamboocss/dev 1.56.7 → 1.57.1

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.
@@ -1,13 +1,11 @@
1
1
  import { createRequire } from "node:module";
2
- import path from "path";
2
+ import fs from "node:fs";
3
+ import path from "node:path";
3
4
  import process$1, { env } from "node:process";
4
5
  import { spawn } from "node:child_process";
5
6
  import { fileURLToPath } from "node:url";
6
- import path$1 from "node:path";
7
7
  import { format, promisify } from "node:util";
8
8
  import os from "node:os";
9
- import os$1 from "os";
10
- import fs from "node:fs";
11
9
  import tty from "node:tty";
12
10
  //#region \0rolldown/runtime.js
13
11
  var __create = Object.create;
@@ -36,7 +34,7 @@ var __require = /* @__PURE__ */ createRequire(import.meta.url);
36
34
  //#endregion
37
35
  //#region ../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js
38
36
  var require_polyfills$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39
- var constants$1 = __require("constants");
37
+ var constants$1 = __require("node:constants");
40
38
  var origCwd = process.cwd;
41
39
  var cwd = null;
42
40
  var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform;
@@ -288,7 +286,7 @@ var require_polyfills$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
288
286
  //#endregion
289
287
  //#region ../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/legacy-streams.js
290
288
  var require_legacy_streams$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
291
- var Stream$2 = __require("stream").Stream;
289
+ var Stream$2 = __require("node:stream").Stream;
292
290
  module.exports = legacy;
293
291
  function legacy(fs) {
294
292
  return {
@@ -394,11 +392,11 @@ var require_clone$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
394
392
  //#endregion
395
393
  //#region ../../node_modules/.pnpm/xdg-basedir@5.1.0/node_modules/xdg-basedir/index.js
396
394
  var import_graceful_fs = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
397
- var fs$7 = __require("fs");
395
+ var fs$7 = __require("node:fs");
398
396
  var polyfills = require_polyfills$1();
399
397
  var legacy = require_legacy_streams$1();
400
398
  var clone = require_clone$1();
401
- var util$1 = __require("util");
399
+ var util$1 = __require("node:util");
402
400
  /* istanbul ignore next - node 0.x polyfill */
403
401
  var gracefulQueue;
404
402
  var previousSymbol;
@@ -445,7 +443,7 @@ var import_graceful_fs = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(
445
443
  })(fs$7.closeSync);
446
444
  if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) process.on("exit", function() {
447
445
  debug(fs$7[gracefulQueue]);
448
- __require("assert").equal(fs$7[gracefulQueue].length, 0);
446
+ __require("node:assert").equal(fs$7[gracefulQueue].length, 0);
449
447
  });
450
448
  }
451
449
  if (!global[gracefulQueue]) publishQueue(global, fs$7[gracefulQueue]);
@@ -747,7 +745,7 @@ var import_graceful_fs = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(
747
745
  if (retryTimer === void 0) retryTimer = setTimeout(retry, 0);
748
746
  }
749
747
  })))(), 1);
750
- const homeDirectory = os$1.homedir();
748
+ const homeDirectory = os.homedir();
751
749
  const { env: env$2 } = process;
752
750
  const xdgData = env$2.XDG_DATA_HOME || (homeDirectory ? path.join(homeDirectory, ".local", "share") : void 0);
753
751
  const xdgConfig = env$2.XDG_CONFIG_HOME || (homeDirectory ? path.join(homeDirectory, ".config") : void 0);
@@ -976,7 +974,7 @@ const Temp = {
976
974
  for (const filePath in Temp.store) Temp.purgeSync(filePath);
977
975
  },
978
976
  truncate: (filePath) => {
979
- const basename = path$1.basename(filePath);
977
+ const basename = path.basename(filePath);
980
978
  if (basename.length <= 128) return filePath;
981
979
  const truncable = /^(\.?)(.*?)((?:\.[^.]+)?(?:\.tmp-\d{10}[a-f0-9]{6})?)$/.exec(basename);
982
980
  if (!truncable) return filePath;
@@ -987,8 +985,8 @@ const Temp = {
987
985
  whenExit(Temp.purgeSyncAll);
988
986
  //#endregion
989
987
  //#region ../../node_modules/.pnpm/atomically@2.1.0/node_modules/atomically/dist/index.js
990
- function writeFileSync(filePath, data, options = DEFAULT_WRITE_OPTIONS) {
991
- if (isString(options)) return writeFileSync(filePath, data, { encoding: options });
988
+ function writeFileSync$1(filePath, data, options = DEFAULT_WRITE_OPTIONS) {
989
+ if (isString(options)) return writeFileSync$1(filePath, data, { encoding: options });
992
990
  const retryOptions = { timeout: options.timeout ?? 1e3 };
993
991
  let tempDisposer = null;
994
992
  let tempPath = null;
@@ -1012,7 +1010,7 @@ function writeFileSync(filePath, data, options = DEFAULT_WRITE_OPTIONS) {
1012
1010
  }
1013
1011
  }
1014
1012
  if (!filePathExists) {
1015
- const parentPath = path$1.dirname(filePath);
1013
+ const parentPath = path.dirname(filePath);
1016
1014
  FS.attempt.mkdirSync(parentPath, {
1017
1015
  mode: 511,
1018
1016
  recursive: true
@@ -1197,9 +1195,9 @@ function hasProperty(object, path) {
1197
1195
  //#endregion
1198
1196
  //#region ../../node_modules/.pnpm/configstore@7.1.0/node_modules/configstore/index.js
1199
1197
  function getConfigDirectory(id, globalConfigPath) {
1200
- const pathPrefix = globalConfigPath ? path$1.join(id, "config.json") : path$1.join("configstore", `${id}.json`);
1201
- const configDirectory = xdgConfig ?? import_graceful_fs.default.mkdtempSync(import_graceful_fs.default.realpathSync(os.tmpdir()) + path$1.sep);
1202
- return path$1.join(configDirectory, pathPrefix);
1198
+ const pathPrefix = globalConfigPath ? path.join(id, "config.json") : path.join("configstore", `${id}.json`);
1199
+ const configDirectory = xdgConfig ?? import_graceful_fs.default.mkdtempSync(import_graceful_fs.default.realpathSync(os.tmpdir()) + path.sep);
1200
+ return path.join(configDirectory, pathPrefix);
1203
1201
  }
1204
1202
  const permissionError = "You don't have access to this file.";
1205
1203
  const mkdirOptions = {
@@ -1227,7 +1225,7 @@ var Configstore = class {
1227
1225
  if (error.code === "ENOENT") return {};
1228
1226
  if (error.name === "SyntaxError") {
1229
1227
  if (this._clearInvalidConfig) {
1230
- writeFileSync(this._path, "", writeFileOptions);
1228
+ writeFileSync$1(this._path, "", writeFileOptions);
1231
1229
  return {};
1232
1230
  }
1233
1231
  throw error;
@@ -1239,8 +1237,8 @@ var Configstore = class {
1239
1237
  }
1240
1238
  set all(value) {
1241
1239
  try {
1242
- import_graceful_fs.default.mkdirSync(path$1.dirname(this._path), mkdirOptions);
1243
- writeFileSync(this._path, JSON.stringify(value, void 0, " "), writeFileOptions);
1240
+ import_graceful_fs.default.mkdirSync(path.dirname(this._path), mkdirOptions);
1241
+ writeFileSync$1(this._path, JSON.stringify(value, void 0, " "), writeFileOptions);
1244
1242
  } catch (error) {
1245
1243
  handlePermissionError(error);
1246
1244
  }
@@ -3033,9 +3031,9 @@ var require_strip_json_comments = /* @__PURE__ */ __commonJSMin(((exports, modul
3033
3031
  //#endregion
3034
3032
  //#region ../../node_modules/.pnpm/rc@1.2.8/node_modules/rc/lib/utils.js
3035
3033
  var require_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
3036
- var fs$5 = __require("fs");
3034
+ var fs$5 = __require("node:fs");
3037
3035
  var ini = require_ini$1();
3038
- var path$8 = __require("path");
3036
+ var path$7 = __require("node:path");
3039
3037
  var stripJsonComments = require_strip_json_comments();
3040
3038
  var parse = exports.parse = function(content) {
3041
3039
  if (/^\s*{/.test(content)) return JSON.parse(stripJsonComments(content));
@@ -3046,7 +3044,7 @@ var require_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
3046
3044
  return arg != null;
3047
3045
  });
3048
3046
  for (var i in args) if ("string" !== typeof args[i]) return;
3049
- var file = path$8.join.apply(null, args);
3047
+ var file = path$7.join.apply(null, args);
3050
3048
  try {
3051
3049
  return fs$5.readFileSync(file, "utf-8");
3052
3050
  } catch (err) {
@@ -3076,14 +3074,14 @@ var require_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
3076
3074
  return obj;
3077
3075
  };
3078
3076
  exports.find = function() {
3079
- var rel = path$8.join.apply(null, [].slice.call(arguments));
3077
+ var rel = path$7.join.apply(null, [].slice.call(arguments));
3080
3078
  function find(start, rel) {
3081
- var file = path$8.join(start, rel);
3079
+ var file = path$7.join(start, rel);
3082
3080
  try {
3083
3081
  fs$5.statSync(file);
3084
3082
  return file;
3085
3083
  } catch (err) {
3086
- if (path$8.dirname(start) !== start) return find(path$8.dirname(start), rel);
3084
+ if (path$7.dirname(start) !== start) return find(path$7.dirname(start), rel);
3087
3085
  }
3088
3086
  }
3089
3087
  return find(process.cwd(), rel);
@@ -3361,7 +3359,7 @@ var require_minimist = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3361
3359
  //#region ../../node_modules/.pnpm/registry-url@6.0.1/node_modules/registry-url/index.js
3362
3360
  var import_rc = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
3363
3361
  var cc = require_utils();
3364
- var join$1 = __require("path").join;
3362
+ var join$1 = __require("node:path").join;
3365
3363
  var deepExtend = require_deep_extend();
3366
3364
  var etc = "/etc";
3367
3365
  var win = process.platform === "win32";
@@ -3410,7 +3408,7 @@ function registryUrl(scope) {
3410
3408
  //#endregion
3411
3409
  //#region ../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/polyfills.js
3412
3410
  var require_polyfills = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3413
- var constants = __require("constants");
3411
+ var constants = __require("node:constants");
3414
3412
  var origCwd = process.cwd;
3415
3413
  var cwd = null;
3416
3414
  var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform;
@@ -3662,7 +3660,7 @@ var require_polyfills = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3662
3660
  //#endregion
3663
3661
  //#region ../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/legacy-streams.js
3664
3662
  var require_legacy_streams = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3665
- var Stream$1 = __require("stream").Stream;
3663
+ var Stream$1 = __require("node:stream").Stream;
3666
3664
  module.exports = legacy;
3667
3665
  function legacy(fs) {
3668
3666
  return {
@@ -3768,11 +3766,11 @@ var require_clone = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3768
3766
  //#endregion
3769
3767
  //#region ../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/graceful-fs.js
3770
3768
  var require_graceful_fs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3771
- var fs$4 = __require("fs");
3769
+ var fs$4 = __require("node:fs");
3772
3770
  var polyfills = require_polyfills();
3773
3771
  var legacy = require_legacy_streams();
3774
3772
  var clone = require_clone();
3775
- var util = __require("util");
3773
+ var util = __require("node:util");
3776
3774
  /* istanbul ignore next - node 0.x polyfill */
3777
3775
  var gracefulQueue;
3778
3776
  var previousSymbol;
@@ -3819,7 +3817,7 @@ var require_graceful_fs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3819
3817
  })(fs$4.closeSync);
3820
3818
  if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) process.on("exit", function() {
3821
3819
  debug(fs$4[gracefulQueue]);
3822
- __require("assert").equal(fs$4[gracefulQueue].length, 0);
3820
+ __require("node:assert").equal(fs$4[gracefulQueue].length, 0);
3823
3821
  });
3824
3822
  }
3825
3823
  if (!global[gracefulQueue]) publishQueue(global, fs$4[gracefulQueue]);
@@ -4166,11 +4164,11 @@ var require_dist$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
4166
4164
  __exportStar(require_ca_file(), exports);
4167
4165
  }));
4168
4166
  //#endregion
4169
- //#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
4167
+ //#region ../../node_modules/.pnpm/tsdown@0.22.0_@typescript+typescript6@6.0.2_oxc-resolver@11.19.1_@emnapi+core@1.11.3_@emnapi+runtime@1.11.3__tsx@4.20.6/node_modules/tsdown/esm-shims.js
4170
4168
  var getFilename, getDirname, __dirname$2;
4171
4169
  var init_esm_shims = __esmMin((() => {
4172
4170
  getFilename = () => fileURLToPath(import.meta.url);
4173
- getDirname = () => path$1.dirname(getFilename());
4171
+ getDirname = () => path.dirname(getFilename());
4174
4172
  __dirname$2 = /* @__PURE__ */ getDirname();
4175
4173
  }));
4176
4174
  //#endregion
@@ -4258,7 +4256,7 @@ var require_proto_list = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4258
4256
  //#region ../../node_modules/.pnpm/config-chain@1.1.13/node_modules/config-chain/index.js
4259
4257
  var require_config_chain = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4260
4258
  init_esm_shims();
4261
- var ProtoList = require_proto_list(), path$7 = __require("path"), fs$3 = __require("fs"), ini$1 = require_ini$1(), EE = __require("events").EventEmitter, url$1 = __require("url"), http = __require("http");
4259
+ var ProtoList = require_proto_list(), path$6 = __require("node:path"), fs$3 = __require("node:fs"), ini$1 = require_ini$1(), EE = __require("node:events").EventEmitter, url$1 = __require("node:url"), http = __require("node:http");
4262
4260
  var exports = module.exports = function() {
4263
4261
  var args = [].slice.call(arguments), conf = new ConfigChain();
4264
4262
  while (args.length) {
@@ -4268,14 +4266,14 @@ var require_config_chain = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4268
4266
  return conf;
4269
4267
  };
4270
4268
  exports.find = function() {
4271
- var rel = path$7.join.apply(null, [].slice.call(arguments));
4269
+ var rel = path$6.join.apply(null, [].slice.call(arguments));
4272
4270
  function find(start, rel) {
4273
- var file = path$7.join(start, rel);
4271
+ var file = path$6.join(start, rel);
4274
4272
  try {
4275
4273
  fs$3.statSync(file);
4276
4274
  return file;
4277
4275
  } catch (err) {
4278
- if (path$7.dirname(start) !== start) return find(path$7.dirname(start), rel);
4276
+ if (path$6.dirname(start) !== start) return find(path$6.dirname(start), rel);
4279
4277
  }
4280
4278
  }
4281
4279
  return find(__dirname$2, rel);
@@ -4299,7 +4297,7 @@ var require_config_chain = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4299
4297
  var args = [].slice.call(arguments).filter(function(arg) {
4300
4298
  return arg != null;
4301
4299
  });
4302
- var file = path$7.join.apply(null, args);
4300
+ var file = path$6.join.apply(null, args);
4303
4301
  var content;
4304
4302
  try {
4305
4303
  content = fs$3.readFileSync(file, "utf-8");
@@ -4527,8 +4525,8 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
4527
4525
  //#endregion
4528
4526
  //#region ../../node_modules/.pnpm/@pnpm+npm-conf@2.3.1/node_modules/@pnpm/npm-conf/lib/util.js
4529
4527
  var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
4530
- const fs$2 = __require("fs");
4531
- const path$6 = __require("path");
4528
+ const fs$2 = __require("node:fs");
4529
+ const path$5 = __require("node:path");
4532
4530
  const { envReplace } = require_dist();
4533
4531
  const parseKey = (key) => {
4534
4532
  if (typeof key !== "string") return key;
@@ -4537,7 +4535,7 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
4537
4535
  const parseField = (types, field, key) => {
4538
4536
  if (typeof field !== "string") return field;
4539
4537
  const typeList = [].concat(types[key]);
4540
- const isPath = typeList.indexOf(path$6) !== -1;
4538
+ const isPath = typeList.indexOf(path$5) !== -1;
4541
4539
  const isBool = typeList.indexOf(Boolean) !== -1;
4542
4540
  const isString = typeList.indexOf(String) !== -1;
4543
4541
  const isNumber = typeList.indexOf(Number) !== -1;
@@ -4556,17 +4554,17 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
4556
4554
  }
4557
4555
  field = envReplace(field, process.env);
4558
4556
  if (isPath) {
4559
- if ((process.platform === "win32" ? /^~(\/|\\)/ : /^~\//).test(field) && process.env.HOME) field = path$6.resolve(process.env.HOME, field.substr(2));
4560
- field = path$6.resolve(field);
4557
+ if ((process.platform === "win32" ? /^~(\/|\\)/ : /^~\//).test(field) && process.env.HOME) field = path$5.resolve(process.env.HOME, field.substr(2));
4558
+ field = path$5.resolve(field);
4561
4559
  }
4562
4560
  if (isNumber && !isNaN(field)) field = Number(field);
4563
4561
  return field;
4564
4562
  };
4565
4563
  const findPrefix = (name) => {
4566
- name = path$6.resolve(name);
4564
+ name = path$5.resolve(name);
4567
4565
  let walkedUp = false;
4568
- while (path$6.basename(name) === "node_modules") {
4569
- name = path$6.dirname(name);
4566
+ while (path$5.basename(name) === "node_modules") {
4567
+ name = path$5.dirname(name);
4570
4568
  walkedUp = true;
4571
4569
  }
4572
4570
  if (walkedUp) return name;
@@ -4575,7 +4573,7 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
4575
4573
  try {
4576
4574
  const files = fs$2.readdirSync(name);
4577
4575
  if (files.includes("node_modules") || files.includes("package.json") || files.includes("package.json5") || files.includes("package.yaml") || files.includes("pnpm-workspace.yaml")) return name;
4578
- const dirname = path$6.dirname(name);
4576
+ const dirname = path$5.dirname(name);
4579
4577
  if (dirname === name) return original;
4580
4578
  return find(dirname, original);
4581
4579
  } catch (error) {
@@ -4596,9 +4594,9 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
4596
4594
  //#endregion
4597
4595
  //#region ../../node_modules/.pnpm/@pnpm+npm-conf@2.3.1/node_modules/@pnpm/npm-conf/lib/types.js
4598
4596
  var require_types = /* @__PURE__ */ __commonJSMin(((exports) => {
4599
- const path$5 = __require("path");
4600
- const Stream = __require("stream").Stream;
4601
- const url = __require("url");
4597
+ const path$4 = __require("node:path");
4598
+ const Stream = __require("node:stream").Stream;
4599
+ const url = __require("node:url");
4602
4600
  const Umask = () => {};
4603
4601
  const getLocalAddresses = () => [];
4604
4602
  const semver = () => {};
@@ -4629,8 +4627,8 @@ var require_types = /* @__PURE__ */ __commonJSMin(((exports) => {
4629
4627
  String,
4630
4628
  Array
4631
4629
  ],
4632
- cafile: path$5,
4633
- cache: path$5,
4630
+ cafile: path$4,
4631
+ cache: path$4,
4634
4632
  "cache-lock-stale": Number,
4635
4633
  "cache-lock-retries": Number,
4636
4634
  "cache-lock-wait": Number,
@@ -4658,7 +4656,7 @@ var require_types = /* @__PURE__ */ __commonJSMin(((exports) => {
4658
4656
  "git-tag-version": Boolean,
4659
4657
  "commit-hooks": Boolean,
4660
4658
  global: Boolean,
4661
- globalconfig: path$5,
4659
+ globalconfig: path$4,
4662
4660
  "global-style": Boolean,
4663
4661
  group: [Number, String],
4664
4662
  "https-proxy": [null, url],
@@ -4668,7 +4666,7 @@ var require_types = /* @__PURE__ */ __commonJSMin(((exports) => {
4668
4666
  "if-present": Boolean,
4669
4667
  "ignore-prepublish": Boolean,
4670
4668
  "ignore-scripts": Boolean,
4671
- "init-module": path$5,
4669
+ "init-module": path$4,
4672
4670
  "init-author-name": String,
4673
4671
  "init-author-email": String,
4674
4672
  "init-author-url": ["", url],
@@ -4719,7 +4717,7 @@ var require_types = /* @__PURE__ */ __commonJSMin(((exports) => {
4719
4717
  parseable: Boolean,
4720
4718
  "prefer-offline": Boolean,
4721
4719
  "prefer-online": Boolean,
4722
- prefix: path$5,
4720
+ prefix: path$4,
4723
4721
  production: Boolean,
4724
4722
  progress: Boolean,
4725
4723
  proxy: [
@@ -4764,12 +4762,12 @@ var require_types = /* @__PURE__ */ __commonJSMin(((exports) => {
4764
4762
  "strict-ssl": Boolean,
4765
4763
  tag: String,
4766
4764
  timing: Boolean,
4767
- tmp: path$5,
4765
+ tmp: path$4,
4768
4766
  unicode: Boolean,
4769
4767
  "unsafe-perm": Boolean,
4770
4768
  usage: Boolean,
4771
4769
  user: [Number, String],
4772
- userconfig: path$5,
4770
+ userconfig: path$4,
4773
4771
  umask: Umask,
4774
4772
  version: Boolean,
4775
4773
  "tag-version-prefix": String,
@@ -4782,8 +4780,8 @@ var require_types = /* @__PURE__ */ __commonJSMin(((exports) => {
4782
4780
  //#region ../../node_modules/.pnpm/@pnpm+npm-conf@2.3.1/node_modules/@pnpm/npm-conf/lib/conf.js
4783
4781
  var require_conf = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4784
4782
  const { readCAFileSync } = require_dist$1();
4785
- const fs$1 = __require("fs");
4786
- const path$4 = __require("path");
4783
+ const fs$1 = __require("node:fs");
4784
+ const path$3 = __require("node:path");
4787
4785
  const { ConfigChain } = require_config_chain();
4788
4786
  const envKeyToSetting = require_envKeyToSetting();
4789
4787
  const util = require_util();
@@ -4851,7 +4849,7 @@ var require_conf = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4851
4849
  this.set("prefix", prefix);
4852
4850
  },
4853
4851
  get: () => {
4854
- return path$4.resolve(this.get("prefix"));
4852
+ return path$3.resolve(this.get("prefix"));
4855
4853
  }
4856
4854
  });
4857
4855
  let p;
@@ -4864,7 +4862,7 @@ var require_conf = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4864
4862
  return p;
4865
4863
  }
4866
4864
  });
4867
- if (Object.prototype.hasOwnProperty.call(cli, "prefix")) p = path$4.resolve(cli.prefix);
4865
+ if (Object.prototype.hasOwnProperty.call(cli, "prefix")) p = path$3.resolve(cli.prefix);
4868
4866
  else try {
4869
4867
  p = util.findPrefix(process.cwd());
4870
4868
  } catch (error) {
@@ -4884,7 +4882,7 @@ var require_conf = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4884
4882
  defConf.user = Number(process.env.SUDO_UID);
4885
4883
  return;
4886
4884
  }
4887
- const prefix = path$4.resolve(this.get("prefix"));
4885
+ const prefix = path$3.resolve(this.get("prefix"));
4888
4886
  try {
4889
4887
  defConf.user = fs$1.statSync(prefix).uid;
4890
4888
  } catch (error) {
@@ -4910,9 +4908,9 @@ var require_conf = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4910
4908
  //#endregion
4911
4909
  //#region ../../node_modules/.pnpm/@pnpm+npm-conf@2.3.1/node_modules/@pnpm/npm-conf/lib/defaults.js
4912
4910
  var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
4913
- const os$2 = __require("os");
4914
- const path$3 = __require("path");
4915
- const temp = os$2.tmpdir();
4911
+ const os$1 = __require("node:os");
4912
+ const path$2 = __require("node:path");
4913
+ const temp = os$1.tmpdir();
4916
4914
  const uidOrPid = process.getuid ? process.getuid() : process.pid;
4917
4915
  const hasUnicode = () => true;
4918
4916
  const isWindows = process.platform === "win32";
@@ -4921,21 +4919,21 @@ var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
4921
4919
  shell: () => isWindows ? process.env.COMSPEC || "cmd.exe" : process.env.SHELL || "/bin/bash"
4922
4920
  };
4923
4921
  const umask = { fromString: () => process.umask() };
4924
- let home = os$2.homedir();
4922
+ let home = os$1.homedir();
4925
4923
  if (home) process.env.HOME = home;
4926
- else home = path$3.resolve(temp, "npm-" + uidOrPid);
4924
+ else home = path$2.resolve(temp, "npm-" + uidOrPid);
4927
4925
  const cacheExtra = process.platform === "win32" ? "npm-cache" : ".npm";
4928
4926
  const cacheRoot = process.platform === "win32" && process.env.APPDATA || home;
4929
- const cache = path$3.resolve(cacheRoot, cacheExtra);
4927
+ const cache = path$2.resolve(cacheRoot, cacheExtra);
4930
4928
  let defaults;
4931
4929
  let globalPrefix;
4932
4930
  Object.defineProperty(exports, "defaults", { get: function() {
4933
4931
  if (defaults) return defaults;
4934
4932
  if (process.env.PREFIX) globalPrefix = process.env.PREFIX;
4935
- else if (process.platform === "win32") globalPrefix = path$3.dirname(process.execPath);
4933
+ else if (process.platform === "win32") globalPrefix = path$2.dirname(process.execPath);
4936
4934
  else {
4937
- globalPrefix = path$3.dirname(path$3.dirname(process.execPath));
4938
- if (process.env.DESTDIR) globalPrefix = path$3.join(process.env.DESTDIR, globalPrefix);
4935
+ globalPrefix = path$2.dirname(path$2.dirname(process.execPath));
4936
+ if (process.env.DESTDIR) globalPrefix = path$2.join(process.env.DESTDIR, globalPrefix);
4939
4937
  }
4940
4938
  defaults = {
4941
4939
  access: null,
@@ -4972,7 +4970,7 @@ var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
4972
4970
  "git-tag-version": true,
4973
4971
  "commit-hooks": true,
4974
4972
  global: false,
4975
- globalconfig: path$3.resolve(globalPrefix, "etc", "npmrc"),
4973
+ globalconfig: path$2.resolve(globalPrefix, "etc", "npmrc"),
4976
4974
  "global-style": false,
4977
4975
  group: process.platform === "win32" ? 0 : process.env.SUDO_GID || process.getgid && process.getgid(),
4978
4976
  "ham-it-up": false,
@@ -4980,7 +4978,7 @@ var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
4980
4978
  "if-present": false,
4981
4979
  "ignore-prepublish": false,
4982
4980
  "ignore-scripts": false,
4983
- "init-module": path$3.resolve(home, ".npm-init.js"),
4981
+ "init-module": path$2.resolve(home, ".npm-init.js"),
4984
4982
  "init-author-name": "",
4985
4983
  "init-author-email": "",
4986
4984
  "init-author-url": "",
@@ -5050,7 +5048,7 @@ var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
5050
5048
  "unsafe-perm": process.platform === "win32" || process.platform === "cygwin" || !(process.getuid && process.setuid && process.getgid && process.setgid) || process.getuid() !== 0,
5051
5049
  usage: false,
5052
5050
  user: process.platform === "win32" ? 0 : "nobody",
5053
- userconfig: path$3.resolve(home, ".npmrc"),
5051
+ userconfig: path$2.resolve(home, ".npmrc"),
5054
5052
  umask: process.umask ? process.umask() : umask.fromString("022"),
5055
5053
  version: false,
5056
5054
  versions: false,
@@ -5063,7 +5061,7 @@ var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
5063
5061
  //#endregion
5064
5062
  //#region ../../node_modules/.pnpm/@pnpm+npm-conf@2.3.1/node_modules/@pnpm/npm-conf/index.js
5065
5063
  var require_npm_conf = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5066
- const path$2 = __require("path");
5064
+ const path$1 = __require("node:path");
5067
5065
  const Conf = require_conf();
5068
5066
  const _defaults = require_defaults();
5069
5067
  module.exports = (opts, types, defaults) => {
@@ -5084,23 +5082,23 @@ var require_npm_conf = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5084
5082
  * According to https://github.com/npm/cli/blob/86f5bdb91f7a5971953a5171d32d6eeda6a2e972/lib/npm.js#L258
5085
5083
  * and https://github.com/npm/cli/blob/86f5bdb91f7a5971953a5171d32d6eeda6a2e972/lib/config/core.js#L92
5086
5084
  */
5087
- warnings.push(conf.addFile(path$2.resolve(path$2.dirname(npmPath), "..", "npmrc"), "builtin"));
5085
+ warnings.push(conf.addFile(path$1.resolve(path$1.dirname(npmPath), "..", "npmrc"), "builtin"));
5088
5086
  }
5089
5087
  conf.addEnv();
5090
5088
  conf.loadPrefix();
5091
- const projectConf = path$2.resolve(conf.localPrefix, ".npmrc");
5089
+ const projectConf = path$1.resolve(conf.localPrefix, ".npmrc");
5092
5090
  const userConf = conf.get("userconfig");
5093
5091
  if (!conf.get("global") && projectConf !== userConf) warnings.push(conf.addFile(projectConf, "project"));
5094
5092
  else conf.add({}, "project");
5095
5093
  if (conf.get("workspace-prefix") && conf.get("workspace-prefix") !== projectConf) {
5096
- const workspaceConf = path$2.resolve(conf.get("workspace-prefix"), ".npmrc");
5094
+ const workspaceConf = path$1.resolve(conf.get("workspace-prefix"), ".npmrc");
5097
5095
  warnings.push(conf.addFile(workspaceConf, "workspace"));
5098
5096
  }
5099
5097
  warnings.push(conf.addFile(conf.get("userconfig"), "user"));
5100
5098
  if (conf.get("prefix")) {
5101
- const etc = path$2.resolve(conf.get("prefix"), "etc");
5102
- conf.root.globalconfig = path$2.resolve(etc, "npmrc");
5103
- conf.root.globalignorefile = path$2.resolve(etc, "npmignore");
5099
+ const etc = path$1.resolve(conf.get("prefix"), "etc");
5100
+ conf.root.globalconfig = path$1.resolve(etc, "npmrc");
5101
+ conf.root.globalignorefile = path$1.resolve(etc, "npmignore");
5104
5102
  }
5105
5103
  warnings.push(conf.addFile(conf.get("globalconfig"), "global"));
5106
5104
  conf.loadUser();
@@ -6785,37 +6783,37 @@ const readRc = (filePath) => {
6785
6783
  };
6786
6784
  const getEnvNpmPrefix = () => Object.keys(process$1.env).reduce((prefix, name) => /^npm_config_prefix$/i.test(name) ? process$1.env[name] : prefix, void 0);
6787
6785
  const getGlobalNpmrc = () => {
6788
- if (isWindows && process$1.env.APPDATA) return path$1.join(process$1.env.APPDATA, "/npm/etc/npmrc");
6786
+ if (isWindows && process$1.env.APPDATA) return path.join(process$1.env.APPDATA, "/npm/etc/npmrc");
6789
6787
  if (process$1.execPath.includes("/Cellar/node")) {
6790
6788
  const homebrewPrefix = process$1.execPath.slice(0, process$1.execPath.indexOf("/Cellar/node"));
6791
- return path$1.join(homebrewPrefix, "/lib/node_modules/npm/npmrc");
6789
+ return path.join(homebrewPrefix, "/lib/node_modules/npm/npmrc");
6792
6790
  }
6793
6791
  if (process$1.execPath.endsWith("/bin/node")) {
6794
- const installDir = path$1.dirname(path$1.dirname(process$1.execPath));
6795
- return path$1.join(installDir, "/etc/npmrc");
6792
+ const installDir = path.dirname(path.dirname(process$1.execPath));
6793
+ return path.join(installDir, "/etc/npmrc");
6796
6794
  }
6797
6795
  };
6798
6796
  const getDefaultNpmPrefix = () => {
6799
6797
  if (isWindows) {
6800
6798
  const { APPDATA } = process$1.env;
6801
- return APPDATA ? path$1.join(APPDATA, "npm") : path$1.dirname(process$1.execPath);
6799
+ return APPDATA ? path.join(APPDATA, "npm") : path.dirname(process$1.execPath);
6802
6800
  }
6803
- return path$1.dirname(path$1.dirname(process$1.execPath));
6801
+ return path.dirname(path.dirname(process$1.execPath));
6804
6802
  };
6805
6803
  const getNpmPrefix = () => {
6806
6804
  const envPrefix = getEnvNpmPrefix();
6807
6805
  if (envPrefix) return envPrefix;
6808
- const homePrefix = readRc(path$1.join(os.homedir(), ".npmrc"));
6806
+ const homePrefix = readRc(path.join(os.homedir(), ".npmrc"));
6809
6807
  if (homePrefix) return homePrefix;
6810
6808
  if (process$1.env.PREFIX) return process$1.env.PREFIX;
6811
6809
  const globalPrefix = readRc(getGlobalNpmrc());
6812
6810
  if (globalPrefix) return globalPrefix;
6813
6811
  return getDefaultNpmPrefix();
6814
6812
  };
6815
- const npmPrefix = path$1.resolve(getNpmPrefix());
6813
+ const npmPrefix = path.resolve(getNpmPrefix());
6816
6814
  const getYarnWindowsDirectory = () => {
6817
6815
  if (isWindows && process$1.env.LOCALAPPDATA) {
6818
- const dir = path$1.join(process$1.env.LOCALAPPDATA, "Yarn");
6816
+ const dir = path.join(process$1.env.LOCALAPPDATA, "Yarn");
6819
6817
  if (fs.existsSync(dir)) return dir;
6820
6818
  }
6821
6819
  return false;
@@ -6824,31 +6822,31 @@ const getYarnPrefix = () => {
6824
6822
  if (process$1.env.PREFIX) return process$1.env.PREFIX;
6825
6823
  const windowsPrefix = getYarnWindowsDirectory();
6826
6824
  if (windowsPrefix) return windowsPrefix;
6827
- const configPrefix = path$1.join(os.homedir(), ".config/yarn");
6825
+ const configPrefix = path.join(os.homedir(), ".config/yarn");
6828
6826
  if (fs.existsSync(configPrefix)) return configPrefix;
6829
- const homePrefix = path$1.join(os.homedir(), ".yarn-config");
6827
+ const homePrefix = path.join(os.homedir(), ".yarn-config");
6830
6828
  if (fs.existsSync(homePrefix)) return homePrefix;
6831
6829
  return npmPrefix;
6832
6830
  };
6833
6831
  const globalDirectory = {};
6834
6832
  globalDirectory.npm = {};
6835
6833
  globalDirectory.npm.prefix = npmPrefix;
6836
- globalDirectory.npm.packages = path$1.join(npmPrefix, isWindows ? "node_modules" : "lib/node_modules");
6837
- globalDirectory.npm.binaries = isWindows ? npmPrefix : path$1.join(npmPrefix, "bin");
6838
- const yarnPrefix = path$1.resolve(getYarnPrefix());
6834
+ globalDirectory.npm.packages = path.join(npmPrefix, isWindows ? "node_modules" : "lib/node_modules");
6835
+ globalDirectory.npm.binaries = isWindows ? npmPrefix : path.join(npmPrefix, "bin");
6836
+ const yarnPrefix = path.resolve(getYarnPrefix());
6839
6837
  globalDirectory.yarn = {};
6840
6838
  globalDirectory.yarn.prefix = yarnPrefix;
6841
- globalDirectory.yarn.packages = path$1.join(yarnPrefix, getYarnWindowsDirectory() ? "Data/global/node_modules" : "global/node_modules");
6842
- globalDirectory.yarn.binaries = path$1.join(globalDirectory.yarn.packages, ".bin");
6839
+ globalDirectory.yarn.packages = path.join(yarnPrefix, getYarnWindowsDirectory() ? "Data/global/node_modules" : "global/node_modules");
6840
+ globalDirectory.yarn.binaries = path.join(globalDirectory.yarn.packages, ".bin");
6843
6841
  //#endregion
6844
6842
  //#region ../../node_modules/.pnpm/is-path-inside@4.0.0/node_modules/is-path-inside/index.js
6845
6843
  function isPathInside(childPath, parentPath) {
6846
- const relation = path$1.relative(parentPath, childPath);
6847
- return Boolean(relation && relation !== ".." && !relation.startsWith(`..${path$1.sep}`) && relation !== path$1.resolve(childPath));
6844
+ const relation = path.relative(parentPath, childPath);
6845
+ return Boolean(relation && relation !== ".." && !relation.startsWith(`..${path.sep}`) && relation !== path.resolve(childPath));
6848
6846
  }
6849
6847
  //#endregion
6850
6848
  //#region ../../node_modules/.pnpm/is-installed-globally@1.0.0/node_modules/is-installed-globally/index.js
6851
- const __dirname$1 = path$1.dirname(fileURLToPath(import.meta.url));
6849
+ const __dirname$1 = path.dirname(fileURLToPath(import.meta.url));
6852
6850
  const isInstalledGlobally = (() => {
6853
6851
  try {
6854
6852
  return isPathInside(__dirname$1, globalDirectory.yarn.packages) || isPathInside(__dirname$1, fs.realpathSync(globalDirectory.npm.packages));
@@ -7783,7 +7781,7 @@ function pupa(template, data, { ignoreMissing = false, transform = ({ value }) =
7783
7781
  }
7784
7782
  //#endregion
7785
7783
  //#region ../../node_modules/.pnpm/update-notifier@7.3.1/node_modules/update-notifier/update-notifier.js
7786
- const __dirname = path$1.dirname(fileURLToPath(import.meta.url));
7784
+ const __dirname = path.dirname(fileURLToPath(import.meta.url));
7787
7785
  const ONE_DAY = 1e3 * 60 * 60 * 24;
7788
7786
  var UpdateNotifier = class {
7789
7787
  config;
@@ -7828,7 +7826,7 @@ var UpdateNotifier = class {
7828
7826
  this.config.delete("update");
7829
7827
  }
7830
7828
  if (Date.now() - this.config.get("lastUpdateCheck") < this.#updateCheckInterval) return;
7831
- spawn(process$1.execPath, [path$1.join(__dirname, "check.js"), JSON.stringify(this.#options)], {
7829
+ spawn(process$1.execPath, [path.join(__dirname, "check.js"), JSON.stringify(this.#options)], {
7832
7830
  detached: true,
7833
7831
  stdio: "ignore"
7834
7832
  }).unref();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bamboocss/dev",
3
- "version": "1.56.7",
3
+ "version": "1.57.1",
4
4
  "description": "Build-time, type-safe, zero-runtime CSS-in-JS",
5
5
  "homepage": "https://bamboocss.com",
6
6
  "license": "MIT",
@@ -52,19 +52,22 @@
52
52
  "dependencies": {
53
53
  "@clack/prompts": "0.11.0",
54
54
  "cac": "6.7.14",
55
- "@bamboocss/logger": "1.56.7",
56
- "@bamboocss/node": "1.56.7",
57
- "@bamboocss/preset-bamboo": "1.56.7",
58
- "@bamboocss/preset-base": "1.56.7",
59
- "@bamboocss/shared": "1.56.7",
60
- "@bamboocss/token-dictionary": "1.56.7",
61
- "@bamboocss/types": "1.56.7"
55
+ "@bamboocss/logger": "1.57.1",
56
+ "@bamboocss/node": "1.57.1",
57
+ "@bamboocss/preset-bamboo": "1.57.1",
58
+ "@bamboocss/preset-base": "1.57.1",
59
+ "@bamboocss/shared": "1.57.1",
60
+ "@bamboocss/token-dictionary": "1.57.1",
61
+ "@bamboocss/types": "1.57.1"
62
62
  },
63
63
  "devDependencies": {
64
64
  "@types/update-notifier": "6.0.8",
65
65
  "kleur": "4.1.5",
66
66
  "update-notifier": "7.3.1"
67
67
  },
68
+ "engines": {
69
+ "node": ">=22.12.0"
70
+ },
68
71
  "scripts": {
69
72
  "build": "tsdown --dts",
70
73
  "build-fast": "tsdown --dts=false",