@releasekit/release 0.7.45 → 0.7.47
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.js +1959 -2384
- package/dist/dispatcher.js +1395 -1820
- package/package.json +9 -9
package/dist/dispatcher.js
CHANGED
|
@@ -1785,12 +1785,12 @@ var init_path = __esm({
|
|
|
1785
1785
|
"use strict";
|
|
1786
1786
|
init_error();
|
|
1787
1787
|
EMPTY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.create(null));
|
|
1788
|
-
createPathTagFunction = (pathEncoder = encodeURIPath) => function
|
|
1788
|
+
createPathTagFunction = (pathEncoder = encodeURIPath) => function path19(statics, ...params) {
|
|
1789
1789
|
if (statics.length === 1)
|
|
1790
1790
|
return statics[0];
|
|
1791
1791
|
let postPath = false;
|
|
1792
1792
|
const invalidSegments = [];
|
|
1793
|
-
const
|
|
1793
|
+
const path20 = statics.reduce((previousValue, currentValue, index) => {
|
|
1794
1794
|
if (/[?#]/.test(currentValue)) {
|
|
1795
1795
|
postPath = true;
|
|
1796
1796
|
}
|
|
@@ -1807,7 +1807,7 @@ var init_path = __esm({
|
|
|
1807
1807
|
}
|
|
1808
1808
|
return previousValue + currentValue + (index === params.length ? "" : encoded);
|
|
1809
1809
|
}, "");
|
|
1810
|
-
const pathOnly =
|
|
1810
|
+
const pathOnly = path20.split(/[?#]/, 1)[0];
|
|
1811
1811
|
const invalidSegmentPattern = /(?<=^|\/)(?:\.|%2e){1,2}(?=\/|$)/gi;
|
|
1812
1812
|
let match2;
|
|
1813
1813
|
while ((match2 = invalidSegmentPattern.exec(pathOnly)) !== null) {
|
|
@@ -1828,10 +1828,10 @@ var init_path = __esm({
|
|
|
1828
1828
|
}, "");
|
|
1829
1829
|
throw new AnthropicError(`Path parameters result in path with invalid segments:
|
|
1830
1830
|
${invalidSegments.map((e) => e.error).join("\n")}
|
|
1831
|
-
${
|
|
1831
|
+
${path20}
|
|
1832
1832
|
${underline}`);
|
|
1833
1833
|
}
|
|
1834
|
-
return
|
|
1834
|
+
return path20;
|
|
1835
1835
|
};
|
|
1836
1836
|
path3 = /* @__PURE__ */ createPathTagFunction(encodeURIPath);
|
|
1837
1837
|
}
|
|
@@ -5152,9 +5152,9 @@ var init_client = __esm({
|
|
|
5152
5152
|
makeStatusError(status, error3, message, headers) {
|
|
5153
5153
|
return APIError.generate(status, error3, message, headers);
|
|
5154
5154
|
}
|
|
5155
|
-
buildURL(
|
|
5155
|
+
buildURL(path19, query, defaultBaseURL) {
|
|
5156
5156
|
const baseURL = !__classPrivateFieldGet(this, _BaseAnthropic_instances, "m", _BaseAnthropic_baseURLOverridden).call(this) && defaultBaseURL || this.baseURL;
|
|
5157
|
-
const url = isAbsoluteURL(
|
|
5157
|
+
const url = isAbsoluteURL(path19) ? new URL(path19) : new URL(baseURL + (baseURL.endsWith("/") && path19.startsWith("/") ? path19.slice(1) : path19));
|
|
5158
5158
|
const defaultQuery = this.defaultQuery();
|
|
5159
5159
|
const pathQuery = Object.fromEntries(url.searchParams);
|
|
5160
5160
|
if (!isEmptyObj(defaultQuery) || !isEmptyObj(pathQuery)) {
|
|
@@ -5186,24 +5186,24 @@ var init_client = __esm({
|
|
|
5186
5186
|
*/
|
|
5187
5187
|
async prepareRequest(request, { url, options }) {
|
|
5188
5188
|
}
|
|
5189
|
-
get(
|
|
5190
|
-
return this.methodRequest("get",
|
|
5189
|
+
get(path19, opts) {
|
|
5190
|
+
return this.methodRequest("get", path19, opts);
|
|
5191
5191
|
}
|
|
5192
|
-
post(
|
|
5193
|
-
return this.methodRequest("post",
|
|
5192
|
+
post(path19, opts) {
|
|
5193
|
+
return this.methodRequest("post", path19, opts);
|
|
5194
5194
|
}
|
|
5195
|
-
patch(
|
|
5196
|
-
return this.methodRequest("patch",
|
|
5195
|
+
patch(path19, opts) {
|
|
5196
|
+
return this.methodRequest("patch", path19, opts);
|
|
5197
5197
|
}
|
|
5198
|
-
put(
|
|
5199
|
-
return this.methodRequest("put",
|
|
5198
|
+
put(path19, opts) {
|
|
5199
|
+
return this.methodRequest("put", path19, opts);
|
|
5200
5200
|
}
|
|
5201
|
-
delete(
|
|
5202
|
-
return this.methodRequest("delete",
|
|
5201
|
+
delete(path19, opts) {
|
|
5202
|
+
return this.methodRequest("delete", path19, opts);
|
|
5203
5203
|
}
|
|
5204
|
-
methodRequest(method,
|
|
5204
|
+
methodRequest(method, path19, opts) {
|
|
5205
5205
|
return this.request(Promise.resolve(opts).then((opts2) => {
|
|
5206
|
-
return { method, path:
|
|
5206
|
+
return { method, path: path19, ...opts2 };
|
|
5207
5207
|
}));
|
|
5208
5208
|
}
|
|
5209
5209
|
request(options, remainingRetries = null) {
|
|
@@ -5307,8 +5307,8 @@ var init_client = __esm({
|
|
|
5307
5307
|
}));
|
|
5308
5308
|
return { response, options, controller, requestLogID, retryOfRequestLogID, startTime };
|
|
5309
5309
|
}
|
|
5310
|
-
getAPIList(
|
|
5311
|
-
return this.requestAPIList(Page3, opts && "then" in opts ? opts.then((opts2) => ({ method: "get", path:
|
|
5310
|
+
getAPIList(path19, Page3, opts) {
|
|
5311
|
+
return this.requestAPIList(Page3, opts && "then" in opts ? opts.then((opts2) => ({ method: "get", path: path19, ...opts2 })) : { method: "get", path: path19, ...opts });
|
|
5312
5312
|
}
|
|
5313
5313
|
requestAPIList(Page3, options) {
|
|
5314
5314
|
const request = this.makeRequest(options, null, void 0);
|
|
@@ -5396,8 +5396,8 @@ var init_client = __esm({
|
|
|
5396
5396
|
}
|
|
5397
5397
|
async buildRequest(inputOptions, { retryCount = 0 } = {}) {
|
|
5398
5398
|
const options = { ...inputOptions };
|
|
5399
|
-
const { method, path:
|
|
5400
|
-
const url = this.buildURL(
|
|
5399
|
+
const { method, path: path19, query, defaultBaseURL } = options;
|
|
5400
|
+
const url = this.buildURL(path19, query, defaultBaseURL);
|
|
5401
5401
|
if ("timeout" in options)
|
|
5402
5402
|
validatePositiveInteger("timeout", options.timeout);
|
|
5403
5403
|
options.timeout = options.timeout ?? this.timeout;
|
|
@@ -7335,12 +7335,12 @@ var init_path2 = __esm({
|
|
|
7335
7335
|
"use strict";
|
|
7336
7336
|
init_error3();
|
|
7337
7337
|
EMPTY2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.create(null));
|
|
7338
|
-
createPathTagFunction2 = (pathEncoder = encodeURIPath2) => function
|
|
7338
|
+
createPathTagFunction2 = (pathEncoder = encodeURIPath2) => function path19(statics, ...params) {
|
|
7339
7339
|
if (statics.length === 1)
|
|
7340
7340
|
return statics[0];
|
|
7341
7341
|
let postPath = false;
|
|
7342
7342
|
const invalidSegments = [];
|
|
7343
|
-
const
|
|
7343
|
+
const path20 = statics.reduce((previousValue, currentValue, index) => {
|
|
7344
7344
|
if (/[?#]/.test(currentValue)) {
|
|
7345
7345
|
postPath = true;
|
|
7346
7346
|
}
|
|
@@ -7357,7 +7357,7 @@ var init_path2 = __esm({
|
|
|
7357
7357
|
}
|
|
7358
7358
|
return previousValue + currentValue + (index === params.length ? "" : encoded);
|
|
7359
7359
|
}, "");
|
|
7360
|
-
const pathOnly =
|
|
7360
|
+
const pathOnly = path20.split(/[?#]/, 1)[0];
|
|
7361
7361
|
const invalidSegmentPattern = /(?<=^|\/)(?:\.|%2e){1,2}(?=\/|$)/gi;
|
|
7362
7362
|
let match2;
|
|
7363
7363
|
while ((match2 = invalidSegmentPattern.exec(pathOnly)) !== null) {
|
|
@@ -7378,10 +7378,10 @@ var init_path2 = __esm({
|
|
|
7378
7378
|
}, "");
|
|
7379
7379
|
throw new OpenAIError(`Path parameters result in path with invalid segments:
|
|
7380
7380
|
${invalidSegments.map((e) => e.error).join("\n")}
|
|
7381
|
-
${
|
|
7381
|
+
${path20}
|
|
7382
7382
|
${underline}`);
|
|
7383
7383
|
}
|
|
7384
|
-
return
|
|
7384
|
+
return path20;
|
|
7385
7385
|
};
|
|
7386
7386
|
path4 = /* @__PURE__ */ createPathTagFunction2(encodeURIPath2);
|
|
7387
7387
|
}
|
|
@@ -13167,9 +13167,9 @@ var init_client2 = __esm({
|
|
|
13167
13167
|
this.apiKey = token;
|
|
13168
13168
|
return true;
|
|
13169
13169
|
}
|
|
13170
|
-
buildURL(
|
|
13170
|
+
buildURL(path19, query, defaultBaseURL) {
|
|
13171
13171
|
const baseURL = !__classPrivateFieldGet2(this, _OpenAI_instances, "m", _OpenAI_baseURLOverridden).call(this) && defaultBaseURL || this.baseURL;
|
|
13172
|
-
const url = isAbsoluteURL2(
|
|
13172
|
+
const url = isAbsoluteURL2(path19) ? new URL(path19) : new URL(baseURL + (baseURL.endsWith("/") && path19.startsWith("/") ? path19.slice(1) : path19));
|
|
13173
13173
|
const defaultQuery = this.defaultQuery();
|
|
13174
13174
|
const pathQuery = Object.fromEntries(url.searchParams);
|
|
13175
13175
|
if (!isEmptyObj2(defaultQuery) || !isEmptyObj2(pathQuery)) {
|
|
@@ -13194,24 +13194,24 @@ var init_client2 = __esm({
|
|
|
13194
13194
|
*/
|
|
13195
13195
|
async prepareRequest(request, { url, options }) {
|
|
13196
13196
|
}
|
|
13197
|
-
get(
|
|
13198
|
-
return this.methodRequest("get",
|
|
13197
|
+
get(path19, opts) {
|
|
13198
|
+
return this.methodRequest("get", path19, opts);
|
|
13199
13199
|
}
|
|
13200
|
-
post(
|
|
13201
|
-
return this.methodRequest("post",
|
|
13200
|
+
post(path19, opts) {
|
|
13201
|
+
return this.methodRequest("post", path19, opts);
|
|
13202
13202
|
}
|
|
13203
|
-
patch(
|
|
13204
|
-
return this.methodRequest("patch",
|
|
13203
|
+
patch(path19, opts) {
|
|
13204
|
+
return this.methodRequest("patch", path19, opts);
|
|
13205
13205
|
}
|
|
13206
|
-
put(
|
|
13207
|
-
return this.methodRequest("put",
|
|
13206
|
+
put(path19, opts) {
|
|
13207
|
+
return this.methodRequest("put", path19, opts);
|
|
13208
13208
|
}
|
|
13209
|
-
delete(
|
|
13210
|
-
return this.methodRequest("delete",
|
|
13209
|
+
delete(path19, opts) {
|
|
13210
|
+
return this.methodRequest("delete", path19, opts);
|
|
13211
13211
|
}
|
|
13212
|
-
methodRequest(method,
|
|
13212
|
+
methodRequest(method, path19, opts) {
|
|
13213
13213
|
return this.request(Promise.resolve(opts).then((opts2) => {
|
|
13214
|
-
return { method, path:
|
|
13214
|
+
return { method, path: path19, ...opts2 };
|
|
13215
13215
|
}));
|
|
13216
13216
|
}
|
|
13217
13217
|
request(options, remainingRetries = null) {
|
|
@@ -13315,8 +13315,8 @@ var init_client2 = __esm({
|
|
|
13315
13315
|
}));
|
|
13316
13316
|
return { response, options, controller, requestLogID, retryOfRequestLogID, startTime };
|
|
13317
13317
|
}
|
|
13318
|
-
getAPIList(
|
|
13319
|
-
return this.requestAPIList(Page3, opts && "then" in opts ? opts.then((opts2) => ({ method: "get", path:
|
|
13318
|
+
getAPIList(path19, Page3, opts) {
|
|
13319
|
+
return this.requestAPIList(Page3, opts && "then" in opts ? opts.then((opts2) => ({ method: "get", path: path19, ...opts2 })) : { method: "get", path: path19, ...opts });
|
|
13320
13320
|
}
|
|
13321
13321
|
requestAPIList(Page3, options) {
|
|
13322
13322
|
const request = this.makeRequest(options, null, void 0);
|
|
@@ -13395,8 +13395,8 @@ var init_client2 = __esm({
|
|
|
13395
13395
|
}
|
|
13396
13396
|
async buildRequest(inputOptions, { retryCount = 0 } = {}) {
|
|
13397
13397
|
const options = { ...inputOptions };
|
|
13398
|
-
const { method, path:
|
|
13399
|
-
const url = this.buildURL(
|
|
13398
|
+
const { method, path: path19, query, defaultBaseURL } = options;
|
|
13399
|
+
const url = this.buildURL(path19, query, defaultBaseURL);
|
|
13400
13400
|
if ("timeout" in options)
|
|
13401
13401
|
validatePositiveInteger2("timeout", options.timeout);
|
|
13402
13402
|
options.timeout = options.timeout ?? this.timeout;
|
|
@@ -13691,30 +13691,30 @@ function resolvePaths(name, paths) {
|
|
|
13691
13691
|
return filePath;
|
|
13692
13692
|
}
|
|
13693
13693
|
}
|
|
13694
|
-
function getIncludePath(
|
|
13694
|
+
function getIncludePath(path19, options) {
|
|
13695
13695
|
let includePath;
|
|
13696
13696
|
let filePath;
|
|
13697
13697
|
let views = options.views;
|
|
13698
|
-
let match2 = /^[A-Za-z]+:\\|^\//.exec(
|
|
13698
|
+
let match2 = /^[A-Za-z]+:\\|^\//.exec(path19);
|
|
13699
13699
|
if (match2 && match2.length) {
|
|
13700
|
-
|
|
13700
|
+
path19 = path19.replace(/^\/*/, "");
|
|
13701
13701
|
if (Array.isArray(options.root)) {
|
|
13702
|
-
includePath = resolvePaths(
|
|
13702
|
+
includePath = resolvePaths(path19, options.root);
|
|
13703
13703
|
} else {
|
|
13704
|
-
includePath = ejs.resolveInclude(
|
|
13704
|
+
includePath = ejs.resolveInclude(path19, options.root || "/", true);
|
|
13705
13705
|
}
|
|
13706
13706
|
} else {
|
|
13707
13707
|
if (options.filename) {
|
|
13708
|
-
filePath = ejs.resolveInclude(
|
|
13708
|
+
filePath = ejs.resolveInclude(path19, options.filename);
|
|
13709
13709
|
if (fs3.existsSync(filePath)) {
|
|
13710
13710
|
includePath = filePath;
|
|
13711
13711
|
}
|
|
13712
13712
|
}
|
|
13713
13713
|
if (!includePath && Array.isArray(views)) {
|
|
13714
|
-
includePath = resolvePaths(
|
|
13714
|
+
includePath = resolvePaths(path19, views);
|
|
13715
13715
|
}
|
|
13716
13716
|
if (!includePath && typeof options.includer !== "function") {
|
|
13717
|
-
throw new Error('Could not find the include file "' + options.escapeFunction(
|
|
13717
|
+
throw new Error('Could not find the include file "' + options.escapeFunction(path19) + '"');
|
|
13718
13718
|
}
|
|
13719
13719
|
}
|
|
13720
13720
|
return includePath;
|
|
@@ -13773,11 +13773,11 @@ function tryHandleCache(options, data, cb) {
|
|
|
13773
13773
|
function fileLoader(filePath) {
|
|
13774
13774
|
return ejs.fileLoader(filePath);
|
|
13775
13775
|
}
|
|
13776
|
-
function includeFile(
|
|
13776
|
+
function includeFile(path19, options) {
|
|
13777
13777
|
let opts = utils_default.shallowCopy(utils_default.createNullProtoObjWherePossible(), options);
|
|
13778
|
-
opts.filename = getIncludePath(
|
|
13778
|
+
opts.filename = getIncludePath(path19, opts);
|
|
13779
13779
|
if (typeof options.includer === "function") {
|
|
13780
|
-
let includerResult = options.includer(
|
|
13780
|
+
let includerResult = options.includer(path19, opts.filename);
|
|
13781
13781
|
if (includerResult) {
|
|
13782
13782
|
if (includerResult.filename) {
|
|
13783
13783
|
opts.filename = includerResult.filename;
|
|
@@ -14055,12 +14055,12 @@ var init_ejs = __esm({
|
|
|
14055
14055
|
throw e;
|
|
14056
14056
|
}
|
|
14057
14057
|
let returnedFn = opts.client ? fn : function anonymous(data) {
|
|
14058
|
-
let include = function(
|
|
14058
|
+
let include = function(path19, includeData) {
|
|
14059
14059
|
let d = utils_default.shallowCopy(utils_default.createNullProtoObjWherePossible(), data);
|
|
14060
14060
|
if (includeData) {
|
|
14061
14061
|
d = utils_default.shallowCopy(d, includeData);
|
|
14062
14062
|
}
|
|
14063
|
-
return includeFile(
|
|
14063
|
+
return includeFile(path19, opts)(d);
|
|
14064
14064
|
};
|
|
14065
14065
|
return fn.apply(
|
|
14066
14066
|
opts.context,
|
|
@@ -15388,13 +15388,13 @@ var require_ast = __commonJS({
|
|
|
15388
15388
|
helperExpression: function helperExpression(node) {
|
|
15389
15389
|
return node.type === "SubExpression" || (node.type === "MustacheStatement" || node.type === "BlockStatement") && !!(node.params && node.params.length || node.hash);
|
|
15390
15390
|
},
|
|
15391
|
-
scopedId: function scopedId(
|
|
15392
|
-
return /^\.|this\b/.test(
|
|
15391
|
+
scopedId: function scopedId(path19) {
|
|
15392
|
+
return /^\.|this\b/.test(path19.original);
|
|
15393
15393
|
},
|
|
15394
15394
|
// an ID is simple if it only has one part, and that part is not
|
|
15395
15395
|
// `..` or `this`.
|
|
15396
|
-
simpleId: function simpleId(
|
|
15397
|
-
return
|
|
15396
|
+
simpleId: function simpleId(path19) {
|
|
15397
|
+
return path19.parts.length === 1 && !AST2.helpers.scopedId(path19) && !path19.depth;
|
|
15398
15398
|
}
|
|
15399
15399
|
}
|
|
15400
15400
|
};
|
|
@@ -16464,12 +16464,12 @@ var require_helpers2 = __commonJS({
|
|
|
16464
16464
|
loc
|
|
16465
16465
|
};
|
|
16466
16466
|
}
|
|
16467
|
-
function prepareMustache(
|
|
16467
|
+
function prepareMustache(path19, params, hash, open, strip3, locInfo) {
|
|
16468
16468
|
var escapeFlag = open.charAt(3) || open.charAt(2), escaped = escapeFlag !== "{" && escapeFlag !== "&";
|
|
16469
16469
|
var decorator = /\*/.test(open);
|
|
16470
16470
|
return {
|
|
16471
16471
|
type: decorator ? "Decorator" : "MustacheStatement",
|
|
16472
|
-
path:
|
|
16472
|
+
path: path19,
|
|
16473
16473
|
params,
|
|
16474
16474
|
hash,
|
|
16475
16475
|
escaped,
|
|
@@ -16787,9 +16787,9 @@ var require_compiler = __commonJS({
|
|
|
16787
16787
|
},
|
|
16788
16788
|
DecoratorBlock: function DecoratorBlock(decorator) {
|
|
16789
16789
|
var program = decorator.program && this.compileProgram(decorator.program);
|
|
16790
|
-
var params = this.setupFullMustacheParams(decorator, program, void 0),
|
|
16790
|
+
var params = this.setupFullMustacheParams(decorator, program, void 0), path19 = decorator.path;
|
|
16791
16791
|
this.useDecorators = true;
|
|
16792
|
-
this.opcode("registerDecorator", params.length,
|
|
16792
|
+
this.opcode("registerDecorator", params.length, path19.original);
|
|
16793
16793
|
},
|
|
16794
16794
|
PartialStatement: function PartialStatement(partial) {
|
|
16795
16795
|
this.usePartial = true;
|
|
@@ -16853,46 +16853,46 @@ var require_compiler = __commonJS({
|
|
|
16853
16853
|
}
|
|
16854
16854
|
},
|
|
16855
16855
|
ambiguousSexpr: function ambiguousSexpr(sexpr, program, inverse) {
|
|
16856
|
-
var
|
|
16857
|
-
this.opcode("getContext",
|
|
16856
|
+
var path19 = sexpr.path, name = path19.parts[0], isBlock = program != null || inverse != null;
|
|
16857
|
+
this.opcode("getContext", path19.depth);
|
|
16858
16858
|
this.opcode("pushProgram", program);
|
|
16859
16859
|
this.opcode("pushProgram", inverse);
|
|
16860
|
-
|
|
16861
|
-
this.accept(
|
|
16860
|
+
path19.strict = true;
|
|
16861
|
+
this.accept(path19);
|
|
16862
16862
|
this.opcode("invokeAmbiguous", name, isBlock);
|
|
16863
16863
|
},
|
|
16864
16864
|
simpleSexpr: function simpleSexpr(sexpr) {
|
|
16865
|
-
var
|
|
16866
|
-
|
|
16867
|
-
this.accept(
|
|
16865
|
+
var path19 = sexpr.path;
|
|
16866
|
+
path19.strict = true;
|
|
16867
|
+
this.accept(path19);
|
|
16868
16868
|
this.opcode("resolvePossibleLambda");
|
|
16869
16869
|
},
|
|
16870
16870
|
helperSexpr: function helperSexpr(sexpr, program, inverse) {
|
|
16871
|
-
var params = this.setupFullMustacheParams(sexpr, program, inverse),
|
|
16871
|
+
var params = this.setupFullMustacheParams(sexpr, program, inverse), path19 = sexpr.path, name = path19.parts[0];
|
|
16872
16872
|
if (this.options.knownHelpers[name]) {
|
|
16873
16873
|
this.opcode("invokeKnownHelper", params.length, name);
|
|
16874
16874
|
} else if (this.options.knownHelpersOnly) {
|
|
16875
16875
|
throw new _exception2["default"]("You specified knownHelpersOnly, but used the unknown helper " + name, sexpr);
|
|
16876
16876
|
} else {
|
|
16877
|
-
|
|
16878
|
-
|
|
16879
|
-
this.accept(
|
|
16880
|
-
this.opcode("invokeHelper", params.length,
|
|
16877
|
+
path19.strict = true;
|
|
16878
|
+
path19.falsy = true;
|
|
16879
|
+
this.accept(path19);
|
|
16880
|
+
this.opcode("invokeHelper", params.length, path19.original, _ast2["default"].helpers.simpleId(path19));
|
|
16881
16881
|
}
|
|
16882
16882
|
},
|
|
16883
|
-
PathExpression: function PathExpression(
|
|
16884
|
-
this.addDepth(
|
|
16885
|
-
this.opcode("getContext",
|
|
16886
|
-
var name =
|
|
16883
|
+
PathExpression: function PathExpression(path19) {
|
|
16884
|
+
this.addDepth(path19.depth);
|
|
16885
|
+
this.opcode("getContext", path19.depth);
|
|
16886
|
+
var name = path19.parts[0], scoped = _ast2["default"].helpers.scopedId(path19), blockParamId = !path19.depth && !scoped && this.blockParamIndex(name);
|
|
16887
16887
|
if (blockParamId) {
|
|
16888
|
-
this.opcode("lookupBlockParam", blockParamId,
|
|
16888
|
+
this.opcode("lookupBlockParam", blockParamId, path19.parts);
|
|
16889
16889
|
} else if (!name) {
|
|
16890
16890
|
this.opcode("pushContext");
|
|
16891
|
-
} else if (
|
|
16891
|
+
} else if (path19.data) {
|
|
16892
16892
|
this.options.data = true;
|
|
16893
|
-
this.opcode("lookupData",
|
|
16893
|
+
this.opcode("lookupData", path19.depth, path19.parts, path19.strict);
|
|
16894
16894
|
} else {
|
|
16895
|
-
this.opcode("lookupOnContext",
|
|
16895
|
+
this.opcode("lookupOnContext", path19.parts, path19.falsy, path19.strict, scoped);
|
|
16896
16896
|
}
|
|
16897
16897
|
},
|
|
16898
16898
|
StringLiteral: function StringLiteral(string) {
|
|
@@ -17245,16 +17245,16 @@ var require_util = __commonJS({
|
|
|
17245
17245
|
}
|
|
17246
17246
|
exports2.urlGenerate = urlGenerate;
|
|
17247
17247
|
function normalize3(aPath) {
|
|
17248
|
-
var
|
|
17248
|
+
var path19 = aPath;
|
|
17249
17249
|
var url = urlParse(aPath);
|
|
17250
17250
|
if (url) {
|
|
17251
17251
|
if (!url.path) {
|
|
17252
17252
|
return aPath;
|
|
17253
17253
|
}
|
|
17254
|
-
|
|
17254
|
+
path19 = url.path;
|
|
17255
17255
|
}
|
|
17256
|
-
var isAbsolute = exports2.isAbsolute(
|
|
17257
|
-
var parts =
|
|
17256
|
+
var isAbsolute = exports2.isAbsolute(path19);
|
|
17257
|
+
var parts = path19.split(/\/+/);
|
|
17258
17258
|
for (var part, up = 0, i = parts.length - 1; i >= 0; i--) {
|
|
17259
17259
|
part = parts[i];
|
|
17260
17260
|
if (part === ".") {
|
|
@@ -17271,18 +17271,18 @@ var require_util = __commonJS({
|
|
|
17271
17271
|
}
|
|
17272
17272
|
}
|
|
17273
17273
|
}
|
|
17274
|
-
|
|
17275
|
-
if (
|
|
17276
|
-
|
|
17274
|
+
path19 = parts.join("/");
|
|
17275
|
+
if (path19 === "") {
|
|
17276
|
+
path19 = isAbsolute ? "/" : ".";
|
|
17277
17277
|
}
|
|
17278
17278
|
if (url) {
|
|
17279
|
-
url.path =
|
|
17279
|
+
url.path = path19;
|
|
17280
17280
|
return urlGenerate(url);
|
|
17281
17281
|
}
|
|
17282
|
-
return
|
|
17282
|
+
return path19;
|
|
17283
17283
|
}
|
|
17284
17284
|
exports2.normalize = normalize3;
|
|
17285
|
-
function
|
|
17285
|
+
function join24(aRoot, aPath) {
|
|
17286
17286
|
if (aRoot === "") {
|
|
17287
17287
|
aRoot = ".";
|
|
17288
17288
|
}
|
|
@@ -17314,7 +17314,7 @@ var require_util = __commonJS({
|
|
|
17314
17314
|
}
|
|
17315
17315
|
return joined;
|
|
17316
17316
|
}
|
|
17317
|
-
exports2.join =
|
|
17317
|
+
exports2.join = join24;
|
|
17318
17318
|
exports2.isAbsolute = function(aPath) {
|
|
17319
17319
|
return aPath.charAt(0) === "/" || urlRegexp.test(aPath);
|
|
17320
17320
|
};
|
|
@@ -17487,7 +17487,7 @@ var require_util = __commonJS({
|
|
|
17487
17487
|
parsed.path = parsed.path.substring(0, index + 1);
|
|
17488
17488
|
}
|
|
17489
17489
|
}
|
|
17490
|
-
sourceURL =
|
|
17490
|
+
sourceURL = join24(urlGenerate(parsed), sourceURL);
|
|
17491
17491
|
}
|
|
17492
17492
|
return normalize3(sourceURL);
|
|
17493
17493
|
}
|
|
@@ -20070,8 +20070,8 @@ var require_printer = __commonJS({
|
|
|
20070
20070
|
return this.accept(sexpr.path) + " " + params + hash;
|
|
20071
20071
|
};
|
|
20072
20072
|
PrintVisitor.prototype.PathExpression = function(id) {
|
|
20073
|
-
var
|
|
20074
|
-
return (id.data ? "@" : "") + "PATH:" +
|
|
20073
|
+
var path19 = id.parts.join("/");
|
|
20074
|
+
return (id.data ? "@" : "") + "PATH:" + path19;
|
|
20075
20075
|
};
|
|
20076
20076
|
PrintVisitor.prototype.StringLiteral = function(string) {
|
|
20077
20077
|
return '"' + string.value + '"';
|
|
@@ -23350,10 +23350,10 @@ var init_liquid_node = __esm({
|
|
|
23350
23350
|
yield filepath;
|
|
23351
23351
|
}
|
|
23352
23352
|
}
|
|
23353
|
-
dirname(
|
|
23353
|
+
dirname(path19) {
|
|
23354
23354
|
const fs19 = this.options.fs;
|
|
23355
23355
|
assert(fs19.dirname, "`fs.dirname` is required for relative reference");
|
|
23356
|
-
return fs19.dirname(
|
|
23356
|
+
return fs19.dirname(path19);
|
|
23357
23357
|
}
|
|
23358
23358
|
lookupError(file, roots) {
|
|
23359
23359
|
const err = new Error("ENOENT");
|
|
@@ -30931,9 +30931,9 @@ var init_chunk_LMPZV35Z = __esm({
|
|
|
30931
30931
|
"../version/dist/chunk-LMPZV35Z.js"() {
|
|
30932
30932
|
"use strict";
|
|
30933
30933
|
execAsync = (file, args, options) => {
|
|
30934
|
-
const
|
|
30934
|
+
const defaultOptions3 = { maxBuffer: 1024 * 1024 * 10, ...options };
|
|
30935
30935
|
return new Promise((resolve11, reject2) => {
|
|
30936
|
-
execFile2(file, args,
|
|
30936
|
+
execFile2(file, args, defaultOptions3, (error3, stdout, stderr) => {
|
|
30937
30937
|
if (error3) {
|
|
30938
30938
|
reject2(error3);
|
|
30939
30939
|
} else {
|
|
@@ -30946,14 +30946,14 @@ var init_chunk_LMPZV35Z = __esm({
|
|
|
30946
30946
|
}
|
|
30947
30947
|
});
|
|
30948
30948
|
|
|
30949
|
-
// ../../node_modules/.pnpm/@conventional-changelog+git-client@2.
|
|
30949
|
+
// ../../node_modules/.pnpm/@conventional-changelog+git-client@2.5.1_conventional-commits-filter@5.0.0_conventional-commits-parser@6.2.1/node_modules/@conventional-changelog/git-client/dist/types.js
|
|
30950
30950
|
var init_types = __esm({
|
|
30951
|
-
"../../node_modules/.pnpm/@conventional-changelog+git-client@2.
|
|
30951
|
+
"../../node_modules/.pnpm/@conventional-changelog+git-client@2.5.1_conventional-commits-filter@5.0.0_conventional-commits-parser@6.2.1/node_modules/@conventional-changelog/git-client/dist/types.js"() {
|
|
30952
30952
|
"use strict";
|
|
30953
30953
|
}
|
|
30954
30954
|
});
|
|
30955
30955
|
|
|
30956
|
-
// ../../node_modules/.pnpm/@conventional-changelog+git-client@2.
|
|
30956
|
+
// ../../node_modules/.pnpm/@conventional-changelog+git-client@2.5.1_conventional-commits-filter@5.0.0_conventional-commits-parser@6.2.1/node_modules/@conventional-changelog/git-client/dist/utils.js
|
|
30957
30957
|
function formatArgs(...args) {
|
|
30958
30958
|
return args.reduce((finalArgs, arg) => {
|
|
30959
30959
|
if (arg) {
|
|
@@ -30966,12 +30966,12 @@ function toArray2(value) {
|
|
|
30966
30966
|
return Array.isArray(value) ? value : [value];
|
|
30967
30967
|
}
|
|
30968
30968
|
var init_utils4 = __esm({
|
|
30969
|
-
"../../node_modules/.pnpm/@conventional-changelog+git-client@2.
|
|
30969
|
+
"../../node_modules/.pnpm/@conventional-changelog+git-client@2.5.1_conventional-commits-filter@5.0.0_conventional-commits-parser@6.2.1/node_modules/@conventional-changelog/git-client/dist/utils.js"() {
|
|
30970
30970
|
"use strict";
|
|
30971
30971
|
}
|
|
30972
30972
|
});
|
|
30973
30973
|
|
|
30974
|
-
// ../../node_modules/.pnpm/@simple-libs+stream-utils@1.
|
|
30974
|
+
// ../../node_modules/.pnpm/@simple-libs+stream-utils@1.1.0/node_modules/@simple-libs/stream-utils/dist/index.js
|
|
30975
30975
|
async function toArray3(iterable) {
|
|
30976
30976
|
const result = [];
|
|
30977
30977
|
for await (const item of iterable) {
|
|
@@ -31005,12 +31005,12 @@ async function* splitStream(stream, separator) {
|
|
|
31005
31005
|
}
|
|
31006
31006
|
}
|
|
31007
31007
|
var init_dist3 = __esm({
|
|
31008
|
-
"../../node_modules/.pnpm/@simple-libs+stream-utils@1.
|
|
31008
|
+
"../../node_modules/.pnpm/@simple-libs+stream-utils@1.1.0/node_modules/@simple-libs/stream-utils/dist/index.js"() {
|
|
31009
31009
|
"use strict";
|
|
31010
31010
|
}
|
|
31011
31011
|
});
|
|
31012
31012
|
|
|
31013
|
-
// ../../node_modules/.pnpm/@simple-libs+child-process-utils@1.0.
|
|
31013
|
+
// ../../node_modules/.pnpm/@simple-libs+child-process-utils@1.0.1/node_modules/@simple-libs/child-process-utils/dist/index.js
|
|
31014
31014
|
async function exitCode(process2) {
|
|
31015
31015
|
if (process2.exitCode !== null) {
|
|
31016
31016
|
return process2.exitCode;
|
|
@@ -31055,17 +31055,17 @@ function output(process2) {
|
|
|
31055
31055
|
return concatBufferStream(outputStream(process2));
|
|
31056
31056
|
}
|
|
31057
31057
|
var init_dist4 = __esm({
|
|
31058
|
-
"../../node_modules/.pnpm/@simple-libs+child-process-utils@1.0.
|
|
31058
|
+
"../../node_modules/.pnpm/@simple-libs+child-process-utils@1.0.1/node_modules/@simple-libs/child-process-utils/dist/index.js"() {
|
|
31059
31059
|
"use strict";
|
|
31060
31060
|
init_dist3();
|
|
31061
31061
|
}
|
|
31062
31062
|
});
|
|
31063
31063
|
|
|
31064
|
-
// ../../node_modules/.pnpm/@conventional-changelog+git-client@2.
|
|
31064
|
+
// ../../node_modules/.pnpm/@conventional-changelog+git-client@2.5.1_conventional-commits-filter@5.0.0_conventional-commits-parser@6.2.1/node_modules/@conventional-changelog/git-client/dist/GitClient.js
|
|
31065
31065
|
import { spawn } from "child_process";
|
|
31066
31066
|
var SCISSOR, GitClient;
|
|
31067
31067
|
var init_GitClient = __esm({
|
|
31068
|
-
"../../node_modules/.pnpm/@conventional-changelog+git-client@2.
|
|
31068
|
+
"../../node_modules/.pnpm/@conventional-changelog+git-client@2.5.1_conventional-commits-filter@5.0.0_conventional-commits-parser@6.2.1/node_modules/@conventional-changelog/git-client/dist/GitClient.js"() {
|
|
31069
31069
|
"use strict";
|
|
31070
31070
|
init_dist3();
|
|
31071
31071
|
init_dist4();
|
|
@@ -31113,7 +31113,7 @@ var init_GitClient = __esm({
|
|
|
31113
31113
|
try {
|
|
31114
31114
|
await this.exec("init");
|
|
31115
31115
|
return true;
|
|
31116
|
-
} catch {
|
|
31116
|
+
} catch (err) {
|
|
31117
31117
|
return false;
|
|
31118
31118
|
}
|
|
31119
31119
|
}
|
|
@@ -31127,9 +31127,9 @@ var init_GitClient = __esm({
|
|
|
31127
31127
|
* @yields Raw commits data.
|
|
31128
31128
|
*/
|
|
31129
31129
|
async *getRawCommits(params = {}) {
|
|
31130
|
-
const { path:
|
|
31130
|
+
const { path: path19, from = "", to = "HEAD", format: format2 = "%B", ignore, reverse: reverse2, merges, since } = params;
|
|
31131
31131
|
const shouldNotIgnore = ignore ? (chunk2) => !ignore.test(chunk2) : () => true;
|
|
31132
|
-
const stdout = this.execStream("log", `--format=${format2}%n${SCISSOR}`, since && `--since=${since instanceof Date ? since.toISOString() : since}`, reverse2 && "--reverse", merges && "--merges", merges === false && "--no-merges", [from, to].filter(Boolean).join(".."), ...
|
|
31132
|
+
const stdout = this.execStream("log", `--format=${format2}%n${SCISSOR}`, since && `--since=${since instanceof Date ? since.toISOString() : since}`, reverse2 && "--reverse", merges && "--merges", merges === false && "--no-merges", [from, to].filter(Boolean).join(".."), ...path19 ? ["--", ...toArray2(path19)] : []);
|
|
31133
31133
|
const commitsStream = splitStream(stdout, `${SCISSOR}
|
|
31134
31134
|
`);
|
|
31135
31135
|
let chunk;
|
|
@@ -31145,9 +31145,9 @@ var init_GitClient = __esm({
|
|
|
31145
31145
|
* @yields Tags
|
|
31146
31146
|
*/
|
|
31147
31147
|
async *getTags(params = {}) {
|
|
31148
|
-
const { path:
|
|
31148
|
+
const { path: path19, from = "", to = "HEAD", since } = params;
|
|
31149
31149
|
const tagRegex = /tag:\s*(.+?)[,)]/gi;
|
|
31150
|
-
const stdout = this.execStream("log", "--decorate", "--no-color", "--date-order", since && `--since=${since instanceof Date ? since.toISOString() : since}`, [from, to].filter(Boolean).join(".."), ...
|
|
31150
|
+
const stdout = this.execStream("log", "--decorate", "--no-color", "--date-order", since && `--since=${since instanceof Date ? since.toISOString() : since}`, [from, to].filter(Boolean).join(".."), ...path19 ? ["--", ...toArray2(path19)] : []);
|
|
31151
31151
|
let chunk;
|
|
31152
31152
|
let matches;
|
|
31153
31153
|
let tag;
|
|
@@ -31175,7 +31175,7 @@ var init_GitClient = __esm({
|
|
|
31175
31175
|
try {
|
|
31176
31176
|
await this.exec("check-ignore", "--", file);
|
|
31177
31177
|
return true;
|
|
31178
|
-
} catch {
|
|
31178
|
+
} catch (err) {
|
|
31179
31179
|
return false;
|
|
31180
31180
|
}
|
|
31181
31181
|
}
|
|
@@ -31919,16 +31919,10 @@ var init_dist6 = __esm({
|
|
|
31919
31919
|
}
|
|
31920
31920
|
});
|
|
31921
31921
|
|
|
31922
|
-
// ../../node_modules/.pnpm/@conventional-changelog+git-client@2.
|
|
31923
|
-
function packagePrefix(packageName) {
|
|
31924
|
-
if (!packageName) {
|
|
31925
|
-
return /^.+@/;
|
|
31926
|
-
}
|
|
31927
|
-
return `${packageName}@`;
|
|
31928
|
-
}
|
|
31922
|
+
// ../../node_modules/.pnpm/@conventional-changelog+git-client@2.5.1_conventional-commits-filter@5.0.0_conventional-commits-parser@6.2.1/node_modules/@conventional-changelog/git-client/dist/ConventionalGitClient.js
|
|
31929
31923
|
var import_semver2, ConventionalGitClient;
|
|
31930
31924
|
var init_ConventionalGitClient = __esm({
|
|
31931
|
-
"../../node_modules/.pnpm/@conventional-changelog+git-client@2.
|
|
31925
|
+
"../../node_modules/.pnpm/@conventional-changelog+git-client@2.5.1_conventional-commits-filter@5.0.0_conventional-commits-parser@6.2.1/node_modules/@conventional-changelog/git-client/dist/ConventionalGitClient.js"() {
|
|
31932
31926
|
"use strict";
|
|
31933
31927
|
import_semver2 = __toESM(require_semver2(), 1);
|
|
31934
31928
|
init_dist3();
|
|
@@ -31940,8 +31934,8 @@ var init_ConventionalGitClient = __esm({
|
|
|
31940
31934
|
return this.deps;
|
|
31941
31935
|
}
|
|
31942
31936
|
this.deps = Promise.all([
|
|
31943
|
-
Promise.resolve().then(() => (init_dist5(), dist_exports3)).then(({ parseCommits:
|
|
31944
|
-
Promise.resolve().then(() => (init_dist6(), dist_exports4)).then(({ filterRevertedCommits:
|
|
31937
|
+
Promise.resolve().then(() => (init_dist5(), dist_exports3)).then(({ parseCommits: parseCommits2 }) => parseCommits2),
|
|
31938
|
+
Promise.resolve().then(() => (init_dist6(), dist_exports4)).then(({ filterRevertedCommits: filterRevertedCommits2 }) => filterRevertedCommits2)
|
|
31945
31939
|
]);
|
|
31946
31940
|
return this.deps;
|
|
31947
31941
|
}
|
|
@@ -31957,12 +31951,12 @@ var init_ConventionalGitClient = __esm({
|
|
|
31957
31951
|
*/
|
|
31958
31952
|
async *getCommits(params = {}, parserOptions = {}) {
|
|
31959
31953
|
const { filterReverts, ...gitLogParams } = params;
|
|
31960
|
-
const [
|
|
31954
|
+
const [parseCommits2, filterRevertedCommits2] = await this.loadDeps();
|
|
31961
31955
|
if (filterReverts) {
|
|
31962
|
-
yield*
|
|
31956
|
+
yield* filterRevertedCommits2(this.getCommits(gitLogParams, parserOptions));
|
|
31963
31957
|
return;
|
|
31964
31958
|
}
|
|
31965
|
-
const parse4 =
|
|
31959
|
+
const parse4 = parseCommits2(parserOptions);
|
|
31966
31960
|
const commitsStream = this.getRawCommits(gitLogParams);
|
|
31967
31961
|
yield* parse4(commitsStream);
|
|
31968
31962
|
}
|
|
@@ -32035,9 +32029,9 @@ var init_ConventionalGitClient = __esm({
|
|
|
32035
32029
|
}
|
|
32036
32030
|
});
|
|
32037
32031
|
|
|
32038
|
-
// ../../node_modules/.pnpm/@conventional-changelog+git-client@2.
|
|
32032
|
+
// ../../node_modules/.pnpm/@conventional-changelog+git-client@2.5.1_conventional-commits-filter@5.0.0_conventional-commits-parser@6.2.1/node_modules/@conventional-changelog/git-client/dist/index.js
|
|
32039
32033
|
var init_dist7 = __esm({
|
|
32040
|
-
"../../node_modules/.pnpm/@conventional-changelog+git-client@2.
|
|
32034
|
+
"../../node_modules/.pnpm/@conventional-changelog+git-client@2.5.1_conventional-commits-filter@5.0.0_conventional-commits-parser@6.2.1/node_modules/@conventional-changelog/git-client/dist/index.js"() {
|
|
32041
32035
|
"use strict";
|
|
32042
32036
|
init_types();
|
|
32043
32037
|
init_utils4();
|
|
@@ -32046,164 +32040,939 @@ var init_dist7 = __esm({
|
|
|
32046
32040
|
}
|
|
32047
32041
|
});
|
|
32048
32042
|
|
|
32049
|
-
// ../../node_modules/.pnpm/
|
|
32050
|
-
|
|
32051
|
-
|
|
32052
|
-
|
|
32043
|
+
// ../../node_modules/.pnpm/conventional-changelog-preset-loader@5.0.0/node_modules/conventional-changelog-preset-loader/dist/types.js
|
|
32044
|
+
var init_types3 = __esm({
|
|
32045
|
+
"../../node_modules/.pnpm/conventional-changelog-preset-loader@5.0.0/node_modules/conventional-changelog-preset-loader/dist/types.js"() {
|
|
32046
|
+
"use strict";
|
|
32053
32047
|
}
|
|
32054
|
-
|
|
32055
|
-
|
|
32056
|
-
|
|
32057
|
-
|
|
32048
|
+
});
|
|
32049
|
+
|
|
32050
|
+
// ../../node_modules/.pnpm/conventional-changelog-preset-loader@5.0.0/node_modules/conventional-changelog-preset-loader/dist/presetLoader.js
|
|
32051
|
+
import path10 from "path";
|
|
32052
|
+
function resolvePresetNameVariants(preset) {
|
|
32053
|
+
if (path10.isAbsolute(preset)) {
|
|
32054
|
+
return [preset];
|
|
32055
|
+
}
|
|
32056
|
+
let scope = "";
|
|
32057
|
+
let name = preset.toLocaleLowerCase();
|
|
32058
|
+
if (preset.startsWith("@")) {
|
|
32059
|
+
const parts = preset.split("/");
|
|
32060
|
+
scope = `${parts.shift()}/`;
|
|
32061
|
+
if (scope === "@conventional-changelog/") {
|
|
32062
|
+
return [preset];
|
|
32063
|
+
}
|
|
32064
|
+
name = parts.join("/");
|
|
32065
|
+
}
|
|
32066
|
+
if (!name.startsWith("conventional-changelog-")) {
|
|
32067
|
+
name = `conventional-changelog-${name}`;
|
|
32068
|
+
}
|
|
32069
|
+
const altPreset = `${scope}${name}`;
|
|
32070
|
+
if (altPreset !== preset) {
|
|
32071
|
+
return [altPreset, preset];
|
|
32072
|
+
}
|
|
32073
|
+
return [preset];
|
|
32074
|
+
}
|
|
32075
|
+
function getModuleDefaultExport(module2) {
|
|
32076
|
+
if (("__esModule" in module2 || Object.getPrototypeOf(module2) === null) && "default" in module2) {
|
|
32077
|
+
return module2.default;
|
|
32078
|
+
}
|
|
32079
|
+
return module2;
|
|
32080
|
+
}
|
|
32081
|
+
async function loadWithFallbacks(moduleLoader, variants) {
|
|
32082
|
+
let error3 = null;
|
|
32083
|
+
for (const variant of variants) {
|
|
32084
|
+
try {
|
|
32085
|
+
return getModuleDefaultExport(await moduleLoader(variant));
|
|
32086
|
+
} catch (err) {
|
|
32087
|
+
if (!error3) {
|
|
32088
|
+
error3 = err;
|
|
32089
|
+
}
|
|
32090
|
+
}
|
|
32091
|
+
}
|
|
32092
|
+
throw error3;
|
|
32093
|
+
}
|
|
32094
|
+
function createPresetLoader(moduleLoader) {
|
|
32095
|
+
return async function loadPreset2(presetOrParams) {
|
|
32096
|
+
let preset = "";
|
|
32097
|
+
let params = null;
|
|
32098
|
+
if (typeof presetOrParams === "string") {
|
|
32099
|
+
preset = presetOrParams;
|
|
32100
|
+
} else if (typeof presetOrParams === "object" && typeof presetOrParams.name === "string") {
|
|
32101
|
+
preset = presetOrParams.name;
|
|
32102
|
+
params = presetOrParams;
|
|
32103
|
+
} else {
|
|
32104
|
+
throw Error("Preset must be string or object with property `name`");
|
|
32105
|
+
}
|
|
32106
|
+
const presetNameVariants = resolvePresetNameVariants(preset);
|
|
32107
|
+
let createPreset = null;
|
|
32108
|
+
try {
|
|
32109
|
+
createPreset = await loadWithFallbacks(moduleLoader, presetNameVariants);
|
|
32110
|
+
} catch (err) {
|
|
32111
|
+
throw new Error(`Unable to load the "${preset}" preset. Please make sure it's installed.`, {
|
|
32112
|
+
cause: err
|
|
32113
|
+
});
|
|
32114
|
+
}
|
|
32115
|
+
if (typeof createPreset !== "function") {
|
|
32116
|
+
throw new Error(`The "${preset}" preset does not export a function. Maybe you are using an old version of the preset. Please upgrade.`);
|
|
32117
|
+
}
|
|
32118
|
+
return params ? await createPreset(params) : await createPreset();
|
|
32058
32119
|
};
|
|
32059
|
-
return finalOptions;
|
|
32060
32120
|
}
|
|
32061
|
-
|
|
32062
|
-
|
|
32063
|
-
|
|
32064
|
-
|
|
32065
|
-
|
|
32066
|
-
const client = new ConventionalGitClient(cwd3);
|
|
32067
|
-
const tags2 = [];
|
|
32068
|
-
for await (const tag of client.getSemverTags(finalOptions)) {
|
|
32069
|
-
tags2.push(tag);
|
|
32121
|
+
var loadPreset;
|
|
32122
|
+
var init_presetLoader = __esm({
|
|
32123
|
+
"../../node_modules/.pnpm/conventional-changelog-preset-loader@5.0.0/node_modules/conventional-changelog-preset-loader/dist/presetLoader.js"() {
|
|
32124
|
+
"use strict";
|
|
32125
|
+
loadPreset = createPresetLoader((preset) => import(preset));
|
|
32070
32126
|
}
|
|
32071
|
-
|
|
32127
|
+
});
|
|
32128
|
+
|
|
32129
|
+
// ../../node_modules/.pnpm/conventional-changelog-preset-loader@5.0.0/node_modules/conventional-changelog-preset-loader/dist/index.js
|
|
32130
|
+
var init_dist8 = __esm({
|
|
32131
|
+
"../../node_modules/.pnpm/conventional-changelog-preset-loader@5.0.0/node_modules/conventional-changelog-preset-loader/dist/index.js"() {
|
|
32132
|
+
"use strict";
|
|
32133
|
+
init_types3();
|
|
32134
|
+
init_presetLoader();
|
|
32135
|
+
}
|
|
32136
|
+
});
|
|
32137
|
+
|
|
32138
|
+
// ../../node_modules/.pnpm/conventional-recommended-bump@11.2.0/node_modules/conventional-recommended-bump/dist/utils.js
|
|
32139
|
+
function isIterable2(value) {
|
|
32140
|
+
return value !== null && (typeof value[Symbol.iterator] === "function" || typeof value[Symbol.asyncIterator] === "function");
|
|
32072
32141
|
}
|
|
32073
|
-
|
|
32074
|
-
|
|
32142
|
+
function bindLogNamespace(namespace, logger) {
|
|
32143
|
+
return (messages) => logger(namespace, messages);
|
|
32144
|
+
}
|
|
32145
|
+
var init_utils7 = __esm({
|
|
32146
|
+
"../../node_modules/.pnpm/conventional-recommended-bump@11.2.0/node_modules/conventional-recommended-bump/dist/utils.js"() {
|
|
32147
|
+
"use strict";
|
|
32148
|
+
}
|
|
32149
|
+
});
|
|
32150
|
+
|
|
32151
|
+
// ../../node_modules/.pnpm/conventional-recommended-bump@11.2.0/node_modules/conventional-recommended-bump/dist/bumper.js
|
|
32152
|
+
var VERSIONS, Bumper;
|
|
32153
|
+
var init_bumper = __esm({
|
|
32154
|
+
"../../node_modules/.pnpm/conventional-recommended-bump@11.2.0/node_modules/conventional-recommended-bump/dist/bumper.js"() {
|
|
32075
32155
|
"use strict";
|
|
32076
32156
|
init_dist7();
|
|
32157
|
+
init_dist8();
|
|
32158
|
+
init_utils7();
|
|
32159
|
+
VERSIONS = [
|
|
32160
|
+
"major",
|
|
32161
|
+
"minor",
|
|
32162
|
+
"patch"
|
|
32163
|
+
];
|
|
32164
|
+
Bumper = class {
|
|
32165
|
+
gitClient;
|
|
32166
|
+
params;
|
|
32167
|
+
whatBump;
|
|
32168
|
+
tagGetter;
|
|
32169
|
+
commitsGetter;
|
|
32170
|
+
constructor(cwdOrGitClient = process.cwd()) {
|
|
32171
|
+
this.gitClient = typeof cwdOrGitClient === "string" ? new ConventionalGitClient(cwdOrGitClient) : cwdOrGitClient;
|
|
32172
|
+
this.whatBump = null;
|
|
32173
|
+
this.params = Promise.resolve({
|
|
32174
|
+
commits: {
|
|
32175
|
+
format: "%B%n-hash-%n%H",
|
|
32176
|
+
filterReverts: true
|
|
32177
|
+
}
|
|
32178
|
+
});
|
|
32179
|
+
this.tagGetter = () => this.getLastSemverTag();
|
|
32180
|
+
this.commitsGetter = () => this.getCommits();
|
|
32181
|
+
}
|
|
32182
|
+
composeParams(params) {
|
|
32183
|
+
this.params = Promise.all([params, this.params]).then(([params2, prevParams]) => ({
|
|
32184
|
+
options: {
|
|
32185
|
+
...prevParams.options,
|
|
32186
|
+
...params2.options
|
|
32187
|
+
},
|
|
32188
|
+
tags: {
|
|
32189
|
+
...prevParams.tags,
|
|
32190
|
+
...params2.tags
|
|
32191
|
+
},
|
|
32192
|
+
commits: {
|
|
32193
|
+
...prevParams.commits,
|
|
32194
|
+
...params2.commits
|
|
32195
|
+
},
|
|
32196
|
+
parser: {
|
|
32197
|
+
...prevParams.parser,
|
|
32198
|
+
...params2.parser
|
|
32199
|
+
}
|
|
32200
|
+
}));
|
|
32201
|
+
}
|
|
32202
|
+
async getLastSemverTag() {
|
|
32203
|
+
const { tags: tags2 } = await this.params;
|
|
32204
|
+
return await this.gitClient.getLastSemverTag(tags2);
|
|
32205
|
+
}
|
|
32206
|
+
async *getCommits() {
|
|
32207
|
+
const { options, commits, parser } = await this.params;
|
|
32208
|
+
const parserParams = {
|
|
32209
|
+
...parser
|
|
32210
|
+
};
|
|
32211
|
+
if (!parserParams.warn && options?.warn) {
|
|
32212
|
+
parserParams.warn = bindLogNamespace("parser", options.warn);
|
|
32213
|
+
}
|
|
32214
|
+
yield* this.gitClient.getCommits({
|
|
32215
|
+
from: await this.tagGetter() || "",
|
|
32216
|
+
...commits
|
|
32217
|
+
}, parserParams);
|
|
32218
|
+
}
|
|
32219
|
+
/**
|
|
32220
|
+
* Load configs from a preset
|
|
32221
|
+
* @param preset
|
|
32222
|
+
* @param loader - Preset module loader, if not provided, will use default loader
|
|
32223
|
+
* @returns this
|
|
32224
|
+
*/
|
|
32225
|
+
loadPreset(preset, loader2) {
|
|
32226
|
+
const loadPreset2 = loader2 ? createPresetLoader(loader2) : loadPreset;
|
|
32227
|
+
const config = loadPreset2(preset).then((config2) => {
|
|
32228
|
+
if (!config2) {
|
|
32229
|
+
throw Error("Preset is not loaded or have incorrect exports");
|
|
32230
|
+
}
|
|
32231
|
+
return config2;
|
|
32232
|
+
});
|
|
32233
|
+
this.whatBump = async (commits) => {
|
|
32234
|
+
const { whatBump } = await config;
|
|
32235
|
+
return whatBump(commits);
|
|
32236
|
+
};
|
|
32237
|
+
this.composeParams(config);
|
|
32238
|
+
return this;
|
|
32239
|
+
}
|
|
32240
|
+
/**
|
|
32241
|
+
* Set config directly
|
|
32242
|
+
* @param config - Config object
|
|
32243
|
+
* @returns this
|
|
32244
|
+
*/
|
|
32245
|
+
config(config) {
|
|
32246
|
+
this.composeParams(config);
|
|
32247
|
+
return this;
|
|
32248
|
+
}
|
|
32249
|
+
/**
|
|
32250
|
+
* Set bumper options
|
|
32251
|
+
* @param options - Bumper options
|
|
32252
|
+
* @returns this
|
|
32253
|
+
*/
|
|
32254
|
+
options(options) {
|
|
32255
|
+
this.composeParams({
|
|
32256
|
+
options
|
|
32257
|
+
});
|
|
32258
|
+
return this;
|
|
32259
|
+
}
|
|
32260
|
+
/**
|
|
32261
|
+
* Set params to get the last semver tag
|
|
32262
|
+
* @param paramsOrTag - Params to get the last semver tag or a tag name
|
|
32263
|
+
* @returns this
|
|
32264
|
+
*/
|
|
32265
|
+
tag(paramsOrTag) {
|
|
32266
|
+
if (typeof paramsOrTag === "string") {
|
|
32267
|
+
this.tagGetter = () => paramsOrTag;
|
|
32268
|
+
} else {
|
|
32269
|
+
this.tagGetter = () => this.getLastSemverTag();
|
|
32270
|
+
this.composeParams({
|
|
32271
|
+
tags: paramsOrTag
|
|
32272
|
+
});
|
|
32273
|
+
}
|
|
32274
|
+
return this;
|
|
32275
|
+
}
|
|
32276
|
+
commits(paramsOrCommits, parserOptions) {
|
|
32277
|
+
if (isIterable2(paramsOrCommits)) {
|
|
32278
|
+
this.commitsGetter = () => paramsOrCommits;
|
|
32279
|
+
} else {
|
|
32280
|
+
this.commitsGetter = () => this.getCommits();
|
|
32281
|
+
this.composeParams({
|
|
32282
|
+
commits: paramsOrCommits,
|
|
32283
|
+
parser: parserOptions
|
|
32284
|
+
});
|
|
32285
|
+
}
|
|
32286
|
+
return this;
|
|
32287
|
+
}
|
|
32288
|
+
/**
|
|
32289
|
+
* Recommend a bump by `whatBump` function
|
|
32290
|
+
* @param whatBump - Function to recommend a bump from commits
|
|
32291
|
+
* @returns Bump recommendation
|
|
32292
|
+
*/
|
|
32293
|
+
async bump(whatBump = this.whatBump) {
|
|
32294
|
+
if (typeof whatBump !== "function") {
|
|
32295
|
+
throw Error("`whatBump` must be a function");
|
|
32296
|
+
}
|
|
32297
|
+
const { gitClient } = this;
|
|
32298
|
+
const { options } = await this.params;
|
|
32299
|
+
if (!gitClient.debug && options?.debug) {
|
|
32300
|
+
gitClient.debug = bindLogNamespace("git-client", options.debug);
|
|
32301
|
+
}
|
|
32302
|
+
const commitsStream = this.commitsGetter();
|
|
32303
|
+
const commits = [];
|
|
32304
|
+
let commit;
|
|
32305
|
+
for await (commit of commitsStream) {
|
|
32306
|
+
commits.push(commit);
|
|
32307
|
+
}
|
|
32308
|
+
const result = await whatBump(commits);
|
|
32309
|
+
if (result && "level" in result) {
|
|
32310
|
+
return {
|
|
32311
|
+
...result,
|
|
32312
|
+
releaseType: VERSIONS[result.level],
|
|
32313
|
+
commits
|
|
32314
|
+
};
|
|
32315
|
+
}
|
|
32316
|
+
return {
|
|
32317
|
+
commits
|
|
32318
|
+
};
|
|
32319
|
+
}
|
|
32320
|
+
};
|
|
32077
32321
|
}
|
|
32078
32322
|
});
|
|
32079
32323
|
|
|
32080
|
-
// ../../node_modules/.pnpm/
|
|
32081
|
-
|
|
32082
|
-
|
|
32083
|
-
|
|
32324
|
+
// ../../node_modules/.pnpm/conventional-recommended-bump@11.2.0/node_modules/conventional-recommended-bump/dist/index.js
|
|
32325
|
+
var init_dist9 = __esm({
|
|
32326
|
+
"../../node_modules/.pnpm/conventional-recommended-bump@11.2.0/node_modules/conventional-recommended-bump/dist/index.js"() {
|
|
32327
|
+
"use strict";
|
|
32328
|
+
init_bumper();
|
|
32329
|
+
}
|
|
32330
|
+
});
|
|
32331
|
+
|
|
32332
|
+
// ../../node_modules/.pnpm/@conventional-changelog+git-client@2.6.0_conventional-commits-filter@5.0.0_conventional-commits-parser@6.2.1/node_modules/@conventional-changelog/git-client/dist/types.js
|
|
32333
|
+
var init_types4 = __esm({
|
|
32334
|
+
"../../node_modules/.pnpm/@conventional-changelog+git-client@2.6.0_conventional-commits-filter@5.0.0_conventional-commits-parser@6.2.1/node_modules/@conventional-changelog/git-client/dist/types.js"() {
|
|
32335
|
+
"use strict";
|
|
32336
|
+
}
|
|
32337
|
+
});
|
|
32338
|
+
|
|
32339
|
+
// ../../node_modules/.pnpm/@conventional-changelog+git-client@2.6.0_conventional-commits-filter@5.0.0_conventional-commits-parser@6.2.1/node_modules/@conventional-changelog/git-client/dist/utils.js
|
|
32340
|
+
function formatArgs2(...args) {
|
|
32341
|
+
return args.reduce((finalArgs, arg) => {
|
|
32342
|
+
if (arg) {
|
|
32343
|
+
finalArgs.push(String(arg));
|
|
32344
|
+
}
|
|
32345
|
+
return finalArgs;
|
|
32346
|
+
}, []);
|
|
32084
32347
|
}
|
|
32085
|
-
|
|
32086
|
-
|
|
32087
|
-
|
|
32348
|
+
function toArray4(value) {
|
|
32349
|
+
return Array.isArray(value) ? value : [value];
|
|
32350
|
+
}
|
|
32351
|
+
var init_utils8 = __esm({
|
|
32352
|
+
"../../node_modules/.pnpm/@conventional-changelog+git-client@2.6.0_conventional-commits-filter@5.0.0_conventional-commits-parser@6.2.1/node_modules/@conventional-changelog/git-client/dist/utils.js"() {
|
|
32088
32353
|
"use strict";
|
|
32089
|
-
|
|
32090
|
-
|
|
32091
|
-
|
|
32092
|
-
|
|
32093
|
-
|
|
32094
|
-
|
|
32095
|
-
|
|
32096
|
-
|
|
32097
|
-
|
|
32098
|
-
|
|
32099
|
-
|
|
32354
|
+
}
|
|
32355
|
+
});
|
|
32356
|
+
|
|
32357
|
+
// ../../node_modules/.pnpm/@simple-libs+stream-utils@1.2.0/node_modules/@simple-libs/stream-utils/dist/index.js
|
|
32358
|
+
async function toArray5(iterable) {
|
|
32359
|
+
const result = [];
|
|
32360
|
+
for await (const item of iterable) {
|
|
32361
|
+
result.push(item);
|
|
32362
|
+
}
|
|
32363
|
+
return result;
|
|
32364
|
+
}
|
|
32365
|
+
async function concatBufferStream2(iterable) {
|
|
32366
|
+
return Buffer.concat(await toArray5(iterable));
|
|
32367
|
+
}
|
|
32368
|
+
async function firstFromStream2(stream) {
|
|
32369
|
+
for await (const tag of stream) {
|
|
32370
|
+
return tag;
|
|
32371
|
+
}
|
|
32372
|
+
return null;
|
|
32373
|
+
}
|
|
32374
|
+
async function* splitStream2(stream, separator) {
|
|
32375
|
+
let chunk;
|
|
32376
|
+
let payload;
|
|
32377
|
+
let buffer = "";
|
|
32378
|
+
for await (chunk of stream) {
|
|
32379
|
+
buffer += chunk.toString();
|
|
32380
|
+
if (buffer.includes(separator)) {
|
|
32381
|
+
payload = buffer.split(separator);
|
|
32382
|
+
buffer = payload.pop() || "";
|
|
32383
|
+
yield* payload;
|
|
32384
|
+
}
|
|
32385
|
+
}
|
|
32386
|
+
if (buffer) {
|
|
32387
|
+
yield buffer;
|
|
32388
|
+
}
|
|
32389
|
+
}
|
|
32390
|
+
var init_dist10 = __esm({
|
|
32391
|
+
"../../node_modules/.pnpm/@simple-libs+stream-utils@1.2.0/node_modules/@simple-libs/stream-utils/dist/index.js"() {
|
|
32392
|
+
"use strict";
|
|
32393
|
+
}
|
|
32394
|
+
});
|
|
32395
|
+
|
|
32396
|
+
// ../../node_modules/.pnpm/@simple-libs+child-process-utils@1.0.2/node_modules/@simple-libs/child-process-utils/dist/index.js
|
|
32397
|
+
async function exitCode2(process2) {
|
|
32398
|
+
if (process2.exitCode !== null) {
|
|
32399
|
+
return process2.exitCode;
|
|
32400
|
+
}
|
|
32401
|
+
return new Promise((resolve11) => process2.once("close", resolve11));
|
|
32402
|
+
}
|
|
32403
|
+
async function catchProcessError2(process2) {
|
|
32404
|
+
let error3 = new Error("Process exited with non-zero code");
|
|
32405
|
+
let stderr = "";
|
|
32406
|
+
process2.on("error", (err) => {
|
|
32407
|
+
error3 = err;
|
|
32408
|
+
});
|
|
32409
|
+
if (process2.stderr) {
|
|
32410
|
+
let chunk;
|
|
32411
|
+
for await (chunk of process2.stderr) {
|
|
32412
|
+
stderr += chunk.toString();
|
|
32413
|
+
}
|
|
32414
|
+
}
|
|
32415
|
+
const code = await exitCode2(process2);
|
|
32416
|
+
if (stderr) {
|
|
32417
|
+
error3 = new Error(stderr);
|
|
32418
|
+
}
|
|
32419
|
+
return code ? error3 : null;
|
|
32420
|
+
}
|
|
32421
|
+
async function* outputStream2(process2) {
|
|
32422
|
+
const { stdout } = process2;
|
|
32423
|
+
const errorPromise = catchProcessError2(process2);
|
|
32424
|
+
if (stdout) {
|
|
32425
|
+
stdout.on("error", (err) => {
|
|
32426
|
+
if (err.name === "AbortError" && process2.exitCode === null) {
|
|
32427
|
+
process2.kill("SIGKILL");
|
|
32100
32428
|
}
|
|
32101
|
-
};
|
|
32102
|
-
|
|
32103
|
-
|
|
32104
|
-
|
|
32105
|
-
|
|
32106
|
-
|
|
32107
|
-
|
|
32108
|
-
|
|
32109
|
-
|
|
32110
|
-
|
|
32111
|
-
|
|
32112
|
-
|
|
32113
|
-
|
|
32114
|
-
|
|
32115
|
-
|
|
32116
|
-
|
|
32117
|
-
|
|
32118
|
-
|
|
32119
|
-
|
|
32120
|
-
|
|
32121
|
-
|
|
32122
|
-
|
|
32123
|
-
|
|
32124
|
-
|
|
32125
|
-
|
|
32126
|
-
|
|
32127
|
-
|
|
32128
|
-
|
|
32129
|
-
|
|
32130
|
-
|
|
32131
|
-
|
|
32132
|
-
|
|
32133
|
-
|
|
32134
|
-
|
|
32135
|
-
|
|
32136
|
-
|
|
32137
|
-
|
|
32138
|
-
|
|
32139
|
-
|
|
32140
|
-
|
|
32141
|
-
|
|
32142
|
-
|
|
32143
|
-
|
|
32144
|
-
|
|
32145
|
-
|
|
32146
|
-
|
|
32147
|
-
|
|
32148
|
-
|
|
32149
|
-
|
|
32150
|
-
|
|
32151
|
-
|
|
32152
|
-
|
|
32153
|
-
|
|
32154
|
-
|
|
32155
|
-
|
|
32156
|
-
|
|
32157
|
-
|
|
32158
|
-
|
|
32159
|
-
|
|
32160
|
-
|
|
32161
|
-
|
|
32162
|
-
|
|
32163
|
-
|
|
32164
|
-
|
|
32165
|
-
|
|
32166
|
-
|
|
32167
|
-
|
|
32168
|
-
|
|
32169
|
-
|
|
32170
|
-
|
|
32171
|
-
|
|
32172
|
-
|
|
32173
|
-
|
|
32174
|
-
|
|
32175
|
-
|
|
32176
|
-
|
|
32177
|
-
|
|
32178
|
-
|
|
32179
|
-
|
|
32180
|
-
|
|
32181
|
-
|
|
32182
|
-
|
|
32183
|
-
|
|
32184
|
-
|
|
32185
|
-
|
|
32186
|
-
|
|
32187
|
-
|
|
32188
|
-
|
|
32189
|
-
|
|
32190
|
-
|
|
32191
|
-
|
|
32192
|
-
|
|
32193
|
-
|
|
32194
|
-
|
|
32195
|
-
|
|
32196
|
-
|
|
32197
|
-
|
|
32198
|
-
|
|
32199
|
-
|
|
32200
|
-
|
|
32201
|
-
|
|
32202
|
-
|
|
32203
|
-
|
|
32204
|
-
|
|
32205
|
-
|
|
32206
|
-
|
|
32429
|
+
});
|
|
32430
|
+
yield* stdout;
|
|
32431
|
+
}
|
|
32432
|
+
const error3 = await errorPromise;
|
|
32433
|
+
if (error3) {
|
|
32434
|
+
throw error3;
|
|
32435
|
+
}
|
|
32436
|
+
}
|
|
32437
|
+
function output2(process2) {
|
|
32438
|
+
return concatBufferStream2(outputStream2(process2));
|
|
32439
|
+
}
|
|
32440
|
+
var init_dist11 = __esm({
|
|
32441
|
+
"../../node_modules/.pnpm/@simple-libs+child-process-utils@1.0.2/node_modules/@simple-libs/child-process-utils/dist/index.js"() {
|
|
32442
|
+
"use strict";
|
|
32443
|
+
init_dist10();
|
|
32444
|
+
}
|
|
32445
|
+
});
|
|
32446
|
+
|
|
32447
|
+
// ../../node_modules/.pnpm/@conventional-changelog+git-client@2.6.0_conventional-commits-filter@5.0.0_conventional-commits-parser@6.2.1/node_modules/@conventional-changelog/git-client/dist/GitClient.js
|
|
32448
|
+
import { spawn as spawn2 } from "child_process";
|
|
32449
|
+
var SCISSOR3, GitClient2;
|
|
32450
|
+
var init_GitClient2 = __esm({
|
|
32451
|
+
"../../node_modules/.pnpm/@conventional-changelog+git-client@2.6.0_conventional-commits-filter@5.0.0_conventional-commits-parser@6.2.1/node_modules/@conventional-changelog/git-client/dist/GitClient.js"() {
|
|
32452
|
+
"use strict";
|
|
32453
|
+
init_dist10();
|
|
32454
|
+
init_dist11();
|
|
32455
|
+
init_utils8();
|
|
32456
|
+
SCISSOR3 = "------------------------ >8 ------------------------";
|
|
32457
|
+
GitClient2 = class {
|
|
32458
|
+
cwd;
|
|
32459
|
+
debug;
|
|
32460
|
+
constructor(cwd3, debug3) {
|
|
32461
|
+
this.cwd = cwd3;
|
|
32462
|
+
this.debug = debug3;
|
|
32463
|
+
}
|
|
32464
|
+
formatArgs(...args) {
|
|
32465
|
+
const finalArgs = formatArgs2(...args);
|
|
32466
|
+
if (this.debug) {
|
|
32467
|
+
this.debug(finalArgs);
|
|
32468
|
+
}
|
|
32469
|
+
return finalArgs;
|
|
32470
|
+
}
|
|
32471
|
+
/**
|
|
32472
|
+
* Raw exec method to run git commands.
|
|
32473
|
+
* @param args
|
|
32474
|
+
* @returns Stdout string output of the command.
|
|
32475
|
+
*/
|
|
32476
|
+
async exec(...args) {
|
|
32477
|
+
return (await output2(spawn2("git", this.formatArgs(...args), {
|
|
32478
|
+
cwd: this.cwd
|
|
32479
|
+
}))).toString().trim();
|
|
32480
|
+
}
|
|
32481
|
+
/**
|
|
32482
|
+
* Raw exec method to run git commands with stream output.
|
|
32483
|
+
* @param args
|
|
32484
|
+
* @returns Stdout stream of the command.
|
|
32485
|
+
*/
|
|
32486
|
+
execStream(...args) {
|
|
32487
|
+
return outputStream2(spawn2("git", this.formatArgs(...args), {
|
|
32488
|
+
cwd: this.cwd
|
|
32489
|
+
}));
|
|
32490
|
+
}
|
|
32491
|
+
/**
|
|
32492
|
+
* Initialize a new git repository.
|
|
32493
|
+
* @returns Boolean result.
|
|
32494
|
+
*/
|
|
32495
|
+
async init() {
|
|
32496
|
+
try {
|
|
32497
|
+
await this.exec("init");
|
|
32498
|
+
return true;
|
|
32499
|
+
} catch {
|
|
32500
|
+
return false;
|
|
32501
|
+
}
|
|
32502
|
+
}
|
|
32503
|
+
/**
|
|
32504
|
+
* Get raw commits stream.
|
|
32505
|
+
* @param params
|
|
32506
|
+
* @param params.path - Read commits from specific path.
|
|
32507
|
+
* @param params.from - Start commits range.
|
|
32508
|
+
* @param params.to - End commits range.
|
|
32509
|
+
* @param params.format - Commits format.
|
|
32510
|
+
* @yields Raw commits data.
|
|
32511
|
+
*/
|
|
32512
|
+
async *getRawCommits(params = {}) {
|
|
32513
|
+
const { path: path19, from = "", to = "HEAD", format: format2 = "%B", ignore, reverse: reverse2, merges, since } = params;
|
|
32514
|
+
const shouldNotIgnore = ignore ? (chunk2) => !ignore.test(chunk2) : () => true;
|
|
32515
|
+
const stdout = this.execStream("log", `--format=${format2}%n${SCISSOR3}`, since && `--since=${since instanceof Date ? since.toISOString() : since}`, reverse2 && "--reverse", merges && "--merges", merges === false && "--no-merges", [from, to].filter(Boolean).join(".."), ...path19 ? ["--", ...toArray4(path19)] : []);
|
|
32516
|
+
const commitsStream = splitStream2(stdout, `${SCISSOR3}
|
|
32517
|
+
`);
|
|
32518
|
+
let chunk;
|
|
32519
|
+
for await (chunk of commitsStream) {
|
|
32520
|
+
if (shouldNotIgnore(chunk)) {
|
|
32521
|
+
yield chunk;
|
|
32522
|
+
}
|
|
32523
|
+
}
|
|
32524
|
+
}
|
|
32525
|
+
/**
|
|
32526
|
+
* Get tags stream.
|
|
32527
|
+
* @param params
|
|
32528
|
+
* @yields Tags
|
|
32529
|
+
*/
|
|
32530
|
+
async *getTags(params = {}) {
|
|
32531
|
+
const { path: path19, from = "", to = "HEAD", since } = params;
|
|
32532
|
+
const tagRegex = /tag:\s*(.+?)[,)]/gi;
|
|
32533
|
+
const stdout = this.execStream("log", "--decorate", "--no-color", "--date-order", since && `--since=${since instanceof Date ? since.toISOString() : since}`, [from, to].filter(Boolean).join(".."), ...path19 ? ["--", ...toArray4(path19)] : []);
|
|
32534
|
+
let chunk;
|
|
32535
|
+
let matches;
|
|
32536
|
+
let tag;
|
|
32537
|
+
for await (chunk of stdout) {
|
|
32538
|
+
matches = chunk.toString().trim().matchAll(tagRegex);
|
|
32539
|
+
for ([, tag] of matches) {
|
|
32540
|
+
yield tag;
|
|
32541
|
+
}
|
|
32542
|
+
}
|
|
32543
|
+
}
|
|
32544
|
+
/**
|
|
32545
|
+
* Get last tag.
|
|
32546
|
+
* @param params
|
|
32547
|
+
* @returns Last tag, `null` if not found.
|
|
32548
|
+
*/
|
|
32549
|
+
async getLastTag(params) {
|
|
32550
|
+
return firstFromStream2(this.getTags(params));
|
|
32551
|
+
}
|
|
32552
|
+
/**
|
|
32553
|
+
* Check file is ignored via .gitignore.
|
|
32554
|
+
* @param file - Path to target file.
|
|
32555
|
+
* @returns Boolean value.
|
|
32556
|
+
*/
|
|
32557
|
+
async checkIgnore(file) {
|
|
32558
|
+
try {
|
|
32559
|
+
await this.exec("check-ignore", "--", file);
|
|
32560
|
+
return true;
|
|
32561
|
+
} catch {
|
|
32562
|
+
return false;
|
|
32563
|
+
}
|
|
32564
|
+
}
|
|
32565
|
+
/**
|
|
32566
|
+
* Add files to git index.
|
|
32567
|
+
* @param files - Files to stage.
|
|
32568
|
+
*/
|
|
32569
|
+
async add(files) {
|
|
32570
|
+
await this.exec("add", "--", ...toArray4(files));
|
|
32571
|
+
}
|
|
32572
|
+
/**
|
|
32573
|
+
* Commit changes.
|
|
32574
|
+
* @param params
|
|
32575
|
+
* @param params.verify
|
|
32576
|
+
* @param params.sign
|
|
32577
|
+
* @param params.files
|
|
32578
|
+
* @param params.allowEmpty
|
|
32579
|
+
* @param params.message
|
|
32580
|
+
*/
|
|
32581
|
+
async commit(params) {
|
|
32582
|
+
const { verify = true, sign = false, files = [], allowEmpty = false, message } = params;
|
|
32583
|
+
await this.exec("commit", !verify && "--no-verify", sign && "-S", allowEmpty && "--allow-empty", "-m", message, "--", ...files);
|
|
32584
|
+
}
|
|
32585
|
+
/**
|
|
32586
|
+
* Create a tag for the current commit.
|
|
32587
|
+
* @param params
|
|
32588
|
+
* @param params.sign
|
|
32589
|
+
* @param params.name
|
|
32590
|
+
* @param params.message
|
|
32591
|
+
*/
|
|
32592
|
+
async tag(params) {
|
|
32593
|
+
let { sign = false, name, message } = params;
|
|
32594
|
+
if (sign) {
|
|
32595
|
+
message = "";
|
|
32596
|
+
}
|
|
32597
|
+
await this.exec("tag", sign && "-s", message && "-a", ...message ? ["-m", message] : [], "--", name);
|
|
32598
|
+
}
|
|
32599
|
+
/**
|
|
32600
|
+
* Get current branch name.
|
|
32601
|
+
* @returns Current branch name.
|
|
32602
|
+
*/
|
|
32603
|
+
async getCurrentBranch() {
|
|
32604
|
+
const branch = await this.exec("rev-parse", "--abbrev-ref", "HEAD");
|
|
32605
|
+
return branch;
|
|
32606
|
+
}
|
|
32607
|
+
/**
|
|
32608
|
+
* Get default branch name.
|
|
32609
|
+
* @returns Default branch name.
|
|
32610
|
+
*/
|
|
32611
|
+
async getDefaultBranch() {
|
|
32612
|
+
const branch = (await this.exec("rev-parse", "--abbrev-ref", "origin/HEAD")).replace(/^origin\//, "");
|
|
32613
|
+
return branch;
|
|
32614
|
+
}
|
|
32615
|
+
/**
|
|
32616
|
+
* Push changes to remote.
|
|
32617
|
+
* @param branch
|
|
32618
|
+
* @param params
|
|
32619
|
+
* @param params.verify
|
|
32620
|
+
*/
|
|
32621
|
+
async push(branch, params = {}) {
|
|
32622
|
+
const { verify = true, tags: tags2 = false, followTags = false, force = false } = params;
|
|
32623
|
+
await this.exec("push", followTags && "--follow-tags", tags2 && "--tags", !verify && "--no-verify", force && "--force", "origin", "--", branch);
|
|
32624
|
+
}
|
|
32625
|
+
/**
|
|
32626
|
+
* Verify rev exists.
|
|
32627
|
+
* @param rev
|
|
32628
|
+
* @param safe - If `true`, will not throw error if rev not found.
|
|
32629
|
+
* @returns Target hash.
|
|
32630
|
+
*/
|
|
32631
|
+
async verify(rev, safe) {
|
|
32632
|
+
let git = this.exec("rev-parse", "--verify", rev);
|
|
32633
|
+
if (safe) {
|
|
32634
|
+
git = git.catch(() => "");
|
|
32635
|
+
}
|
|
32636
|
+
return await git;
|
|
32637
|
+
}
|
|
32638
|
+
/**
|
|
32639
|
+
* Get config value by key.
|
|
32640
|
+
* @param key - Config key.
|
|
32641
|
+
* @returns Config value.
|
|
32642
|
+
*/
|
|
32643
|
+
async getConfig(key) {
|
|
32644
|
+
return await this.exec("config", "--get", "--", key);
|
|
32645
|
+
}
|
|
32646
|
+
/**
|
|
32647
|
+
* Set config value by key.
|
|
32648
|
+
* @param key - Config key.
|
|
32649
|
+
* @param value - Config value.
|
|
32650
|
+
*/
|
|
32651
|
+
async setConfig(key, value) {
|
|
32652
|
+
await this.exec("config", "--", key, value);
|
|
32653
|
+
}
|
|
32654
|
+
/**
|
|
32655
|
+
* Fetch changes from remote.
|
|
32656
|
+
* @param params
|
|
32657
|
+
*/
|
|
32658
|
+
async fetch(params = {}) {
|
|
32659
|
+
const { prune = false, unshallow = false, tags: tags2 = false, all = false, remote, branch } = params;
|
|
32660
|
+
await this.exec("fetch", prune && "--prune", unshallow && "--unshallow", tags2 && "--tags", all && "--all", ...remote && branch ? [
|
|
32661
|
+
"--",
|
|
32662
|
+
remote,
|
|
32663
|
+
branch
|
|
32664
|
+
] : []);
|
|
32665
|
+
}
|
|
32666
|
+
/**
|
|
32667
|
+
* Create a new branch.
|
|
32668
|
+
* @param branch - Branch name.
|
|
32669
|
+
*/
|
|
32670
|
+
async createBranch(branch) {
|
|
32671
|
+
await this.exec("checkout", "-b", branch);
|
|
32672
|
+
}
|
|
32673
|
+
/**
|
|
32674
|
+
* Delete a branch.
|
|
32675
|
+
* @param branch - Branch name.
|
|
32676
|
+
*/
|
|
32677
|
+
async deleteBranch(branch) {
|
|
32678
|
+
await this.exec("branch", "-D", "--", branch);
|
|
32679
|
+
}
|
|
32680
|
+
/**
|
|
32681
|
+
* Checkout a branch.
|
|
32682
|
+
* @param branch - Branch name.
|
|
32683
|
+
*/
|
|
32684
|
+
async checkout(branch) {
|
|
32685
|
+
await this.exec("checkout", branch);
|
|
32686
|
+
}
|
|
32687
|
+
};
|
|
32688
|
+
}
|
|
32689
|
+
});
|
|
32690
|
+
|
|
32691
|
+
// ../../node_modules/.pnpm/@conventional-changelog+git-client@2.6.0_conventional-commits-filter@5.0.0_conventional-commits-parser@6.2.1/node_modules/@conventional-changelog/git-client/dist/ConventionalGitClient.js
|
|
32692
|
+
function packagePrefix2(packageName) {
|
|
32693
|
+
if (!packageName) {
|
|
32694
|
+
return /^.+@/;
|
|
32695
|
+
}
|
|
32696
|
+
return `${packageName}@`;
|
|
32697
|
+
}
|
|
32698
|
+
var import_semver3, ConventionalGitClient2;
|
|
32699
|
+
var init_ConventionalGitClient2 = __esm({
|
|
32700
|
+
"../../node_modules/.pnpm/@conventional-changelog+git-client@2.6.0_conventional-commits-filter@5.0.0_conventional-commits-parser@6.2.1/node_modules/@conventional-changelog/git-client/dist/ConventionalGitClient.js"() {
|
|
32701
|
+
"use strict";
|
|
32702
|
+
import_semver3 = __toESM(require_semver2(), 1);
|
|
32703
|
+
init_dist10();
|
|
32704
|
+
init_GitClient2();
|
|
32705
|
+
ConventionalGitClient2 = class extends GitClient2 {
|
|
32706
|
+
deps = null;
|
|
32707
|
+
loadDeps() {
|
|
32708
|
+
if (this.deps) {
|
|
32709
|
+
return this.deps;
|
|
32710
|
+
}
|
|
32711
|
+
this.deps = Promise.all([
|
|
32712
|
+
Promise.resolve().then(() => (init_dist5(), dist_exports3)).then(({ parseCommits: parseCommits2 }) => parseCommits2),
|
|
32713
|
+
Promise.resolve().then(() => (init_dist6(), dist_exports4)).then(({ filterRevertedCommits: filterRevertedCommits2 }) => filterRevertedCommits2)
|
|
32714
|
+
]);
|
|
32715
|
+
return this.deps;
|
|
32716
|
+
}
|
|
32717
|
+
/**
|
|
32718
|
+
* Get parsed commits stream.
|
|
32719
|
+
* @param params
|
|
32720
|
+
* @param params.path - Read commits from specific path.
|
|
32721
|
+
* @param params.from - Start commits range.
|
|
32722
|
+
* @param params.to - End commits range.
|
|
32723
|
+
* @param params.format - Commits format.
|
|
32724
|
+
* @param parserOptions - Commit parser options.
|
|
32725
|
+
* @yields Raw commits data.
|
|
32726
|
+
*/
|
|
32727
|
+
async *getCommits(params = {}, parserOptions = {}) {
|
|
32728
|
+
const { filterReverts, ...gitLogParams } = params;
|
|
32729
|
+
const [parseCommits2, filterRevertedCommits2] = await this.loadDeps();
|
|
32730
|
+
if (filterReverts) {
|
|
32731
|
+
yield* filterRevertedCommits2(this.getCommits(gitLogParams, parserOptions));
|
|
32732
|
+
return;
|
|
32733
|
+
}
|
|
32734
|
+
const parse4 = parseCommits2(parserOptions);
|
|
32735
|
+
const commitsStream = this.getRawCommits(gitLogParams);
|
|
32736
|
+
yield* parse4(commitsStream);
|
|
32737
|
+
}
|
|
32738
|
+
/**
|
|
32739
|
+
* Get semver tags stream.
|
|
32740
|
+
* @param params
|
|
32741
|
+
* @param params.prefix - Get semver tags with specific prefix.
|
|
32742
|
+
* @param params.skipUnstable - Skip semver tags with unstable versions.
|
|
32743
|
+
* @param params.clean - Clean version from prefix and trash.
|
|
32744
|
+
* @yields Semver tags.
|
|
32745
|
+
*/
|
|
32746
|
+
async *getSemverTags(params = {}) {
|
|
32747
|
+
const { prefix, skipUnstable, clean } = params;
|
|
32748
|
+
const tagsStream = this.getTags();
|
|
32749
|
+
const unstableTagRegex = /\d+\.\d+\.\d+-.+/;
|
|
32750
|
+
const cleanTag = clean ? (tag2, unprefixed2) => import_semver3.default.clean(unprefixed2 || tag2) : (tag2) => tag2;
|
|
32751
|
+
let unprefixed;
|
|
32752
|
+
let tag;
|
|
32753
|
+
for await (tag of tagsStream) {
|
|
32754
|
+
if (skipUnstable && unstableTagRegex.test(tag)) {
|
|
32755
|
+
continue;
|
|
32756
|
+
}
|
|
32757
|
+
if (prefix) {
|
|
32758
|
+
const isPrefixed = typeof prefix === "string" ? tag.startsWith(prefix) : prefix.test(tag);
|
|
32759
|
+
if (isPrefixed) {
|
|
32760
|
+
unprefixed = tag.replace(prefix, "");
|
|
32761
|
+
if (import_semver3.default.valid(unprefixed)) {
|
|
32762
|
+
tag = cleanTag(tag, unprefixed);
|
|
32763
|
+
if (tag) {
|
|
32764
|
+
yield tag;
|
|
32765
|
+
}
|
|
32766
|
+
}
|
|
32767
|
+
}
|
|
32768
|
+
} else if (import_semver3.default.valid(tag)) {
|
|
32769
|
+
tag = cleanTag(tag);
|
|
32770
|
+
if (tag) {
|
|
32771
|
+
yield tag;
|
|
32772
|
+
}
|
|
32773
|
+
}
|
|
32774
|
+
}
|
|
32775
|
+
}
|
|
32776
|
+
/**
|
|
32777
|
+
* Get last semver tag.
|
|
32778
|
+
* @param params - getSemverTags params.
|
|
32779
|
+
* @returns Last semver tag, `null` if not found.
|
|
32780
|
+
*/
|
|
32781
|
+
async getLastSemverTag(params = {}) {
|
|
32782
|
+
return firstFromStream2(this.getSemverTags(params));
|
|
32783
|
+
}
|
|
32784
|
+
/**
|
|
32785
|
+
* Get current sematic version from git tags.
|
|
32786
|
+
* @param params - Additional git params.
|
|
32787
|
+
* @returns Current sematic version, `null` if not found.
|
|
32788
|
+
*/
|
|
32789
|
+
async getVersionFromTags(params = {}) {
|
|
32790
|
+
const semverTagsStream = this.getSemverTags({
|
|
32791
|
+
clean: true,
|
|
32792
|
+
...params
|
|
32793
|
+
});
|
|
32794
|
+
const semverTags = [];
|
|
32795
|
+
for await (const tag of semverTagsStream) {
|
|
32796
|
+
semverTags.push(tag);
|
|
32797
|
+
}
|
|
32798
|
+
if (!semverTags.length) {
|
|
32799
|
+
return null;
|
|
32800
|
+
}
|
|
32801
|
+
return semverTags.sort(import_semver3.default.rcompare)[0] || null;
|
|
32802
|
+
}
|
|
32803
|
+
};
|
|
32804
|
+
}
|
|
32805
|
+
});
|
|
32806
|
+
|
|
32807
|
+
// ../../node_modules/.pnpm/@conventional-changelog+git-client@2.6.0_conventional-commits-filter@5.0.0_conventional-commits-parser@6.2.1/node_modules/@conventional-changelog/git-client/dist/index.js
|
|
32808
|
+
var init_dist12 = __esm({
|
|
32809
|
+
"../../node_modules/.pnpm/@conventional-changelog+git-client@2.6.0_conventional-commits-filter@5.0.0_conventional-commits-parser@6.2.1/node_modules/@conventional-changelog/git-client/dist/index.js"() {
|
|
32810
|
+
"use strict";
|
|
32811
|
+
init_types4();
|
|
32812
|
+
init_utils8();
|
|
32813
|
+
init_GitClient2();
|
|
32814
|
+
init_ConventionalGitClient2();
|
|
32815
|
+
}
|
|
32816
|
+
});
|
|
32817
|
+
|
|
32818
|
+
// ../../node_modules/.pnpm/git-semver-tags@8.0.1_conventional-commits-filter@5.0.0_conventional-commits-parser@6.2.1/node_modules/git-semver-tags/src/index.js
|
|
32819
|
+
function getFinalOptions(options = {}) {
|
|
32820
|
+
if (options.package && !options.lernaTags) {
|
|
32821
|
+
throw new Error("opts.package should only be used when running in lerna mode");
|
|
32822
|
+
}
|
|
32823
|
+
const finalOptions = {
|
|
32824
|
+
cwd: options.cwd || process.cwd(),
|
|
32825
|
+
prefix: options.lernaTags ? packagePrefix2(options.package) : options.tagPrefix,
|
|
32826
|
+
skipUnstable: options.skipUnstable
|
|
32827
|
+
};
|
|
32828
|
+
return finalOptions;
|
|
32829
|
+
}
|
|
32830
|
+
async function getSemverTags(options = {}) {
|
|
32831
|
+
const {
|
|
32832
|
+
cwd: cwd3,
|
|
32833
|
+
...finalOptions
|
|
32834
|
+
} = getFinalOptions(options);
|
|
32835
|
+
const client = new ConventionalGitClient2(cwd3);
|
|
32836
|
+
const tags2 = [];
|
|
32837
|
+
for await (const tag of client.getSemverTags(finalOptions)) {
|
|
32838
|
+
tags2.push(tag);
|
|
32839
|
+
}
|
|
32840
|
+
return tags2;
|
|
32841
|
+
}
|
|
32842
|
+
var init_src = __esm({
|
|
32843
|
+
"../../node_modules/.pnpm/git-semver-tags@8.0.1_conventional-commits-filter@5.0.0_conventional-commits-parser@6.2.1/node_modules/git-semver-tags/src/index.js"() {
|
|
32844
|
+
"use strict";
|
|
32845
|
+
init_dist12();
|
|
32846
|
+
}
|
|
32847
|
+
});
|
|
32848
|
+
|
|
32849
|
+
// ../../node_modules/.pnpm/figlet@1.11.0/node_modules/figlet/dist/figlet-C8Ns3Vyn.js
|
|
32850
|
+
function escapeRegExpChar(char) {
|
|
32851
|
+
const specialChars = /[.*+?^${}()|[\]\\]/;
|
|
32852
|
+
return specialChars.test(char) ? "\\" + char : char;
|
|
32853
|
+
}
|
|
32854
|
+
var LAYOUT, FigletFont, fontList, renamedFonts, getFontName, figlet;
|
|
32855
|
+
var init_figlet_C8Ns3Vyn = __esm({
|
|
32856
|
+
"../../node_modules/.pnpm/figlet@1.11.0/node_modules/figlet/dist/figlet-C8Ns3Vyn.js"() {
|
|
32857
|
+
"use strict";
|
|
32858
|
+
LAYOUT = {
|
|
32859
|
+
FULL_WIDTH: 0,
|
|
32860
|
+
FITTING: 1,
|
|
32861
|
+
SMUSHING: 2,
|
|
32862
|
+
CONTROLLED_SMUSHING: 3
|
|
32863
|
+
};
|
|
32864
|
+
FigletFont = class {
|
|
32865
|
+
constructor() {
|
|
32866
|
+
this.comment = "";
|
|
32867
|
+
this.numChars = 0;
|
|
32868
|
+
this.options = {};
|
|
32869
|
+
}
|
|
32870
|
+
};
|
|
32871
|
+
fontList = [
|
|
32872
|
+
"1Row",
|
|
32873
|
+
"3-D",
|
|
32874
|
+
"3D Diagonal",
|
|
32875
|
+
"3D-ASCII",
|
|
32876
|
+
"3x5",
|
|
32877
|
+
"4Max",
|
|
32878
|
+
"5 Line Oblique",
|
|
32879
|
+
"AMC 3 Line",
|
|
32880
|
+
"AMC 3 Liv1",
|
|
32881
|
+
"AMC AAA01",
|
|
32882
|
+
"AMC Neko",
|
|
32883
|
+
"AMC Razor",
|
|
32884
|
+
"AMC Razor2",
|
|
32885
|
+
"AMC Slash",
|
|
32886
|
+
"AMC Slider",
|
|
32887
|
+
"AMC Thin",
|
|
32888
|
+
"AMC Tubes",
|
|
32889
|
+
"AMC Untitled",
|
|
32890
|
+
"ANSI Compact",
|
|
32891
|
+
"ANSI Regular",
|
|
32892
|
+
"ANSI Shadow",
|
|
32893
|
+
"ASCII 12",
|
|
32894
|
+
"ASCII 9",
|
|
32895
|
+
"ASCII New Roman",
|
|
32896
|
+
"Acrobatic",
|
|
32897
|
+
"Alligator",
|
|
32898
|
+
"Alligator2",
|
|
32899
|
+
"Alpha",
|
|
32900
|
+
"Alphabet",
|
|
32901
|
+
"Arrows",
|
|
32902
|
+
"Avatar",
|
|
32903
|
+
"B1FF",
|
|
32904
|
+
"Babyface Lame",
|
|
32905
|
+
"Babyface Leet",
|
|
32906
|
+
"Banner",
|
|
32907
|
+
"Banner3-D",
|
|
32908
|
+
"Banner3",
|
|
32909
|
+
"Banner4",
|
|
32910
|
+
"Barbwire",
|
|
32911
|
+
"Basic",
|
|
32912
|
+
"Bear",
|
|
32913
|
+
"Bell",
|
|
32914
|
+
"Benjamin",
|
|
32915
|
+
"Big ASCII 12",
|
|
32916
|
+
"Big ASCII 9",
|
|
32917
|
+
"Big Chief",
|
|
32918
|
+
"Big Money-ne",
|
|
32919
|
+
"Big Money-nw",
|
|
32920
|
+
"Big Money-se",
|
|
32921
|
+
"Big Money-sw",
|
|
32922
|
+
"Big Mono 12",
|
|
32923
|
+
"Big Mono 9",
|
|
32924
|
+
"Big",
|
|
32925
|
+
"Bigfig",
|
|
32926
|
+
"Binary",
|
|
32927
|
+
"Block",
|
|
32928
|
+
"Blocks",
|
|
32929
|
+
"Bloody",
|
|
32930
|
+
"BlurVision ASCII",
|
|
32931
|
+
"Bolger",
|
|
32932
|
+
"Braced",
|
|
32933
|
+
"Bright",
|
|
32934
|
+
"Broadway KB",
|
|
32935
|
+
"Broadway",
|
|
32936
|
+
"Bubble",
|
|
32937
|
+
"Bulbhead",
|
|
32938
|
+
"Caligraphy",
|
|
32939
|
+
"Caligraphy2",
|
|
32940
|
+
"Calvin S",
|
|
32941
|
+
"Cards",
|
|
32942
|
+
"Catwalk",
|
|
32943
|
+
"Chiseled",
|
|
32944
|
+
"Chunky",
|
|
32945
|
+
"Circle",
|
|
32946
|
+
"Classy",
|
|
32947
|
+
"Coder Mini",
|
|
32948
|
+
"Coinstak",
|
|
32949
|
+
"Cola",
|
|
32950
|
+
"Colossal",
|
|
32951
|
+
"Computer",
|
|
32952
|
+
"Contessa",
|
|
32953
|
+
"Contrast",
|
|
32954
|
+
"Cosmike",
|
|
32955
|
+
"Cosmike2",
|
|
32956
|
+
"Crawford",
|
|
32957
|
+
"Crawford2",
|
|
32958
|
+
"Crazy",
|
|
32959
|
+
"Cricket",
|
|
32960
|
+
"Cursive",
|
|
32961
|
+
"Cyberlarge",
|
|
32962
|
+
"Cybermedium",
|
|
32963
|
+
"Cybersmall",
|
|
32964
|
+
"Cygnet",
|
|
32965
|
+
"DANC4",
|
|
32966
|
+
"DOS Rebel",
|
|
32967
|
+
"DWhistled",
|
|
32968
|
+
"Dancing Font",
|
|
32969
|
+
"Decimal",
|
|
32970
|
+
"Def Leppard",
|
|
32971
|
+
"Delta Corps Priest 1",
|
|
32972
|
+
"DiamFont",
|
|
32973
|
+
"Diamond",
|
|
32974
|
+
"Diet Cola",
|
|
32975
|
+
"Digital",
|
|
32207
32976
|
"Doh",
|
|
32208
32977
|
"Doom",
|
|
32209
32978
|
"Dot Matrix",
|
|
@@ -33419,7 +34188,7 @@ var init_figlet_C8Ns3Vyn = __esm({
|
|
|
33419
34188
|
|
|
33420
34189
|
// ../../node_modules/.pnpm/figlet@1.11.0/node_modules/figlet/dist/node-figlet.mjs
|
|
33421
34190
|
import * as fs12 from "fs";
|
|
33422
|
-
import * as
|
|
34191
|
+
import * as path11 from "path";
|
|
33423
34192
|
import { fileURLToPath as fileURLToPath2 } from "url";
|
|
33424
34193
|
var __filename, __dirname2, fontPath, nodeFiglet;
|
|
33425
34194
|
var init_node_figlet = __esm({
|
|
@@ -33427,8 +34196,8 @@ var init_node_figlet = __esm({
|
|
|
33427
34196
|
"use strict";
|
|
33428
34197
|
init_figlet_C8Ns3Vyn();
|
|
33429
34198
|
__filename = fileURLToPath2(import.meta.url);
|
|
33430
|
-
__dirname2 =
|
|
33431
|
-
fontPath =
|
|
34199
|
+
__dirname2 = path11.dirname(__filename);
|
|
34200
|
+
fontPath = path11.join(__dirname2, "/../fonts/");
|
|
33432
34201
|
nodeFiglet = figlet;
|
|
33433
34202
|
nodeFiglet.defaults({ fontPath });
|
|
33434
34203
|
nodeFiglet.loadFont = function(name, callback2) {
|
|
@@ -33442,7 +34211,7 @@ var init_node_figlet = __esm({
|
|
|
33442
34211
|
return;
|
|
33443
34212
|
}
|
|
33444
34213
|
fs12.readFile(
|
|
33445
|
-
|
|
34214
|
+
path11.join(nodeFiglet.defaults().fontPath, actualFontName + ".flf"),
|
|
33446
34215
|
{ encoding: "utf-8" },
|
|
33447
34216
|
(err, fontData) => {
|
|
33448
34217
|
if (err) {
|
|
@@ -33479,7 +34248,7 @@ var init_node_figlet = __esm({
|
|
|
33479
34248
|
return nodeFiglet.figFonts[actualFontName].options;
|
|
33480
34249
|
}
|
|
33481
34250
|
const fontData = fs12.readFileSync(
|
|
33482
|
-
|
|
34251
|
+
path11.join(nodeFiglet.defaults().fontPath, actualFontName + ".flf"),
|
|
33483
34252
|
{
|
|
33484
34253
|
encoding: "utf-8"
|
|
33485
34254
|
}
|
|
@@ -34558,7 +35327,7 @@ var init_escape = __esm({
|
|
|
34558
35327
|
});
|
|
34559
35328
|
|
|
34560
35329
|
// ../../node_modules/.pnpm/minimatch@10.2.5/node_modules/minimatch/dist/esm/index.js
|
|
34561
|
-
var minimatch, starDotExtRE, starDotExtTest, starDotExtTestDot, starDotExtTestNocase, starDotExtTestNocaseDot, starDotStarRE, starDotStarTest, starDotStarTestDot, dotStarRE, dotStarTest, starRE, starTest, starTestDot, qmarksRE, qmarksTestNocase, qmarksTestNocaseDot, qmarksTestDot, qmarksTest, qmarksTestNoExt, qmarksTestNoExtDot, defaultPlatform,
|
|
35330
|
+
var minimatch, starDotExtRE, starDotExtTest, starDotExtTestDot, starDotExtTestNocase, starDotExtTestNocaseDot, starDotStarRE, starDotStarTest, starDotStarTestDot, dotStarRE, dotStarTest, starRE, starTest, starTestDot, qmarksRE, qmarksTestNocase, qmarksTestNocaseDot, qmarksTestDot, qmarksTest, qmarksTestNoExt, qmarksTestNoExtDot, defaultPlatform, path12, sep2, GLOBSTAR, qmark2, star2, twoStarDot, twoStarNoDot, filter2, ext, defaults2, braceExpand, makeRe, match, globMagic, regExpEscape2, Minimatch;
|
|
34562
35331
|
var init_esm3 = __esm({
|
|
34563
35332
|
"../../node_modules/.pnpm/minimatch@10.2.5/node_modules/minimatch/dist/esm/index.js"() {
|
|
34564
35333
|
"use strict";
|
|
@@ -34628,11 +35397,11 @@ var init_esm3 = __esm({
|
|
|
34628
35397
|
return (f) => f.length === len && f !== "." && f !== "..";
|
|
34629
35398
|
};
|
|
34630
35399
|
defaultPlatform = typeof process === "object" && process ? typeof process.env === "object" && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix";
|
|
34631
|
-
|
|
35400
|
+
path12 = {
|
|
34632
35401
|
win32: { sep: "\\" },
|
|
34633
35402
|
posix: { sep: "/" }
|
|
34634
35403
|
};
|
|
34635
|
-
sep2 = defaultPlatform === "win32" ?
|
|
35404
|
+
sep2 = defaultPlatform === "win32" ? path12.win32.sep : path12.posix.sep;
|
|
34636
35405
|
minimatch.sep = sep2;
|
|
34637
35406
|
GLOBSTAR = /* @__PURE__ */ Symbol("globstar **");
|
|
34638
35407
|
minimatch.GLOBSTAR = GLOBSTAR;
|
|
@@ -35384,25 +36153,25 @@ var init_esm3 = __esm({
|
|
|
35384
36153
|
import { createRequire as createRequire2 } from "module";
|
|
35385
36154
|
import { basename, dirname as dirname11, normalize as normalize2, relative, resolve as resolve8, sep as sep3 } from "path";
|
|
35386
36155
|
import * as nativeFs from "fs";
|
|
35387
|
-
function cleanPath(
|
|
35388
|
-
let normalized = normalize2(
|
|
36156
|
+
function cleanPath(path19) {
|
|
36157
|
+
let normalized = normalize2(path19);
|
|
35389
36158
|
if (normalized.length > 1 && normalized[normalized.length - 1] === sep3) normalized = normalized.substring(0, normalized.length - 1);
|
|
35390
36159
|
return normalized;
|
|
35391
36160
|
}
|
|
35392
|
-
function convertSlashes(
|
|
35393
|
-
return
|
|
36161
|
+
function convertSlashes(path19, separator) {
|
|
36162
|
+
return path19.replace(SLASHES_REGEX, separator);
|
|
35394
36163
|
}
|
|
35395
|
-
function isRootDirectory(
|
|
35396
|
-
return
|
|
36164
|
+
function isRootDirectory(path19) {
|
|
36165
|
+
return path19 === "/" || WINDOWS_ROOT_DIR_REGEX.test(path19);
|
|
35397
36166
|
}
|
|
35398
|
-
function normalizePath(
|
|
36167
|
+
function normalizePath(path19, options) {
|
|
35399
36168
|
const { resolvePaths: resolvePaths2, normalizePath: normalizePath$1, pathSeparator } = options;
|
|
35400
|
-
const pathNeedsCleaning = process.platform === "win32" &&
|
|
35401
|
-
if (resolvePaths2)
|
|
35402
|
-
if (normalizePath$1 || pathNeedsCleaning)
|
|
35403
|
-
if (
|
|
35404
|
-
const needsSeperator =
|
|
35405
|
-
return convertSlashes(needsSeperator ?
|
|
36169
|
+
const pathNeedsCleaning = process.platform === "win32" && path19.includes("/") || path19.startsWith(".");
|
|
36170
|
+
if (resolvePaths2) path19 = resolve8(path19);
|
|
36171
|
+
if (normalizePath$1 || pathNeedsCleaning) path19 = cleanPath(path19);
|
|
36172
|
+
if (path19 === ".") return "";
|
|
36173
|
+
const needsSeperator = path19[path19.length - 1] !== pathSeparator;
|
|
36174
|
+
return convertSlashes(needsSeperator ? path19 + pathSeparator : path19, pathSeparator);
|
|
35406
36175
|
}
|
|
35407
36176
|
function joinPathWithBasePath(filename, directoryPath) {
|
|
35408
36177
|
return directoryPath + filename;
|
|
@@ -35458,9 +36227,9 @@ function build$2(options, isSynchronous) {
|
|
|
35458
36227
|
if (!options.resolveSymlinks || options.excludeSymlinks) return null;
|
|
35459
36228
|
return isSynchronous ? resolveSymlinks : resolveSymlinksAsync;
|
|
35460
36229
|
}
|
|
35461
|
-
function isRecursive(
|
|
36230
|
+
function isRecursive(path19, resolved, state) {
|
|
35462
36231
|
if (state.options.useRealPaths) return isRecursiveUsingRealPaths(resolved, state);
|
|
35463
|
-
let parent = dirname11(
|
|
36232
|
+
let parent = dirname11(path19);
|
|
35464
36233
|
let depth = 1;
|
|
35465
36234
|
while (parent !== state.root && depth < 2) {
|
|
35466
36235
|
const resolvedPath = state.symlinks.get(parent);
|
|
@@ -35468,7 +36237,7 @@ function isRecursive(path18, resolved, state) {
|
|
|
35468
36237
|
if (isSameRoot) depth++;
|
|
35469
36238
|
else parent = dirname11(parent);
|
|
35470
36239
|
}
|
|
35471
|
-
state.symlinks.set(
|
|
36240
|
+
state.symlinks.set(path19, resolved);
|
|
35472
36241
|
return depth > 1;
|
|
35473
36242
|
}
|
|
35474
36243
|
function isRecursiveUsingRealPaths(resolved, state) {
|
|
@@ -35505,7 +36274,7 @@ function sync(root, options) {
|
|
|
35505
36274
|
return walker.start();
|
|
35506
36275
|
}
|
|
35507
36276
|
var __require2, SLASHES_REGEX, WINDOWS_ROOT_DIR_REGEX, pushDirectory, pushDirectoryFilter, empty$2, pushFileFilterAndCount, pushFileFilter, pushFileCount, pushFile, empty$1, getArray, getArrayGroup, groupFiles, empty, resolveSymlinksAsync, resolveSymlinks, onlyCountsSync, groupsSync, defaultSync, limitFilesSync, onlyCountsAsync, defaultAsync, limitFilesAsync, groupsAsync, readdirOpts, walkAsync, walkSync, Queue, Counter, Aborter, Walker, APIBuilder, pm, Builder;
|
|
35508
|
-
var
|
|
36277
|
+
var init_dist13 = __esm({
|
|
35509
36278
|
"../../node_modules/.pnpm/fdir@6.5.0_picomatch@4.0.4/node_modules/fdir/dist/index.mjs"() {
|
|
35510
36279
|
"use strict";
|
|
35511
36280
|
__require2 = /* @__PURE__ */ createRequire2(import.meta.url);
|
|
@@ -35515,8 +36284,8 @@ var init_dist8 = __esm({
|
|
|
35515
36284
|
paths.push(directoryPath || ".");
|
|
35516
36285
|
};
|
|
35517
36286
|
pushDirectoryFilter = (directoryPath, paths, filters2) => {
|
|
35518
|
-
const
|
|
35519
|
-
if (filters2.every((filter3) => filter3(
|
|
36287
|
+
const path19 = directoryPath || ".";
|
|
36288
|
+
if (filters2.every((filter3) => filter3(path19, true))) paths.push(path19);
|
|
35520
36289
|
};
|
|
35521
36290
|
empty$2 = () => {
|
|
35522
36291
|
};
|
|
@@ -35549,26 +36318,26 @@ var init_dist8 = __esm({
|
|
|
35549
36318
|
};
|
|
35550
36319
|
empty = () => {
|
|
35551
36320
|
};
|
|
35552
|
-
resolveSymlinksAsync = function(
|
|
36321
|
+
resolveSymlinksAsync = function(path19, state, callback$1) {
|
|
35553
36322
|
const { queue, fs: fs19, options: { suppressErrors } } = state;
|
|
35554
36323
|
queue.enqueue();
|
|
35555
|
-
fs19.realpath(
|
|
36324
|
+
fs19.realpath(path19, (error3, resolvedPath) => {
|
|
35556
36325
|
if (error3) return queue.dequeue(suppressErrors ? null : error3, state);
|
|
35557
36326
|
fs19.stat(resolvedPath, (error$1, stat2) => {
|
|
35558
36327
|
if (error$1) return queue.dequeue(suppressErrors ? null : error$1, state);
|
|
35559
|
-
if (stat2.isDirectory() && isRecursive(
|
|
36328
|
+
if (stat2.isDirectory() && isRecursive(path19, resolvedPath, state)) return queue.dequeue(null, state);
|
|
35560
36329
|
callback$1(stat2, resolvedPath);
|
|
35561
36330
|
queue.dequeue(null, state);
|
|
35562
36331
|
});
|
|
35563
36332
|
});
|
|
35564
36333
|
};
|
|
35565
|
-
resolveSymlinks = function(
|
|
36334
|
+
resolveSymlinks = function(path19, state, callback$1) {
|
|
35566
36335
|
const { queue, fs: fs19, options: { suppressErrors } } = state;
|
|
35567
36336
|
queue.enqueue();
|
|
35568
36337
|
try {
|
|
35569
|
-
const resolvedPath = fs19.realpathSync(
|
|
36338
|
+
const resolvedPath = fs19.realpathSync(path19);
|
|
35570
36339
|
const stat2 = fs19.statSync(resolvedPath);
|
|
35571
|
-
if (stat2.isDirectory() && isRecursive(
|
|
36340
|
+
if (stat2.isDirectory() && isRecursive(path19, resolvedPath, state)) return;
|
|
35572
36341
|
callback$1(stat2, resolvedPath);
|
|
35573
36342
|
} catch (e) {
|
|
35574
36343
|
if (!suppressErrors) throw e;
|
|
@@ -35726,19 +36495,19 @@ var init_dist8 = __esm({
|
|
|
35726
36495
|
const filename = this.joinPath(entry.name, directoryPath);
|
|
35727
36496
|
this.pushFile(filename, files, this.state.counts, filters2);
|
|
35728
36497
|
} else if (entry.isDirectory()) {
|
|
35729
|
-
let
|
|
35730
|
-
if (exclude && exclude(entry.name,
|
|
35731
|
-
this.pushDirectory(
|
|
35732
|
-
this.walkDirectory(this.state,
|
|
36498
|
+
let path19 = joinDirectoryPath(entry.name, directoryPath, this.state.options.pathSeparator);
|
|
36499
|
+
if (exclude && exclude(entry.name, path19)) continue;
|
|
36500
|
+
this.pushDirectory(path19, paths, filters2);
|
|
36501
|
+
this.walkDirectory(this.state, path19, path19, depth - 1, this.walk);
|
|
35733
36502
|
} else if (this.resolveSymlink && entry.isSymbolicLink()) {
|
|
35734
|
-
let
|
|
35735
|
-
this.resolveSymlink(
|
|
36503
|
+
let path19 = joinPathWithBasePath(entry.name, directoryPath);
|
|
36504
|
+
this.resolveSymlink(path19, this.state, (stat2, resolvedPath) => {
|
|
35736
36505
|
if (stat2.isDirectory()) {
|
|
35737
36506
|
resolvedPath = normalizePath(resolvedPath, this.state.options);
|
|
35738
|
-
if (exclude && exclude(entry.name, useRealPaths ? resolvedPath :
|
|
35739
|
-
this.walkDirectory(this.state, resolvedPath, useRealPaths ? resolvedPath :
|
|
36507
|
+
if (exclude && exclude(entry.name, useRealPaths ? resolvedPath : path19 + pathSeparator)) return;
|
|
36508
|
+
this.walkDirectory(this.state, resolvedPath, useRealPaths ? resolvedPath : path19 + pathSeparator, depth - 1, this.walk);
|
|
35740
36509
|
} else {
|
|
35741
|
-
resolvedPath = useRealPaths ? resolvedPath :
|
|
36510
|
+
resolvedPath = useRealPaths ? resolvedPath : path19;
|
|
35742
36511
|
const filename = basename(resolvedPath);
|
|
35743
36512
|
const directoryPath$1 = normalizePath(dirname11(resolvedPath), this.state.options);
|
|
35744
36513
|
resolvedPath = this.joinPath(filename, directoryPath$1);
|
|
@@ -35883,12 +36652,12 @@ var init_dist8 = __esm({
|
|
|
35883
36652
|
globWithOptions(patterns, ...options) {
|
|
35884
36653
|
const globFn = this.globFunction || pm;
|
|
35885
36654
|
if (!globFn) throw new Error("Please specify a glob function to use glob matching.");
|
|
35886
|
-
var
|
|
35887
|
-
if (!
|
|
35888
|
-
|
|
35889
|
-
this.globCache[patterns.join("\0")] =
|
|
36655
|
+
var isMatch2 = this.globCache[patterns.join("\0")];
|
|
36656
|
+
if (!isMatch2) {
|
|
36657
|
+
isMatch2 = globFn(patterns, ...options);
|
|
36658
|
+
this.globCache[patterns.join("\0")] = isMatch2;
|
|
35890
36659
|
}
|
|
35891
|
-
this.options.filters.push((
|
|
36660
|
+
this.options.filters.push((path19) => isMatch2(path19));
|
|
35892
36661
|
return this;
|
|
35893
36662
|
}
|
|
35894
36663
|
};
|
|
@@ -36150,8 +36919,8 @@ var require_utils2 = __commonJS({
|
|
|
36150
36919
|
}
|
|
36151
36920
|
return output3;
|
|
36152
36921
|
};
|
|
36153
|
-
exports2.basename = (
|
|
36154
|
-
const segs =
|
|
36922
|
+
exports2.basename = (path19, { windows } = {}) => {
|
|
36923
|
+
const segs = path19.split(windows ? /[\\/]/ : "/");
|
|
36155
36924
|
const last2 = segs[segs.length - 1];
|
|
36156
36925
|
if (last2 === "") {
|
|
36157
36926
|
return segs[segs.length - 2];
|
|
@@ -37501,8 +38270,8 @@ var require_picomatch = __commonJS({
|
|
|
37501
38270
|
if (Array.isArray(glob2)) {
|
|
37502
38271
|
const fns = glob2.map((input) => picomatch2(input, options, returnState));
|
|
37503
38272
|
const arrayMatcher = (str3) => {
|
|
37504
|
-
for (const
|
|
37505
|
-
const state2 =
|
|
38273
|
+
for (const isMatch2 of fns) {
|
|
38274
|
+
const state2 = isMatch2(str3);
|
|
37506
38275
|
if (state2) return state2;
|
|
37507
38276
|
}
|
|
37508
38277
|
return false;
|
|
@@ -37524,12 +38293,12 @@ var require_picomatch = __commonJS({
|
|
|
37524
38293
|
isIgnored = picomatch2(opts.ignore, ignoreOpts, returnState);
|
|
37525
38294
|
}
|
|
37526
38295
|
const matcher = (input, returnObject = false) => {
|
|
37527
|
-
const { isMatch:
|
|
37528
|
-
const result = { glob: glob2, state, regex, posix: posix2, input, output: output3, match: match2, isMatch:
|
|
38296
|
+
const { isMatch: isMatch2, match: match2, output: output3 } = picomatch2.test(input, regex, options, { glob: glob2, posix: posix2 });
|
|
38297
|
+
const result = { glob: glob2, state, regex, posix: posix2, input, output: output3, match: match2, isMatch: isMatch2 };
|
|
37529
38298
|
if (typeof opts.onResult === "function") {
|
|
37530
38299
|
opts.onResult(result);
|
|
37531
38300
|
}
|
|
37532
|
-
if (
|
|
38301
|
+
if (isMatch2 === false) {
|
|
37533
38302
|
result.isMatch = false;
|
|
37534
38303
|
return returnObject ? result : false;
|
|
37535
38304
|
}
|
|
@@ -37647,7 +38416,7 @@ var require_picomatch2 = __commonJS({
|
|
|
37647
38416
|
|
|
37648
38417
|
// ../../node_modules/.pnpm/tinyglobby@0.2.15/node_modules/tinyglobby/dist/index.mjs
|
|
37649
38418
|
import nativeFs2 from "fs";
|
|
37650
|
-
import
|
|
38419
|
+
import path13, { posix } from "path";
|
|
37651
38420
|
import { fileURLToPath as fileURLToPath3 } from "url";
|
|
37652
38421
|
function getPartialMatcher(patterns, options = {}) {
|
|
37653
38422
|
const patternsCount = patterns.length;
|
|
@@ -37730,7 +38499,7 @@ function normalizePattern(pattern, expandDirectories, cwd3, props, isIgnore) {
|
|
|
37730
38499
|
if (pattern.endsWith("/")) result = pattern.slice(0, -1);
|
|
37731
38500
|
if (!result.endsWith("*") && expandDirectories) result += "/**";
|
|
37732
38501
|
const escapedCwd = escapePath(cwd3);
|
|
37733
|
-
if (
|
|
38502
|
+
if (path13.isAbsolute(result.replace(ESCAPING_BACKSLASHES, ""))) result = posix.relative(escapedCwd, result);
|
|
37734
38503
|
else result = posix.normalize(result);
|
|
37735
38504
|
const parentDirectoryMatch = PARENT_DIRECTORY.exec(result);
|
|
37736
38505
|
const parts = splitPattern(result);
|
|
@@ -37797,7 +38566,7 @@ function formatPaths(paths, relative2) {
|
|
|
37797
38566
|
function normalizeCwd(cwd3) {
|
|
37798
38567
|
if (!cwd3) return process.cwd().replace(BACKSLASHES, "/");
|
|
37799
38568
|
if (cwd3 instanceof URL) return fileURLToPath3(cwd3).replace(BACKSLASHES, "/");
|
|
37800
|
-
return
|
|
38569
|
+
return path13.resolve(cwd3).replace(BACKSLASHES, "/");
|
|
37801
38570
|
}
|
|
37802
38571
|
function getCrawler(patterns, inputOptions = {}) {
|
|
37803
38572
|
const options = process.env.TINYGLOBBY_DEBUG ? {
|
|
@@ -37909,10 +38678,10 @@ function globSync(patternsOrOptions, options) {
|
|
|
37909
38678
|
return formatPaths(crawler.sync(), relative2);
|
|
37910
38679
|
}
|
|
37911
38680
|
var import_picomatch, isReadonlyArray3, isWin, ONLY_PARENT_DIRECTORIES, WIN32_ROOT_DIR, isRoot, splitPatternOptions, POSIX_UNESCAPED_GLOB_SYMBOLS, WIN32_UNESCAPED_GLOB_SYMBOLS, escapePosixPath, escapeWin32Path, escapePath, PARENT_DIRECTORY, ESCAPING_BACKSLASHES, BACKSLASHES;
|
|
37912
|
-
var
|
|
38681
|
+
var init_dist14 = __esm({
|
|
37913
38682
|
"../../node_modules/.pnpm/tinyglobby@0.2.15/node_modules/tinyglobby/dist/index.mjs"() {
|
|
37914
38683
|
"use strict";
|
|
37915
|
-
|
|
38684
|
+
init_dist13();
|
|
37916
38685
|
import_picomatch = __toESM(require_picomatch2(), 1);
|
|
37917
38686
|
isReadonlyArray3 = Array.isArray;
|
|
37918
38687
|
isWin = process.platform === "win32";
|
|
@@ -37938,7 +38707,7 @@ function isNothing(subject) {
|
|
|
37938
38707
|
function isObject2(subject) {
|
|
37939
38708
|
return typeof subject === "object" && subject !== null;
|
|
37940
38709
|
}
|
|
37941
|
-
function
|
|
38710
|
+
function toArray6(sequence) {
|
|
37942
38711
|
if (Array.isArray(sequence)) return sequence;
|
|
37943
38712
|
else if (isNothing(sequence)) return [];
|
|
37944
38713
|
return [sequence];
|
|
@@ -40119,7 +40888,7 @@ var init_js_yaml = __esm({
|
|
|
40119
40888
|
"use strict";
|
|
40120
40889
|
isNothing_1 = isNothing;
|
|
40121
40890
|
isObject_1 = isObject2;
|
|
40122
|
-
toArray_1 =
|
|
40891
|
+
toArray_1 = toArray6;
|
|
40123
40892
|
repeat_1 = repeat;
|
|
40124
40893
|
isNegativeZero_1 = isNegativeZero;
|
|
40125
40894
|
extend_1 = extend;
|
|
@@ -41493,12 +42262,12 @@ var require_document = __commonJS({
|
|
|
41493
42262
|
result.data = null;
|
|
41494
42263
|
return result;
|
|
41495
42264
|
}
|
|
41496
|
-
function arg_to_path(
|
|
41497
|
-
if (typeof
|
|
41498
|
-
if (
|
|
41499
|
-
if (typeof
|
|
41500
|
-
if (!Array.isArray(
|
|
41501
|
-
return
|
|
42265
|
+
function arg_to_path(path19) {
|
|
42266
|
+
if (typeof path19 === "number") path19 = String(path19);
|
|
42267
|
+
if (path19 === "") path19 = [];
|
|
42268
|
+
if (typeof path19 === "string") path19 = path19.split(".");
|
|
42269
|
+
if (!Array.isArray(path19)) throw Error("Invalid path type, string or array expected");
|
|
42270
|
+
return path19;
|
|
41502
42271
|
}
|
|
41503
42272
|
function find_element_in_tokenlist(element, lvl, tokens, begin, end) {
|
|
41504
42273
|
while (tokens[begin].stack[lvl] != element) {
|
|
@@ -41622,30 +42391,30 @@ var require_document = __commonJS({
|
|
|
41622
42391
|
return true;
|
|
41623
42392
|
}
|
|
41624
42393
|
}
|
|
41625
|
-
Document.prototype.set = function(
|
|
41626
|
-
|
|
41627
|
-
if (
|
|
42394
|
+
Document.prototype.set = function(path19, value) {
|
|
42395
|
+
path19 = arg_to_path(path19);
|
|
42396
|
+
if (path19.length === 0) {
|
|
41628
42397
|
if (value === void 0) throw Error("can't remove root document");
|
|
41629
42398
|
this._data = value;
|
|
41630
42399
|
var new_key = false;
|
|
41631
42400
|
} else {
|
|
41632
42401
|
var data = this._data;
|
|
41633
|
-
for (var i = 0; i <
|
|
41634
|
-
check_if_can_be_placed(
|
|
41635
|
-
data = data[
|
|
42402
|
+
for (var i = 0; i < path19.length - 1; i++) {
|
|
42403
|
+
check_if_can_be_placed(path19[i], data, false);
|
|
42404
|
+
data = data[path19[i]];
|
|
41636
42405
|
}
|
|
41637
|
-
if (i ===
|
|
41638
|
-
check_if_can_be_placed(
|
|
42406
|
+
if (i === path19.length - 1) {
|
|
42407
|
+
check_if_can_be_placed(path19[i], data, value === void 0);
|
|
41639
42408
|
}
|
|
41640
|
-
var new_key = !(
|
|
42409
|
+
var new_key = !(path19[i] in data);
|
|
41641
42410
|
if (value === void 0) {
|
|
41642
42411
|
if (Array.isArray(data)) {
|
|
41643
42412
|
data.pop();
|
|
41644
42413
|
} else {
|
|
41645
|
-
delete data[
|
|
42414
|
+
delete data[path19[i]];
|
|
41646
42415
|
}
|
|
41647
42416
|
} else {
|
|
41648
|
-
data[
|
|
42417
|
+
data[path19[i]] = value;
|
|
41649
42418
|
}
|
|
41650
42419
|
}
|
|
41651
42420
|
if (!this._tokens.length)
|
|
@@ -41654,15 +42423,15 @@ var require_document = __commonJS({
|
|
|
41654
42423
|
find_first_non_ws_token(this._tokens, 0, this._tokens.length - 1),
|
|
41655
42424
|
find_last_non_ws_token(this._tokens, 0, this._tokens.length - 1)
|
|
41656
42425
|
];
|
|
41657
|
-
for (var i = 0; i <
|
|
41658
|
-
position = find_element_in_tokenlist(
|
|
42426
|
+
for (var i = 0; i < path19.length - 1; i++) {
|
|
42427
|
+
position = find_element_in_tokenlist(path19[i], i, this._tokens, position[0], position[1]);
|
|
41659
42428
|
if (position == false) throw Error("internal error, please report this");
|
|
41660
42429
|
}
|
|
41661
|
-
if (
|
|
41662
|
-
var newtokens = value_to_tokenlist(value,
|
|
42430
|
+
if (path19.length === 0) {
|
|
42431
|
+
var newtokens = value_to_tokenlist(value, path19, this._options);
|
|
41663
42432
|
} else if (!new_key) {
|
|
41664
42433
|
var pos_old = position;
|
|
41665
|
-
position = find_element_in_tokenlist(
|
|
42434
|
+
position = find_element_in_tokenlist(path19[i], i, this._tokens, position[0], position[1]);
|
|
41666
42435
|
if (value === void 0 && position !== false) {
|
|
41667
42436
|
var newtokens = [];
|
|
41668
42437
|
if (!Array.isArray(data)) {
|
|
@@ -41672,7 +42441,7 @@ var require_document = __commonJS({
|
|
|
41672
42441
|
position[0] = pos2;
|
|
41673
42442
|
var pos2 = find_last_non_ws_token(this._tokens, pos_old[0], position[0] - 1);
|
|
41674
42443
|
assert2.equal(this._tokens[pos2].type, "key");
|
|
41675
|
-
assert2.equal(this._tokens[pos2].value,
|
|
42444
|
+
assert2.equal(this._tokens[pos2].value, path19[path19.length - 1]);
|
|
41676
42445
|
position[0] = pos2;
|
|
41677
42446
|
}
|
|
41678
42447
|
var pos2 = find_last_non_ws_token(this._tokens, pos_old[0], position[0] - 1);
|
|
@@ -41688,21 +42457,21 @@ var require_document = __commonJS({
|
|
|
41688
42457
|
}
|
|
41689
42458
|
} else {
|
|
41690
42459
|
var indent = pos2 !== false ? detect_indent_style(this._tokens, Array.isArray(data), pos_old[0], position[1] - 1, i) : {};
|
|
41691
|
-
var newtokens = value_to_tokenlist(value,
|
|
42460
|
+
var newtokens = value_to_tokenlist(value, path19, this._options, false, indent);
|
|
41692
42461
|
}
|
|
41693
42462
|
} else {
|
|
41694
|
-
var path_1 =
|
|
42463
|
+
var path_1 = path19.slice(0, i);
|
|
41695
42464
|
var pos2 = find_last_non_ws_token(this._tokens, position[0] + 1, position[1] - 1);
|
|
41696
42465
|
assert2(pos2 !== false);
|
|
41697
42466
|
var indent = pos2 !== false ? detect_indent_style(this._tokens, Array.isArray(data), position[0] + 1, pos2, i) : {};
|
|
41698
|
-
var newtokens = value_to_tokenlist(value,
|
|
42467
|
+
var newtokens = value_to_tokenlist(value, path19, this._options, false, indent);
|
|
41699
42468
|
var prefix = [];
|
|
41700
42469
|
if (indent.newline && indent.newline.length)
|
|
41701
42470
|
prefix = prefix.concat(indent.newline);
|
|
41702
42471
|
if (indent.prefix && indent.prefix.length)
|
|
41703
42472
|
prefix = prefix.concat(indent.prefix);
|
|
41704
42473
|
if (!Array.isArray(data)) {
|
|
41705
|
-
prefix = prefix.concat(value_to_tokenlist(
|
|
42474
|
+
prefix = prefix.concat(value_to_tokenlist(path19[path19.length - 1], path_1, this._options, true));
|
|
41706
42475
|
if (indent.sep1 && indent.sep1.length)
|
|
41707
42476
|
prefix = prefix.concat(indent.sep1);
|
|
41708
42477
|
prefix.push({ raw: ":", type: "separator", stack: path_1 });
|
|
@@ -41710,7 +42479,7 @@ var require_document = __commonJS({
|
|
|
41710
42479
|
prefix = prefix.concat(indent.sep2);
|
|
41711
42480
|
}
|
|
41712
42481
|
newtokens.unshift.apply(newtokens, prefix);
|
|
41713
|
-
if (this._tokens[pos2].type === "separator" && this._tokens[pos2].stack.length ===
|
|
42482
|
+
if (this._tokens[pos2].type === "separator" && this._tokens[pos2].stack.length === path19.length - 1) {
|
|
41714
42483
|
if (this._tokens[pos2].raw === ",") {
|
|
41715
42484
|
newtokens.push({ raw: ",", type: "separator", stack: path_1 });
|
|
41716
42485
|
}
|
|
@@ -41728,24 +42497,24 @@ var require_document = __commonJS({
|
|
|
41728
42497
|
this._tokens.splice.apply(this._tokens, newtokens);
|
|
41729
42498
|
return this;
|
|
41730
42499
|
};
|
|
41731
|
-
Document.prototype.unset = function(
|
|
41732
|
-
return this.set(
|
|
42500
|
+
Document.prototype.unset = function(path19) {
|
|
42501
|
+
return this.set(path19, void 0);
|
|
41733
42502
|
};
|
|
41734
|
-
Document.prototype.get = function(
|
|
41735
|
-
|
|
42503
|
+
Document.prototype.get = function(path19) {
|
|
42504
|
+
path19 = arg_to_path(path19);
|
|
41736
42505
|
var data = this._data;
|
|
41737
|
-
for (var i = 0; i <
|
|
42506
|
+
for (var i = 0; i < path19.length; i++) {
|
|
41738
42507
|
if (!isObject3(data)) return void 0;
|
|
41739
|
-
data = data[
|
|
42508
|
+
data = data[path19[i]];
|
|
41740
42509
|
}
|
|
41741
42510
|
return data;
|
|
41742
42511
|
};
|
|
41743
|
-
Document.prototype.has = function(
|
|
41744
|
-
|
|
42512
|
+
Document.prototype.has = function(path19) {
|
|
42513
|
+
path19 = arg_to_path(path19);
|
|
41745
42514
|
var data = this._data;
|
|
41746
|
-
for (var i = 0; i <
|
|
42515
|
+
for (var i = 0; i < path19.length; i++) {
|
|
41747
42516
|
if (!isObject3(data)) return false;
|
|
41748
|
-
data = data[
|
|
42517
|
+
data = data[path19[i]];
|
|
41749
42518
|
}
|
|
41750
42519
|
return data !== void 0;
|
|
41751
42520
|
};
|
|
@@ -41753,37 +42522,37 @@ var require_document = __commonJS({
|
|
|
41753
42522
|
var self = this;
|
|
41754
42523
|
change([], self._data, value);
|
|
41755
42524
|
return self;
|
|
41756
|
-
function change(
|
|
42525
|
+
function change(path19, old_data, new_data) {
|
|
41757
42526
|
if (!isObject3(new_data) || !isObject3(old_data)) {
|
|
41758
42527
|
if (new_data !== old_data)
|
|
41759
|
-
self.set(
|
|
42528
|
+
self.set(path19, new_data);
|
|
41760
42529
|
} else if (Array.isArray(new_data) != Array.isArray(old_data)) {
|
|
41761
|
-
self.set(
|
|
42530
|
+
self.set(path19, new_data);
|
|
41762
42531
|
} else if (Array.isArray(new_data)) {
|
|
41763
42532
|
if (new_data.length > old_data.length) {
|
|
41764
42533
|
for (var i = 0; i < new_data.length; i++) {
|
|
41765
|
-
|
|
41766
|
-
change(
|
|
41767
|
-
|
|
42534
|
+
path19.push(String(i));
|
|
42535
|
+
change(path19, old_data[i], new_data[i]);
|
|
42536
|
+
path19.pop();
|
|
41768
42537
|
}
|
|
41769
42538
|
} else {
|
|
41770
42539
|
for (var i = old_data.length - 1; i >= 0; i--) {
|
|
41771
|
-
|
|
41772
|
-
change(
|
|
41773
|
-
|
|
42540
|
+
path19.push(String(i));
|
|
42541
|
+
change(path19, old_data[i], new_data[i]);
|
|
42542
|
+
path19.pop();
|
|
41774
42543
|
}
|
|
41775
42544
|
}
|
|
41776
42545
|
} else {
|
|
41777
42546
|
for (var i in new_data) {
|
|
41778
|
-
|
|
41779
|
-
change(
|
|
41780
|
-
|
|
42547
|
+
path19.push(String(i));
|
|
42548
|
+
change(path19, old_data[i], new_data[i]);
|
|
42549
|
+
path19.pop();
|
|
41781
42550
|
}
|
|
41782
42551
|
for (var i in old_data) {
|
|
41783
42552
|
if (i in new_data) continue;
|
|
41784
|
-
|
|
41785
|
-
change(
|
|
41786
|
-
|
|
42553
|
+
path19.push(String(i));
|
|
42554
|
+
change(path19, old_data[i], new_data[i]);
|
|
42555
|
+
path19.pop();
|
|
41787
42556
|
}
|
|
41788
42557
|
}
|
|
41789
42558
|
}
|
|
@@ -41863,7 +42632,7 @@ var require_jju = __commonJS({
|
|
|
41863
42632
|
});
|
|
41864
42633
|
|
|
41865
42634
|
// ../../node_modules/.pnpm/@manypkg+tools@2.1.0/node_modules/@manypkg/tools/dist/manypkg-tools.js
|
|
41866
|
-
import * as
|
|
42635
|
+
import * as path14 from "path";
|
|
41867
42636
|
import path__default from "path";
|
|
41868
42637
|
import * as fs13 from "fs";
|
|
41869
42638
|
import fs__default from "fs";
|
|
@@ -41921,7 +42690,7 @@ function expandPackageGlobsSync(packageGlobs, directory) {
|
|
|
41921
42690
|
}
|
|
41922
42691
|
async function hasBunLockFile(directory) {
|
|
41923
42692
|
try {
|
|
41924
|
-
await Promise.any([fsp.access(
|
|
42693
|
+
await Promise.any([fsp.access(path14.join(directory, "bun.lockb"), F_OK), fsp.access(path14.join(directory, "bun.lock"), F_OK)]);
|
|
41925
42694
|
return true;
|
|
41926
42695
|
} catch (err) {
|
|
41927
42696
|
return false;
|
|
@@ -41929,28 +42698,28 @@ async function hasBunLockFile(directory) {
|
|
|
41929
42698
|
}
|
|
41930
42699
|
function hasBunLockFileSync(directory) {
|
|
41931
42700
|
try {
|
|
41932
|
-
fs13.accessSync(
|
|
42701
|
+
fs13.accessSync(path14.join(directory, "bun.lockb"), F_OK);
|
|
41933
42702
|
return true;
|
|
41934
42703
|
} catch (err) {
|
|
41935
42704
|
try {
|
|
41936
|
-
fs13.accessSync(
|
|
42705
|
+
fs13.accessSync(path14.join(directory, "bun.lock"), F_OK);
|
|
41937
42706
|
return true;
|
|
41938
42707
|
} catch (err2) {
|
|
41939
42708
|
return false;
|
|
41940
42709
|
}
|
|
41941
42710
|
}
|
|
41942
42711
|
}
|
|
41943
|
-
async function readYamlFile(
|
|
41944
|
-
return fsp__default.readFile(
|
|
42712
|
+
async function readYamlFile(path19) {
|
|
42713
|
+
return fsp__default.readFile(path19, "utf8").then((data) => jsYaml.load(data));
|
|
41945
42714
|
}
|
|
41946
|
-
function readYamlFileSync(
|
|
41947
|
-
return jsYaml.load(fs__default.readFileSync(
|
|
42715
|
+
function readYamlFileSync(path19) {
|
|
42716
|
+
return jsYaml.load(fs__default.readFileSync(path19, "utf8"));
|
|
41948
42717
|
}
|
|
41949
42718
|
var import_jju, InvalidMonorepoError, readJson, readJsonSync, BunTool, LernaTool, NpmTool, PnpmTool, RootTool, RushTool, YarnTool;
|
|
41950
42719
|
var init_manypkg_tools = __esm({
|
|
41951
42720
|
"../../node_modules/.pnpm/@manypkg+tools@2.1.0/node_modules/@manypkg/tools/dist/manypkg-tools.js"() {
|
|
41952
42721
|
"use strict";
|
|
41953
|
-
|
|
42722
|
+
init_dist14();
|
|
41954
42723
|
init_js_yaml();
|
|
41955
42724
|
import_jju = __toESM(require_jju(), 1);
|
|
41956
42725
|
InvalidMonorepoError = class extends Error {
|
|
@@ -41996,7 +42765,7 @@ var init_manypkg_tools = __esm({
|
|
|
41996
42765
|
return false;
|
|
41997
42766
|
},
|
|
41998
42767
|
async getPackages(directory) {
|
|
41999
|
-
const rootDir =
|
|
42768
|
+
const rootDir = path14.resolve(directory);
|
|
42000
42769
|
try {
|
|
42001
42770
|
const pkgJson = await readJson(rootDir, "package.json");
|
|
42002
42771
|
const packageGlobs = pkgJson.workspaces || [];
|
|
@@ -42018,7 +42787,7 @@ var init_manypkg_tools = __esm({
|
|
|
42018
42787
|
}
|
|
42019
42788
|
},
|
|
42020
42789
|
getPackagesSync(directory) {
|
|
42021
|
-
const rootDir =
|
|
42790
|
+
const rootDir = path14.resolve(directory);
|
|
42022
42791
|
try {
|
|
42023
42792
|
const pkgJson = readJsonSync(rootDir, "package.json");
|
|
42024
42793
|
const packageGlobs = pkgJson.workspaces || [];
|
|
@@ -42384,748 +43153,211 @@ var init_manypkg_tools = __esm({
|
|
|
42384
43153
|
const directories = rushJson.projects.map((project) => path__default.resolve(rootDir, project.projectFolder));
|
|
42385
43154
|
const packages = directories.map((dir) => {
|
|
42386
43155
|
const packageJson = readJsonSync(dir, "package.json");
|
|
42387
|
-
return {
|
|
42388
|
-
dir,
|
|
42389
|
-
relativeDir: path__default.relative(directory, dir),
|
|
42390
|
-
packageJson
|
|
42391
|
-
};
|
|
42392
|
-
});
|
|
42393
|
-
return {
|
|
42394
|
-
tool: RushTool,
|
|
42395
|
-
packages,
|
|
42396
|
-
rootDir
|
|
42397
|
-
};
|
|
42398
|
-
} catch (err) {
|
|
42399
|
-
if (err && err.code === "ENOENT") {
|
|
42400
|
-
throw new InvalidMonorepoError(`Directory ${rootDir} is not a valid ${RushTool.type} monorepo root: missing rush.json`);
|
|
42401
|
-
}
|
|
42402
|
-
throw err;
|
|
42403
|
-
}
|
|
42404
|
-
}
|
|
42405
|
-
};
|
|
42406
|
-
YarnTool = {
|
|
42407
|
-
type: "yarn",
|
|
42408
|
-
async isMonorepoRoot(directory) {
|
|
42409
|
-
try {
|
|
42410
|
-
const [pkgJson] = await Promise.all([readJson(directory, "package.json"), fsp__default.access(path__default.join(directory, "yarn.lock"), F_OK)]);
|
|
42411
|
-
if (pkgJson.workspaces) {
|
|
42412
|
-
if (Array.isArray(pkgJson.workspaces) || Array.isArray(pkgJson.workspaces.packages)) {
|
|
42413
|
-
return true;
|
|
42414
|
-
}
|
|
42415
|
-
}
|
|
42416
|
-
} catch (err) {
|
|
42417
|
-
if (err && err.code === "ENOENT") {
|
|
42418
|
-
return false;
|
|
42419
|
-
}
|
|
42420
|
-
throw err;
|
|
42421
|
-
}
|
|
42422
|
-
return false;
|
|
42423
|
-
},
|
|
42424
|
-
isMonorepoRootSync(directory) {
|
|
42425
|
-
try {
|
|
42426
|
-
fs__default.accessSync(path__default.join(directory, "yarn.lock"), F_OK);
|
|
42427
|
-
const pkgJson = readJsonSync(directory, "package.json");
|
|
42428
|
-
if (pkgJson.workspaces) {
|
|
42429
|
-
if (Array.isArray(pkgJson.workspaces) || Array.isArray(pkgJson.workspaces.packages)) {
|
|
42430
|
-
return true;
|
|
42431
|
-
}
|
|
42432
|
-
}
|
|
42433
|
-
} catch (err) {
|
|
42434
|
-
if (err && err.code === "ENOENT") {
|
|
42435
|
-
return false;
|
|
42436
|
-
}
|
|
42437
|
-
throw err;
|
|
42438
|
-
}
|
|
42439
|
-
return false;
|
|
42440
|
-
},
|
|
42441
|
-
async getPackages(directory) {
|
|
42442
|
-
const rootDir = path__default.resolve(directory);
|
|
42443
|
-
try {
|
|
42444
|
-
const pkgJson = await readJson(rootDir, "package.json");
|
|
42445
|
-
const packageGlobs = Array.isArray(pkgJson.workspaces) ? pkgJson.workspaces : pkgJson.workspaces.packages;
|
|
42446
|
-
return {
|
|
42447
|
-
tool: YarnTool,
|
|
42448
|
-
packages: await expandPackageGlobs(packageGlobs, rootDir),
|
|
42449
|
-
rootPackage: {
|
|
42450
|
-
dir: rootDir,
|
|
42451
|
-
relativeDir: ".",
|
|
42452
|
-
packageJson: pkgJson
|
|
42453
|
-
},
|
|
42454
|
-
rootDir
|
|
42455
|
-
};
|
|
42456
|
-
} catch (err) {
|
|
42457
|
-
if (err && err.code === "ENOENT") {
|
|
42458
|
-
throw new InvalidMonorepoError(`Directory ${rootDir} is not a valid ${YarnTool.type} monorepo root`);
|
|
42459
|
-
}
|
|
42460
|
-
throw err;
|
|
42461
|
-
}
|
|
42462
|
-
},
|
|
42463
|
-
getPackagesSync(directory) {
|
|
42464
|
-
const rootDir = path__default.resolve(directory);
|
|
42465
|
-
try {
|
|
42466
|
-
const pkgJson = readJsonSync(rootDir, "package.json");
|
|
42467
|
-
const packageGlobs = Array.isArray(pkgJson.workspaces) ? pkgJson.workspaces : pkgJson.workspaces.packages;
|
|
42468
|
-
return {
|
|
42469
|
-
tool: YarnTool,
|
|
42470
|
-
packages: expandPackageGlobsSync(packageGlobs, rootDir),
|
|
42471
|
-
rootPackage: {
|
|
42472
|
-
dir: rootDir,
|
|
42473
|
-
relativeDir: ".",
|
|
42474
|
-
packageJson: pkgJson
|
|
42475
|
-
},
|
|
42476
|
-
rootDir
|
|
42477
|
-
};
|
|
42478
|
-
} catch (err) {
|
|
42479
|
-
if (err && err.code === "ENOENT") {
|
|
42480
|
-
throw new InvalidMonorepoError(`Directory ${rootDir} is not a valid ${YarnTool.type} monorepo root`);
|
|
42481
|
-
}
|
|
42482
|
-
throw err;
|
|
42483
|
-
}
|
|
42484
|
-
}
|
|
42485
|
-
};
|
|
42486
|
-
}
|
|
42487
|
-
});
|
|
42488
|
-
|
|
42489
|
-
// ../../node_modules/.pnpm/@manypkg+find-root@3.1.0/node_modules/@manypkg/find-root/dist/manypkg-find-root.js
|
|
42490
|
-
import fs14 from "fs";
|
|
42491
|
-
import fsp2 from "fs/promises";
|
|
42492
|
-
import path14 from "path";
|
|
42493
|
-
function findRootSync(cwd3, options = {}) {
|
|
42494
|
-
let monorepoRoot;
|
|
42495
|
-
const tools = options.tools || DEFAULT_TOOLS;
|
|
42496
|
-
findUpSync((directory) => {
|
|
42497
|
-
for (const tool of tools) {
|
|
42498
|
-
if (tool.isMonorepoRootSync(directory)) {
|
|
42499
|
-
monorepoRoot = {
|
|
42500
|
-
tool: tool.type,
|
|
42501
|
-
rootDir: directory
|
|
42502
|
-
};
|
|
42503
|
-
return directory;
|
|
42504
|
-
}
|
|
42505
|
-
}
|
|
42506
|
-
}, cwd3);
|
|
42507
|
-
if (monorepoRoot) {
|
|
42508
|
-
return monorepoRoot;
|
|
42509
|
-
}
|
|
42510
|
-
if (!tools.includes(RootTool)) {
|
|
42511
|
-
throw new NoMatchingMonorepoFound(cwd3);
|
|
42512
|
-
}
|
|
42513
|
-
const rootDir = findUpSync((directory) => {
|
|
42514
|
-
const exists2 = fs14.existsSync(path14.join(directory, "package.json"));
|
|
42515
|
-
return exists2 ? directory : void 0;
|
|
42516
|
-
}, cwd3);
|
|
42517
|
-
if (!rootDir) {
|
|
42518
|
-
throw new NoPkgJsonFound(cwd3);
|
|
42519
|
-
}
|
|
42520
|
-
return {
|
|
42521
|
-
tool: RootTool.type,
|
|
42522
|
-
rootDir
|
|
42523
|
-
};
|
|
42524
|
-
}
|
|
42525
|
-
function findUpSync(matcher, cwd3) {
|
|
42526
|
-
let directory = path14.resolve(cwd3);
|
|
42527
|
-
const {
|
|
42528
|
-
root
|
|
42529
|
-
} = path14.parse(directory);
|
|
42530
|
-
while (directory && directory !== root) {
|
|
42531
|
-
const filePath = matcher(directory);
|
|
42532
|
-
if (filePath) {
|
|
42533
|
-
return path14.resolve(directory, filePath);
|
|
42534
|
-
}
|
|
42535
|
-
directory = path14.dirname(directory);
|
|
42536
|
-
}
|
|
42537
|
-
}
|
|
42538
|
-
var DEFAULT_TOOLS, NoPkgJsonFound, NoMatchingMonorepoFound;
|
|
42539
|
-
var init_manypkg_find_root = __esm({
|
|
42540
|
-
"../../node_modules/.pnpm/@manypkg+find-root@3.1.0/node_modules/@manypkg/find-root/dist/manypkg-find-root.js"() {
|
|
42541
|
-
"use strict";
|
|
42542
|
-
init_manypkg_tools();
|
|
42543
|
-
DEFAULT_TOOLS = [YarnTool, PnpmTool, NpmTool, BunTool, LernaTool, RushTool, RootTool];
|
|
42544
|
-
NoPkgJsonFound = class extends Error {
|
|
42545
|
-
constructor(directory) {
|
|
42546
|
-
super(`No package.json could be found upwards from directory ${directory}`);
|
|
42547
|
-
this.directory = directory;
|
|
42548
|
-
}
|
|
42549
|
-
};
|
|
42550
|
-
NoMatchingMonorepoFound = class extends Error {
|
|
42551
|
-
constructor(directory) {
|
|
42552
|
-
super(`No monorepo matching the list of supported monorepos could be found upwards from directory ${directory}`);
|
|
42553
|
-
this.directory = directory;
|
|
42554
|
-
}
|
|
42555
|
-
};
|
|
42556
|
-
}
|
|
42557
|
-
});
|
|
42558
|
-
|
|
42559
|
-
// ../../node_modules/.pnpm/@manypkg+get-packages@3.1.0/node_modules/@manypkg/get-packages/dist/manypkg-get-packages.js
|
|
42560
|
-
import path15 from "path";
|
|
42561
|
-
function getPackagesSync(dir, options) {
|
|
42562
|
-
const monorepoRoot = findRootSync(dir, options);
|
|
42563
|
-
const tools = options?.tools || DEFAULT_TOOLS;
|
|
42564
|
-
const tool = tools.find((t) => t.type === monorepoRoot.tool);
|
|
42565
|
-
if (!tool) throw new Error(`Could not find ${monorepoRoot.tool} tool`);
|
|
42566
|
-
const packages = tool.getPackagesSync(monorepoRoot.rootDir);
|
|
42567
|
-
validatePackages(packages);
|
|
42568
|
-
return packages;
|
|
42569
|
-
}
|
|
42570
|
-
function validatePackages(packages) {
|
|
42571
|
-
const pkgJsonsMissingNameField = [];
|
|
42572
|
-
for (const pkg of packages.packages) {
|
|
42573
|
-
if (!pkg.packageJson.name) {
|
|
42574
|
-
pkgJsonsMissingNameField.push(path15.join(pkg.relativeDir, "package.json"));
|
|
42575
|
-
}
|
|
42576
|
-
}
|
|
42577
|
-
if (pkgJsonsMissingNameField.length > 0) {
|
|
42578
|
-
pkgJsonsMissingNameField.sort();
|
|
42579
|
-
throw new PackageJsonMissingNameError(pkgJsonsMissingNameField);
|
|
42580
|
-
}
|
|
42581
|
-
}
|
|
42582
|
-
var PackageJsonMissingNameError;
|
|
42583
|
-
var init_manypkg_get_packages = __esm({
|
|
42584
|
-
"../../node_modules/.pnpm/@manypkg+get-packages@3.1.0/node_modules/@manypkg/get-packages/dist/manypkg-get-packages.js"() {
|
|
42585
|
-
"use strict";
|
|
42586
|
-
init_manypkg_find_root();
|
|
42587
|
-
PackageJsonMissingNameError = class extends Error {
|
|
42588
|
-
constructor(directories) {
|
|
42589
|
-
super(`The following package.jsons are missing the "name" field:
|
|
42590
|
-
${directories.join("\n")}`);
|
|
42591
|
-
this.directories = directories;
|
|
42592
|
-
}
|
|
42593
|
-
};
|
|
42594
|
-
}
|
|
42595
|
-
});
|
|
42596
|
-
|
|
42597
|
-
// ../version/dist/dist-3B6ZXCEH.js
|
|
42598
|
-
var dist_3B6ZXCEH_exports = {};
|
|
42599
|
-
__export(dist_3B6ZXCEH_exports, {
|
|
42600
|
-
CommitParser: () => CommitParser2,
|
|
42601
|
-
createCommitObject: () => createCommitObject2,
|
|
42602
|
-
parseCommits: () => parseCommits2,
|
|
42603
|
-
parseCommitsStream: () => parseCommitsStream2
|
|
42604
|
-
});
|
|
42605
|
-
import { Transform as Transform3 } from "stream";
|
|
42606
|
-
function join18(parts, joiner) {
|
|
42607
|
-
return parts.map((val) => val.trim()).filter(Boolean).join(joiner);
|
|
42608
|
-
}
|
|
42609
|
-
function getNotesRegex2(noteKeywords, notesPattern) {
|
|
42610
|
-
if (!noteKeywords) {
|
|
42611
|
-
return nomatchRegex2;
|
|
42612
|
-
}
|
|
42613
|
-
const noteKeywordsSelection = join18(noteKeywords, "|");
|
|
42614
|
-
if (!notesPattern) {
|
|
42615
|
-
return new RegExp(`^[\\s|*]*(${noteKeywordsSelection})[:\\s]+(.*)`, "i");
|
|
42616
|
-
}
|
|
42617
|
-
return notesPattern(noteKeywordsSelection);
|
|
42618
|
-
}
|
|
42619
|
-
function getReferencePartsRegex2(issuePrefixes, issuePrefixesCaseSensitive) {
|
|
42620
|
-
if (!issuePrefixes) {
|
|
42621
|
-
return nomatchRegex2;
|
|
42622
|
-
}
|
|
42623
|
-
const flags = issuePrefixesCaseSensitive ? "g" : "gi";
|
|
42624
|
-
return new RegExp(`(?:.*?)??\\s*([\\w-\\.\\/]*?)??(${join18(issuePrefixes, "|")})([\\w-]+)(?=\\s|$|[,;)\\]])`, flags);
|
|
42625
|
-
}
|
|
42626
|
-
function getReferencesRegex2(referenceActions) {
|
|
42627
|
-
if (!referenceActions) {
|
|
42628
|
-
return /()(.+)/gi;
|
|
42629
|
-
}
|
|
42630
|
-
const joinedKeywords = join18(referenceActions, "|");
|
|
42631
|
-
return new RegExp(`(${joinedKeywords})(?:\\s+(.*?))(?=(?:${joinedKeywords})|$)`, "gi");
|
|
42632
|
-
}
|
|
42633
|
-
function getParserRegexes2(options = {}) {
|
|
42634
|
-
const notes = getNotesRegex2(options.noteKeywords, options.notesPattern);
|
|
42635
|
-
const referenceParts = getReferencePartsRegex2(options.issuePrefixes, options.issuePrefixesCaseSensitive);
|
|
42636
|
-
const references = getReferencesRegex2(options.referenceActions);
|
|
42637
|
-
return {
|
|
42638
|
-
notes,
|
|
42639
|
-
referenceParts,
|
|
42640
|
-
references,
|
|
42641
|
-
mentions: /@([\w-]+)/g,
|
|
42642
|
-
url: /\b(?:https?):\/\/(?:www\.)?([-a-zA-Z0-9@:%_+.~#?&//=])+\b/
|
|
42643
|
-
};
|
|
42644
|
-
}
|
|
42645
|
-
function trimNewLines2(input) {
|
|
42646
|
-
const matches = input.match(/[^\r\n]/);
|
|
42647
|
-
if (typeof matches?.index !== "number") {
|
|
42648
|
-
return "";
|
|
42649
|
-
}
|
|
42650
|
-
const firstIndex = matches.index;
|
|
42651
|
-
let lastIndex = input.length - 1;
|
|
42652
|
-
while (input[lastIndex] === "\r" || input[lastIndex] === "\n") {
|
|
42653
|
-
lastIndex--;
|
|
42654
|
-
}
|
|
42655
|
-
return input.substring(firstIndex, lastIndex + 1);
|
|
42656
|
-
}
|
|
42657
|
-
function appendLine2(src, line) {
|
|
42658
|
-
return src ? `${src}
|
|
42659
|
-
${line || ""}` : line || "";
|
|
42660
|
-
}
|
|
42661
|
-
function getCommentFilter2(char) {
|
|
42662
|
-
return char ? (line) => !line.startsWith(char) : () => true;
|
|
42663
|
-
}
|
|
42664
|
-
function truncateToScissor2(lines, commentChar) {
|
|
42665
|
-
const scissorIndex = lines.indexOf(`${commentChar} ${SCISSOR3}`);
|
|
42666
|
-
if (scissorIndex === -1) {
|
|
42667
|
-
return lines;
|
|
42668
|
-
}
|
|
42669
|
-
return lines.slice(0, scissorIndex);
|
|
42670
|
-
}
|
|
42671
|
-
function gpgFilter2(line) {
|
|
42672
|
-
return !line.match(/^\s*gpg:/);
|
|
42673
|
-
}
|
|
42674
|
-
function assignMatchedCorrespondence2(target, matches, correspondence) {
|
|
42675
|
-
const { groups } = matches;
|
|
42676
|
-
for (let i = 0, len = correspondence.length, key; i < len; i++) {
|
|
42677
|
-
key = correspondence[i];
|
|
42678
|
-
target[key] = (groups ? groups[key] : matches[i + 1]) || null;
|
|
42679
|
-
}
|
|
42680
|
-
return target;
|
|
42681
|
-
}
|
|
42682
|
-
function createCommitObject2(initialData = {}) {
|
|
42683
|
-
return {
|
|
42684
|
-
merge: null,
|
|
42685
|
-
revert: null,
|
|
42686
|
-
header: null,
|
|
42687
|
-
body: null,
|
|
42688
|
-
footer: null,
|
|
42689
|
-
notes: [],
|
|
42690
|
-
mentions: [],
|
|
42691
|
-
references: [],
|
|
42692
|
-
...initialData
|
|
42693
|
-
};
|
|
42694
|
-
}
|
|
42695
|
-
function parseCommits2(options = {}) {
|
|
42696
|
-
const warnOption = options.warn;
|
|
42697
|
-
const warn4 = warnOption === true ? (err) => {
|
|
42698
|
-
throw err;
|
|
42699
|
-
} : warnOption ? (err) => warnOption(err.toString()) : () => {
|
|
42700
|
-
};
|
|
42701
|
-
return async function* parse4(rawCommits) {
|
|
42702
|
-
const parser = new CommitParser2(options);
|
|
42703
|
-
let rawCommit;
|
|
42704
|
-
for await (rawCommit of rawCommits) {
|
|
42705
|
-
try {
|
|
42706
|
-
yield parser.parse(rawCommit.toString());
|
|
42707
|
-
} catch (err) {
|
|
42708
|
-
warn4(err);
|
|
42709
|
-
}
|
|
42710
|
-
}
|
|
42711
|
-
};
|
|
42712
|
-
}
|
|
42713
|
-
function parseCommitsStream2(options = {}) {
|
|
42714
|
-
return Transform3.from(parseCommits2(options));
|
|
42715
|
-
}
|
|
42716
|
-
var nomatchRegex2, SCISSOR3, defaultOptions3, CommitParser2;
|
|
42717
|
-
var init_dist_3B6ZXCEH = __esm({
|
|
42718
|
-
"../version/dist/dist-3B6ZXCEH.js"() {
|
|
42719
|
-
"use strict";
|
|
42720
|
-
nomatchRegex2 = /(?!.*)/;
|
|
42721
|
-
SCISSOR3 = "------------------------ >8 ------------------------";
|
|
42722
|
-
defaultOptions3 = {
|
|
42723
|
-
noteKeywords: ["BREAKING CHANGE", "BREAKING-CHANGE"],
|
|
42724
|
-
issuePrefixes: ["#"],
|
|
42725
|
-
referenceActions: [
|
|
42726
|
-
"close",
|
|
42727
|
-
"closes",
|
|
42728
|
-
"closed",
|
|
42729
|
-
"fix",
|
|
42730
|
-
"fixes",
|
|
42731
|
-
"fixed",
|
|
42732
|
-
"resolve",
|
|
42733
|
-
"resolves",
|
|
42734
|
-
"resolved"
|
|
42735
|
-
],
|
|
42736
|
-
headerPattern: /^(\w*)(?:\(([\w$@.\-*/ ]*)\))?: (.*)$/,
|
|
42737
|
-
headerCorrespondence: [
|
|
42738
|
-
"type",
|
|
42739
|
-
"scope",
|
|
42740
|
-
"subject"
|
|
42741
|
-
],
|
|
42742
|
-
revertPattern: /^Revert\s"([\s\S]*)"\s*This reverts commit (\w*)\./,
|
|
42743
|
-
revertCorrespondence: ["header", "hash"],
|
|
42744
|
-
fieldPattern: /^-(.*?)-$/
|
|
42745
|
-
};
|
|
42746
|
-
CommitParser2 = class {
|
|
42747
|
-
options;
|
|
42748
|
-
regexes;
|
|
42749
|
-
lines = [];
|
|
42750
|
-
lineIndex = 0;
|
|
42751
|
-
commit = createCommitObject2();
|
|
42752
|
-
constructor(options = {}) {
|
|
42753
|
-
this.options = {
|
|
42754
|
-
...defaultOptions3,
|
|
42755
|
-
...options
|
|
42756
|
-
};
|
|
42757
|
-
this.regexes = getParserRegexes2(this.options);
|
|
42758
|
-
}
|
|
42759
|
-
currentLine() {
|
|
42760
|
-
return this.lines[this.lineIndex];
|
|
42761
|
-
}
|
|
42762
|
-
nextLine() {
|
|
42763
|
-
return this.lines[this.lineIndex++];
|
|
42764
|
-
}
|
|
42765
|
-
isLineAvailable() {
|
|
42766
|
-
return this.lineIndex < this.lines.length;
|
|
42767
|
-
}
|
|
42768
|
-
parseReference(input, action) {
|
|
42769
|
-
const { regexes } = this;
|
|
42770
|
-
if (regexes.url.test(input)) {
|
|
42771
|
-
return null;
|
|
42772
|
-
}
|
|
42773
|
-
const matches = regexes.referenceParts.exec(input);
|
|
42774
|
-
if (!matches) {
|
|
42775
|
-
return null;
|
|
42776
|
-
}
|
|
42777
|
-
let [raw2, repository = null, prefix, issue] = matches;
|
|
42778
|
-
let owner = null;
|
|
42779
|
-
if (repository) {
|
|
42780
|
-
const slashIndex = repository.indexOf("/");
|
|
42781
|
-
if (slashIndex !== -1) {
|
|
42782
|
-
owner = repository.slice(0, slashIndex);
|
|
42783
|
-
repository = repository.slice(slashIndex + 1);
|
|
42784
|
-
}
|
|
42785
|
-
}
|
|
42786
|
-
return {
|
|
42787
|
-
raw: raw2,
|
|
42788
|
-
action,
|
|
42789
|
-
owner,
|
|
42790
|
-
repository,
|
|
42791
|
-
prefix,
|
|
42792
|
-
issue
|
|
42793
|
-
};
|
|
42794
|
-
}
|
|
42795
|
-
parseReferences(input) {
|
|
42796
|
-
const { regexes } = this;
|
|
42797
|
-
const regex = input.match(regexes.references) ? regexes.references : /()(.+)/gi;
|
|
42798
|
-
const references = [];
|
|
42799
|
-
let matches;
|
|
42800
|
-
let action;
|
|
42801
|
-
let sentence;
|
|
42802
|
-
let reference;
|
|
42803
|
-
while (true) {
|
|
42804
|
-
matches = regex.exec(input);
|
|
42805
|
-
if (!matches) {
|
|
42806
|
-
break;
|
|
42807
|
-
}
|
|
42808
|
-
action = matches[1] || null;
|
|
42809
|
-
sentence = matches[2] || "";
|
|
42810
|
-
while (true) {
|
|
42811
|
-
reference = this.parseReference(sentence, action);
|
|
42812
|
-
if (!reference) {
|
|
42813
|
-
break;
|
|
42814
|
-
}
|
|
42815
|
-
references.push(reference);
|
|
42816
|
-
}
|
|
42817
|
-
}
|
|
42818
|
-
return references;
|
|
42819
|
-
}
|
|
42820
|
-
skipEmptyLines() {
|
|
42821
|
-
let line = this.currentLine();
|
|
42822
|
-
while (line !== void 0 && !line.trim()) {
|
|
42823
|
-
this.nextLine();
|
|
42824
|
-
line = this.currentLine();
|
|
42825
|
-
}
|
|
42826
|
-
}
|
|
42827
|
-
parseMerge() {
|
|
42828
|
-
const { commit, options } = this;
|
|
42829
|
-
const correspondence = options.mergeCorrespondence || [];
|
|
42830
|
-
const merge2 = this.currentLine();
|
|
42831
|
-
const matches = merge2 && options.mergePattern ? merge2.match(options.mergePattern) : null;
|
|
42832
|
-
if (matches) {
|
|
42833
|
-
this.nextLine();
|
|
42834
|
-
commit.merge = matches[0] || null;
|
|
42835
|
-
assignMatchedCorrespondence2(commit, matches, correspondence);
|
|
42836
|
-
return true;
|
|
42837
|
-
}
|
|
42838
|
-
return false;
|
|
42839
|
-
}
|
|
42840
|
-
parseHeader(isMergeCommit) {
|
|
42841
|
-
if (isMergeCommit) {
|
|
42842
|
-
this.skipEmptyLines();
|
|
42843
|
-
}
|
|
42844
|
-
const { commit, options } = this;
|
|
42845
|
-
const correspondence = options.headerCorrespondence || [];
|
|
42846
|
-
const header = commit.header ?? this.nextLine();
|
|
42847
|
-
let matches = null;
|
|
42848
|
-
if (header) {
|
|
42849
|
-
if (options.breakingHeaderPattern) {
|
|
42850
|
-
matches = header.match(options.breakingHeaderPattern);
|
|
42851
|
-
}
|
|
42852
|
-
if (!matches && options.headerPattern) {
|
|
42853
|
-
matches = header.match(options.headerPattern);
|
|
42854
|
-
}
|
|
42855
|
-
}
|
|
42856
|
-
if (header) {
|
|
42857
|
-
commit.header = header;
|
|
42858
|
-
}
|
|
42859
|
-
if (matches) {
|
|
42860
|
-
assignMatchedCorrespondence2(commit, matches, correspondence);
|
|
42861
|
-
}
|
|
42862
|
-
}
|
|
42863
|
-
parseMeta() {
|
|
42864
|
-
const { options, commit } = this;
|
|
42865
|
-
if (!options.fieldPattern || !this.isLineAvailable()) {
|
|
42866
|
-
return false;
|
|
42867
|
-
}
|
|
42868
|
-
let matches;
|
|
42869
|
-
let field = null;
|
|
42870
|
-
let parsed = false;
|
|
42871
|
-
while (this.isLineAvailable()) {
|
|
42872
|
-
matches = this.currentLine().match(options.fieldPattern);
|
|
42873
|
-
if (matches) {
|
|
42874
|
-
field = matches[1] || null;
|
|
42875
|
-
this.nextLine();
|
|
42876
|
-
continue;
|
|
42877
|
-
}
|
|
42878
|
-
if (field) {
|
|
42879
|
-
parsed = true;
|
|
42880
|
-
commit[field] = appendLine2(commit[field], this.currentLine());
|
|
42881
|
-
this.nextLine();
|
|
42882
|
-
} else {
|
|
42883
|
-
break;
|
|
43156
|
+
return {
|
|
43157
|
+
dir,
|
|
43158
|
+
relativeDir: path__default.relative(directory, dir),
|
|
43159
|
+
packageJson
|
|
43160
|
+
};
|
|
43161
|
+
});
|
|
43162
|
+
return {
|
|
43163
|
+
tool: RushTool,
|
|
43164
|
+
packages,
|
|
43165
|
+
rootDir
|
|
43166
|
+
};
|
|
43167
|
+
} catch (err) {
|
|
43168
|
+
if (err && err.code === "ENOENT") {
|
|
43169
|
+
throw new InvalidMonorepoError(`Directory ${rootDir} is not a valid ${RushTool.type} monorepo root: missing rush.json`);
|
|
42884
43170
|
}
|
|
43171
|
+
throw err;
|
|
42885
43172
|
}
|
|
42886
|
-
return parsed;
|
|
42887
43173
|
}
|
|
42888
|
-
|
|
42889
|
-
|
|
42890
|
-
|
|
42891
|
-
|
|
42892
|
-
|
|
42893
|
-
|
|
42894
|
-
|
|
42895
|
-
|
|
42896
|
-
const note = {
|
|
42897
|
-
title: matches[1],
|
|
42898
|
-
text: matches[2]
|
|
42899
|
-
};
|
|
42900
|
-
commit.notes.push(note);
|
|
42901
|
-
commit.footer = appendLine2(commit.footer, this.currentLine());
|
|
42902
|
-
this.nextLine();
|
|
42903
|
-
while (this.isLineAvailable()) {
|
|
42904
|
-
if (this.parseMeta()) {
|
|
43174
|
+
};
|
|
43175
|
+
YarnTool = {
|
|
43176
|
+
type: "yarn",
|
|
43177
|
+
async isMonorepoRoot(directory) {
|
|
43178
|
+
try {
|
|
43179
|
+
const [pkgJson] = await Promise.all([readJson(directory, "package.json"), fsp__default.access(path__default.join(directory, "yarn.lock"), F_OK)]);
|
|
43180
|
+
if (pkgJson.workspaces) {
|
|
43181
|
+
if (Array.isArray(pkgJson.workspaces) || Array.isArray(pkgJson.workspaces.packages)) {
|
|
42905
43182
|
return true;
|
|
42906
43183
|
}
|
|
42907
|
-
|
|
43184
|
+
}
|
|
43185
|
+
} catch (err) {
|
|
43186
|
+
if (err && err.code === "ENOENT") {
|
|
43187
|
+
return false;
|
|
43188
|
+
}
|
|
43189
|
+
throw err;
|
|
43190
|
+
}
|
|
43191
|
+
return false;
|
|
43192
|
+
},
|
|
43193
|
+
isMonorepoRootSync(directory) {
|
|
43194
|
+
try {
|
|
43195
|
+
fs__default.accessSync(path__default.join(directory, "yarn.lock"), F_OK);
|
|
43196
|
+
const pkgJson = readJsonSync(directory, "package.json");
|
|
43197
|
+
if (pkgJson.workspaces) {
|
|
43198
|
+
if (Array.isArray(pkgJson.workspaces) || Array.isArray(pkgJson.workspaces.packages)) {
|
|
42908
43199
|
return true;
|
|
42909
43200
|
}
|
|
42910
|
-
references = this.parseReferences(this.currentLine());
|
|
42911
|
-
if (references.length) {
|
|
42912
|
-
commit.references.push(...references);
|
|
42913
|
-
} else {
|
|
42914
|
-
note.text = appendLine2(note.text, this.currentLine());
|
|
42915
|
-
}
|
|
42916
|
-
commit.footer = appendLine2(commit.footer, this.currentLine());
|
|
42917
|
-
this.nextLine();
|
|
42918
|
-
if (references.length) {
|
|
42919
|
-
break;
|
|
42920
|
-
}
|
|
42921
43201
|
}
|
|
42922
|
-
|
|
43202
|
+
} catch (err) {
|
|
43203
|
+
if (err && err.code === "ENOENT") {
|
|
43204
|
+
return false;
|
|
43205
|
+
}
|
|
43206
|
+
throw err;
|
|
42923
43207
|
}
|
|
42924
43208
|
return false;
|
|
42925
|
-
}
|
|
42926
|
-
|
|
42927
|
-
const
|
|
42928
|
-
|
|
42929
|
-
|
|
42930
|
-
|
|
42931
|
-
|
|
42932
|
-
|
|
42933
|
-
|
|
42934
|
-
|
|
42935
|
-
|
|
42936
|
-
|
|
42937
|
-
|
|
42938
|
-
|
|
42939
|
-
|
|
42940
|
-
|
|
42941
|
-
|
|
42942
|
-
|
|
42943
|
-
|
|
42944
|
-
if (!options.breakingHeaderPattern || commit.notes.length || !commit.header) {
|
|
42945
|
-
return;
|
|
42946
|
-
}
|
|
42947
|
-
const matches = commit.header.match(options.breakingHeaderPattern);
|
|
42948
|
-
if (matches) {
|
|
42949
|
-
commit.notes.push({
|
|
42950
|
-
title: "BREAKING CHANGE",
|
|
42951
|
-
text: matches[3]
|
|
42952
|
-
});
|
|
42953
|
-
}
|
|
42954
|
-
}
|
|
42955
|
-
parseMentions(input) {
|
|
42956
|
-
const { commit, regexes } = this;
|
|
42957
|
-
let matches;
|
|
42958
|
-
for (; ; ) {
|
|
42959
|
-
matches = regexes.mentions.exec(input);
|
|
42960
|
-
if (!matches) {
|
|
42961
|
-
break;
|
|
43209
|
+
},
|
|
43210
|
+
async getPackages(directory) {
|
|
43211
|
+
const rootDir = path__default.resolve(directory);
|
|
43212
|
+
try {
|
|
43213
|
+
const pkgJson = await readJson(rootDir, "package.json");
|
|
43214
|
+
const packageGlobs = Array.isArray(pkgJson.workspaces) ? pkgJson.workspaces : pkgJson.workspaces.packages;
|
|
43215
|
+
return {
|
|
43216
|
+
tool: YarnTool,
|
|
43217
|
+
packages: await expandPackageGlobs(packageGlobs, rootDir),
|
|
43218
|
+
rootPackage: {
|
|
43219
|
+
dir: rootDir,
|
|
43220
|
+
relativeDir: ".",
|
|
43221
|
+
packageJson: pkgJson
|
|
43222
|
+
},
|
|
43223
|
+
rootDir
|
|
43224
|
+
};
|
|
43225
|
+
} catch (err) {
|
|
43226
|
+
if (err && err.code === "ENOENT") {
|
|
43227
|
+
throw new InvalidMonorepoError(`Directory ${rootDir} is not a valid ${YarnTool.type} monorepo root`);
|
|
42962
43228
|
}
|
|
42963
|
-
|
|
42964
|
-
}
|
|
42965
|
-
}
|
|
42966
|
-
parseRevert(input) {
|
|
42967
|
-
const { commit, options } = this;
|
|
42968
|
-
const correspondence = options.revertCorrespondence || [];
|
|
42969
|
-
const matches = options.revertPattern ? input.match(options.revertPattern) : null;
|
|
42970
|
-
if (matches) {
|
|
42971
|
-
commit.revert = assignMatchedCorrespondence2({}, matches, correspondence);
|
|
42972
|
-
}
|
|
42973
|
-
}
|
|
42974
|
-
cleanupCommit() {
|
|
42975
|
-
const { commit } = this;
|
|
42976
|
-
if (commit.body) {
|
|
42977
|
-
commit.body = trimNewLines2(commit.body);
|
|
42978
|
-
}
|
|
42979
|
-
if (commit.footer) {
|
|
42980
|
-
commit.footer = trimNewLines2(commit.footer);
|
|
42981
|
-
}
|
|
42982
|
-
commit.notes.forEach((note) => {
|
|
42983
|
-
note.text = trimNewLines2(note.text);
|
|
42984
|
-
});
|
|
42985
|
-
}
|
|
42986
|
-
/**
|
|
42987
|
-
* Parse commit message string into an object.
|
|
42988
|
-
* @param input - Commit message string.
|
|
42989
|
-
* @returns Commit object.
|
|
42990
|
-
*/
|
|
42991
|
-
parse(input) {
|
|
42992
|
-
if (!input.trim()) {
|
|
42993
|
-
throw new TypeError("Expected a raw commit");
|
|
42994
|
-
}
|
|
42995
|
-
const { commentChar } = this.options;
|
|
42996
|
-
const commentFilter = getCommentFilter2(commentChar);
|
|
42997
|
-
const rawLines = trimNewLines2(input).split(/\r?\n/);
|
|
42998
|
-
const lines = commentChar ? truncateToScissor2(rawLines, commentChar).filter((line) => commentFilter(line) && gpgFilter2(line)) : rawLines.filter((line) => gpgFilter2(line));
|
|
42999
|
-
const commit = createCommitObject2();
|
|
43000
|
-
this.lines = lines;
|
|
43001
|
-
this.lineIndex = 0;
|
|
43002
|
-
this.commit = commit;
|
|
43003
|
-
const isMergeCommit = this.parseMerge();
|
|
43004
|
-
this.parseHeader(isMergeCommit);
|
|
43005
|
-
if (commit.header) {
|
|
43006
|
-
commit.references = this.parseReferences(commit.header);
|
|
43229
|
+
throw err;
|
|
43007
43230
|
}
|
|
43008
|
-
|
|
43009
|
-
|
|
43010
|
-
|
|
43011
|
-
|
|
43012
|
-
|
|
43013
|
-
|
|
43014
|
-
|
|
43015
|
-
|
|
43231
|
+
},
|
|
43232
|
+
getPackagesSync(directory) {
|
|
43233
|
+
const rootDir = path__default.resolve(directory);
|
|
43234
|
+
try {
|
|
43235
|
+
const pkgJson = readJsonSync(rootDir, "package.json");
|
|
43236
|
+
const packageGlobs = Array.isArray(pkgJson.workspaces) ? pkgJson.workspaces : pkgJson.workspaces.packages;
|
|
43237
|
+
return {
|
|
43238
|
+
tool: YarnTool,
|
|
43239
|
+
packages: expandPackageGlobsSync(packageGlobs, rootDir),
|
|
43240
|
+
rootPackage: {
|
|
43241
|
+
dir: rootDir,
|
|
43242
|
+
relativeDir: ".",
|
|
43243
|
+
packageJson: pkgJson
|
|
43244
|
+
},
|
|
43245
|
+
rootDir
|
|
43246
|
+
};
|
|
43247
|
+
} catch (err) {
|
|
43248
|
+
if (err && err.code === "ENOENT") {
|
|
43249
|
+
throw new InvalidMonorepoError(`Directory ${rootDir} is not a valid ${YarnTool.type} monorepo root`);
|
|
43016
43250
|
}
|
|
43251
|
+
throw err;
|
|
43017
43252
|
}
|
|
43018
|
-
this.parseBreakingHeader();
|
|
43019
|
-
this.parseMentions(input);
|
|
43020
|
-
this.parseRevert(input);
|
|
43021
|
-
this.cleanupCommit();
|
|
43022
|
-
return commit;
|
|
43023
43253
|
}
|
|
43024
43254
|
};
|
|
43025
43255
|
}
|
|
43026
43256
|
});
|
|
43027
43257
|
|
|
43028
|
-
//
|
|
43029
|
-
|
|
43030
|
-
|
|
43031
|
-
|
|
43032
|
-
|
|
43033
|
-
|
|
43034
|
-
|
|
43035
|
-
|
|
43036
|
-
|
|
43037
|
-
|
|
43038
|
-
|
|
43039
|
-
|
|
43040
|
-
|
|
43041
|
-
|
|
43042
|
-
|
|
43043
|
-
|
|
43044
|
-
aValue = aValue.trim();
|
|
43045
|
-
}
|
|
43046
|
-
if (typeof bValue === "string") {
|
|
43047
|
-
bValue = bValue.trim();
|
|
43048
|
-
}
|
|
43049
|
-
if (aValue !== bValue) {
|
|
43050
|
-
return false;
|
|
43258
|
+
// ../../node_modules/.pnpm/@manypkg+find-root@3.1.0/node_modules/@manypkg/find-root/dist/manypkg-find-root.js
|
|
43259
|
+
import fs14 from "fs";
|
|
43260
|
+
import fsp2 from "fs/promises";
|
|
43261
|
+
import path15 from "path";
|
|
43262
|
+
function findRootSync(cwd3, options = {}) {
|
|
43263
|
+
let monorepoRoot;
|
|
43264
|
+
const tools = options.tools || DEFAULT_TOOLS;
|
|
43265
|
+
findUpSync((directory) => {
|
|
43266
|
+
for (const tool of tools) {
|
|
43267
|
+
if (tool.isMonorepoRootSync(directory)) {
|
|
43268
|
+
monorepoRoot = {
|
|
43269
|
+
tool: tool.type,
|
|
43270
|
+
rootDir: directory
|
|
43271
|
+
};
|
|
43272
|
+
return directory;
|
|
43273
|
+
}
|
|
43051
43274
|
}
|
|
43275
|
+
}, cwd3);
|
|
43276
|
+
if (monorepoRoot) {
|
|
43277
|
+
return monorepoRoot;
|
|
43052
43278
|
}
|
|
43053
|
-
|
|
43054
|
-
|
|
43055
|
-
function findRevertCommit2(commit, reverts) {
|
|
43056
|
-
if (!reverts.size) {
|
|
43057
|
-
return null;
|
|
43279
|
+
if (!tools.includes(RootTool)) {
|
|
43280
|
+
throw new NoMatchingMonorepoFound(cwd3);
|
|
43058
43281
|
}
|
|
43059
|
-
const
|
|
43060
|
-
|
|
43061
|
-
|
|
43062
|
-
|
|
43063
|
-
|
|
43282
|
+
const rootDir = findUpSync((directory) => {
|
|
43283
|
+
const exists2 = fs14.existsSync(path15.join(directory, "package.json"));
|
|
43284
|
+
return exists2 ? directory : void 0;
|
|
43285
|
+
}, cwd3);
|
|
43286
|
+
if (!rootDir) {
|
|
43287
|
+
throw new NoPkgJsonFound(cwd3);
|
|
43064
43288
|
}
|
|
43065
|
-
return
|
|
43289
|
+
return {
|
|
43290
|
+
tool: RootTool.type,
|
|
43291
|
+
rootDir
|
|
43292
|
+
};
|
|
43066
43293
|
}
|
|
43067
|
-
|
|
43068
|
-
|
|
43069
|
-
|
|
43070
|
-
|
|
43294
|
+
function findUpSync(matcher, cwd3) {
|
|
43295
|
+
let directory = path15.resolve(cwd3);
|
|
43296
|
+
const {
|
|
43297
|
+
root
|
|
43298
|
+
} = path15.parse(directory);
|
|
43299
|
+
while (directory && directory !== root) {
|
|
43300
|
+
const filePath = matcher(directory);
|
|
43301
|
+
if (filePath) {
|
|
43302
|
+
return path15.resolve(directory, filePath);
|
|
43303
|
+
}
|
|
43304
|
+
directory = path15.dirname(directory);
|
|
43071
43305
|
}
|
|
43072
|
-
yield* filter3.flush();
|
|
43073
43306
|
}
|
|
43074
|
-
|
|
43075
|
-
|
|
43076
|
-
|
|
43077
|
-
|
|
43307
|
+
var DEFAULT_TOOLS, NoPkgJsonFound, NoMatchingMonorepoFound;
|
|
43308
|
+
var init_manypkg_find_root = __esm({
|
|
43309
|
+
"../../node_modules/.pnpm/@manypkg+find-root@3.1.0/node_modules/@manypkg/find-root/dist/manypkg-find-root.js"() {
|
|
43310
|
+
"use strict";
|
|
43311
|
+
init_manypkg_tools();
|
|
43312
|
+
DEFAULT_TOOLS = [YarnTool, PnpmTool, NpmTool, BunTool, LernaTool, RushTool, RootTool];
|
|
43313
|
+
NoPkgJsonFound = class extends Error {
|
|
43314
|
+
constructor(directory) {
|
|
43315
|
+
super(`No package.json could be found upwards from directory ${directory}`);
|
|
43316
|
+
this.directory = directory;
|
|
43317
|
+
}
|
|
43318
|
+
};
|
|
43319
|
+
NoMatchingMonorepoFound = class extends Error {
|
|
43320
|
+
constructor(directory) {
|
|
43321
|
+
super(`No monorepo matching the list of supported monorepos could be found upwards from directory ${directory}`);
|
|
43322
|
+
this.directory = directory;
|
|
43323
|
+
}
|
|
43324
|
+
};
|
|
43078
43325
|
}
|
|
43079
|
-
|
|
43326
|
+
});
|
|
43327
|
+
|
|
43328
|
+
// ../../node_modules/.pnpm/@manypkg+get-packages@3.1.0/node_modules/@manypkg/get-packages/dist/manypkg-get-packages.js
|
|
43329
|
+
import path16 from "path";
|
|
43330
|
+
function getPackagesSync(dir, options) {
|
|
43331
|
+
const monorepoRoot = findRootSync(dir, options);
|
|
43332
|
+
const tools = options?.tools || DEFAULT_TOOLS;
|
|
43333
|
+
const tool = tools.find((t) => t.type === monorepoRoot.tool);
|
|
43334
|
+
if (!tool) throw new Error(`Could not find ${monorepoRoot.tool} tool`);
|
|
43335
|
+
const packages = tool.getPackagesSync(monorepoRoot.rootDir);
|
|
43336
|
+
validatePackages(packages);
|
|
43337
|
+
return packages;
|
|
43080
43338
|
}
|
|
43081
|
-
function
|
|
43082
|
-
|
|
43339
|
+
function validatePackages(packages) {
|
|
43340
|
+
const pkgJsonsMissingNameField = [];
|
|
43341
|
+
for (const pkg of packages.packages) {
|
|
43342
|
+
if (!pkg.packageJson.name) {
|
|
43343
|
+
pkgJsonsMissingNameField.push(path16.join(pkg.relativeDir, "package.json"));
|
|
43344
|
+
}
|
|
43345
|
+
}
|
|
43346
|
+
if (pkgJsonsMissingNameField.length > 0) {
|
|
43347
|
+
pkgJsonsMissingNameField.sort();
|
|
43348
|
+
throw new PackageJsonMissingNameError(pkgJsonsMissingNameField);
|
|
43349
|
+
}
|
|
43083
43350
|
}
|
|
43084
|
-
var
|
|
43085
|
-
var
|
|
43086
|
-
"
|
|
43351
|
+
var PackageJsonMissingNameError;
|
|
43352
|
+
var init_manypkg_get_packages = __esm({
|
|
43353
|
+
"../../node_modules/.pnpm/@manypkg+get-packages@3.1.0/node_modules/@manypkg/get-packages/dist/manypkg-get-packages.js"() {
|
|
43087
43354
|
"use strict";
|
|
43088
|
-
|
|
43089
|
-
|
|
43090
|
-
|
|
43091
|
-
|
|
43092
|
-
|
|
43093
|
-
|
|
43094
|
-
* @yields Commit
|
|
43095
|
-
*/
|
|
43096
|
-
*process(commit) {
|
|
43097
|
-
const { hold } = this;
|
|
43098
|
-
const revertCommit = findRevertCommit2(commit, hold);
|
|
43099
|
-
if (revertCommit) {
|
|
43100
|
-
hold.delete(revertCommit);
|
|
43101
|
-
this.holdRevertsCount--;
|
|
43102
|
-
return;
|
|
43103
|
-
}
|
|
43104
|
-
if (commit.revert) {
|
|
43105
|
-
hold.add(commit);
|
|
43106
|
-
this.holdRevertsCount++;
|
|
43107
|
-
return;
|
|
43108
|
-
}
|
|
43109
|
-
if (this.holdRevertsCount > 0) {
|
|
43110
|
-
hold.add(commit);
|
|
43111
|
-
} else {
|
|
43112
|
-
if (hold.size) {
|
|
43113
|
-
yield* hold;
|
|
43114
|
-
hold.clear();
|
|
43115
|
-
}
|
|
43116
|
-
yield commit;
|
|
43117
|
-
}
|
|
43118
|
-
}
|
|
43119
|
-
/**
|
|
43120
|
-
* Flush all held commits
|
|
43121
|
-
* @yields Held commits
|
|
43122
|
-
*/
|
|
43123
|
-
*flush() {
|
|
43124
|
-
const { hold } = this;
|
|
43125
|
-
if (hold.size) {
|
|
43126
|
-
yield* hold;
|
|
43127
|
-
hold.clear();
|
|
43128
|
-
}
|
|
43355
|
+
init_manypkg_find_root();
|
|
43356
|
+
PackageJsonMissingNameError = class extends Error {
|
|
43357
|
+
constructor(directories) {
|
|
43358
|
+
super(`The following package.jsons are missing the "name" field:
|
|
43359
|
+
${directories.join("\n")}`);
|
|
43360
|
+
this.directories = directories;
|
|
43129
43361
|
}
|
|
43130
43362
|
};
|
|
43131
43363
|
}
|
|
@@ -43156,9 +43388,9 @@ var init_baseError_DQHIJACF = __esm({
|
|
|
43156
43388
|
}
|
|
43157
43389
|
});
|
|
43158
43390
|
|
|
43159
|
-
// ../version/dist/chunk-
|
|
43391
|
+
// ../version/dist/chunk-UBCKZYTO.js
|
|
43160
43392
|
import * as fs15 from "fs";
|
|
43161
|
-
import * as
|
|
43393
|
+
import * as path17 from "path";
|
|
43162
43394
|
import * as TOML3 from "smol-toml";
|
|
43163
43395
|
import * as fs34 from "fs";
|
|
43164
43396
|
import * as path34 from "path";
|
|
@@ -43169,28 +43401,26 @@ import * as os3 from "os";
|
|
|
43169
43401
|
import * as path23 from "path";
|
|
43170
43402
|
import fs44 from "fs";
|
|
43171
43403
|
import { cwd } from "process";
|
|
43172
|
-
import { spawn as spawn2 } from "child_process";
|
|
43173
|
-
import path44 from "path";
|
|
43174
43404
|
import chalk5 from "chalk";
|
|
43175
43405
|
import fs63 from "fs";
|
|
43176
|
-
import path64 from "path";
|
|
43177
|
-
import fs54 from "fs";
|
|
43178
43406
|
import path54 from "path";
|
|
43407
|
+
import fs54 from "fs";
|
|
43408
|
+
import path44 from "path";
|
|
43179
43409
|
import * as TOML23 from "smol-toml";
|
|
43180
43410
|
import * as fs93 from "fs";
|
|
43181
|
-
import
|
|
43411
|
+
import path73 from "path";
|
|
43182
43412
|
import fs83 from "fs";
|
|
43183
43413
|
import fs103 from "fs";
|
|
43184
|
-
import * as
|
|
43414
|
+
import * as path83 from "path";
|
|
43185
43415
|
import { cwd as cwd2 } from "process";
|
|
43186
|
-
import
|
|
43416
|
+
import path92 from "path";
|
|
43187
43417
|
import { Command as Command3 } from "commander";
|
|
43188
43418
|
function parseCargoToml2(cargoPath) {
|
|
43189
43419
|
const content = fs15.readFileSync(cargoPath, "utf-8");
|
|
43190
43420
|
return TOML3.parse(content);
|
|
43191
43421
|
}
|
|
43192
43422
|
function isCargoToml(filePath) {
|
|
43193
|
-
return
|
|
43423
|
+
return path17.basename(filePath) === "Cargo.toml";
|
|
43194
43424
|
}
|
|
43195
43425
|
function parseJsonc3(content) {
|
|
43196
43426
|
if (content.length > MAX_JSONC_LENGTH3) {
|
|
@@ -43399,14 +43629,14 @@ function enableJsonOutput(dryRun = false) {
|
|
|
43399
43629
|
_jsonData.commitMessage = void 0;
|
|
43400
43630
|
_pendingWrites.length = 0;
|
|
43401
43631
|
}
|
|
43402
|
-
function recordPendingWrite(
|
|
43632
|
+
function recordPendingWrite(path102, content) {
|
|
43403
43633
|
if (!_jsonOutputMode) return;
|
|
43404
|
-
_pendingWrites.push({ path:
|
|
43634
|
+
_pendingWrites.push({ path: path102, content });
|
|
43405
43635
|
}
|
|
43406
43636
|
function flushPendingWrites() {
|
|
43407
43637
|
try {
|
|
43408
|
-
for (const { path:
|
|
43409
|
-
fs44.writeFileSync(
|
|
43638
|
+
for (const { path: path102, content } of _pendingWrites) {
|
|
43639
|
+
fs44.writeFileSync(path102, content);
|
|
43410
43640
|
}
|
|
43411
43641
|
} finally {
|
|
43412
43642
|
_pendingWrites.length = 0;
|
|
@@ -43447,167 +43677,6 @@ function printJsonOutput() {
|
|
|
43447
43677
|
console.log(JSON.stringify(_jsonData, null, 2));
|
|
43448
43678
|
}
|
|
43449
43679
|
}
|
|
43450
|
-
function formatArgs2(...args) {
|
|
43451
|
-
return args.reduce((finalArgs, arg) => {
|
|
43452
|
-
if (arg) {
|
|
43453
|
-
finalArgs.push(String(arg));
|
|
43454
|
-
}
|
|
43455
|
-
return finalArgs;
|
|
43456
|
-
}, []);
|
|
43457
|
-
}
|
|
43458
|
-
function toArray5(value) {
|
|
43459
|
-
return Array.isArray(value) ? value : [value];
|
|
43460
|
-
}
|
|
43461
|
-
async function toArray22(iterable) {
|
|
43462
|
-
const result = [];
|
|
43463
|
-
for await (const item of iterable) {
|
|
43464
|
-
result.push(item);
|
|
43465
|
-
}
|
|
43466
|
-
return result;
|
|
43467
|
-
}
|
|
43468
|
-
async function concatBufferStream2(iterable) {
|
|
43469
|
-
return Buffer.concat(await toArray22(iterable));
|
|
43470
|
-
}
|
|
43471
|
-
async function firstFromStream2(stream) {
|
|
43472
|
-
for await (const tag of stream) {
|
|
43473
|
-
return tag;
|
|
43474
|
-
}
|
|
43475
|
-
return null;
|
|
43476
|
-
}
|
|
43477
|
-
async function* splitStream2(stream, separator) {
|
|
43478
|
-
let chunk;
|
|
43479
|
-
let payload;
|
|
43480
|
-
let buffer = "";
|
|
43481
|
-
for await (chunk of stream) {
|
|
43482
|
-
buffer += chunk.toString();
|
|
43483
|
-
if (buffer.includes(separator)) {
|
|
43484
|
-
payload = buffer.split(separator);
|
|
43485
|
-
buffer = payload.pop() || "";
|
|
43486
|
-
yield* payload;
|
|
43487
|
-
}
|
|
43488
|
-
}
|
|
43489
|
-
if (buffer) {
|
|
43490
|
-
yield buffer;
|
|
43491
|
-
}
|
|
43492
|
-
}
|
|
43493
|
-
async function exitCode2(process2) {
|
|
43494
|
-
if (process2.exitCode !== null) {
|
|
43495
|
-
return process2.exitCode;
|
|
43496
|
-
}
|
|
43497
|
-
return new Promise((resolve22) => process2.once("close", resolve22));
|
|
43498
|
-
}
|
|
43499
|
-
async function catchProcessError2(process2) {
|
|
43500
|
-
let error3 = new Error("Process exited with non-zero code");
|
|
43501
|
-
let stderr = "";
|
|
43502
|
-
process2.on("error", (err) => {
|
|
43503
|
-
error3 = err;
|
|
43504
|
-
});
|
|
43505
|
-
if (process2.stderr) {
|
|
43506
|
-
let chunk;
|
|
43507
|
-
for await (chunk of process2.stderr) {
|
|
43508
|
-
stderr += chunk.toString();
|
|
43509
|
-
}
|
|
43510
|
-
}
|
|
43511
|
-
const code = await exitCode2(process2);
|
|
43512
|
-
if (stderr) {
|
|
43513
|
-
error3 = new Error(stderr);
|
|
43514
|
-
}
|
|
43515
|
-
return code ? error3 : null;
|
|
43516
|
-
}
|
|
43517
|
-
async function* outputStream2(process2) {
|
|
43518
|
-
const { stdout } = process2;
|
|
43519
|
-
const errorPromise = catchProcessError2(process2);
|
|
43520
|
-
if (stdout) {
|
|
43521
|
-
stdout.on("error", (err) => {
|
|
43522
|
-
if (err.name === "AbortError" && process2.exitCode === null) {
|
|
43523
|
-
process2.kill("SIGKILL");
|
|
43524
|
-
}
|
|
43525
|
-
});
|
|
43526
|
-
yield* stdout;
|
|
43527
|
-
}
|
|
43528
|
-
const error3 = await errorPromise;
|
|
43529
|
-
if (error3) {
|
|
43530
|
-
throw error3;
|
|
43531
|
-
}
|
|
43532
|
-
}
|
|
43533
|
-
function output2(process2) {
|
|
43534
|
-
return concatBufferStream2(outputStream2(process2));
|
|
43535
|
-
}
|
|
43536
|
-
function resolvePresetNameVariants(preset) {
|
|
43537
|
-
if (path44.isAbsolute(preset)) {
|
|
43538
|
-
return [preset];
|
|
43539
|
-
}
|
|
43540
|
-
let scope = "";
|
|
43541
|
-
let name = preset.toLocaleLowerCase();
|
|
43542
|
-
if (preset.startsWith("@")) {
|
|
43543
|
-
const parts = preset.split("/");
|
|
43544
|
-
scope = `${parts.shift()}/`;
|
|
43545
|
-
if (scope === "@conventional-changelog/") {
|
|
43546
|
-
return [preset];
|
|
43547
|
-
}
|
|
43548
|
-
name = parts.join("/");
|
|
43549
|
-
}
|
|
43550
|
-
if (!name.startsWith("conventional-changelog-")) {
|
|
43551
|
-
name = `conventional-changelog-${name}`;
|
|
43552
|
-
}
|
|
43553
|
-
const altPreset = `${scope}${name}`;
|
|
43554
|
-
if (altPreset !== preset) {
|
|
43555
|
-
return [altPreset, preset];
|
|
43556
|
-
}
|
|
43557
|
-
return [preset];
|
|
43558
|
-
}
|
|
43559
|
-
function getModuleDefaultExport(module2) {
|
|
43560
|
-
if (("__esModule" in module2 || Object.getPrototypeOf(module2) === null) && "default" in module2) {
|
|
43561
|
-
return module2.default;
|
|
43562
|
-
}
|
|
43563
|
-
return module2;
|
|
43564
|
-
}
|
|
43565
|
-
async function loadWithFallbacks(moduleLoader, variants) {
|
|
43566
|
-
let error3 = null;
|
|
43567
|
-
for (const variant of variants) {
|
|
43568
|
-
try {
|
|
43569
|
-
return getModuleDefaultExport(await moduleLoader(variant));
|
|
43570
|
-
} catch (err) {
|
|
43571
|
-
if (!error3) {
|
|
43572
|
-
error3 = err;
|
|
43573
|
-
}
|
|
43574
|
-
}
|
|
43575
|
-
}
|
|
43576
|
-
throw error3;
|
|
43577
|
-
}
|
|
43578
|
-
function createPresetLoader(moduleLoader) {
|
|
43579
|
-
return async function loadPreset2(presetOrParams) {
|
|
43580
|
-
let preset = "";
|
|
43581
|
-
let params = null;
|
|
43582
|
-
if (typeof presetOrParams === "string") {
|
|
43583
|
-
preset = presetOrParams;
|
|
43584
|
-
} else if (typeof presetOrParams === "object" && typeof presetOrParams.name === "string") {
|
|
43585
|
-
preset = presetOrParams.name;
|
|
43586
|
-
params = presetOrParams;
|
|
43587
|
-
} else {
|
|
43588
|
-
throw Error("Preset must be string or object with property `name`");
|
|
43589
|
-
}
|
|
43590
|
-
const presetNameVariants = resolvePresetNameVariants(preset);
|
|
43591
|
-
let createPreset = null;
|
|
43592
|
-
try {
|
|
43593
|
-
createPreset = await loadWithFallbacks(moduleLoader, presetNameVariants);
|
|
43594
|
-
} catch (err) {
|
|
43595
|
-
throw new Error(`Unable to load the "${preset}" preset. Please make sure it's installed.`, {
|
|
43596
|
-
cause: err
|
|
43597
|
-
});
|
|
43598
|
-
}
|
|
43599
|
-
if (typeof createPreset !== "function") {
|
|
43600
|
-
throw new Error(`The "${preset}" preset does not export a function. Maybe you are using an old version of the preset. Please upgrade.`);
|
|
43601
|
-
}
|
|
43602
|
-
return params ? await createPreset(params) : await createPreset();
|
|
43603
|
-
};
|
|
43604
|
-
}
|
|
43605
|
-
function isIterable2(value) {
|
|
43606
|
-
return value !== null && (typeof value[Symbol.iterator] === "function" || typeof value[Symbol.asyncIterator] === "function");
|
|
43607
|
-
}
|
|
43608
|
-
function bindLogNamespace(namespace, logger) {
|
|
43609
|
-
return (messages) => logger(namespace, messages);
|
|
43610
|
-
}
|
|
43611
43680
|
function getCurrentBranch() {
|
|
43612
43681
|
const result = execSync("git", ["rev-parse", "--abbrev-ref", "HEAD"]);
|
|
43613
43682
|
return result.toString().trim();
|
|
@@ -43827,7 +43896,7 @@ function getCargoInfo(cargoPath) {
|
|
|
43827
43896
|
name: cargo.package.name,
|
|
43828
43897
|
version: cargo.package.version || "0.0.0",
|
|
43829
43898
|
path: cargoPath,
|
|
43830
|
-
dir:
|
|
43899
|
+
dir: path44.dirname(cargoPath),
|
|
43831
43900
|
content: cargo
|
|
43832
43901
|
};
|
|
43833
43902
|
} catch (error3) {
|
|
@@ -43868,8 +43937,8 @@ function updateCargoVersion2(cargoPath, version, dryRun = false) {
|
|
|
43868
43937
|
}
|
|
43869
43938
|
}
|
|
43870
43939
|
function getVersionFromManifests(packageDir) {
|
|
43871
|
-
const packageJsonPath =
|
|
43872
|
-
const cargoTomlPath =
|
|
43940
|
+
const packageJsonPath = path54.join(packageDir, "package.json");
|
|
43941
|
+
const cargoTomlPath = path54.join(packageDir, "Cargo.toml");
|
|
43873
43942
|
if (fs63.existsSync(packageJsonPath)) {
|
|
43874
43943
|
try {
|
|
43875
43944
|
const packageJson = JSON.parse(fs63.readFileSync(packageJsonPath, "utf-8"));
|
|
@@ -44273,8 +44342,8 @@ async function calculateVersion(config, options) {
|
|
|
44273
44342
|
function extractAllChangelogEntriesWithHash(projectDir, revisionRange) {
|
|
44274
44343
|
try {
|
|
44275
44344
|
const args = ["log", revisionRange, "--pretty=format:%H|||%B---COMMIT_DELIMITER---", "--no-merges"];
|
|
44276
|
-
const
|
|
44277
|
-
const commits =
|
|
44345
|
+
const output3 = execSync("git", args, { cwd: projectDir, encoding: "utf8" }).toString();
|
|
44346
|
+
const commits = output3.split("---COMMIT_DELIMITER---").filter((commit) => commit.trim() !== "");
|
|
44278
44347
|
return commits.map((commit) => {
|
|
44279
44348
|
const [hash, ...messageParts] = commit.split("|||");
|
|
44280
44349
|
const message = messageParts.join("|||").trim();
|
|
@@ -44292,14 +44361,14 @@ function extractAllChangelogEntriesWithHash(projectDir, revisionRange) {
|
|
|
44292
44361
|
}
|
|
44293
44362
|
function commitTouchesAnyPackage(projectDir, commitHash, packageDirs, sharedPackageDirs = []) {
|
|
44294
44363
|
try {
|
|
44295
|
-
const
|
|
44364
|
+
const output3 = execSync("git", ["diff-tree", "--no-commit-id", "--name-only", "-r", commitHash], {
|
|
44296
44365
|
cwd: projectDir,
|
|
44297
44366
|
encoding: "utf8"
|
|
44298
44367
|
}).toString().trim();
|
|
44299
|
-
if (!
|
|
44368
|
+
if (!output3) {
|
|
44300
44369
|
return false;
|
|
44301
44370
|
}
|
|
44302
|
-
const changedFiles =
|
|
44371
|
+
const changedFiles = output3.split("\n");
|
|
44303
44372
|
return changedFiles.some((file) => {
|
|
44304
44373
|
return packageDirs.some((pkgDir) => {
|
|
44305
44374
|
if (sharedPackageDirs.some((sharedDir) => pkgDir.includes(sharedDir))) {
|
|
@@ -44346,8 +44415,8 @@ function extractCommitsFromGitLog(projectDir, revisionRange, filterToPath) {
|
|
|
44346
44415
|
if (filterToPath) {
|
|
44347
44416
|
args.push("--", ".");
|
|
44348
44417
|
}
|
|
44349
|
-
const
|
|
44350
|
-
const commits =
|
|
44418
|
+
const output3 = execSync("git", args, { cwd: projectDir, encoding: "utf8" }).toString();
|
|
44419
|
+
const commits = output3.split("---COMMIT_DELIMITER---").filter((commit) => commit.trim() !== "");
|
|
44351
44420
|
return commits.map((commit) => parseCommitMessage(commit)).filter((entry) => entry !== null);
|
|
44352
44421
|
} catch (error3) {
|
|
44353
44422
|
const errorMessage = error3 instanceof Error ? error3.message : String(error3);
|
|
@@ -44506,14 +44575,14 @@ function updateCargoFiles(packageDir, version, cargoConfig, dryRun = false) {
|
|
|
44506
44575
|
const cargoPaths = cargoConfig?.paths;
|
|
44507
44576
|
if (cargoPaths && cargoPaths.length > 0) {
|
|
44508
44577
|
for (const cargoPath of cargoPaths) {
|
|
44509
|
-
const resolvedCargoPath =
|
|
44578
|
+
const resolvedCargoPath = path83.resolve(packageDir, cargoPath, "Cargo.toml");
|
|
44510
44579
|
if (fs103.existsSync(resolvedCargoPath)) {
|
|
44511
44580
|
updatePackageVersion(resolvedCargoPath, version, dryRun);
|
|
44512
44581
|
updatedFiles.push(resolvedCargoPath);
|
|
44513
44582
|
}
|
|
44514
44583
|
}
|
|
44515
44584
|
} else {
|
|
44516
|
-
const cargoTomlPath =
|
|
44585
|
+
const cargoTomlPath = path83.join(packageDir, "Cargo.toml");
|
|
44517
44586
|
if (fs103.existsSync(cargoTomlPath)) {
|
|
44518
44587
|
updatePackageVersion(cargoTomlPath, version, dryRun);
|
|
44519
44588
|
updatedFiles.push(cargoTomlPath);
|
|
@@ -44594,7 +44663,7 @@ function createSyncStrategy(config) {
|
|
|
44594
44663
|
const processedPaths = /* @__PURE__ */ new Set();
|
|
44595
44664
|
try {
|
|
44596
44665
|
if (packages.root) {
|
|
44597
|
-
const rootPkgPath =
|
|
44666
|
+
const rootPkgPath = path83.join(packages.root, "package.json");
|
|
44598
44667
|
if (fs103.existsSync(rootPkgPath)) {
|
|
44599
44668
|
updatePackageVersion(rootPkgPath, nextVersion, dryRun);
|
|
44600
44669
|
files.push(rootPkgPath);
|
|
@@ -44614,7 +44683,7 @@ function createSyncStrategy(config) {
|
|
|
44614
44683
|
if (!shouldProcessPackage2(pkg, config)) {
|
|
44615
44684
|
continue;
|
|
44616
44685
|
}
|
|
44617
|
-
const packageJsonPath =
|
|
44686
|
+
const packageJsonPath = path83.join(pkg.dir, "package.json");
|
|
44618
44687
|
if (processedPaths.has(packageJsonPath)) {
|
|
44619
44688
|
continue;
|
|
44620
44689
|
}
|
|
@@ -44673,7 +44742,7 @@ function createSyncStrategy(config) {
|
|
|
44673
44742
|
let repoUrl = null;
|
|
44674
44743
|
for (const searchPath of [mainPkgPath, versionSourcePath].filter(Boolean)) {
|
|
44675
44744
|
try {
|
|
44676
|
-
const pkgJsonPath =
|
|
44745
|
+
const pkgJsonPath = path83.join(searchPath, "package.json");
|
|
44677
44746
|
if (fs103.existsSync(pkgJsonPath)) {
|
|
44678
44747
|
const pkgJson = JSON.parse(fs103.readFileSync(pkgJsonPath, "utf8"));
|
|
44679
44748
|
let url;
|
|
@@ -44842,7 +44911,7 @@ function createSingleStrategy(config) {
|
|
|
44842
44911
|
}
|
|
44843
44912
|
let repoUrl;
|
|
44844
44913
|
try {
|
|
44845
|
-
const packageJsonPath2 =
|
|
44914
|
+
const packageJsonPath2 = path83.join(pkgPath, "package.json");
|
|
44846
44915
|
if (fs103.existsSync(packageJsonPath2)) {
|
|
44847
44916
|
const packageJson = JSON.parse(fs103.readFileSync(packageJsonPath2, "utf8"));
|
|
44848
44917
|
if (packageJson.repository) {
|
|
@@ -44870,7 +44939,7 @@ function createSingleStrategy(config) {
|
|
|
44870
44939
|
repoUrl: repoUrl || null,
|
|
44871
44940
|
entries: changelogEntries
|
|
44872
44941
|
});
|
|
44873
|
-
const packageJsonPath =
|
|
44942
|
+
const packageJsonPath = path83.join(pkgPath, "package.json");
|
|
44874
44943
|
updatePackageVersion(packageJsonPath, nextVersion, dryRun);
|
|
44875
44944
|
const filesToCommit = [packageJsonPath];
|
|
44876
44945
|
const cargoFiles = updateCargoFiles(pkgPath, nextVersion, config.cargo, dryRun);
|
|
@@ -44990,7 +45059,7 @@ function filterByDirectoryPattern(packages, pattern, workspaceRoot) {
|
|
|
44990
45059
|
}
|
|
44991
45060
|
const normalizedPattern = pattern.replace(/\\/g, "/");
|
|
44992
45061
|
return packages.filter((pkg) => {
|
|
44993
|
-
const relativePath =
|
|
45062
|
+
const relativePath = path92.relative(workspaceRoot, pkg.dir);
|
|
44994
45063
|
const normalizedRelativePath = relativePath.replace(/\\/g, "/");
|
|
44995
45064
|
if (normalizedPattern === normalizedRelativePath) {
|
|
44996
45065
|
return true;
|
|
@@ -45107,13 +45176,13 @@ function createVersionCommand() {
|
|
|
45107
45176
|
}
|
|
45108
45177
|
});
|
|
45109
45178
|
}
|
|
45110
|
-
var
|
|
45111
|
-
var
|
|
45112
|
-
"../version/dist/chunk-
|
|
45179
|
+
var import_semver4, import_semver5, import_semver6, ConfigError4, MAX_JSONC_LENGTH3, GitConfigSchema3, MonorepoConfigSchema3, BranchPatternSchema3, VersionCargoConfigSchema3, VersionConfigSchema3, NpmConfigSchema3, CargoPublishConfigSchema3, PublishGitConfigSchema3, GitHubReleaseConfigSchema3, VerifyRegistryConfigSchema3, VerifyConfigSchema3, PublishConfigSchema3, TemplateConfigSchema3, LocationModeSchema3, ChangelogConfigSchema3, LLMOptionsSchema3, LLMRetryConfigSchema3, LLMTasksConfigSchema3, LLMCategorySchema3, ScopeRulesSchema3, ScopeConfigSchema3, LLMPromptOverridesSchema3, LLMPromptsConfigSchema3, LLMConfigSchema3, ReleaseNotesConfigSchema3, NotesInputConfigSchema3, NotesConfigSchema3, CILabelsConfigSchema3, CIConfigSchema3, ReleaseCIConfigSchema3, ReleaseConfigSchema3, ReleaseKitConfigSchema3, MAX_INPUT_LENGTH3, SOLE_REFERENCE_PATTERN3, AUTH_DIR3, AUTH_FILE3, CONFIG_FILE3, VersionError, VersionErrorCode, _jsonOutputMode, _pendingWrites, _jsonData, STANDARD_BUMP_TYPES, VersionMismatchError, CONVENTIONAL_COMMIT_REGEX, BREAKING_CHANGE_REGEX, PackageProcessor, GitError, VersionEngine;
|
|
45180
|
+
var init_chunk_UBCKZYTO = __esm({
|
|
45181
|
+
"../version/dist/chunk-UBCKZYTO.js"() {
|
|
45113
45182
|
"use strict";
|
|
45114
45183
|
init_chunk_Q3FHZORY();
|
|
45115
45184
|
init_chunk_LMPZV35Z();
|
|
45116
|
-
|
|
45185
|
+
init_dist9();
|
|
45117
45186
|
import_semver4 = __toESM(require_semver2(), 1);
|
|
45118
45187
|
init_src();
|
|
45119
45188
|
import_semver5 = __toESM(require_semver2(), 1);
|
|
@@ -45447,500 +45516,6 @@ var init_chunk_45DJUNXI = __esm({
|
|
|
45447
45516
|
sharedEntries: void 0,
|
|
45448
45517
|
tags: []
|
|
45449
45518
|
};
|
|
45450
|
-
SCISSOR4 = "------------------------ >8 ------------------------";
|
|
45451
|
-
GitClient2 = class {
|
|
45452
|
-
cwd;
|
|
45453
|
-
debug;
|
|
45454
|
-
constructor(cwd3, debug3) {
|
|
45455
|
-
this.cwd = cwd3;
|
|
45456
|
-
this.debug = debug3;
|
|
45457
|
-
}
|
|
45458
|
-
formatArgs(...args) {
|
|
45459
|
-
const finalArgs = formatArgs2(...args);
|
|
45460
|
-
if (this.debug) {
|
|
45461
|
-
this.debug(finalArgs);
|
|
45462
|
-
}
|
|
45463
|
-
return finalArgs;
|
|
45464
|
-
}
|
|
45465
|
-
/**
|
|
45466
|
-
* Raw exec method to run git commands.
|
|
45467
|
-
* @param args
|
|
45468
|
-
* @returns Stdout string output of the command.
|
|
45469
|
-
*/
|
|
45470
|
-
async exec(...args) {
|
|
45471
|
-
return (await output2(spawn2("git", this.formatArgs(...args), {
|
|
45472
|
-
cwd: this.cwd
|
|
45473
|
-
}))).toString().trim();
|
|
45474
|
-
}
|
|
45475
|
-
/**
|
|
45476
|
-
* Raw exec method to run git commands with stream output.
|
|
45477
|
-
* @param args
|
|
45478
|
-
* @returns Stdout stream of the command.
|
|
45479
|
-
*/
|
|
45480
|
-
execStream(...args) {
|
|
45481
|
-
return outputStream2(spawn2("git", this.formatArgs(...args), {
|
|
45482
|
-
cwd: this.cwd
|
|
45483
|
-
}));
|
|
45484
|
-
}
|
|
45485
|
-
/**
|
|
45486
|
-
* Initialize a new git repository.
|
|
45487
|
-
* @returns Boolean result.
|
|
45488
|
-
*/
|
|
45489
|
-
async init() {
|
|
45490
|
-
try {
|
|
45491
|
-
await this.exec("init");
|
|
45492
|
-
return true;
|
|
45493
|
-
} catch (err) {
|
|
45494
|
-
return false;
|
|
45495
|
-
}
|
|
45496
|
-
}
|
|
45497
|
-
/**
|
|
45498
|
-
* Get raw commits stream.
|
|
45499
|
-
* @param params
|
|
45500
|
-
* @param params.path - Read commits from specific path.
|
|
45501
|
-
* @param params.from - Start commits range.
|
|
45502
|
-
* @param params.to - End commits range.
|
|
45503
|
-
* @param params.format - Commits format.
|
|
45504
|
-
* @yields Raw commits data.
|
|
45505
|
-
*/
|
|
45506
|
-
async *getRawCommits(params = {}) {
|
|
45507
|
-
const { path: path112, from = "", to = "HEAD", format: format2 = "%B", ignore, reverse: reverse2, merges, since } = params;
|
|
45508
|
-
const shouldNotIgnore = ignore ? (chunk2) => !ignore.test(chunk2) : () => true;
|
|
45509
|
-
const stdout = this.execStream("log", `--format=${format2}%n${SCISSOR4}`, since && `--since=${since instanceof Date ? since.toISOString() : since}`, reverse2 && "--reverse", merges && "--merges", merges === false && "--no-merges", [from, to].filter(Boolean).join(".."), ...path112 ? ["--", ...toArray5(path112)] : []);
|
|
45510
|
-
const commitsStream = splitStream2(stdout, `${SCISSOR4}
|
|
45511
|
-
`);
|
|
45512
|
-
let chunk;
|
|
45513
|
-
for await (chunk of commitsStream) {
|
|
45514
|
-
if (shouldNotIgnore(chunk)) {
|
|
45515
|
-
yield chunk;
|
|
45516
|
-
}
|
|
45517
|
-
}
|
|
45518
|
-
}
|
|
45519
|
-
/**
|
|
45520
|
-
* Get tags stream.
|
|
45521
|
-
* @param params
|
|
45522
|
-
* @yields Tags
|
|
45523
|
-
*/
|
|
45524
|
-
async *getTags(params = {}) {
|
|
45525
|
-
const { path: path112, from = "", to = "HEAD", since } = params;
|
|
45526
|
-
const tagRegex = /tag:\s*(.+?)[,)]/gi;
|
|
45527
|
-
const stdout = this.execStream("log", "--decorate", "--no-color", "--date-order", since && `--since=${since instanceof Date ? since.toISOString() : since}`, [from, to].filter(Boolean).join(".."), ...path112 ? ["--", ...toArray5(path112)] : []);
|
|
45528
|
-
let chunk;
|
|
45529
|
-
let matches;
|
|
45530
|
-
let tag;
|
|
45531
|
-
for await (chunk of stdout) {
|
|
45532
|
-
matches = chunk.toString().trim().matchAll(tagRegex);
|
|
45533
|
-
for ([, tag] of matches) {
|
|
45534
|
-
yield tag;
|
|
45535
|
-
}
|
|
45536
|
-
}
|
|
45537
|
-
}
|
|
45538
|
-
/**
|
|
45539
|
-
* Get last tag.
|
|
45540
|
-
* @param params
|
|
45541
|
-
* @returns Last tag, `null` if not found.
|
|
45542
|
-
*/
|
|
45543
|
-
async getLastTag(params) {
|
|
45544
|
-
return firstFromStream2(this.getTags(params));
|
|
45545
|
-
}
|
|
45546
|
-
/**
|
|
45547
|
-
* Check file is ignored via .gitignore.
|
|
45548
|
-
* @param file - Path to target file.
|
|
45549
|
-
* @returns Boolean value.
|
|
45550
|
-
*/
|
|
45551
|
-
async checkIgnore(file) {
|
|
45552
|
-
try {
|
|
45553
|
-
await this.exec("check-ignore", "--", file);
|
|
45554
|
-
return true;
|
|
45555
|
-
} catch (err) {
|
|
45556
|
-
return false;
|
|
45557
|
-
}
|
|
45558
|
-
}
|
|
45559
|
-
/**
|
|
45560
|
-
* Add files to git index.
|
|
45561
|
-
* @param files - Files to stage.
|
|
45562
|
-
*/
|
|
45563
|
-
async add(files) {
|
|
45564
|
-
await this.exec("add", "--", ...toArray5(files));
|
|
45565
|
-
}
|
|
45566
|
-
/**
|
|
45567
|
-
* Commit changes.
|
|
45568
|
-
* @param params
|
|
45569
|
-
* @param params.verify
|
|
45570
|
-
* @param params.sign
|
|
45571
|
-
* @param params.files
|
|
45572
|
-
* @param params.allowEmpty
|
|
45573
|
-
* @param params.message
|
|
45574
|
-
*/
|
|
45575
|
-
async commit(params) {
|
|
45576
|
-
const { verify = true, sign = false, files = [], allowEmpty = false, message } = params;
|
|
45577
|
-
await this.exec("commit", !verify && "--no-verify", sign && "-S", allowEmpty && "--allow-empty", "-m", message, "--", ...files);
|
|
45578
|
-
}
|
|
45579
|
-
/**
|
|
45580
|
-
* Create a tag for the current commit.
|
|
45581
|
-
* @param params
|
|
45582
|
-
* @param params.sign
|
|
45583
|
-
* @param params.name
|
|
45584
|
-
* @param params.message
|
|
45585
|
-
*/
|
|
45586
|
-
async tag(params) {
|
|
45587
|
-
let { sign = false, name, message } = params;
|
|
45588
|
-
if (sign) {
|
|
45589
|
-
message = "";
|
|
45590
|
-
}
|
|
45591
|
-
await this.exec("tag", sign && "-s", message && "-a", ...message ? ["-m", message] : [], "--", name);
|
|
45592
|
-
}
|
|
45593
|
-
/**
|
|
45594
|
-
* Get current branch name.
|
|
45595
|
-
* @returns Current branch name.
|
|
45596
|
-
*/
|
|
45597
|
-
async getCurrentBranch() {
|
|
45598
|
-
const branch = await this.exec("rev-parse", "--abbrev-ref", "HEAD");
|
|
45599
|
-
return branch;
|
|
45600
|
-
}
|
|
45601
|
-
/**
|
|
45602
|
-
* Get default branch name.
|
|
45603
|
-
* @returns Default branch name.
|
|
45604
|
-
*/
|
|
45605
|
-
async getDefaultBranch() {
|
|
45606
|
-
const branch = (await this.exec("rev-parse", "--abbrev-ref", "origin/HEAD")).replace(/^origin\//, "");
|
|
45607
|
-
return branch;
|
|
45608
|
-
}
|
|
45609
|
-
/**
|
|
45610
|
-
* Push changes to remote.
|
|
45611
|
-
* @param branch
|
|
45612
|
-
* @param params
|
|
45613
|
-
* @param params.verify
|
|
45614
|
-
*/
|
|
45615
|
-
async push(branch, params = {}) {
|
|
45616
|
-
const { verify = true, tags: tags2 = false, followTags = false, force = false } = params;
|
|
45617
|
-
await this.exec("push", followTags && "--follow-tags", tags2 && "--tags", !verify && "--no-verify", force && "--force", "origin", "--", branch);
|
|
45618
|
-
}
|
|
45619
|
-
/**
|
|
45620
|
-
* Verify rev exists.
|
|
45621
|
-
* @param rev
|
|
45622
|
-
* @param safe - If `true`, will not throw error if rev not found.
|
|
45623
|
-
* @returns Target hash.
|
|
45624
|
-
*/
|
|
45625
|
-
async verify(rev, safe) {
|
|
45626
|
-
let git = this.exec("rev-parse", "--verify", rev);
|
|
45627
|
-
if (safe) {
|
|
45628
|
-
git = git.catch(() => "");
|
|
45629
|
-
}
|
|
45630
|
-
return await git;
|
|
45631
|
-
}
|
|
45632
|
-
/**
|
|
45633
|
-
* Get config value by key.
|
|
45634
|
-
* @param key - Config key.
|
|
45635
|
-
* @returns Config value.
|
|
45636
|
-
*/
|
|
45637
|
-
async getConfig(key) {
|
|
45638
|
-
return await this.exec("config", "--get", "--", key);
|
|
45639
|
-
}
|
|
45640
|
-
/**
|
|
45641
|
-
* Set config value by key.
|
|
45642
|
-
* @param key - Config key.
|
|
45643
|
-
* @param value - Config value.
|
|
45644
|
-
*/
|
|
45645
|
-
async setConfig(key, value) {
|
|
45646
|
-
await this.exec("config", "--", key, value);
|
|
45647
|
-
}
|
|
45648
|
-
/**
|
|
45649
|
-
* Fetch changes from remote.
|
|
45650
|
-
* @param params
|
|
45651
|
-
*/
|
|
45652
|
-
async fetch(params = {}) {
|
|
45653
|
-
const { prune = false, unshallow = false, tags: tags2 = false, all = false, remote, branch } = params;
|
|
45654
|
-
await this.exec("fetch", prune && "--prune", unshallow && "--unshallow", tags2 && "--tags", all && "--all", ...remote && branch ? [
|
|
45655
|
-
"--",
|
|
45656
|
-
remote,
|
|
45657
|
-
branch
|
|
45658
|
-
] : []);
|
|
45659
|
-
}
|
|
45660
|
-
/**
|
|
45661
|
-
* Create a new branch.
|
|
45662
|
-
* @param branch - Branch name.
|
|
45663
|
-
*/
|
|
45664
|
-
async createBranch(branch) {
|
|
45665
|
-
await this.exec("checkout", "-b", branch);
|
|
45666
|
-
}
|
|
45667
|
-
/**
|
|
45668
|
-
* Delete a branch.
|
|
45669
|
-
* @param branch - Branch name.
|
|
45670
|
-
*/
|
|
45671
|
-
async deleteBranch(branch) {
|
|
45672
|
-
await this.exec("branch", "-D", "--", branch);
|
|
45673
|
-
}
|
|
45674
|
-
/**
|
|
45675
|
-
* Checkout a branch.
|
|
45676
|
-
* @param branch - Branch name.
|
|
45677
|
-
*/
|
|
45678
|
-
async checkout(branch) {
|
|
45679
|
-
await this.exec("checkout", branch);
|
|
45680
|
-
}
|
|
45681
|
-
};
|
|
45682
|
-
ConventionalGitClient2 = class extends GitClient2 {
|
|
45683
|
-
deps = null;
|
|
45684
|
-
loadDeps() {
|
|
45685
|
-
if (this.deps) {
|
|
45686
|
-
return this.deps;
|
|
45687
|
-
}
|
|
45688
|
-
this.deps = Promise.all([
|
|
45689
|
-
Promise.resolve().then(() => (init_dist_3B6ZXCEH(), dist_3B6ZXCEH_exports)).then(({ parseCommits: parseCommits3 }) => parseCommits3),
|
|
45690
|
-
Promise.resolve().then(() => (init_dist_XFQOB6BJ(), dist_XFQOB6BJ_exports)).then(({ filterRevertedCommits: filterRevertedCommits3 }) => filterRevertedCommits3)
|
|
45691
|
-
]);
|
|
45692
|
-
return this.deps;
|
|
45693
|
-
}
|
|
45694
|
-
/**
|
|
45695
|
-
* Get parsed commits stream.
|
|
45696
|
-
* @param params
|
|
45697
|
-
* @param params.path - Read commits from specific path.
|
|
45698
|
-
* @param params.from - Start commits range.
|
|
45699
|
-
* @param params.to - End commits range.
|
|
45700
|
-
* @param params.format - Commits format.
|
|
45701
|
-
* @param parserOptions - Commit parser options.
|
|
45702
|
-
* @yields Raw commits data.
|
|
45703
|
-
*/
|
|
45704
|
-
async *getCommits(params = {}, parserOptions = {}) {
|
|
45705
|
-
const { filterReverts, ...gitLogParams } = params;
|
|
45706
|
-
const [parseCommits3, filterRevertedCommits3] = await this.loadDeps();
|
|
45707
|
-
if (filterReverts) {
|
|
45708
|
-
yield* filterRevertedCommits3(this.getCommits(gitLogParams, parserOptions));
|
|
45709
|
-
return;
|
|
45710
|
-
}
|
|
45711
|
-
const parse22 = parseCommits3(parserOptions);
|
|
45712
|
-
const commitsStream = this.getRawCommits(gitLogParams);
|
|
45713
|
-
yield* parse22(commitsStream);
|
|
45714
|
-
}
|
|
45715
|
-
/**
|
|
45716
|
-
* Get semver tags stream.
|
|
45717
|
-
* @param params
|
|
45718
|
-
* @param params.prefix - Get semver tags with specific prefix.
|
|
45719
|
-
* @param params.skipUnstable - Skip semver tags with unstable versions.
|
|
45720
|
-
* @param params.clean - Clean version from prefix and trash.
|
|
45721
|
-
* @yields Semver tags.
|
|
45722
|
-
*/
|
|
45723
|
-
async *getSemverTags(params = {}) {
|
|
45724
|
-
const { prefix, skipUnstable, clean } = params;
|
|
45725
|
-
const tagsStream = this.getTags();
|
|
45726
|
-
const unstableTagRegex = /\d+\.\d+\.\d+-.+/;
|
|
45727
|
-
const cleanTag = clean ? (tag2, unprefixed2) => import_semver3.default.clean(unprefixed2 || tag2) : (tag2) => tag2;
|
|
45728
|
-
let unprefixed;
|
|
45729
|
-
let tag;
|
|
45730
|
-
for await (tag of tagsStream) {
|
|
45731
|
-
if (skipUnstable && unstableTagRegex.test(tag)) {
|
|
45732
|
-
continue;
|
|
45733
|
-
}
|
|
45734
|
-
if (prefix) {
|
|
45735
|
-
const isPrefixed = typeof prefix === "string" ? tag.startsWith(prefix) : prefix.test(tag);
|
|
45736
|
-
if (isPrefixed) {
|
|
45737
|
-
unprefixed = tag.replace(prefix, "");
|
|
45738
|
-
if (import_semver3.default.valid(unprefixed)) {
|
|
45739
|
-
tag = cleanTag(tag, unprefixed);
|
|
45740
|
-
if (tag) {
|
|
45741
|
-
yield tag;
|
|
45742
|
-
}
|
|
45743
|
-
}
|
|
45744
|
-
}
|
|
45745
|
-
} else if (import_semver3.default.valid(tag)) {
|
|
45746
|
-
tag = cleanTag(tag);
|
|
45747
|
-
if (tag) {
|
|
45748
|
-
yield tag;
|
|
45749
|
-
}
|
|
45750
|
-
}
|
|
45751
|
-
}
|
|
45752
|
-
}
|
|
45753
|
-
/**
|
|
45754
|
-
* Get last semver tag.
|
|
45755
|
-
* @param params - getSemverTags params.
|
|
45756
|
-
* @returns Last semver tag, `null` if not found.
|
|
45757
|
-
*/
|
|
45758
|
-
async getLastSemverTag(params = {}) {
|
|
45759
|
-
return firstFromStream2(this.getSemverTags(params));
|
|
45760
|
-
}
|
|
45761
|
-
/**
|
|
45762
|
-
* Get current sematic version from git tags.
|
|
45763
|
-
* @param params - Additional git params.
|
|
45764
|
-
* @returns Current sematic version, `null` if not found.
|
|
45765
|
-
*/
|
|
45766
|
-
async getVersionFromTags(params = {}) {
|
|
45767
|
-
const semverTagsStream = this.getSemverTags({
|
|
45768
|
-
clean: true,
|
|
45769
|
-
...params
|
|
45770
|
-
});
|
|
45771
|
-
const semverTags = [];
|
|
45772
|
-
for await (const tag of semverTagsStream) {
|
|
45773
|
-
semverTags.push(tag);
|
|
45774
|
-
}
|
|
45775
|
-
if (!semverTags.length) {
|
|
45776
|
-
return null;
|
|
45777
|
-
}
|
|
45778
|
-
return semverTags.sort(import_semver3.default.rcompare)[0] || null;
|
|
45779
|
-
}
|
|
45780
|
-
};
|
|
45781
|
-
loadPreset = createPresetLoader((preset) => import(preset));
|
|
45782
|
-
VERSIONS = [
|
|
45783
|
-
"major",
|
|
45784
|
-
"minor",
|
|
45785
|
-
"patch"
|
|
45786
|
-
];
|
|
45787
|
-
Bumper = class {
|
|
45788
|
-
gitClient;
|
|
45789
|
-
params;
|
|
45790
|
-
whatBump;
|
|
45791
|
-
tagGetter;
|
|
45792
|
-
commitsGetter;
|
|
45793
|
-
constructor(cwdOrGitClient = process.cwd()) {
|
|
45794
|
-
this.gitClient = typeof cwdOrGitClient === "string" ? new ConventionalGitClient2(cwdOrGitClient) : cwdOrGitClient;
|
|
45795
|
-
this.whatBump = null;
|
|
45796
|
-
this.params = Promise.resolve({
|
|
45797
|
-
commits: {
|
|
45798
|
-
format: "%B%n-hash-%n%H",
|
|
45799
|
-
filterReverts: true
|
|
45800
|
-
}
|
|
45801
|
-
});
|
|
45802
|
-
this.tagGetter = () => this.getLastSemverTag();
|
|
45803
|
-
this.commitsGetter = () => this.getCommits();
|
|
45804
|
-
}
|
|
45805
|
-
composeParams(params) {
|
|
45806
|
-
this.params = Promise.all([params, this.params]).then(([params2, prevParams]) => ({
|
|
45807
|
-
options: {
|
|
45808
|
-
...prevParams.options,
|
|
45809
|
-
...params2.options
|
|
45810
|
-
},
|
|
45811
|
-
tags: {
|
|
45812
|
-
...prevParams.tags,
|
|
45813
|
-
...params2.tags
|
|
45814
|
-
},
|
|
45815
|
-
commits: {
|
|
45816
|
-
...prevParams.commits,
|
|
45817
|
-
...params2.commits
|
|
45818
|
-
},
|
|
45819
|
-
parser: {
|
|
45820
|
-
...prevParams.parser,
|
|
45821
|
-
...params2.parser
|
|
45822
|
-
}
|
|
45823
|
-
}));
|
|
45824
|
-
}
|
|
45825
|
-
async getLastSemverTag() {
|
|
45826
|
-
const { tags: tags2 } = await this.params;
|
|
45827
|
-
return await this.gitClient.getLastSemverTag(tags2);
|
|
45828
|
-
}
|
|
45829
|
-
async *getCommits() {
|
|
45830
|
-
const { options, commits, parser } = await this.params;
|
|
45831
|
-
const parserParams = {
|
|
45832
|
-
...parser
|
|
45833
|
-
};
|
|
45834
|
-
if (!parserParams.warn && options?.warn) {
|
|
45835
|
-
parserParams.warn = bindLogNamespace("parser", options.warn);
|
|
45836
|
-
}
|
|
45837
|
-
yield* this.gitClient.getCommits({
|
|
45838
|
-
from: await this.tagGetter() || "",
|
|
45839
|
-
...commits
|
|
45840
|
-
}, parserParams);
|
|
45841
|
-
}
|
|
45842
|
-
/**
|
|
45843
|
-
* Load configs from a preset
|
|
45844
|
-
* @param preset
|
|
45845
|
-
* @param loader - Preset module loader, if not provided, will use default loader
|
|
45846
|
-
* @returns this
|
|
45847
|
-
*/
|
|
45848
|
-
loadPreset(preset, loader2) {
|
|
45849
|
-
const loadPreset2 = loader2 ? createPresetLoader(loader2) : loadPreset;
|
|
45850
|
-
const config = loadPreset2(preset).then((config2) => {
|
|
45851
|
-
if (!config2) {
|
|
45852
|
-
throw Error("Preset is not loaded or have incorrect exports");
|
|
45853
|
-
}
|
|
45854
|
-
return config2;
|
|
45855
|
-
});
|
|
45856
|
-
this.whatBump = async (commits) => {
|
|
45857
|
-
const { whatBump } = await config;
|
|
45858
|
-
return whatBump(commits);
|
|
45859
|
-
};
|
|
45860
|
-
this.composeParams(config);
|
|
45861
|
-
return this;
|
|
45862
|
-
}
|
|
45863
|
-
/**
|
|
45864
|
-
* Set config directly
|
|
45865
|
-
* @param config - Config object
|
|
45866
|
-
* @returns this
|
|
45867
|
-
*/
|
|
45868
|
-
config(config) {
|
|
45869
|
-
this.composeParams(config);
|
|
45870
|
-
return this;
|
|
45871
|
-
}
|
|
45872
|
-
/**
|
|
45873
|
-
* Set bumper options
|
|
45874
|
-
* @param options - Bumper options
|
|
45875
|
-
* @returns this
|
|
45876
|
-
*/
|
|
45877
|
-
options(options) {
|
|
45878
|
-
this.composeParams({
|
|
45879
|
-
options
|
|
45880
|
-
});
|
|
45881
|
-
return this;
|
|
45882
|
-
}
|
|
45883
|
-
/**
|
|
45884
|
-
* Set params to get the last semver tag
|
|
45885
|
-
* @param paramsOrTag - Params to get the last semver tag or a tag name
|
|
45886
|
-
* @returns this
|
|
45887
|
-
*/
|
|
45888
|
-
tag(paramsOrTag) {
|
|
45889
|
-
if (typeof paramsOrTag === "string") {
|
|
45890
|
-
this.tagGetter = () => paramsOrTag;
|
|
45891
|
-
} else {
|
|
45892
|
-
this.tagGetter = () => this.getLastSemverTag();
|
|
45893
|
-
this.composeParams({
|
|
45894
|
-
tags: paramsOrTag
|
|
45895
|
-
});
|
|
45896
|
-
}
|
|
45897
|
-
return this;
|
|
45898
|
-
}
|
|
45899
|
-
commits(paramsOrCommits, parserOptions) {
|
|
45900
|
-
if (isIterable2(paramsOrCommits)) {
|
|
45901
|
-
this.commitsGetter = () => paramsOrCommits;
|
|
45902
|
-
} else {
|
|
45903
|
-
this.commitsGetter = () => this.getCommits();
|
|
45904
|
-
this.composeParams({
|
|
45905
|
-
commits: paramsOrCommits,
|
|
45906
|
-
parser: parserOptions
|
|
45907
|
-
});
|
|
45908
|
-
}
|
|
45909
|
-
return this;
|
|
45910
|
-
}
|
|
45911
|
-
/**
|
|
45912
|
-
* Recommend a bump by `whatBump` function
|
|
45913
|
-
* @param whatBump - Function to recommend a bump from commits
|
|
45914
|
-
* @returns Bump recommendation
|
|
45915
|
-
*/
|
|
45916
|
-
async bump(whatBump = this.whatBump) {
|
|
45917
|
-
if (typeof whatBump !== "function") {
|
|
45918
|
-
throw Error("`whatBump` must be a function");
|
|
45919
|
-
}
|
|
45920
|
-
const { gitClient } = this;
|
|
45921
|
-
const { options } = await this.params;
|
|
45922
|
-
if (!gitClient.debug && options?.debug) {
|
|
45923
|
-
gitClient.debug = bindLogNamespace("git-client", options.debug);
|
|
45924
|
-
}
|
|
45925
|
-
const commitsStream = this.commitsGetter();
|
|
45926
|
-
const commits = [];
|
|
45927
|
-
let commit;
|
|
45928
|
-
for await (commit of commitsStream) {
|
|
45929
|
-
commits.push(commit);
|
|
45930
|
-
}
|
|
45931
|
-
const result = await whatBump(commits);
|
|
45932
|
-
if (result && "level" in result) {
|
|
45933
|
-
return {
|
|
45934
|
-
...result,
|
|
45935
|
-
releaseType: VERSIONS[result.level],
|
|
45936
|
-
commits
|
|
45937
|
-
};
|
|
45938
|
-
}
|
|
45939
|
-
return {
|
|
45940
|
-
commits
|
|
45941
|
-
};
|
|
45942
|
-
}
|
|
45943
|
-
};
|
|
45944
45519
|
STANDARD_BUMP_TYPES = ["major", "minor", "patch"];
|
|
45945
45520
|
VersionMismatchError = class extends Error {
|
|
45946
45521
|
constructor(message, severity) {
|
|
@@ -46104,7 +45679,7 @@ var init_chunk_45DJUNXI = __esm({
|
|
|
46104
45679
|
}
|
|
46105
45680
|
let repoUrl;
|
|
46106
45681
|
try {
|
|
46107
|
-
const packageJsonPath2 =
|
|
45682
|
+
const packageJsonPath2 = path73.join(pkgPath, "package.json");
|
|
46108
45683
|
if (fs93.existsSync(packageJsonPath2)) {
|
|
46109
45684
|
const packageJson = JSON.parse(fs93.readFileSync(packageJsonPath2, "utf8"));
|
|
46110
45685
|
if (packageJson.repository) {
|
|
@@ -46132,7 +45707,7 @@ var init_chunk_45DJUNXI = __esm({
|
|
|
46132
45707
|
repoUrl: repoUrl || null,
|
|
46133
45708
|
entries: changelogEntries
|
|
46134
45709
|
});
|
|
46135
|
-
const packageJsonPath =
|
|
45710
|
+
const packageJsonPath = path73.join(pkgPath, "package.json");
|
|
46136
45711
|
if (fs93.existsSync(packageJsonPath)) {
|
|
46137
45712
|
updatePackageVersion(packageJsonPath, nextVersion, this.dryRun);
|
|
46138
45713
|
}
|
|
@@ -46143,7 +45718,7 @@ var init_chunk_45DJUNXI = __esm({
|
|
|
46143
45718
|
log6(`Cargo paths config for ${name}: ${JSON.stringify(cargoPaths)}`, "debug");
|
|
46144
45719
|
if (cargoPaths && cargoPaths.length > 0) {
|
|
46145
45720
|
for (const cargoPath of cargoPaths) {
|
|
46146
|
-
const resolvedCargoPath =
|
|
45721
|
+
const resolvedCargoPath = path73.resolve(pkgPath, cargoPath, "Cargo.toml");
|
|
46147
45722
|
log6(`Checking cargo path for ${name}: ${resolvedCargoPath}`, "debug");
|
|
46148
45723
|
if (fs93.existsSync(resolvedCargoPath)) {
|
|
46149
45724
|
log6(`Found Cargo.toml for ${name} at ${resolvedCargoPath}, updating...`, "debug");
|
|
@@ -46153,7 +45728,7 @@ var init_chunk_45DJUNXI = __esm({
|
|
|
46153
45728
|
}
|
|
46154
45729
|
}
|
|
46155
45730
|
} else {
|
|
46156
|
-
const cargoTomlPath =
|
|
45731
|
+
const cargoTomlPath = path73.join(pkgPath, "Cargo.toml");
|
|
46157
45732
|
log6(`Checking default cargo path for ${name}: ${cargoTomlPath}`, "debug");
|
|
46158
45733
|
if (fs93.existsSync(cargoTomlPath)) {
|
|
46159
45734
|
log6(`Found Cargo.toml for ${name} at ${cargoTomlPath}, updating...`, "debug");
|
|
@@ -46341,10 +45916,10 @@ __export(dist_exports5, {
|
|
|
46341
45916
|
getJsonData: () => getJsonData,
|
|
46342
45917
|
loadConfig: () => loadConfig23
|
|
46343
45918
|
});
|
|
46344
|
-
var
|
|
45919
|
+
var init_dist15 = __esm({
|
|
46345
45920
|
"../version/dist/index.js"() {
|
|
46346
45921
|
"use strict";
|
|
46347
|
-
|
|
45922
|
+
init_chunk_UBCKZYTO();
|
|
46348
45923
|
init_chunk_Q3FHZORY();
|
|
46349
45924
|
init_chunk_LMPZV35Z();
|
|
46350
45925
|
}
|
|
@@ -46456,7 +46031,7 @@ var EXIT_CODES = {
|
|
|
46456
46031
|
// src/dispatcher.ts
|
|
46457
46032
|
init_dist();
|
|
46458
46033
|
init_dist2();
|
|
46459
|
-
|
|
46034
|
+
init_dist15();
|
|
46460
46035
|
import { Command as Command7 } from "commander";
|
|
46461
46036
|
|
|
46462
46037
|
// src/init-command.ts
|
|
@@ -46952,9 +46527,9 @@ function resolveRepo(cliValue) {
|
|
|
46952
46527
|
|
|
46953
46528
|
// src/preview-detect.ts
|
|
46954
46529
|
import * as fs18 from "fs";
|
|
46955
|
-
import * as
|
|
46530
|
+
import * as path18 from "path";
|
|
46956
46531
|
function detectPrerelease(packagePaths, projectDir) {
|
|
46957
|
-
const paths = packagePaths.length > 0 ? packagePaths.map((p) =>
|
|
46532
|
+
const paths = packagePaths.length > 0 ? packagePaths.map((p) => path18.join(projectDir, p, "package.json")) : [path18.join(projectDir, "package.json")];
|
|
46958
46533
|
for (const pkgPath of paths) {
|
|
46959
46534
|
if (!fs18.existsSync(pkgPath)) continue;
|
|
46960
46535
|
try {
|
|
@@ -47253,7 +46828,7 @@ async function runRelease(inputOptions) {
|
|
|
47253
46828
|
return null;
|
|
47254
46829
|
}
|
|
47255
46830
|
if (!options.dryRun) {
|
|
47256
|
-
const { flushPendingWrites: flushPendingWrites2 } = await Promise.resolve().then(() => (
|
|
46831
|
+
const { flushPendingWrites: flushPendingWrites2 } = await Promise.resolve().then(() => (init_dist15(), dist_exports5));
|
|
47257
46832
|
flushPendingWrites2();
|
|
47258
46833
|
}
|
|
47259
46834
|
info(`Found ${versionOutput.updates.length} package update(s)`);
|
|
@@ -47282,7 +46857,7 @@ async function runRelease(inputOptions) {
|
|
|
47282
46857
|
return { versionOutput, notesGenerated, packageNotes, releaseNotes, publishOutput };
|
|
47283
46858
|
}
|
|
47284
46859
|
async function runVersionStep(options) {
|
|
47285
|
-
const { loadConfig: loadConfig6, VersionEngine: VersionEngine2, enableJsonOutput: enableJsonOutput2, getJsonData: getJsonData2 } = await Promise.resolve().then(() => (
|
|
46860
|
+
const { loadConfig: loadConfig6, VersionEngine: VersionEngine2, enableJsonOutput: enableJsonOutput2, getJsonData: getJsonData2 } = await Promise.resolve().then(() => (init_dist15(), dist_exports5));
|
|
47286
46861
|
enableJsonOutput2(options.dryRun);
|
|
47287
46862
|
const config = loadConfig6({ cwd: options.projectDir, configPath: options.config });
|
|
47288
46863
|
if (options.dryRun) config.dryRun = true;
|