@bamboocss/dev 1.46.2 → 1.47.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.
- package/dist/cli-default.cjs +439 -98
- package/dist/cli-default.mjs +440 -99
- package/dist/cli-main.cjs +6 -41
- package/dist/cli-main.mjs +7 -42
- package/dist/interactive.cjs +2 -38
- package/dist/interactive.d.cts +2 -21
- package/dist/interactive.d.mts +2 -21
- package/dist/interactive.mjs +3 -38
- package/dist/{mcp-init-Cv1eUoJ5.mjs → mcp-init-CgugXHRM.mjs} +1 -1
- package/dist/{mcp-init-D9ENnjKE.cjs → mcp-init-M6gFdjmf.cjs} +1 -1
- package/dist/{package-CjBesE25.cjs → package-BRkKiL7R.cjs} +1 -1
- package/dist/{package-Cu_-obEp.mjs → package-Dm7-Xv-5.mjs} +1 -1
- package/dist/types.d.cts +0 -1
- package/dist/types.d.mts +0 -1
- package/package.json +9 -12
- package/postcss.d.ts +0 -2
- package/postcss.js +0 -3
package/dist/cli-default.mjs
CHANGED
|
@@ -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,
|
|
16
|
+
import { BambooContext, analyze, buildInfo, codegen, cssgen, debug, generate, generatePackageExports, loadConfigAndCreateContext, setLogStream, setupConfig, setupGitIgnore, 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
|
|
@@ -1683,12 +1683,12 @@ const chalk = createChalk();
|
|
|
1683
1683
|
createChalk({ level: stderrColor ? stderrColor.level : 0 });
|
|
1684
1684
|
//#endregion
|
|
1685
1685
|
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/debug.js
|
|
1686
|
-
var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1686
|
+
var require_debug$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1687
1687
|
module.exports = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
|
|
1688
1688
|
}));
|
|
1689
1689
|
//#endregion
|
|
1690
1690
|
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/constants.js
|
|
1691
|
-
var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1691
|
+
var require_constants$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1692
1692
|
const SEMVER_SPEC_VERSION = "2.0.0";
|
|
1693
1693
|
const MAX_LENGTH = 256;
|
|
1694
1694
|
const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
|
|
@@ -1713,9 +1713,9 @@ var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1713
1713
|
}));
|
|
1714
1714
|
//#endregion
|
|
1715
1715
|
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/re.js
|
|
1716
|
-
var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1717
|
-
const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants();
|
|
1718
|
-
const debug = require_debug();
|
|
1716
|
+
var require_re$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1717
|
+
const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants$1();
|
|
1718
|
+
const debug = require_debug$1();
|
|
1719
1719
|
exports = module.exports = {};
|
|
1720
1720
|
const re = exports.re = [];
|
|
1721
1721
|
const safeRe = exports.safeRe = [];
|
|
@@ -1792,7 +1792,7 @@ var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1792
1792
|
}));
|
|
1793
1793
|
//#endregion
|
|
1794
1794
|
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/parse-options.js
|
|
1795
|
-
var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1795
|
+
var require_parse_options$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1796
1796
|
const looseOption = Object.freeze({ loose: true });
|
|
1797
1797
|
const emptyOpts = Object.freeze({});
|
|
1798
1798
|
const parseOptions = (options) => {
|
|
@@ -1804,7 +1804,7 @@ var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
1804
1804
|
}));
|
|
1805
1805
|
//#endregion
|
|
1806
1806
|
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/identifiers.js
|
|
1807
|
-
var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1807
|
+
var require_identifiers$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1808
1808
|
const numeric = /^[0-9]+$/;
|
|
1809
1809
|
const compareIdentifiers = (a, b) => {
|
|
1810
1810
|
if (typeof a === "number" && typeof b === "number") return a === b ? 0 : a < b ? -1 : 1;
|
|
@@ -1824,12 +1824,12 @@ var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1824
1824
|
}));
|
|
1825
1825
|
//#endregion
|
|
1826
1826
|
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/classes/semver.js
|
|
1827
|
-
var require_semver$
|
|
1828
|
-
const debug = require_debug();
|
|
1829
|
-
const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
|
|
1830
|
-
const { safeRe: re, t } = require_re();
|
|
1831
|
-
const parseOptions = require_parse_options();
|
|
1832
|
-
const { compareIdentifiers } = require_identifiers();
|
|
1827
|
+
var require_semver$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1828
|
+
const debug = require_debug$1();
|
|
1829
|
+
const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants$1();
|
|
1830
|
+
const { safeRe: re, t } = require_re$1();
|
|
1831
|
+
const parseOptions = require_parse_options$1();
|
|
1832
|
+
const { compareIdentifiers } = require_identifiers$1();
|
|
1833
1833
|
module.exports = class SemVer {
|
|
1834
1834
|
constructor(version, options) {
|
|
1835
1835
|
options = parseOptions(options);
|
|
@@ -2002,8 +2002,8 @@ var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2002
2002
|
}));
|
|
2003
2003
|
//#endregion
|
|
2004
2004
|
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/parse.js
|
|
2005
|
-
var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2006
|
-
const SemVer = require_semver$
|
|
2005
|
+
var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2006
|
+
const SemVer = require_semver$2();
|
|
2007
2007
|
const parse = (version, options, throwErrors = false) => {
|
|
2008
2008
|
if (version instanceof SemVer) return version;
|
|
2009
2009
|
try {
|
|
@@ -2017,8 +2017,8 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2017
2017
|
}));
|
|
2018
2018
|
//#endregion
|
|
2019
2019
|
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/diff.js
|
|
2020
|
-
var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2021
|
-
const parse = require_parse();
|
|
2020
|
+
var require_diff$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2021
|
+
const parse = require_parse$1();
|
|
2022
2022
|
const diff = (version1, version2) => {
|
|
2023
2023
|
const v1 = parse(version1, null, true);
|
|
2024
2024
|
const v2 = parse(version2, null, true);
|
|
@@ -2045,22 +2045,22 @@ var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2045
2045
|
}));
|
|
2046
2046
|
//#endregion
|
|
2047
2047
|
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/compare.js
|
|
2048
|
-
var require_compare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2049
|
-
const SemVer = require_semver$
|
|
2048
|
+
var require_compare$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2049
|
+
const SemVer = require_semver$2();
|
|
2050
2050
|
const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
2051
2051
|
module.exports = compare;
|
|
2052
2052
|
}));
|
|
2053
2053
|
//#endregion
|
|
2054
2054
|
//#region ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/functions/gt.js
|
|
2055
|
-
var require_gt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2056
|
-
const compare = require_compare();
|
|
2055
|
+
var require_gt$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2056
|
+
const compare = require_compare$1();
|
|
2057
2057
|
const gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
2058
2058
|
module.exports = gt;
|
|
2059
2059
|
}));
|
|
2060
2060
|
//#endregion
|
|
2061
2061
|
//#region ../../node_modules/.pnpm/ky@1.14.0/node_modules/ky/distribution/errors/HTTPError.js
|
|
2062
|
-
var import_diff = /* @__PURE__ */ __toESM(require_diff(), 1);
|
|
2063
|
-
var import_gt = /* @__PURE__ */ __toESM(require_gt(), 1);
|
|
2062
|
+
var import_diff = /* @__PURE__ */ __toESM(require_diff$1(), 1);
|
|
2063
|
+
var import_gt = /* @__PURE__ */ __toESM(require_gt$1(), 1);
|
|
2064
2064
|
var HTTPError = class extends Error {
|
|
2065
2065
|
response;
|
|
2066
2066
|
request;
|
|
@@ -5216,7 +5216,341 @@ var require_registry_auth_token = /* @__PURE__ */ __commonJSMin(((exports, modul
|
|
|
5216
5216
|
}
|
|
5217
5217
|
}));
|
|
5218
5218
|
//#endregion
|
|
5219
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
5219
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/constants.js
|
|
5220
|
+
var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5221
|
+
const SEMVER_SPEC_VERSION = "2.0.0";
|
|
5222
|
+
const MAX_LENGTH = 256;
|
|
5223
|
+
const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
|
|
5224
|
+
module.exports = {
|
|
5225
|
+
MAX_LENGTH,
|
|
5226
|
+
MAX_SAFE_COMPONENT_LENGTH: 16,
|
|
5227
|
+
MAX_SAFE_BUILD_LENGTH: MAX_LENGTH - 6,
|
|
5228
|
+
MAX_SAFE_INTEGER,
|
|
5229
|
+
RELEASE_TYPES: [
|
|
5230
|
+
"major",
|
|
5231
|
+
"premajor",
|
|
5232
|
+
"minor",
|
|
5233
|
+
"preminor",
|
|
5234
|
+
"patch",
|
|
5235
|
+
"prepatch",
|
|
5236
|
+
"prerelease"
|
|
5237
|
+
],
|
|
5238
|
+
SEMVER_SPEC_VERSION,
|
|
5239
|
+
FLAG_INCLUDE_PRERELEASE: 1,
|
|
5240
|
+
FLAG_LOOSE: 2
|
|
5241
|
+
};
|
|
5242
|
+
}));
|
|
5243
|
+
//#endregion
|
|
5244
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/debug.js
|
|
5245
|
+
var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5246
|
+
module.exports = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
|
|
5247
|
+
}));
|
|
5248
|
+
//#endregion
|
|
5249
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/re.js
|
|
5250
|
+
var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5251
|
+
const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants();
|
|
5252
|
+
const debug = require_debug();
|
|
5253
|
+
exports = module.exports = {};
|
|
5254
|
+
const re = exports.re = [];
|
|
5255
|
+
const safeRe = exports.safeRe = [];
|
|
5256
|
+
const src = exports.src = [];
|
|
5257
|
+
const safeSrc = exports.safeSrc = [];
|
|
5258
|
+
const t = exports.t = {};
|
|
5259
|
+
let R = 0;
|
|
5260
|
+
const LETTERDASHNUMBER = "[a-zA-Z0-9-]";
|
|
5261
|
+
const safeRegexReplacements = [
|
|
5262
|
+
["\\s", 1],
|
|
5263
|
+
["\\d", MAX_LENGTH],
|
|
5264
|
+
[LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
|
|
5265
|
+
];
|
|
5266
|
+
const makeSafeRegex = (value) => {
|
|
5267
|
+
for (const [token, max] of safeRegexReplacements) value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
|
|
5268
|
+
return value;
|
|
5269
|
+
};
|
|
5270
|
+
const createToken = (name, value, isGlobal) => {
|
|
5271
|
+
const safe = makeSafeRegex(value);
|
|
5272
|
+
const index = R++;
|
|
5273
|
+
debug(name, index, value);
|
|
5274
|
+
t[name] = index;
|
|
5275
|
+
src[index] = value;
|
|
5276
|
+
safeSrc[index] = safe;
|
|
5277
|
+
re[index] = new RegExp(value, isGlobal ? "g" : void 0);
|
|
5278
|
+
safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
|
|
5279
|
+
};
|
|
5280
|
+
createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
|
|
5281
|
+
createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
|
|
5282
|
+
createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
|
|
5283
|
+
createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
|
|
5284
|
+
createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
5285
|
+
createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIER]})`);
|
|
5286
|
+
createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
5287
|
+
createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
|
|
5288
|
+
createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
|
|
5289
|
+
createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
|
|
5290
|
+
createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
|
|
5291
|
+
createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
|
|
5292
|
+
createToken("FULL", `^${src[t.FULLPLAIN]}$`);
|
|
5293
|
+
createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);
|
|
5294
|
+
createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`);
|
|
5295
|
+
createToken("GTLT", "((?:<|>)?=?)");
|
|
5296
|
+
createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
|
|
5297
|
+
createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
|
|
5298
|
+
createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`);
|
|
5299
|
+
createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);
|
|
5300
|
+
createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
|
|
5301
|
+
createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
|
|
5302
|
+
createToken("COERCEPLAIN", `(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
|
|
5303
|
+
createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
|
|
5304
|
+
createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`);
|
|
5305
|
+
createToken("COERCERTL", src[t.COERCE], true);
|
|
5306
|
+
createToken("COERCERTLFULL", src[t.COERCEFULL], true);
|
|
5307
|
+
createToken("LONETILDE", "(?:~>?)");
|
|
5308
|
+
createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, true);
|
|
5309
|
+
exports.tildeTrimReplace = "$1~";
|
|
5310
|
+
createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
|
|
5311
|
+
createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
5312
|
+
createToken("LONECARET", "(?:\\^)");
|
|
5313
|
+
createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, true);
|
|
5314
|
+
exports.caretTrimReplace = "$1^";
|
|
5315
|
+
createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
|
|
5316
|
+
createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
5317
|
+
createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
|
|
5318
|
+
createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
|
|
5319
|
+
createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);
|
|
5320
|
+
exports.comparatorTrimReplace = "$1$2$3";
|
|
5321
|
+
createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);
|
|
5322
|
+
createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);
|
|
5323
|
+
createToken("STAR", "(<|>)?=?\\s*\\*");
|
|
5324
|
+
createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
|
|
5325
|
+
createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
5326
|
+
}));
|
|
5327
|
+
//#endregion
|
|
5328
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/parse-options.js
|
|
5329
|
+
var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5330
|
+
const looseOption = Object.freeze({ loose: true });
|
|
5331
|
+
const emptyOpts = Object.freeze({});
|
|
5332
|
+
const parseOptions = (options) => {
|
|
5333
|
+
if (!options) return emptyOpts;
|
|
5334
|
+
if (typeof options !== "object") return looseOption;
|
|
5335
|
+
return options;
|
|
5336
|
+
};
|
|
5337
|
+
module.exports = parseOptions;
|
|
5338
|
+
}));
|
|
5339
|
+
//#endregion
|
|
5340
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/identifiers.js
|
|
5341
|
+
var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5342
|
+
const numeric = /^[0-9]+$/;
|
|
5343
|
+
const compareIdentifiers = (a, b) => {
|
|
5344
|
+
if (typeof a === "number" && typeof b === "number") return a === b ? 0 : a < b ? -1 : 1;
|
|
5345
|
+
const anum = numeric.test(a);
|
|
5346
|
+
const bnum = numeric.test(b);
|
|
5347
|
+
if (anum && bnum) {
|
|
5348
|
+
a = +a;
|
|
5349
|
+
b = +b;
|
|
5350
|
+
}
|
|
5351
|
+
return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
|
|
5352
|
+
};
|
|
5353
|
+
const rcompareIdentifiers = (a, b) => compareIdentifiers(b, a);
|
|
5354
|
+
module.exports = {
|
|
5355
|
+
compareIdentifiers,
|
|
5356
|
+
rcompareIdentifiers
|
|
5357
|
+
};
|
|
5358
|
+
}));
|
|
5359
|
+
//#endregion
|
|
5360
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/semver.js
|
|
5361
|
+
var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5362
|
+
const debug = require_debug();
|
|
5363
|
+
const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
|
|
5364
|
+
const { safeRe: re, t } = require_re();
|
|
5365
|
+
const parseOptions = require_parse_options();
|
|
5366
|
+
const { compareIdentifiers } = require_identifiers();
|
|
5367
|
+
module.exports = class SemVer {
|
|
5368
|
+
constructor(version, options) {
|
|
5369
|
+
options = parseOptions(options);
|
|
5370
|
+
if (version instanceof SemVer) if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) return version;
|
|
5371
|
+
else version = version.version;
|
|
5372
|
+
else if (typeof version !== "string") throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
|
|
5373
|
+
if (version.length > MAX_LENGTH) throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);
|
|
5374
|
+
debug("SemVer", version, options);
|
|
5375
|
+
this.options = options;
|
|
5376
|
+
this.loose = !!options.loose;
|
|
5377
|
+
this.includePrerelease = !!options.includePrerelease;
|
|
5378
|
+
const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
|
|
5379
|
+
if (!m) throw new TypeError(`Invalid Version: ${version}`);
|
|
5380
|
+
this.raw = version;
|
|
5381
|
+
this.major = +m[1];
|
|
5382
|
+
this.minor = +m[2];
|
|
5383
|
+
this.patch = +m[3];
|
|
5384
|
+
if (this.major > MAX_SAFE_INTEGER || this.major < 0) throw new TypeError("Invalid major version");
|
|
5385
|
+
if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) throw new TypeError("Invalid minor version");
|
|
5386
|
+
if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) throw new TypeError("Invalid patch version");
|
|
5387
|
+
if (!m[4]) this.prerelease = [];
|
|
5388
|
+
else this.prerelease = m[4].split(".").map((id) => {
|
|
5389
|
+
if (/^[0-9]+$/.test(id)) {
|
|
5390
|
+
const num = +id;
|
|
5391
|
+
if (num >= 0 && num < MAX_SAFE_INTEGER) return num;
|
|
5392
|
+
}
|
|
5393
|
+
return id;
|
|
5394
|
+
});
|
|
5395
|
+
this.build = m[5] ? m[5].split(".") : [];
|
|
5396
|
+
this.format();
|
|
5397
|
+
}
|
|
5398
|
+
format() {
|
|
5399
|
+
this.version = `${this.major}.${this.minor}.${this.patch}`;
|
|
5400
|
+
if (this.prerelease.length) this.version += `-${this.prerelease.join(".")}`;
|
|
5401
|
+
return this.version;
|
|
5402
|
+
}
|
|
5403
|
+
toString() {
|
|
5404
|
+
return this.version;
|
|
5405
|
+
}
|
|
5406
|
+
compare(other) {
|
|
5407
|
+
debug("SemVer.compare", this.version, this.options, other);
|
|
5408
|
+
if (!(other instanceof SemVer)) {
|
|
5409
|
+
if (typeof other === "string" && other === this.version) return 0;
|
|
5410
|
+
other = new SemVer(other, this.options);
|
|
5411
|
+
}
|
|
5412
|
+
if (other.version === this.version) return 0;
|
|
5413
|
+
return this.compareMain(other) || this.comparePre(other);
|
|
5414
|
+
}
|
|
5415
|
+
compareMain(other) {
|
|
5416
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
5417
|
+
if (this.major < other.major) return -1;
|
|
5418
|
+
if (this.major > other.major) return 1;
|
|
5419
|
+
if (this.minor < other.minor) return -1;
|
|
5420
|
+
if (this.minor > other.minor) return 1;
|
|
5421
|
+
if (this.patch < other.patch) return -1;
|
|
5422
|
+
if (this.patch > other.patch) return 1;
|
|
5423
|
+
return 0;
|
|
5424
|
+
}
|
|
5425
|
+
comparePre(other) {
|
|
5426
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
5427
|
+
if (this.prerelease.length && !other.prerelease.length) return -1;
|
|
5428
|
+
else if (!this.prerelease.length && other.prerelease.length) return 1;
|
|
5429
|
+
else if (!this.prerelease.length && !other.prerelease.length) return 0;
|
|
5430
|
+
let i = 0;
|
|
5431
|
+
do {
|
|
5432
|
+
const a = this.prerelease[i];
|
|
5433
|
+
const b = other.prerelease[i];
|
|
5434
|
+
debug("prerelease compare", i, a, b);
|
|
5435
|
+
if (a === void 0 && b === void 0) return 0;
|
|
5436
|
+
else if (b === void 0) return 1;
|
|
5437
|
+
else if (a === void 0) return -1;
|
|
5438
|
+
else if (a === b) continue;
|
|
5439
|
+
else return compareIdentifiers(a, b);
|
|
5440
|
+
} while (++i);
|
|
5441
|
+
}
|
|
5442
|
+
compareBuild(other) {
|
|
5443
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
5444
|
+
let i = 0;
|
|
5445
|
+
do {
|
|
5446
|
+
const a = this.build[i];
|
|
5447
|
+
const b = other.build[i];
|
|
5448
|
+
debug("build compare", i, a, b);
|
|
5449
|
+
if (a === void 0 && b === void 0) return 0;
|
|
5450
|
+
else if (b === void 0) return 1;
|
|
5451
|
+
else if (a === void 0) return -1;
|
|
5452
|
+
else if (a === b) continue;
|
|
5453
|
+
else return compareIdentifiers(a, b);
|
|
5454
|
+
} while (++i);
|
|
5455
|
+
}
|
|
5456
|
+
inc(release, identifier, identifierBase) {
|
|
5457
|
+
if (release.startsWith("pre")) {
|
|
5458
|
+
if (!identifier && identifierBase === false) throw new Error("invalid increment argument: identifier is empty");
|
|
5459
|
+
if (identifier) {
|
|
5460
|
+
const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]);
|
|
5461
|
+
if (!match || match[1] !== identifier) throw new Error(`invalid identifier: ${identifier}`);
|
|
5462
|
+
}
|
|
5463
|
+
}
|
|
5464
|
+
switch (release) {
|
|
5465
|
+
case "premajor":
|
|
5466
|
+
this.prerelease.length = 0;
|
|
5467
|
+
this.patch = 0;
|
|
5468
|
+
this.minor = 0;
|
|
5469
|
+
this.major++;
|
|
5470
|
+
this.inc("pre", identifier, identifierBase);
|
|
5471
|
+
break;
|
|
5472
|
+
case "preminor":
|
|
5473
|
+
this.prerelease.length = 0;
|
|
5474
|
+
this.patch = 0;
|
|
5475
|
+
this.minor++;
|
|
5476
|
+
this.inc("pre", identifier, identifierBase);
|
|
5477
|
+
break;
|
|
5478
|
+
case "prepatch":
|
|
5479
|
+
this.prerelease.length = 0;
|
|
5480
|
+
this.inc("patch", identifier, identifierBase);
|
|
5481
|
+
this.inc("pre", identifier, identifierBase);
|
|
5482
|
+
break;
|
|
5483
|
+
case "prerelease":
|
|
5484
|
+
if (this.prerelease.length === 0) this.inc("patch", identifier, identifierBase);
|
|
5485
|
+
this.inc("pre", identifier, identifierBase);
|
|
5486
|
+
break;
|
|
5487
|
+
case "release":
|
|
5488
|
+
if (this.prerelease.length === 0) throw new Error(`version ${this.raw} is not a prerelease`);
|
|
5489
|
+
this.prerelease.length = 0;
|
|
5490
|
+
break;
|
|
5491
|
+
case "major":
|
|
5492
|
+
if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) this.major++;
|
|
5493
|
+
this.minor = 0;
|
|
5494
|
+
this.patch = 0;
|
|
5495
|
+
this.prerelease = [];
|
|
5496
|
+
break;
|
|
5497
|
+
case "minor":
|
|
5498
|
+
if (this.patch !== 0 || this.prerelease.length === 0) this.minor++;
|
|
5499
|
+
this.patch = 0;
|
|
5500
|
+
this.prerelease = [];
|
|
5501
|
+
break;
|
|
5502
|
+
case "patch":
|
|
5503
|
+
if (this.prerelease.length === 0) this.patch++;
|
|
5504
|
+
this.prerelease = [];
|
|
5505
|
+
break;
|
|
5506
|
+
case "pre": {
|
|
5507
|
+
const base = Number(identifierBase) ? 1 : 0;
|
|
5508
|
+
if (this.prerelease.length === 0) this.prerelease = [base];
|
|
5509
|
+
else {
|
|
5510
|
+
let i = this.prerelease.length;
|
|
5511
|
+
while (--i >= 0) if (typeof this.prerelease[i] === "number") {
|
|
5512
|
+
this.prerelease[i]++;
|
|
5513
|
+
i = -2;
|
|
5514
|
+
}
|
|
5515
|
+
if (i === -1) {
|
|
5516
|
+
if (identifier === this.prerelease.join(".") && identifierBase === false) throw new Error("invalid increment argument: identifier already exists");
|
|
5517
|
+
this.prerelease.push(base);
|
|
5518
|
+
}
|
|
5519
|
+
}
|
|
5520
|
+
if (identifier) {
|
|
5521
|
+
let prerelease = [identifier, base];
|
|
5522
|
+
if (identifierBase === false) prerelease = [identifier];
|
|
5523
|
+
if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
|
|
5524
|
+
if (isNaN(this.prerelease[1])) this.prerelease = prerelease;
|
|
5525
|
+
} else this.prerelease = prerelease;
|
|
5526
|
+
}
|
|
5527
|
+
break;
|
|
5528
|
+
}
|
|
5529
|
+
default: throw new Error(`invalid increment argument: ${release}`);
|
|
5530
|
+
}
|
|
5531
|
+
this.raw = this.format();
|
|
5532
|
+
if (this.build.length) this.raw += `+${this.build.join(".")}`;
|
|
5533
|
+
return this;
|
|
5534
|
+
}
|
|
5535
|
+
};
|
|
5536
|
+
}));
|
|
5537
|
+
//#endregion
|
|
5538
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/parse.js
|
|
5539
|
+
var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5540
|
+
const SemVer = require_semver$1();
|
|
5541
|
+
const parse = (version, options, throwErrors = false) => {
|
|
5542
|
+
if (version instanceof SemVer) return version;
|
|
5543
|
+
try {
|
|
5544
|
+
return new SemVer(version, options);
|
|
5545
|
+
} catch (er) {
|
|
5546
|
+
if (!throwErrors) return null;
|
|
5547
|
+
throw er;
|
|
5548
|
+
}
|
|
5549
|
+
};
|
|
5550
|
+
module.exports = parse;
|
|
5551
|
+
}));
|
|
5552
|
+
//#endregion
|
|
5553
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/valid.js
|
|
5220
5554
|
var require_valid$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5221
5555
|
const parse = require_parse();
|
|
5222
5556
|
const valid = (version, options) => {
|
|
@@ -5226,7 +5560,7 @@ var require_valid$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5226
5560
|
module.exports = valid;
|
|
5227
5561
|
}));
|
|
5228
5562
|
//#endregion
|
|
5229
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
5563
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/clean.js
|
|
5230
5564
|
var require_clean = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5231
5565
|
const parse = require_parse();
|
|
5232
5566
|
const clean = (version, options) => {
|
|
@@ -5236,7 +5570,7 @@ var require_clean = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5236
5570
|
module.exports = clean;
|
|
5237
5571
|
}));
|
|
5238
5572
|
//#endregion
|
|
5239
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
5573
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/inc.js
|
|
5240
5574
|
var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5241
5575
|
const SemVer = require_semver$1();
|
|
5242
5576
|
const inc = (version, release, options, identifier, identifierBase) => {
|
|
@@ -5254,28 +5588,56 @@ var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5254
5588
|
module.exports = inc;
|
|
5255
5589
|
}));
|
|
5256
5590
|
//#endregion
|
|
5257
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
5591
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/diff.js
|
|
5592
|
+
var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5593
|
+
const parse = require_parse();
|
|
5594
|
+
const diff = (version1, version2) => {
|
|
5595
|
+
const v1 = parse(version1, null, true);
|
|
5596
|
+
const v2 = parse(version2, null, true);
|
|
5597
|
+
const comparison = v1.compare(v2);
|
|
5598
|
+
if (comparison === 0) return null;
|
|
5599
|
+
const v1Higher = comparison > 0;
|
|
5600
|
+
const highVersion = v1Higher ? v1 : v2;
|
|
5601
|
+
const lowVersion = v1Higher ? v2 : v1;
|
|
5602
|
+
const highHasPre = !!highVersion.prerelease.length;
|
|
5603
|
+
if (!!lowVersion.prerelease.length && !highHasPre) {
|
|
5604
|
+
if (!lowVersion.patch && !lowVersion.minor) return "major";
|
|
5605
|
+
if (lowVersion.compareMain(highVersion) === 0) {
|
|
5606
|
+
if (lowVersion.minor && !lowVersion.patch) return "minor";
|
|
5607
|
+
return "patch";
|
|
5608
|
+
}
|
|
5609
|
+
}
|
|
5610
|
+
const prefix = highHasPre ? "pre" : "";
|
|
5611
|
+
if (v1.major !== v2.major) return prefix + "major";
|
|
5612
|
+
if (v1.minor !== v2.minor) return prefix + "minor";
|
|
5613
|
+
if (v1.patch !== v2.patch) return prefix + "patch";
|
|
5614
|
+
return "prerelease";
|
|
5615
|
+
};
|
|
5616
|
+
module.exports = diff;
|
|
5617
|
+
}));
|
|
5618
|
+
//#endregion
|
|
5619
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/major.js
|
|
5258
5620
|
var require_major = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5259
5621
|
const SemVer = require_semver$1();
|
|
5260
5622
|
const major = (a, loose) => new SemVer(a, loose).major;
|
|
5261
5623
|
module.exports = major;
|
|
5262
5624
|
}));
|
|
5263
5625
|
//#endregion
|
|
5264
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
5626
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/minor.js
|
|
5265
5627
|
var require_minor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5266
5628
|
const SemVer = require_semver$1();
|
|
5267
5629
|
const minor = (a, loose) => new SemVer(a, loose).minor;
|
|
5268
5630
|
module.exports = minor;
|
|
5269
5631
|
}));
|
|
5270
5632
|
//#endregion
|
|
5271
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
5633
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/patch.js
|
|
5272
5634
|
var require_patch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5273
5635
|
const SemVer = require_semver$1();
|
|
5274
5636
|
const patch = (a, loose) => new SemVer(a, loose).patch;
|
|
5275
5637
|
module.exports = patch;
|
|
5276
5638
|
}));
|
|
5277
5639
|
//#endregion
|
|
5278
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
5640
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/prerelease.js
|
|
5279
5641
|
var require_prerelease = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5280
5642
|
const parse = require_parse();
|
|
5281
5643
|
const prerelease = (version, options) => {
|
|
@@ -5285,21 +5647,28 @@ var require_prerelease = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5285
5647
|
module.exports = prerelease;
|
|
5286
5648
|
}));
|
|
5287
5649
|
//#endregion
|
|
5288
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
5650
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare.js
|
|
5651
|
+
var require_compare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5652
|
+
const SemVer = require_semver$1();
|
|
5653
|
+
const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
5654
|
+
module.exports = compare;
|
|
5655
|
+
}));
|
|
5656
|
+
//#endregion
|
|
5657
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/rcompare.js
|
|
5289
5658
|
var require_rcompare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5290
5659
|
const compare = require_compare();
|
|
5291
5660
|
const rcompare = (a, b, loose) => compare(b, a, loose);
|
|
5292
5661
|
module.exports = rcompare;
|
|
5293
5662
|
}));
|
|
5294
5663
|
//#endregion
|
|
5295
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
5664
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare-loose.js
|
|
5296
5665
|
var require_compare_loose = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5297
5666
|
const compare = require_compare();
|
|
5298
5667
|
const compareLoose = (a, b) => compare(a, b, true);
|
|
5299
5668
|
module.exports = compareLoose;
|
|
5300
5669
|
}));
|
|
5301
5670
|
//#endregion
|
|
5302
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
5671
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare-build.js
|
|
5303
5672
|
var require_compare_build = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5304
5673
|
const SemVer = require_semver$1();
|
|
5305
5674
|
const compareBuild = (a, b, loose) => {
|
|
@@ -5310,56 +5679,63 @@ var require_compare_build = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
5310
5679
|
module.exports = compareBuild;
|
|
5311
5680
|
}));
|
|
5312
5681
|
//#endregion
|
|
5313
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
5682
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/sort.js
|
|
5314
5683
|
var require_sort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5315
5684
|
const compareBuild = require_compare_build();
|
|
5316
5685
|
const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
|
|
5317
5686
|
module.exports = sort;
|
|
5318
5687
|
}));
|
|
5319
5688
|
//#endregion
|
|
5320
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
5689
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/rsort.js
|
|
5321
5690
|
var require_rsort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5322
5691
|
const compareBuild = require_compare_build();
|
|
5323
5692
|
const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
|
|
5324
5693
|
module.exports = rsort;
|
|
5325
5694
|
}));
|
|
5326
5695
|
//#endregion
|
|
5327
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
5696
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/gt.js
|
|
5697
|
+
var require_gt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5698
|
+
const compare = require_compare();
|
|
5699
|
+
const gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
5700
|
+
module.exports = gt;
|
|
5701
|
+
}));
|
|
5702
|
+
//#endregion
|
|
5703
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/lt.js
|
|
5328
5704
|
var require_lt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5329
5705
|
const compare = require_compare();
|
|
5330
5706
|
const lt = (a, b, loose) => compare(a, b, loose) < 0;
|
|
5331
5707
|
module.exports = lt;
|
|
5332
5708
|
}));
|
|
5333
5709
|
//#endregion
|
|
5334
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
5710
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/eq.js
|
|
5335
5711
|
var require_eq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5336
5712
|
const compare = require_compare();
|
|
5337
5713
|
const eq = (a, b, loose) => compare(a, b, loose) === 0;
|
|
5338
5714
|
module.exports = eq;
|
|
5339
5715
|
}));
|
|
5340
5716
|
//#endregion
|
|
5341
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
5717
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/neq.js
|
|
5342
5718
|
var require_neq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5343
5719
|
const compare = require_compare();
|
|
5344
5720
|
const neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
|
5345
5721
|
module.exports = neq;
|
|
5346
5722
|
}));
|
|
5347
5723
|
//#endregion
|
|
5348
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
5724
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/gte.js
|
|
5349
5725
|
var require_gte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5350
5726
|
const compare = require_compare();
|
|
5351
5727
|
const gte = (a, b, loose) => compare(a, b, loose) >= 0;
|
|
5352
5728
|
module.exports = gte;
|
|
5353
5729
|
}));
|
|
5354
5730
|
//#endregion
|
|
5355
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
5731
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/lte.js
|
|
5356
5732
|
var require_lte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5357
5733
|
const compare = require_compare();
|
|
5358
5734
|
const lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
|
5359
5735
|
module.exports = lte;
|
|
5360
5736
|
}));
|
|
5361
5737
|
//#endregion
|
|
5362
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
5738
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/cmp.js
|
|
5363
5739
|
var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5364
5740
|
const eq = require_eq();
|
|
5365
5741
|
const neq = require_neq();
|
|
@@ -5391,7 +5767,7 @@ var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5391
5767
|
module.exports = cmp;
|
|
5392
5768
|
}));
|
|
5393
5769
|
//#endregion
|
|
5394
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
5770
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/coerce.js
|
|
5395
5771
|
var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5396
5772
|
const SemVer = require_semver$1();
|
|
5397
5773
|
const parse = require_parse();
|
|
@@ -5419,7 +5795,7 @@ var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5419
5795
|
module.exports = coerce;
|
|
5420
5796
|
}));
|
|
5421
5797
|
//#endregion
|
|
5422
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
5798
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/lrucache.js
|
|
5423
5799
|
var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5424
5800
|
var LRUCache = class {
|
|
5425
5801
|
constructor() {
|
|
@@ -5452,7 +5828,7 @@ var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5452
5828
|
module.exports = LRUCache;
|
|
5453
5829
|
}));
|
|
5454
5830
|
//#endregion
|
|
5455
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
5831
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/range.js
|
|
5456
5832
|
var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5457
5833
|
const SPACE_CHARACTERS = /\s+/g;
|
|
5458
5834
|
module.exports = class Range {
|
|
@@ -5724,7 +6100,7 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5724
6100
|
};
|
|
5725
6101
|
}));
|
|
5726
6102
|
//#endregion
|
|
5727
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
6103
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/comparator.js
|
|
5728
6104
|
var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5729
6105
|
const ANY = Symbol("SemVer ANY");
|
|
5730
6106
|
module.exports = class Comparator {
|
|
@@ -5794,7 +6170,7 @@ var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5794
6170
|
const Range = require_range();
|
|
5795
6171
|
}));
|
|
5796
6172
|
//#endregion
|
|
5797
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
6173
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/satisfies.js
|
|
5798
6174
|
var require_satisfies = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5799
6175
|
const Range = require_range();
|
|
5800
6176
|
const satisfies = (version, range, options) => {
|
|
@@ -5808,14 +6184,14 @@ var require_satisfies = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5808
6184
|
module.exports = satisfies;
|
|
5809
6185
|
}));
|
|
5810
6186
|
//#endregion
|
|
5811
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
6187
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/to-comparators.js
|
|
5812
6188
|
var require_to_comparators = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5813
6189
|
const Range = require_range();
|
|
5814
6190
|
const toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
|
|
5815
6191
|
module.exports = toComparators;
|
|
5816
6192
|
}));
|
|
5817
6193
|
//#endregion
|
|
5818
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
6194
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/max-satisfying.js
|
|
5819
6195
|
var require_max_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5820
6196
|
const SemVer = require_semver$1();
|
|
5821
6197
|
const Range = require_range();
|
|
@@ -5841,7 +6217,7 @@ var require_max_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
5841
6217
|
module.exports = maxSatisfying;
|
|
5842
6218
|
}));
|
|
5843
6219
|
//#endregion
|
|
5844
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
6220
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/min-satisfying.js
|
|
5845
6221
|
var require_min_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5846
6222
|
const SemVer = require_semver$1();
|
|
5847
6223
|
const Range = require_range();
|
|
@@ -5867,7 +6243,7 @@ var require_min_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
5867
6243
|
module.exports = minSatisfying;
|
|
5868
6244
|
}));
|
|
5869
6245
|
//#endregion
|
|
5870
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
6246
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/min-version.js
|
|
5871
6247
|
var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5872
6248
|
const SemVer = require_semver$1();
|
|
5873
6249
|
const Range = require_range();
|
|
@@ -5907,7 +6283,7 @@ var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5907
6283
|
module.exports = minVersion;
|
|
5908
6284
|
}));
|
|
5909
6285
|
//#endregion
|
|
5910
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
6286
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/valid.js
|
|
5911
6287
|
var require_valid = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5912
6288
|
const Range = require_range();
|
|
5913
6289
|
const validRange = (range, options) => {
|
|
@@ -5920,7 +6296,7 @@ var require_valid = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5920
6296
|
module.exports = validRange;
|
|
5921
6297
|
}));
|
|
5922
6298
|
//#endregion
|
|
5923
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
6299
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/outside.js
|
|
5924
6300
|
var require_outside = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5925
6301
|
const SemVer = require_semver$1();
|
|
5926
6302
|
const Comparator = require_comparator();
|
|
@@ -5973,21 +6349,21 @@ var require_outside = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5973
6349
|
module.exports = outside;
|
|
5974
6350
|
}));
|
|
5975
6351
|
//#endregion
|
|
5976
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
6352
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/gtr.js
|
|
5977
6353
|
var require_gtr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5978
6354
|
const outside = require_outside();
|
|
5979
6355
|
const gtr = (version, range, options) => outside(version, range, ">", options);
|
|
5980
6356
|
module.exports = gtr;
|
|
5981
6357
|
}));
|
|
5982
6358
|
//#endregion
|
|
5983
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
6359
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/ltr.js
|
|
5984
6360
|
var require_ltr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5985
6361
|
const outside = require_outside();
|
|
5986
6362
|
const ltr = (version, range, options) => outside(version, range, "<", options);
|
|
5987
6363
|
module.exports = ltr;
|
|
5988
6364
|
}));
|
|
5989
6365
|
//#endregion
|
|
5990
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
6366
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/intersects.js
|
|
5991
6367
|
var require_intersects = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5992
6368
|
const Range = require_range();
|
|
5993
6369
|
const intersects = (r1, r2, options) => {
|
|
@@ -5998,7 +6374,7 @@ var require_intersects = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5998
6374
|
module.exports = intersects;
|
|
5999
6375
|
}));
|
|
6000
6376
|
//#endregion
|
|
6001
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
6377
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/simplify.js
|
|
6002
6378
|
var require_simplify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6003
6379
|
const satisfies = require_satisfies();
|
|
6004
6380
|
const compare = require_compare();
|
|
@@ -6028,7 +6404,7 @@ var require_simplify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6028
6404
|
};
|
|
6029
6405
|
}));
|
|
6030
6406
|
//#endregion
|
|
6031
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
6407
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/subset.js
|
|
6032
6408
|
var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6033
6409
|
const Range = require_range();
|
|
6034
6410
|
const Comparator = require_comparator();
|
|
@@ -6123,7 +6499,7 @@ var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6123
6499
|
module.exports = subset;
|
|
6124
6500
|
}));
|
|
6125
6501
|
//#endregion
|
|
6126
|
-
//#region ../../node_modules/.pnpm/semver@7.7.
|
|
6502
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/index.js
|
|
6127
6503
|
var require_semver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6128
6504
|
const internalRe = require_re();
|
|
6129
6505
|
const constants = require_constants();
|
|
@@ -7630,45 +8006,12 @@ function isLocError(error) {
|
|
|
7630
8006
|
//#endregion
|
|
7631
8007
|
//#region package.json
|
|
7632
8008
|
var name = "@bamboocss/dev";
|
|
7633
|
-
var version = "1.
|
|
8009
|
+
var version = "1.47.0";
|
|
7634
8010
|
//#endregion
|
|
7635
8011
|
//#region src/interactive.ts
|
|
7636
|
-
|
|
7637
|
-
* Which integration this project wants, before anybody is asked.
|
|
7638
|
-
*
|
|
7639
|
-
* The question is not really a preference. `@bamboocss/vite` compiles every `css()` and `cva()`
|
|
7640
|
-
* call to a literal class string; `@bamboocss/postcss` emits the stylesheet and compiles
|
|
7641
|
-
* nothing, so those calls stay runtime calls and the style engine ships to the client. Which of
|
|
7642
|
-
* the two applies is decided by the bundler, and the answer is on disk: a Vite config means the
|
|
7643
|
-
* compiler is available.
|
|
7644
|
-
*
|
|
7645
|
-
* Asked cold, with `yes` preselected, this steered every Vite project onto the runtime path by
|
|
7646
|
-
* pressing Enter — and both setups render identically, so nothing afterwards reveals the
|
|
7647
|
-
* choice. That is the same defect the React Router guide had, reached by a different door.
|
|
7648
|
-
*
|
|
7649
|
-
* Svelte, Vue and Astro are the exception in the other direction: their components are
|
|
7650
|
-
* templates the compiler does not transform, so PostCSS is the integration they should be on
|
|
7651
|
-
* and the default stays `yes`.
|
|
7652
|
-
*/
|
|
7653
|
-
const suggestPostcss = (cwd) => {
|
|
7654
|
-
if (!findViteConfig(cwd)) return "yes";
|
|
7655
|
-
return hasUncompilableSources({ cwd }) ? "yes" : "no";
|
|
7656
|
-
};
|
|
7657
|
-
const interactive = async (options = {}) => {
|
|
7658
|
-
const postcssDefault = suggestPostcss(options.cwd ?? process.cwd());
|
|
8012
|
+
const interactive = async (_options = {}) => {
|
|
7659
8013
|
p.intro(`bamboo v${version}`);
|
|
7660
8014
|
const initFlags = await p.group({
|
|
7661
|
-
usePostcss: () => p.select({
|
|
7662
|
-
message: postcssDefault === "no" ? "Emit the stylesheet through PostCSS? This project has a Vite config, and `@bamboocss/vite` compiles your style calls away instead." : "Emit the stylesheet through PostCSS?",
|
|
7663
|
-
initialValue: postcssDefault,
|
|
7664
|
-
options: [{
|
|
7665
|
-
value: "yes",
|
|
7666
|
-
label: "Yes"
|
|
7667
|
-
}, {
|
|
7668
|
-
value: "no",
|
|
7669
|
-
label: "No"
|
|
7670
|
-
}]
|
|
7671
|
-
}),
|
|
7672
8015
|
useMjsExtension: () => p.select({
|
|
7673
8016
|
message: "Use the mjs extension ?",
|
|
7674
8017
|
initialValue: "yes",
|
|
@@ -7708,7 +8051,6 @@ const interactive = async (options = {}) => {
|
|
|
7708
8051
|
} });
|
|
7709
8052
|
p.outro("Let's get started! 🎋");
|
|
7710
8053
|
return {
|
|
7711
|
-
postcss: initFlags.usePostcss === "yes",
|
|
7712
8054
|
outExtension: initFlags.useMjsExtension === "yes" ? "mjs" : "js",
|
|
7713
8055
|
strictValues: strictValuesFrom(initFlags.withStrictTokens),
|
|
7714
8056
|
gitignore: initFlags.shouldUpdateGitignore === "yes"
|
|
@@ -7753,14 +8095,14 @@ const normalizeStrictTokens = (value) => {
|
|
|
7753
8095
|
async function main() {
|
|
7754
8096
|
const cli = cac("bamboo");
|
|
7755
8097
|
const cwd = process.cwd();
|
|
7756
|
-
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("-
|
|
8098
|
+
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 = {}) => {
|
|
7757
8099
|
let options = {};
|
|
7758
8100
|
if (initFlags.interactive) options = await interactive({ cwd: resolve(initFlags.cwd ?? "") });
|
|
7759
8101
|
const flags = {
|
|
7760
8102
|
...initFlags,
|
|
7761
8103
|
...options
|
|
7762
8104
|
};
|
|
7763
|
-
const { force,
|
|
8105
|
+
const { force, silent, gitignore, outExtension, strictValues, config: configPath } = flags;
|
|
7764
8106
|
const cwd = resolve(flags.cwd ?? "");
|
|
7765
8107
|
if (silent) logger.level = "silent";
|
|
7766
8108
|
const stream = setLogStream({
|
|
@@ -7769,7 +8111,6 @@ async function main() {
|
|
|
7769
8111
|
});
|
|
7770
8112
|
logger.info("cli", `Bamboo v${version}\n`);
|
|
7771
8113
|
const done = logger.time.info("✨ Bamboo initialized");
|
|
7772
|
-
if (postcss) await setupPostcss(cwd);
|
|
7773
8114
|
await setupConfig(cwd, compact({
|
|
7774
8115
|
force,
|
|
7775
8116
|
outExtension,
|
|
@@ -7826,7 +8167,7 @@ async function main() {
|
|
|
7826
8167
|
else stream.end();
|
|
7827
8168
|
stopProfiling();
|
|
7828
8169
|
});
|
|
7829
|
-
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)
|
|
8170
|
+
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)").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 = {}) => {
|
|
7830
8171
|
const { silent, config: configPath, outfile, watch, poll, splitting, ...rest } = flags;
|
|
7831
8172
|
const cwd = resolve(flags.cwd ?? "");
|
|
7832
8173
|
const stream = setLogStream({
|