@soybeanjs/cli 0.1.9 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/index.js +111 -66
- package/bin/index.mjs +111 -66
- package/package.json +23 -20
package/bin/index.js
CHANGED
|
@@ -271,7 +271,7 @@ var import_kolorist2 = require("kolorist");
|
|
|
271
271
|
// package.json
|
|
272
272
|
var package_default = {
|
|
273
273
|
name: "@soybeanjs/cli",
|
|
274
|
-
version: "0.
|
|
274
|
+
version: "0.2.0",
|
|
275
275
|
description: "SoybeanJS's command lint tools",
|
|
276
276
|
author: {
|
|
277
277
|
name: "Soybean",
|
|
@@ -286,6 +286,9 @@ var package_default = {
|
|
|
286
286
|
bugs: {
|
|
287
287
|
url: "https://github.com/honghuangdc/soybean-cli/issues"
|
|
288
288
|
},
|
|
289
|
+
publishConfig: {
|
|
290
|
+
registry: "https://registry.npmjs.org/"
|
|
291
|
+
},
|
|
289
292
|
bin: {
|
|
290
293
|
soybean: "bin/index.mjs",
|
|
291
294
|
soy: "bin/index.mjs"
|
|
@@ -300,29 +303,32 @@ var package_default = {
|
|
|
300
303
|
commit: "soy git-commit",
|
|
301
304
|
cleanup: "soy cleanup",
|
|
302
305
|
"update-pkg": "soy update-pkg",
|
|
303
|
-
"update-version":
|
|
306
|
+
"update-version": 'bumpp package.json --execute="pnpm gen-log" --commit --all --push --tag',
|
|
304
307
|
"publish-pkg": "pnpm -r publish --access public",
|
|
305
|
-
release: "pnpm update-version && pnpm publish-pkg"
|
|
308
|
+
release: "pnpm update-version && pnpm publish-pkg",
|
|
309
|
+
"gen-log": "conventional-changelog -p angular -i CHANGELOG.md -s"
|
|
306
310
|
},
|
|
307
311
|
dependencies: {
|
|
308
|
-
commander: "
|
|
309
|
-
enquirer: "
|
|
312
|
+
commander: "10.0.1",
|
|
313
|
+
enquirer: "2.3.6",
|
|
310
314
|
execa: "7.1.1",
|
|
311
|
-
kolorist: "
|
|
312
|
-
minimist: "
|
|
313
|
-
"npm-check-updates": "
|
|
314
|
-
rimraf: "
|
|
315
|
+
kolorist: "1.8.0",
|
|
316
|
+
minimist: "1.2.8",
|
|
317
|
+
"npm-check-updates": "16.10.12",
|
|
318
|
+
rimraf: "5.0.1"
|
|
315
319
|
},
|
|
316
320
|
devDependencies: {
|
|
317
321
|
"@soybeanjs/cli": "link:",
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
"
|
|
321
|
-
|
|
322
|
-
"
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
322
|
+
"@types/node": "^20.2.3",
|
|
323
|
+
bumpp: "9.1.0",
|
|
324
|
+
"conventional-changelog-cli": "^2.2.2",
|
|
325
|
+
eslint: "8.41.0",
|
|
326
|
+
"eslint-config-soybeanjs": "0.3.8",
|
|
327
|
+
"lint-staged": "13.2.2",
|
|
328
|
+
"simple-git-hooks": "2.8.1",
|
|
329
|
+
tsup: "6.7.0",
|
|
330
|
+
tsx: "3.12.7",
|
|
331
|
+
typescript: "5.0.4"
|
|
326
332
|
},
|
|
327
333
|
"simple-git-hooks": {
|
|
328
334
|
"commit-msg": "pnpm soybean git-commit-verify",
|
|
@@ -332,9 +338,6 @@ var package_default = {
|
|
|
332
338
|
"*.{js,jsx,mjs,cjs,json,ts,tsx,mts,cts,vue,svelte,astro}": [
|
|
333
339
|
"eslint . --fix"
|
|
334
340
|
]
|
|
335
|
-
},
|
|
336
|
-
publishConfig: {
|
|
337
|
-
registry: "https://registry.npmjs.org/"
|
|
338
341
|
}
|
|
339
342
|
};
|
|
340
343
|
|
|
@@ -352,7 +355,6 @@ var types = [
|
|
|
352
355
|
{ value: "refactor", title: "refactor: \u4EE3\u7801\u91CD\u6784\uFF0C\u6CA1\u6709\u52A0\u65B0\u529F\u80FD\u6216\u8005\u4FEE\u590Dbug" },
|
|
353
356
|
{ value: "perf", title: "perf: \u4F18\u5316\u76F8\u5173\uFF0C\u6BD4\u5982\u63D0\u5347\u6027\u80FD\u3001\u4F53\u9A8C" },
|
|
354
357
|
{ value: "test", title: "test: \u6DFB\u52A0\u6D4B\u8BD5\u7528\u4F8B" },
|
|
355
|
-
{ value: "build", title: "build: \u4F9D\u8D56\u76F8\u5173\u7684\u5185\u5BB9" },
|
|
356
358
|
{ value: "ci", title: "ci: CI\u914D\u7F6E\u76F8\u5173\uFF0C\u4F8B\u5982\u5BF9k8s\uFF0Cdocker\u7684\u914D\u7F6E\u6587\u4EF6\u7684\u4FEE\u6539" },
|
|
357
359
|
{ value: "chore", title: "chore: \u6539\u53D8\u6784\u5EFA\u6D41\u7A0B\u3001\u6216\u8005\u589E\u52A0\u4F9D\u8D56\u5E93\u3001\u5DE5\u5177\u7B49" },
|
|
358
360
|
{ value: "revert", title: "revert: \u56DE\u6EDA\u5230\u4E0A\u4E00\u4E2A\u7248\u672C" }
|
|
@@ -422,10 +424,10 @@ function verifyGitCommit() {
|
|
|
422
424
|
// src/scripts/cleanup.ts
|
|
423
425
|
var import_rimraf = require("rimraf");
|
|
424
426
|
|
|
425
|
-
// node_modules/.pnpm/minimatch@9.0.
|
|
427
|
+
// node_modules/.pnpm/minimatch@9.0.1/node_modules/minimatch/dist/mjs/index.js
|
|
426
428
|
var import_brace_expansion = __toESM(require_brace_expansion(), 1);
|
|
427
429
|
|
|
428
|
-
// node_modules/.pnpm/minimatch@9.0.
|
|
430
|
+
// node_modules/.pnpm/minimatch@9.0.1/node_modules/minimatch/dist/mjs/assert-valid-pattern.js
|
|
429
431
|
var MAX_PATTERN_LENGTH = 1024 * 64;
|
|
430
432
|
var assertValidPattern = (pattern) => {
|
|
431
433
|
if (typeof pattern !== "string") {
|
|
@@ -436,7 +438,7 @@ var assertValidPattern = (pattern) => {
|
|
|
436
438
|
}
|
|
437
439
|
};
|
|
438
440
|
|
|
439
|
-
// node_modules/.pnpm/minimatch@9.0.
|
|
441
|
+
// node_modules/.pnpm/minimatch@9.0.1/node_modules/minimatch/dist/mjs/brace-expressions.js
|
|
440
442
|
var posixClasses = {
|
|
441
443
|
"[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", true],
|
|
442
444
|
"[:alpha:]": ["\\p{L}\\p{Nl}", true],
|
|
@@ -546,12 +548,12 @@ var parseClass = (glob2, position) => {
|
|
|
546
548
|
return [comb, uflag, endPos - pos, true];
|
|
547
549
|
};
|
|
548
550
|
|
|
549
|
-
// node_modules/.pnpm/minimatch@9.0.
|
|
551
|
+
// node_modules/.pnpm/minimatch@9.0.1/node_modules/minimatch/dist/mjs/unescape.js
|
|
550
552
|
var unescape = (s, { windowsPathsNoEscape = false } = {}) => {
|
|
551
553
|
return windowsPathsNoEscape ? s.replace(/\[([^\/\\])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1");
|
|
552
554
|
};
|
|
553
555
|
|
|
554
|
-
// node_modules/.pnpm/minimatch@9.0.
|
|
556
|
+
// node_modules/.pnpm/minimatch@9.0.1/node_modules/minimatch/dist/mjs/ast.js
|
|
555
557
|
var types2 = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]);
|
|
556
558
|
var isExtglobType = (c) => types2.has(c);
|
|
557
559
|
var startNoTraversal = "(?!\\.\\.?(?:$|/))";
|
|
@@ -1037,12 +1039,12 @@ parseGlob_fn = function(glob2, hasMagic2, noEmpty = false) {
|
|
|
1037
1039
|
__privateAdd(AST, _parseAST);
|
|
1038
1040
|
__privateAdd(AST, _parseGlob);
|
|
1039
1041
|
|
|
1040
|
-
// node_modules/.pnpm/minimatch@9.0.
|
|
1042
|
+
// node_modules/.pnpm/minimatch@9.0.1/node_modules/minimatch/dist/mjs/escape.js
|
|
1041
1043
|
var escape = (s, { windowsPathsNoEscape = false } = {}) => {
|
|
1042
1044
|
return windowsPathsNoEscape ? s.replace(/[?*()[\]]/g, "[$&]") : s.replace(/[?*()[\]\\]/g, "\\$&");
|
|
1043
1045
|
};
|
|
1044
1046
|
|
|
1045
|
-
// node_modules/.pnpm/minimatch@9.0.
|
|
1047
|
+
// node_modules/.pnpm/minimatch@9.0.1/node_modules/minimatch/dist/mjs/index.js
|
|
1046
1048
|
var minimatch = (p, pattern, options = {}) => {
|
|
1047
1049
|
assertValidPattern(pattern);
|
|
1048
1050
|
if (!options.nocomment && pattern.charAt(0) === "#") {
|
|
@@ -1529,26 +1531,21 @@ var Minimatch = class {
|
|
|
1529
1531
|
matchOne(file, pattern, partial = false) {
|
|
1530
1532
|
const options = this.options;
|
|
1531
1533
|
if (this.isWindows) {
|
|
1532
|
-
const
|
|
1533
|
-
const
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1534
|
+
const fileDrive = typeof file[0] === "string" && /^[a-z]:$/i.test(file[0]);
|
|
1535
|
+
const fileUNC = !fileDrive && file[0] === "" && file[1] === "" && file[2] === "?" && /^[a-z]:$/i.test(file[3]);
|
|
1536
|
+
const patternDrive = typeof pattern[0] === "string" && /^[a-z]:$/i.test(pattern[0]);
|
|
1537
|
+
const patternUNC = !patternDrive && pattern[0] === "" && pattern[1] === "" && pattern[2] === "?" && typeof pattern[3] === "string" && /^[a-z]:$/i.test(pattern[3]);
|
|
1538
|
+
const fdi = fileUNC ? 3 : fileDrive ? 0 : void 0;
|
|
1539
|
+
const pdi = patternUNC ? 3 : patternDrive ? 0 : void 0;
|
|
1540
|
+
if (typeof fdi === "number" && typeof pdi === "number") {
|
|
1541
|
+
const [fd, pd] = [file[fdi], pattern[pdi]];
|
|
1537
1542
|
if (fd.toLowerCase() === pd.toLowerCase()) {
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
pattern[3] = fd;
|
|
1545
|
-
pattern = pattern.slice(3);
|
|
1546
|
-
}
|
|
1547
|
-
} else if (fileUNC && typeof pattern[0] === "string") {
|
|
1548
|
-
const fd = file[3];
|
|
1549
|
-
if (fd.toLowerCase() === pattern[0].toLowerCase()) {
|
|
1550
|
-
pattern[0] = fd;
|
|
1551
|
-
file = file.slice(3);
|
|
1543
|
+
pattern[pdi] = fd;
|
|
1544
|
+
if (pdi > fdi) {
|
|
1545
|
+
pattern = pattern.slice(pdi);
|
|
1546
|
+
} else if (fdi > pdi) {
|
|
1547
|
+
file = file.slice(fdi);
|
|
1548
|
+
}
|
|
1552
1549
|
}
|
|
1553
1550
|
}
|
|
1554
1551
|
}
|
|
@@ -1761,7 +1758,7 @@ minimatch.Minimatch = Minimatch;
|
|
|
1761
1758
|
minimatch.escape = escape;
|
|
1762
1759
|
minimatch.unescape = unescape;
|
|
1763
1760
|
|
|
1764
|
-
// node_modules/.pnpm/lru-cache@9.1.
|
|
1761
|
+
// node_modules/.pnpm/lru-cache@9.1.1/node_modules/lru-cache/dist/mjs/index.js
|
|
1765
1762
|
var perf = typeof performance === "object" && performance && typeof performance.now === "function" ? performance : Date;
|
|
1766
1763
|
var warned = /* @__PURE__ */ new Set();
|
|
1767
1764
|
var PROCESS = typeof process === "object" && !!process ? process : {};
|
|
@@ -2136,7 +2133,8 @@ var LRUCache = class {
|
|
|
2136
2133
|
status.ttl = ttl;
|
|
2137
2134
|
status.start = start;
|
|
2138
2135
|
status.now = cachedNow || getNow();
|
|
2139
|
-
|
|
2136
|
+
const age = status.now - start;
|
|
2137
|
+
status.remainingTTL = ttl - age;
|
|
2140
2138
|
}
|
|
2141
2139
|
};
|
|
2142
2140
|
let cachedNow = 0;
|
|
@@ -2156,7 +2154,13 @@ var LRUCache = class {
|
|
|
2156
2154
|
if (index === void 0) {
|
|
2157
2155
|
return 0;
|
|
2158
2156
|
}
|
|
2159
|
-
|
|
2157
|
+
const ttl = ttls[index];
|
|
2158
|
+
const start = starts[index];
|
|
2159
|
+
if (ttl === 0 || start === 0) {
|
|
2160
|
+
return Infinity;
|
|
2161
|
+
}
|
|
2162
|
+
const age = (cachedNow || getNow()) - start;
|
|
2163
|
+
return ttl - age;
|
|
2160
2164
|
};
|
|
2161
2165
|
this.#isStale = (index) => {
|
|
2162
2166
|
return ttls[index] !== 0 && starts[index] !== 0 && (cachedNow || getNow()) - starts[index] > ttls[index];
|
|
@@ -2983,14 +2987,14 @@ var LRUCache = class {
|
|
|
2983
2987
|
}
|
|
2984
2988
|
};
|
|
2985
2989
|
|
|
2986
|
-
// node_modules/.pnpm/path-scurry@1.
|
|
2990
|
+
// node_modules/.pnpm/path-scurry@1.9.2/node_modules/path-scurry/dist/mjs/index.js
|
|
2987
2991
|
var import_path = require("path");
|
|
2988
2992
|
var import_url = require("url");
|
|
2989
2993
|
var actualFS = __toESM(require("fs"), 1);
|
|
2990
2994
|
var import_fs2 = require("fs");
|
|
2991
2995
|
var import_promises = require("fs/promises");
|
|
2992
2996
|
|
|
2993
|
-
// node_modules/.pnpm/minipass@
|
|
2997
|
+
// node_modules/.pnpm/minipass@6.0.2/node_modules/minipass/index.mjs
|
|
2994
2998
|
var import_events = __toESM(require("events"), 1);
|
|
2995
2999
|
var import_stream = __toESM(require("stream"), 1);
|
|
2996
3000
|
var import_string_decoder = __toESM(require("string_decoder"), 1);
|
|
@@ -3591,7 +3595,7 @@ var Minipass = class extends import_stream.default {
|
|
|
3591
3595
|
}
|
|
3592
3596
|
};
|
|
3593
3597
|
|
|
3594
|
-
// node_modules/.pnpm/path-scurry@1.
|
|
3598
|
+
// node_modules/.pnpm/path-scurry@1.9.2/node_modules/path-scurry/dist/mjs/index.js
|
|
3595
3599
|
var realpathSync = import_fs2.realpathSync.native;
|
|
3596
3600
|
var defaultFS = {
|
|
3597
3601
|
lstatSync: import_fs2.lstatSync,
|
|
@@ -3668,6 +3672,7 @@ var ChildrenCache = class extends LRUCache {
|
|
|
3668
3672
|
});
|
|
3669
3673
|
}
|
|
3670
3674
|
};
|
|
3675
|
+
var setAsCwd = Symbol("PathScurry setAsCwd");
|
|
3671
3676
|
var PathBase = class {
|
|
3672
3677
|
/**
|
|
3673
3678
|
* the basename of this path
|
|
@@ -3787,6 +3792,16 @@ var PathBase = class {
|
|
|
3787
3792
|
#children;
|
|
3788
3793
|
#linkTarget;
|
|
3789
3794
|
#realpath;
|
|
3795
|
+
/**
|
|
3796
|
+
* This property is for compatibility with the Dirent class as of
|
|
3797
|
+
* Node v20, where Dirent['path'] refers to the path of the directory
|
|
3798
|
+
* that was passed to readdir. So, somewhat counterintuitively, this
|
|
3799
|
+
* property refers to the *parent* path, not the path object itself.
|
|
3800
|
+
* For root entries, it's the path to the entry itself.
|
|
3801
|
+
*/
|
|
3802
|
+
get path() {
|
|
3803
|
+
return (this.parent || this).fullpath();
|
|
3804
|
+
}
|
|
3790
3805
|
/**
|
|
3791
3806
|
* Do not create new Path objects directly. They should always be accessed
|
|
3792
3807
|
* via the PathScurry class or other methods on the Path class.
|
|
@@ -3921,8 +3936,7 @@ var PathBase = class {
|
|
|
3921
3936
|
return this.#relative = this.name;
|
|
3922
3937
|
}
|
|
3923
3938
|
const pv = p.relative();
|
|
3924
|
-
|
|
3925
|
-
return this.#relative = rp;
|
|
3939
|
+
return pv + (!pv || !p.parent ? "" : this.sep) + name;
|
|
3926
3940
|
}
|
|
3927
3941
|
/**
|
|
3928
3942
|
* The relative path from the cwd, using / as the path separator.
|
|
@@ -3941,8 +3955,7 @@ var PathBase = class {
|
|
|
3941
3955
|
return this.#relativePosix = this.fullpathPosix();
|
|
3942
3956
|
}
|
|
3943
3957
|
const pv = p.relativePosix();
|
|
3944
|
-
|
|
3945
|
-
return this.#relativePosix = rp;
|
|
3958
|
+
return pv + (!pv || !p.parent ? "" : "/") + name;
|
|
3946
3959
|
}
|
|
3947
3960
|
/**
|
|
3948
3961
|
* The fully resolved path string for this Path entry
|
|
@@ -4520,6 +4533,32 @@ var PathBase = class {
|
|
|
4520
4533
|
this.#markENOREALPATH();
|
|
4521
4534
|
}
|
|
4522
4535
|
}
|
|
4536
|
+
/**
|
|
4537
|
+
* Internal method to mark this Path object as the scurry cwd,
|
|
4538
|
+
* called by {@link PathScurry#chdir}
|
|
4539
|
+
*
|
|
4540
|
+
* @internal
|
|
4541
|
+
*/
|
|
4542
|
+
[setAsCwd](oldCwd) {
|
|
4543
|
+
if (oldCwd === this)
|
|
4544
|
+
return;
|
|
4545
|
+
const changed = /* @__PURE__ */ new Set([]);
|
|
4546
|
+
let rp = [];
|
|
4547
|
+
let p = this;
|
|
4548
|
+
while (p && p.parent) {
|
|
4549
|
+
changed.add(p);
|
|
4550
|
+
p.#relative = rp.join(this.sep);
|
|
4551
|
+
p.#relativePosix = rp.join("/");
|
|
4552
|
+
p = p.parent;
|
|
4553
|
+
rp.push("..");
|
|
4554
|
+
}
|
|
4555
|
+
p = oldCwd;
|
|
4556
|
+
while (p && p.parent && !changed.has(p)) {
|
|
4557
|
+
p.#relative = void 0;
|
|
4558
|
+
p.#relativePosix = void 0;
|
|
4559
|
+
p = p.parent;
|
|
4560
|
+
}
|
|
4561
|
+
}
|
|
4523
4562
|
};
|
|
4524
4563
|
var PathWin32 = class extends PathBase {
|
|
4525
4564
|
/**
|
|
@@ -5176,6 +5215,11 @@ var PathScurryBase = class {
|
|
|
5176
5215
|
process2();
|
|
5177
5216
|
return results;
|
|
5178
5217
|
}
|
|
5218
|
+
chdir(path2 = this.cwd) {
|
|
5219
|
+
const oldCwd = this.cwd;
|
|
5220
|
+
this.cwd = typeof path2 === "string" ? this.cwd.resolve(path2) : path2;
|
|
5221
|
+
this.cwd[setAsCwd](oldCwd);
|
|
5222
|
+
}
|
|
5179
5223
|
};
|
|
5180
5224
|
var PathScurryWin32 = class extends PathScurryBase {
|
|
5181
5225
|
/**
|
|
@@ -5247,10 +5291,10 @@ var PathScurryDarwin = class extends PathScurryPosix {
|
|
|
5247
5291
|
var Path = process.platform === "win32" ? PathWin32 : PathPosix;
|
|
5248
5292
|
var PathScurry = process.platform === "win32" ? PathScurryWin32 : process.platform === "darwin" ? PathScurryDarwin : PathScurryPosix;
|
|
5249
5293
|
|
|
5250
|
-
// node_modules/.pnpm/glob@10.2.
|
|
5294
|
+
// node_modules/.pnpm/glob@10.2.6/node_modules/glob/dist/mjs/glob.js
|
|
5251
5295
|
var import_url2 = require("url");
|
|
5252
5296
|
|
|
5253
|
-
// node_modules/.pnpm/glob@10.2.
|
|
5297
|
+
// node_modules/.pnpm/glob@10.2.6/node_modules/glob/dist/mjs/pattern.js
|
|
5254
5298
|
var isPatternList = (pl) => pl.length >= 1;
|
|
5255
5299
|
var isGlobList = (gl) => gl.length >= 1;
|
|
5256
5300
|
var Pattern = class {
|
|
@@ -5415,7 +5459,7 @@ var Pattern = class {
|
|
|
5415
5459
|
}
|
|
5416
5460
|
};
|
|
5417
5461
|
|
|
5418
|
-
// node_modules/.pnpm/glob@10.2.
|
|
5462
|
+
// node_modules/.pnpm/glob@10.2.6/node_modules/glob/dist/mjs/ignore.js
|
|
5419
5463
|
var defaultPlatform2 = typeof process === "object" && process && typeof process.platform === "string" ? process.platform : "linux";
|
|
5420
5464
|
var Ignore = class {
|
|
5421
5465
|
relative;
|
|
@@ -5490,7 +5534,7 @@ var Ignore = class {
|
|
|
5490
5534
|
}
|
|
5491
5535
|
};
|
|
5492
5536
|
|
|
5493
|
-
// node_modules/.pnpm/glob@10.2.
|
|
5537
|
+
// node_modules/.pnpm/glob@10.2.6/node_modules/glob/dist/mjs/processor.js
|
|
5494
5538
|
var HasWalkedCache = class {
|
|
5495
5539
|
store;
|
|
5496
5540
|
constructor(store = /* @__PURE__ */ new Map()) {
|
|
@@ -5717,7 +5761,7 @@ var Processor = class {
|
|
|
5717
5761
|
}
|
|
5718
5762
|
};
|
|
5719
5763
|
|
|
5720
|
-
// node_modules/.pnpm/glob@10.2.
|
|
5764
|
+
// node_modules/.pnpm/glob@10.2.6/node_modules/glob/dist/mjs/walker.js
|
|
5721
5765
|
var makeIgnore = (ignore, opts) => typeof ignore === "string" ? new Ignore([ignore], opts) : Array.isArray(ignore) ? new Ignore(ignore, opts) : ignore;
|
|
5722
5766
|
var GlobUtil = class {
|
|
5723
5767
|
path;
|
|
@@ -6021,7 +6065,7 @@ var GlobStream = class extends GlobUtil {
|
|
|
6021
6065
|
}
|
|
6022
6066
|
};
|
|
6023
6067
|
|
|
6024
|
-
// node_modules/.pnpm/glob@10.2.
|
|
6068
|
+
// node_modules/.pnpm/glob@10.2.6/node_modules/glob/dist/mjs/glob.js
|
|
6025
6069
|
var defaultPlatform3 = typeof process === "object" && process && typeof process.platform === "string" ? process.platform : "linux";
|
|
6026
6070
|
var Glob = class {
|
|
6027
6071
|
absolute;
|
|
@@ -6125,6 +6169,7 @@ var Glob = class {
|
|
|
6125
6169
|
});
|
|
6126
6170
|
}
|
|
6127
6171
|
this.nocase = this.scurry.nocase;
|
|
6172
|
+
const nocaseMagicOnly = this.platform === "darwin" || this.platform === "win32";
|
|
6128
6173
|
const mmo = {
|
|
6129
6174
|
// default nocase based on platform
|
|
6130
6175
|
...opts,
|
|
@@ -6132,7 +6177,7 @@ var Glob = class {
|
|
|
6132
6177
|
matchBase: this.matchBase,
|
|
6133
6178
|
nobrace: this.nobrace,
|
|
6134
6179
|
nocase: this.nocase,
|
|
6135
|
-
nocaseMagicOnly
|
|
6180
|
+
nocaseMagicOnly,
|
|
6136
6181
|
nocomment: true,
|
|
6137
6182
|
noext: this.noext,
|
|
6138
6183
|
nonegate: true,
|
|
@@ -6209,7 +6254,7 @@ var Glob = class {
|
|
|
6209
6254
|
}
|
|
6210
6255
|
};
|
|
6211
6256
|
|
|
6212
|
-
// node_modules/.pnpm/glob@10.2.
|
|
6257
|
+
// node_modules/.pnpm/glob@10.2.6/node_modules/glob/dist/mjs/has-magic.js
|
|
6213
6258
|
var hasMagic = (pattern, options = {}) => {
|
|
6214
6259
|
if (!Array.isArray(pattern)) {
|
|
6215
6260
|
pattern = [pattern];
|
|
@@ -6221,7 +6266,7 @@ var hasMagic = (pattern, options = {}) => {
|
|
|
6221
6266
|
return false;
|
|
6222
6267
|
};
|
|
6223
6268
|
|
|
6224
|
-
// node_modules/.pnpm/glob@10.2.
|
|
6269
|
+
// node_modules/.pnpm/glob@10.2.6/node_modules/glob/dist/mjs/index.js
|
|
6225
6270
|
function globStreamSync(pattern, options = {}) {
|
|
6226
6271
|
return new Glob(pattern, options).streamSync();
|
|
6227
6272
|
}
|
package/bin/index.mjs
CHANGED
|
@@ -270,7 +270,7 @@ import { blue } from "kolorist";
|
|
|
270
270
|
// package.json
|
|
271
271
|
var package_default = {
|
|
272
272
|
name: "@soybeanjs/cli",
|
|
273
|
-
version: "0.
|
|
273
|
+
version: "0.2.0",
|
|
274
274
|
description: "SoybeanJS's command lint tools",
|
|
275
275
|
author: {
|
|
276
276
|
name: "Soybean",
|
|
@@ -285,6 +285,9 @@ var package_default = {
|
|
|
285
285
|
bugs: {
|
|
286
286
|
url: "https://github.com/honghuangdc/soybean-cli/issues"
|
|
287
287
|
},
|
|
288
|
+
publishConfig: {
|
|
289
|
+
registry: "https://registry.npmjs.org/"
|
|
290
|
+
},
|
|
288
291
|
bin: {
|
|
289
292
|
soybean: "bin/index.mjs",
|
|
290
293
|
soy: "bin/index.mjs"
|
|
@@ -299,29 +302,32 @@ var package_default = {
|
|
|
299
302
|
commit: "soy git-commit",
|
|
300
303
|
cleanup: "soy cleanup",
|
|
301
304
|
"update-pkg": "soy update-pkg",
|
|
302
|
-
"update-version":
|
|
305
|
+
"update-version": 'bumpp package.json --execute="pnpm gen-log" --commit --all --push --tag',
|
|
303
306
|
"publish-pkg": "pnpm -r publish --access public",
|
|
304
|
-
release: "pnpm update-version && pnpm publish-pkg"
|
|
307
|
+
release: "pnpm update-version && pnpm publish-pkg",
|
|
308
|
+
"gen-log": "conventional-changelog -p angular -i CHANGELOG.md -s"
|
|
305
309
|
},
|
|
306
310
|
dependencies: {
|
|
307
|
-
commander: "
|
|
308
|
-
enquirer: "
|
|
311
|
+
commander: "10.0.1",
|
|
312
|
+
enquirer: "2.3.6",
|
|
309
313
|
execa: "7.1.1",
|
|
310
|
-
kolorist: "
|
|
311
|
-
minimist: "
|
|
312
|
-
"npm-check-updates": "
|
|
313
|
-
rimraf: "
|
|
314
|
+
kolorist: "1.8.0",
|
|
315
|
+
minimist: "1.2.8",
|
|
316
|
+
"npm-check-updates": "16.10.12",
|
|
317
|
+
rimraf: "5.0.1"
|
|
314
318
|
},
|
|
315
319
|
devDependencies: {
|
|
316
320
|
"@soybeanjs/cli": "link:",
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
"
|
|
320
|
-
|
|
321
|
-
"
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
321
|
+
"@types/node": "^20.2.3",
|
|
322
|
+
bumpp: "9.1.0",
|
|
323
|
+
"conventional-changelog-cli": "^2.2.2",
|
|
324
|
+
eslint: "8.41.0",
|
|
325
|
+
"eslint-config-soybeanjs": "0.3.8",
|
|
326
|
+
"lint-staged": "13.2.2",
|
|
327
|
+
"simple-git-hooks": "2.8.1",
|
|
328
|
+
tsup: "6.7.0",
|
|
329
|
+
tsx: "3.12.7",
|
|
330
|
+
typescript: "5.0.4"
|
|
325
331
|
},
|
|
326
332
|
"simple-git-hooks": {
|
|
327
333
|
"commit-msg": "pnpm soybean git-commit-verify",
|
|
@@ -331,9 +337,6 @@ var package_default = {
|
|
|
331
337
|
"*.{js,jsx,mjs,cjs,json,ts,tsx,mts,cts,vue,svelte,astro}": [
|
|
332
338
|
"eslint . --fix"
|
|
333
339
|
]
|
|
334
|
-
},
|
|
335
|
-
publishConfig: {
|
|
336
|
-
registry: "https://registry.npmjs.org/"
|
|
337
340
|
}
|
|
338
341
|
};
|
|
339
342
|
|
|
@@ -351,7 +354,6 @@ var types = [
|
|
|
351
354
|
{ value: "refactor", title: "refactor: \u4EE3\u7801\u91CD\u6784\uFF0C\u6CA1\u6709\u52A0\u65B0\u529F\u80FD\u6216\u8005\u4FEE\u590Dbug" },
|
|
352
355
|
{ value: "perf", title: "perf: \u4F18\u5316\u76F8\u5173\uFF0C\u6BD4\u5982\u63D0\u5347\u6027\u80FD\u3001\u4F53\u9A8C" },
|
|
353
356
|
{ value: "test", title: "test: \u6DFB\u52A0\u6D4B\u8BD5\u7528\u4F8B" },
|
|
354
|
-
{ value: "build", title: "build: \u4F9D\u8D56\u76F8\u5173\u7684\u5185\u5BB9" },
|
|
355
357
|
{ value: "ci", title: "ci: CI\u914D\u7F6E\u76F8\u5173\uFF0C\u4F8B\u5982\u5BF9k8s\uFF0Cdocker\u7684\u914D\u7F6E\u6587\u4EF6\u7684\u4FEE\u6539" },
|
|
356
358
|
{ value: "chore", title: "chore: \u6539\u53D8\u6784\u5EFA\u6D41\u7A0B\u3001\u6216\u8005\u589E\u52A0\u4F9D\u8D56\u5E93\u3001\u5DE5\u5177\u7B49" },
|
|
357
359
|
{ value: "revert", title: "revert: \u56DE\u6EDA\u5230\u4E0A\u4E00\u4E2A\u7248\u672C" }
|
|
@@ -421,10 +423,10 @@ function verifyGitCommit() {
|
|
|
421
423
|
// src/scripts/cleanup.ts
|
|
422
424
|
import { rimraf } from "rimraf";
|
|
423
425
|
|
|
424
|
-
// node_modules/.pnpm/minimatch@9.0.
|
|
426
|
+
// node_modules/.pnpm/minimatch@9.0.1/node_modules/minimatch/dist/mjs/index.js
|
|
425
427
|
var import_brace_expansion = __toESM(require_brace_expansion(), 1);
|
|
426
428
|
|
|
427
|
-
// node_modules/.pnpm/minimatch@9.0.
|
|
429
|
+
// node_modules/.pnpm/minimatch@9.0.1/node_modules/minimatch/dist/mjs/assert-valid-pattern.js
|
|
428
430
|
var MAX_PATTERN_LENGTH = 1024 * 64;
|
|
429
431
|
var assertValidPattern = (pattern) => {
|
|
430
432
|
if (typeof pattern !== "string") {
|
|
@@ -435,7 +437,7 @@ var assertValidPattern = (pattern) => {
|
|
|
435
437
|
}
|
|
436
438
|
};
|
|
437
439
|
|
|
438
|
-
// node_modules/.pnpm/minimatch@9.0.
|
|
440
|
+
// node_modules/.pnpm/minimatch@9.0.1/node_modules/minimatch/dist/mjs/brace-expressions.js
|
|
439
441
|
var posixClasses = {
|
|
440
442
|
"[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", true],
|
|
441
443
|
"[:alpha:]": ["\\p{L}\\p{Nl}", true],
|
|
@@ -545,12 +547,12 @@ var parseClass = (glob2, position) => {
|
|
|
545
547
|
return [comb, uflag, endPos - pos, true];
|
|
546
548
|
};
|
|
547
549
|
|
|
548
|
-
// node_modules/.pnpm/minimatch@9.0.
|
|
550
|
+
// node_modules/.pnpm/minimatch@9.0.1/node_modules/minimatch/dist/mjs/unescape.js
|
|
549
551
|
var unescape = (s, { windowsPathsNoEscape = false } = {}) => {
|
|
550
552
|
return windowsPathsNoEscape ? s.replace(/\[([^\/\\])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1");
|
|
551
553
|
};
|
|
552
554
|
|
|
553
|
-
// node_modules/.pnpm/minimatch@9.0.
|
|
555
|
+
// node_modules/.pnpm/minimatch@9.0.1/node_modules/minimatch/dist/mjs/ast.js
|
|
554
556
|
var types2 = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]);
|
|
555
557
|
var isExtglobType = (c) => types2.has(c);
|
|
556
558
|
var startNoTraversal = "(?!\\.\\.?(?:$|/))";
|
|
@@ -1036,12 +1038,12 @@ parseGlob_fn = function(glob2, hasMagic2, noEmpty = false) {
|
|
|
1036
1038
|
__privateAdd(AST, _parseAST);
|
|
1037
1039
|
__privateAdd(AST, _parseGlob);
|
|
1038
1040
|
|
|
1039
|
-
// node_modules/.pnpm/minimatch@9.0.
|
|
1041
|
+
// node_modules/.pnpm/minimatch@9.0.1/node_modules/minimatch/dist/mjs/escape.js
|
|
1040
1042
|
var escape = (s, { windowsPathsNoEscape = false } = {}) => {
|
|
1041
1043
|
return windowsPathsNoEscape ? s.replace(/[?*()[\]]/g, "[$&]") : s.replace(/[?*()[\]\\]/g, "\\$&");
|
|
1042
1044
|
};
|
|
1043
1045
|
|
|
1044
|
-
// node_modules/.pnpm/minimatch@9.0.
|
|
1046
|
+
// node_modules/.pnpm/minimatch@9.0.1/node_modules/minimatch/dist/mjs/index.js
|
|
1045
1047
|
var minimatch = (p, pattern, options = {}) => {
|
|
1046
1048
|
assertValidPattern(pattern);
|
|
1047
1049
|
if (!options.nocomment && pattern.charAt(0) === "#") {
|
|
@@ -1528,26 +1530,21 @@ var Minimatch = class {
|
|
|
1528
1530
|
matchOne(file, pattern, partial = false) {
|
|
1529
1531
|
const options = this.options;
|
|
1530
1532
|
if (this.isWindows) {
|
|
1531
|
-
const
|
|
1532
|
-
const
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1533
|
+
const fileDrive = typeof file[0] === "string" && /^[a-z]:$/i.test(file[0]);
|
|
1534
|
+
const fileUNC = !fileDrive && file[0] === "" && file[1] === "" && file[2] === "?" && /^[a-z]:$/i.test(file[3]);
|
|
1535
|
+
const patternDrive = typeof pattern[0] === "string" && /^[a-z]:$/i.test(pattern[0]);
|
|
1536
|
+
const patternUNC = !patternDrive && pattern[0] === "" && pattern[1] === "" && pattern[2] === "?" && typeof pattern[3] === "string" && /^[a-z]:$/i.test(pattern[3]);
|
|
1537
|
+
const fdi = fileUNC ? 3 : fileDrive ? 0 : void 0;
|
|
1538
|
+
const pdi = patternUNC ? 3 : patternDrive ? 0 : void 0;
|
|
1539
|
+
if (typeof fdi === "number" && typeof pdi === "number") {
|
|
1540
|
+
const [fd, pd] = [file[fdi], pattern[pdi]];
|
|
1536
1541
|
if (fd.toLowerCase() === pd.toLowerCase()) {
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
pattern[3] = fd;
|
|
1544
|
-
pattern = pattern.slice(3);
|
|
1545
|
-
}
|
|
1546
|
-
} else if (fileUNC && typeof pattern[0] === "string") {
|
|
1547
|
-
const fd = file[3];
|
|
1548
|
-
if (fd.toLowerCase() === pattern[0].toLowerCase()) {
|
|
1549
|
-
pattern[0] = fd;
|
|
1550
|
-
file = file.slice(3);
|
|
1542
|
+
pattern[pdi] = fd;
|
|
1543
|
+
if (pdi > fdi) {
|
|
1544
|
+
pattern = pattern.slice(pdi);
|
|
1545
|
+
} else if (fdi > pdi) {
|
|
1546
|
+
file = file.slice(fdi);
|
|
1547
|
+
}
|
|
1551
1548
|
}
|
|
1552
1549
|
}
|
|
1553
1550
|
}
|
|
@@ -1760,7 +1757,7 @@ minimatch.Minimatch = Minimatch;
|
|
|
1760
1757
|
minimatch.escape = escape;
|
|
1761
1758
|
minimatch.unescape = unescape;
|
|
1762
1759
|
|
|
1763
|
-
// node_modules/.pnpm/lru-cache@9.1.
|
|
1760
|
+
// node_modules/.pnpm/lru-cache@9.1.1/node_modules/lru-cache/dist/mjs/index.js
|
|
1764
1761
|
var perf = typeof performance === "object" && performance && typeof performance.now === "function" ? performance : Date;
|
|
1765
1762
|
var warned = /* @__PURE__ */ new Set();
|
|
1766
1763
|
var PROCESS = typeof process === "object" && !!process ? process : {};
|
|
@@ -2135,7 +2132,8 @@ var LRUCache = class {
|
|
|
2135
2132
|
status.ttl = ttl;
|
|
2136
2133
|
status.start = start;
|
|
2137
2134
|
status.now = cachedNow || getNow();
|
|
2138
|
-
|
|
2135
|
+
const age = status.now - start;
|
|
2136
|
+
status.remainingTTL = ttl - age;
|
|
2139
2137
|
}
|
|
2140
2138
|
};
|
|
2141
2139
|
let cachedNow = 0;
|
|
@@ -2155,7 +2153,13 @@ var LRUCache = class {
|
|
|
2155
2153
|
if (index === void 0) {
|
|
2156
2154
|
return 0;
|
|
2157
2155
|
}
|
|
2158
|
-
|
|
2156
|
+
const ttl = ttls[index];
|
|
2157
|
+
const start = starts[index];
|
|
2158
|
+
if (ttl === 0 || start === 0) {
|
|
2159
|
+
return Infinity;
|
|
2160
|
+
}
|
|
2161
|
+
const age = (cachedNow || getNow()) - start;
|
|
2162
|
+
return ttl - age;
|
|
2159
2163
|
};
|
|
2160
2164
|
this.#isStale = (index) => {
|
|
2161
2165
|
return ttls[index] !== 0 && starts[index] !== 0 && (cachedNow || getNow()) - starts[index] > ttls[index];
|
|
@@ -2982,14 +2986,14 @@ var LRUCache = class {
|
|
|
2982
2986
|
}
|
|
2983
2987
|
};
|
|
2984
2988
|
|
|
2985
|
-
// node_modules/.pnpm/path-scurry@1.
|
|
2989
|
+
// node_modules/.pnpm/path-scurry@1.9.2/node_modules/path-scurry/dist/mjs/index.js
|
|
2986
2990
|
import { posix, win32 } from "path";
|
|
2987
2991
|
import { fileURLToPath } from "url";
|
|
2988
2992
|
import * as actualFS from "fs";
|
|
2989
2993
|
import { lstatSync, readdir as readdirCB, readdirSync, readlinkSync, realpathSync as rps } from "fs";
|
|
2990
2994
|
import { lstat, readdir, readlink, realpath } from "fs/promises";
|
|
2991
2995
|
|
|
2992
|
-
// node_modules/.pnpm/minipass@
|
|
2996
|
+
// node_modules/.pnpm/minipass@6.0.2/node_modules/minipass/index.mjs
|
|
2993
2997
|
import EE from "events";
|
|
2994
2998
|
import Stream from "stream";
|
|
2995
2999
|
import stringdecoder from "string_decoder";
|
|
@@ -3590,7 +3594,7 @@ var Minipass = class extends Stream {
|
|
|
3590
3594
|
}
|
|
3591
3595
|
};
|
|
3592
3596
|
|
|
3593
|
-
// node_modules/.pnpm/path-scurry@1.
|
|
3597
|
+
// node_modules/.pnpm/path-scurry@1.9.2/node_modules/path-scurry/dist/mjs/index.js
|
|
3594
3598
|
var realpathSync = rps.native;
|
|
3595
3599
|
var defaultFS = {
|
|
3596
3600
|
lstatSync,
|
|
@@ -3667,6 +3671,7 @@ var ChildrenCache = class extends LRUCache {
|
|
|
3667
3671
|
});
|
|
3668
3672
|
}
|
|
3669
3673
|
};
|
|
3674
|
+
var setAsCwd = Symbol("PathScurry setAsCwd");
|
|
3670
3675
|
var PathBase = class {
|
|
3671
3676
|
/**
|
|
3672
3677
|
* the basename of this path
|
|
@@ -3786,6 +3791,16 @@ var PathBase = class {
|
|
|
3786
3791
|
#children;
|
|
3787
3792
|
#linkTarget;
|
|
3788
3793
|
#realpath;
|
|
3794
|
+
/**
|
|
3795
|
+
* This property is for compatibility with the Dirent class as of
|
|
3796
|
+
* Node v20, where Dirent['path'] refers to the path of the directory
|
|
3797
|
+
* that was passed to readdir. So, somewhat counterintuitively, this
|
|
3798
|
+
* property refers to the *parent* path, not the path object itself.
|
|
3799
|
+
* For root entries, it's the path to the entry itself.
|
|
3800
|
+
*/
|
|
3801
|
+
get path() {
|
|
3802
|
+
return (this.parent || this).fullpath();
|
|
3803
|
+
}
|
|
3789
3804
|
/**
|
|
3790
3805
|
* Do not create new Path objects directly. They should always be accessed
|
|
3791
3806
|
* via the PathScurry class or other methods on the Path class.
|
|
@@ -3920,8 +3935,7 @@ var PathBase = class {
|
|
|
3920
3935
|
return this.#relative = this.name;
|
|
3921
3936
|
}
|
|
3922
3937
|
const pv = p.relative();
|
|
3923
|
-
|
|
3924
|
-
return this.#relative = rp;
|
|
3938
|
+
return pv + (!pv || !p.parent ? "" : this.sep) + name;
|
|
3925
3939
|
}
|
|
3926
3940
|
/**
|
|
3927
3941
|
* The relative path from the cwd, using / as the path separator.
|
|
@@ -3940,8 +3954,7 @@ var PathBase = class {
|
|
|
3940
3954
|
return this.#relativePosix = this.fullpathPosix();
|
|
3941
3955
|
}
|
|
3942
3956
|
const pv = p.relativePosix();
|
|
3943
|
-
|
|
3944
|
-
return this.#relativePosix = rp;
|
|
3957
|
+
return pv + (!pv || !p.parent ? "" : "/") + name;
|
|
3945
3958
|
}
|
|
3946
3959
|
/**
|
|
3947
3960
|
* The fully resolved path string for this Path entry
|
|
@@ -4519,6 +4532,32 @@ var PathBase = class {
|
|
|
4519
4532
|
this.#markENOREALPATH();
|
|
4520
4533
|
}
|
|
4521
4534
|
}
|
|
4535
|
+
/**
|
|
4536
|
+
* Internal method to mark this Path object as the scurry cwd,
|
|
4537
|
+
* called by {@link PathScurry#chdir}
|
|
4538
|
+
*
|
|
4539
|
+
* @internal
|
|
4540
|
+
*/
|
|
4541
|
+
[setAsCwd](oldCwd) {
|
|
4542
|
+
if (oldCwd === this)
|
|
4543
|
+
return;
|
|
4544
|
+
const changed = /* @__PURE__ */ new Set([]);
|
|
4545
|
+
let rp = [];
|
|
4546
|
+
let p = this;
|
|
4547
|
+
while (p && p.parent) {
|
|
4548
|
+
changed.add(p);
|
|
4549
|
+
p.#relative = rp.join(this.sep);
|
|
4550
|
+
p.#relativePosix = rp.join("/");
|
|
4551
|
+
p = p.parent;
|
|
4552
|
+
rp.push("..");
|
|
4553
|
+
}
|
|
4554
|
+
p = oldCwd;
|
|
4555
|
+
while (p && p.parent && !changed.has(p)) {
|
|
4556
|
+
p.#relative = void 0;
|
|
4557
|
+
p.#relativePosix = void 0;
|
|
4558
|
+
p = p.parent;
|
|
4559
|
+
}
|
|
4560
|
+
}
|
|
4522
4561
|
};
|
|
4523
4562
|
var PathWin32 = class extends PathBase {
|
|
4524
4563
|
/**
|
|
@@ -5175,6 +5214,11 @@ var PathScurryBase = class {
|
|
|
5175
5214
|
process2();
|
|
5176
5215
|
return results;
|
|
5177
5216
|
}
|
|
5217
|
+
chdir(path2 = this.cwd) {
|
|
5218
|
+
const oldCwd = this.cwd;
|
|
5219
|
+
this.cwd = typeof path2 === "string" ? this.cwd.resolve(path2) : path2;
|
|
5220
|
+
this.cwd[setAsCwd](oldCwd);
|
|
5221
|
+
}
|
|
5178
5222
|
};
|
|
5179
5223
|
var PathScurryWin32 = class extends PathScurryBase {
|
|
5180
5224
|
/**
|
|
@@ -5246,10 +5290,10 @@ var PathScurryDarwin = class extends PathScurryPosix {
|
|
|
5246
5290
|
var Path = process.platform === "win32" ? PathWin32 : PathPosix;
|
|
5247
5291
|
var PathScurry = process.platform === "win32" ? PathScurryWin32 : process.platform === "darwin" ? PathScurryDarwin : PathScurryPosix;
|
|
5248
5292
|
|
|
5249
|
-
// node_modules/.pnpm/glob@10.2.
|
|
5293
|
+
// node_modules/.pnpm/glob@10.2.6/node_modules/glob/dist/mjs/glob.js
|
|
5250
5294
|
import { fileURLToPath as fileURLToPath2 } from "url";
|
|
5251
5295
|
|
|
5252
|
-
// node_modules/.pnpm/glob@10.2.
|
|
5296
|
+
// node_modules/.pnpm/glob@10.2.6/node_modules/glob/dist/mjs/pattern.js
|
|
5253
5297
|
var isPatternList = (pl) => pl.length >= 1;
|
|
5254
5298
|
var isGlobList = (gl) => gl.length >= 1;
|
|
5255
5299
|
var Pattern = class {
|
|
@@ -5414,7 +5458,7 @@ var Pattern = class {
|
|
|
5414
5458
|
}
|
|
5415
5459
|
};
|
|
5416
5460
|
|
|
5417
|
-
// node_modules/.pnpm/glob@10.2.
|
|
5461
|
+
// node_modules/.pnpm/glob@10.2.6/node_modules/glob/dist/mjs/ignore.js
|
|
5418
5462
|
var defaultPlatform2 = typeof process === "object" && process && typeof process.platform === "string" ? process.platform : "linux";
|
|
5419
5463
|
var Ignore = class {
|
|
5420
5464
|
relative;
|
|
@@ -5489,7 +5533,7 @@ var Ignore = class {
|
|
|
5489
5533
|
}
|
|
5490
5534
|
};
|
|
5491
5535
|
|
|
5492
|
-
// node_modules/.pnpm/glob@10.2.
|
|
5536
|
+
// node_modules/.pnpm/glob@10.2.6/node_modules/glob/dist/mjs/processor.js
|
|
5493
5537
|
var HasWalkedCache = class {
|
|
5494
5538
|
store;
|
|
5495
5539
|
constructor(store = /* @__PURE__ */ new Map()) {
|
|
@@ -5716,7 +5760,7 @@ var Processor = class {
|
|
|
5716
5760
|
}
|
|
5717
5761
|
};
|
|
5718
5762
|
|
|
5719
|
-
// node_modules/.pnpm/glob@10.2.
|
|
5763
|
+
// node_modules/.pnpm/glob@10.2.6/node_modules/glob/dist/mjs/walker.js
|
|
5720
5764
|
var makeIgnore = (ignore, opts) => typeof ignore === "string" ? new Ignore([ignore], opts) : Array.isArray(ignore) ? new Ignore(ignore, opts) : ignore;
|
|
5721
5765
|
var GlobUtil = class {
|
|
5722
5766
|
path;
|
|
@@ -6020,7 +6064,7 @@ var GlobStream = class extends GlobUtil {
|
|
|
6020
6064
|
}
|
|
6021
6065
|
};
|
|
6022
6066
|
|
|
6023
|
-
// node_modules/.pnpm/glob@10.2.
|
|
6067
|
+
// node_modules/.pnpm/glob@10.2.6/node_modules/glob/dist/mjs/glob.js
|
|
6024
6068
|
var defaultPlatform3 = typeof process === "object" && process && typeof process.platform === "string" ? process.platform : "linux";
|
|
6025
6069
|
var Glob = class {
|
|
6026
6070
|
absolute;
|
|
@@ -6124,6 +6168,7 @@ var Glob = class {
|
|
|
6124
6168
|
});
|
|
6125
6169
|
}
|
|
6126
6170
|
this.nocase = this.scurry.nocase;
|
|
6171
|
+
const nocaseMagicOnly = this.platform === "darwin" || this.platform === "win32";
|
|
6127
6172
|
const mmo = {
|
|
6128
6173
|
// default nocase based on platform
|
|
6129
6174
|
...opts,
|
|
@@ -6131,7 +6176,7 @@ var Glob = class {
|
|
|
6131
6176
|
matchBase: this.matchBase,
|
|
6132
6177
|
nobrace: this.nobrace,
|
|
6133
6178
|
nocase: this.nocase,
|
|
6134
|
-
nocaseMagicOnly
|
|
6179
|
+
nocaseMagicOnly,
|
|
6135
6180
|
nocomment: true,
|
|
6136
6181
|
noext: this.noext,
|
|
6137
6182
|
nonegate: true,
|
|
@@ -6208,7 +6253,7 @@ var Glob = class {
|
|
|
6208
6253
|
}
|
|
6209
6254
|
};
|
|
6210
6255
|
|
|
6211
|
-
// node_modules/.pnpm/glob@10.2.
|
|
6256
|
+
// node_modules/.pnpm/glob@10.2.6/node_modules/glob/dist/mjs/has-magic.js
|
|
6212
6257
|
var hasMagic = (pattern, options = {}) => {
|
|
6213
6258
|
if (!Array.isArray(pattern)) {
|
|
6214
6259
|
pattern = [pattern];
|
|
@@ -6220,7 +6265,7 @@ var hasMagic = (pattern, options = {}) => {
|
|
|
6220
6265
|
return false;
|
|
6221
6266
|
};
|
|
6222
6267
|
|
|
6223
|
-
// node_modules/.pnpm/glob@10.2.
|
|
6268
|
+
// node_modules/.pnpm/glob@10.2.6/node_modules/glob/dist/mjs/index.js
|
|
6224
6269
|
function globStreamSync(pattern, options = {}) {
|
|
6225
6270
|
return new Glob(pattern, options).streamSync();
|
|
6226
6271
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soybeanjs/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "SoybeanJS's command lint tools",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Soybean",
|
|
@@ -15,6 +15,9 @@
|
|
|
15
15
|
"bugs": {
|
|
16
16
|
"url": "https://github.com/honghuangdc/soybean-cli/issues"
|
|
17
17
|
},
|
|
18
|
+
"publishConfig": {
|
|
19
|
+
"registry": "https://registry.npmjs.org/"
|
|
20
|
+
},
|
|
18
21
|
"bin": {
|
|
19
22
|
"soybean": "bin/index.mjs",
|
|
20
23
|
"soy": "bin/index.mjs"
|
|
@@ -23,24 +26,26 @@
|
|
|
23
26
|
"bin"
|
|
24
27
|
],
|
|
25
28
|
"dependencies": {
|
|
26
|
-
"commander": "
|
|
27
|
-
"enquirer": "
|
|
29
|
+
"commander": "10.0.1",
|
|
30
|
+
"enquirer": "2.3.6",
|
|
28
31
|
"execa": "7.1.1",
|
|
29
|
-
"kolorist": "
|
|
30
|
-
"minimist": "
|
|
31
|
-
"npm-check-updates": "
|
|
32
|
-
"rimraf": "
|
|
32
|
+
"kolorist": "1.8.0",
|
|
33
|
+
"minimist": "1.2.8",
|
|
34
|
+
"npm-check-updates": "16.10.12",
|
|
35
|
+
"rimraf": "5.0.1"
|
|
33
36
|
},
|
|
34
37
|
"devDependencies": {
|
|
35
38
|
"@soybeanjs/cli": "link:",
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
39
|
+
"@types/node": "^20.2.3",
|
|
40
|
+
"bumpp": "9.1.0",
|
|
41
|
+
"conventional-changelog-cli": "^2.2.2",
|
|
42
|
+
"eslint": "8.41.0",
|
|
43
|
+
"eslint-config-soybeanjs": "0.3.8",
|
|
44
|
+
"lint-staged": "13.2.2",
|
|
45
|
+
"simple-git-hooks": "2.8.1",
|
|
46
|
+
"tsup": "6.7.0",
|
|
47
|
+
"tsx": "3.12.7",
|
|
48
|
+
"typescript": "5.0.4"
|
|
44
49
|
},
|
|
45
50
|
"simple-git-hooks": {
|
|
46
51
|
"commit-msg": "pnpm soybean git-commit-verify",
|
|
@@ -51,9 +56,6 @@
|
|
|
51
56
|
"eslint . --fix"
|
|
52
57
|
]
|
|
53
58
|
},
|
|
54
|
-
"publishConfig": {
|
|
55
|
-
"registry": "https://registry.npmjs.org/"
|
|
56
|
-
},
|
|
57
59
|
"scripts": {
|
|
58
60
|
"build": "tsup",
|
|
59
61
|
"lint": "eslint . --fix",
|
|
@@ -61,8 +63,9 @@
|
|
|
61
63
|
"commit": "soy git-commit",
|
|
62
64
|
"cleanup": "soy cleanup",
|
|
63
65
|
"update-pkg": "soy update-pkg",
|
|
64
|
-
"update-version": "bumpp package.json",
|
|
66
|
+
"update-version": "bumpp package.json --execute=\"pnpm gen-log\" --commit --all --push --tag",
|
|
65
67
|
"publish-pkg": "pnpm -r publish --access public",
|
|
66
|
-
"release": "pnpm update-version && pnpm publish-pkg"
|
|
68
|
+
"release": "pnpm update-version && pnpm publish-pkg",
|
|
69
|
+
"gen-log": "conventional-changelog -p angular -i CHANGELOG.md -s"
|
|
67
70
|
}
|
|
68
71
|
}
|