@@ -271,7 +271,7 @@ var import_kolorist2 = require("kolorist");
271271// package.json
272272var package_default = {
273273 name : "@soybeanjs/cli" ,
274- version : "0.1.9 " ,
274+ version : "0.2.0 " ,
275275 description : "SoybeanJS's command lint tools" ,
276276 author : {
277277 name : "Soybean" ,
@@ -303,9 +303,10 @@ var package_default = {
303303 commit : "soy git-commit" ,
304304 cleanup : "soy cleanup" ,
305305 "update-pkg" : "soy update-pkg" ,
306- "update-version" : " bumpp package.json" ,
306+ "update-version" : ' bumpp package.json --execute="pnpm gen-log" --commit --all --push --tag' ,
307307 "publish-pkg" : "pnpm -r publish --access public" ,
308- 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"
309310 } ,
310311 dependencies : {
311312 commander : "10.0.1" ,
@@ -314,13 +315,15 @@ var package_default = {
314315 kolorist : "1.8.0" ,
315316 minimist : "1.2.8" ,
316317 "npm-check-updates" : "16.10.12" ,
317- rimraf : "5.0.0 "
318+ rimraf : "5.0.1 "
318319 } ,
319320 devDependencies : {
320321 "@soybeanjs/cli" : "link:" ,
322+ "@types/node" : "^20.2.3" ,
321323 bumpp : "9.1.0" ,
322- eslint : "8.40.0" ,
323- "eslint-config-soybeanjs" : "0.3.7" ,
324+ "conventional-changelog-cli" : "^2.2.2" ,
325+ eslint : "8.41.0" ,
326+ "eslint-config-soybeanjs" : "0.3.8" ,
324327 "lint-staged" : "13.2.2" ,
325328 "simple-git-hooks" : "2.8.1" ,
326329 tsup : "6.7.0" ,
@@ -422,10 +425,10 @@ function verifyGitCommit() {
422425// src/scripts/cleanup.ts
423426var import_rimraf = require ( "rimraf" ) ;
424427
425- // node_modules/.pnpm/minimatch@9.0.0 /node_modules/minimatch/dist/mjs/index.js
428+ // node_modules/.pnpm/minimatch@9.0.1 /node_modules/minimatch/dist/mjs/index.js
426429var import_brace_expansion = __toESM ( require_brace_expansion ( ) , 1 ) ;
427430
428- // node_modules/.pnpm/minimatch@9.0.0 /node_modules/minimatch/dist/mjs/assert-valid-pattern.js
431+ // node_modules/.pnpm/minimatch@9.0.1 /node_modules/minimatch/dist/mjs/assert-valid-pattern.js
429432var MAX_PATTERN_LENGTH = 1024 * 64 ;
430433var assertValidPattern = ( pattern ) => {
431434 if ( typeof pattern !== "string" ) {
@@ -436,7 +439,7 @@ var assertValidPattern = (pattern) => {
436439 }
437440} ;
438441
439- // node_modules/.pnpm/minimatch@9.0.0 /node_modules/minimatch/dist/mjs/brace-expressions.js
442+ // node_modules/.pnpm/minimatch@9.0.1 /node_modules/minimatch/dist/mjs/brace-expressions.js
440443var posixClasses = {
441444 "[:alnum:]" : [ "\\p{L}\\p{Nl}\\p{Nd}" , true ] ,
442445 "[:alpha:]" : [ "\\p{L}\\p{Nl}" , true ] ,
@@ -546,12 +549,12 @@ var parseClass = (glob2, position) => {
546549 return [ comb , uflag , endPos - pos , true ] ;
547550} ;
548551
549- // node_modules/.pnpm/minimatch@9.0.0 /node_modules/minimatch/dist/mjs/unescape.js
552+ // node_modules/.pnpm/minimatch@9.0.1 /node_modules/minimatch/dist/mjs/unescape.js
550553var unescape = ( s , { windowsPathsNoEscape = false } = { } ) => {
551554 return windowsPathsNoEscape ? s . replace ( / \[ ( [ ^ \/ \\ ] ) \] / g, "$1" ) : s . replace ( / ( (? ! \\ ) .| ^ ) \[ ( [ ^ \/ \\ ] ) \] / g, "$1$2" ) . replace ( / \\ ( [ ^ \/ ] ) / g, "$1" ) ;
552555} ;
553556
554- // node_modules/.pnpm/minimatch@9.0.0 /node_modules/minimatch/dist/mjs/ast.js
557+ // node_modules/.pnpm/minimatch@9.0.1 /node_modules/minimatch/dist/mjs/ast.js
555558var types2 = /* @__PURE__ */ new Set ( [ "!" , "?" , "+" , "*" , "@" ] ) ;
556559var isExtglobType = ( c ) => types2 . has ( c ) ;
557560var startNoTraversal = "(?!\\.\\.?(?:$|/))" ;
@@ -1037,12 +1040,12 @@ parseGlob_fn = function(glob2, hasMagic2, noEmpty = false) {
10371040__privateAdd ( AST , _parseAST ) ;
10381041__privateAdd ( AST , _parseGlob ) ;
10391042
1040- // node_modules/.pnpm/minimatch@9.0.0 /node_modules/minimatch/dist/mjs/escape.js
1043+ // node_modules/.pnpm/minimatch@9.0.1 /node_modules/minimatch/dist/mjs/escape.js
10411044var escape = ( s , { windowsPathsNoEscape = false } = { } ) => {
10421045 return windowsPathsNoEscape ? s . replace ( / [ ? * ( ) [ \] ] / g, "[$&]" ) : s . replace ( / [ ? * ( ) [ \] \\ ] / g, "\\$&" ) ;
10431046} ;
10441047
1045- // node_modules/.pnpm/minimatch@9.0.0 /node_modules/minimatch/dist/mjs/index.js
1048+ // node_modules/.pnpm/minimatch@9.0.1 /node_modules/minimatch/dist/mjs/index.js
10461049var minimatch = ( p , pattern , options = { } ) => {
10471050 assertValidPattern ( pattern ) ;
10481051 if ( ! options . nocomment && pattern . charAt ( 0 ) === "#" ) {
@@ -1529,26 +1532,21 @@ var Minimatch = class {
15291532 matchOne ( file , pattern , partial = false ) {
15301533 const options = this . options ;
15311534 if ( this . isWindows ) {
1532- const fileUNC = file [ 0 ] === "" && file [ 1 ] === "" && file [ 2 ] === "?" && typeof file [ 3 ] === "string" && / ^ [ a - z ] : $ / i. test ( file [ 3 ] ) ;
1533- const patternUNC = pattern [ 0 ] === "" && pattern [ 1 ] === "" && pattern [ 2 ] === "?" && typeof pattern [ 3 ] === "string" && / ^ [ a - z ] : $ / i. test ( pattern [ 3 ] ) ;
1534- if ( fileUNC && patternUNC ) {
1535- const fd = file [ 3 ] ;
1536- const pd = pattern [ 3 ] ;
1535+ const fileDrive = typeof file [ 0 ] === "string" && / ^ [ a - z ] : $ / i. test ( file [ 0 ] ) ;
1536+ const fileUNC = ! fileDrive && file [ 0 ] === "" && file [ 1 ] === "" && file [ 2 ] === "?" && / ^ [ a - z ] : $ / i. test ( file [ 3 ] ) ;
1537+ const patternDrive = typeof pattern [ 0 ] === "string" && / ^ [ a - z ] : $ / i. test ( pattern [ 0 ] ) ;
1538+ const patternUNC = ! patternDrive && pattern [ 0 ] === "" && pattern [ 1 ] === "" && pattern [ 2 ] === "?" && typeof pattern [ 3 ] === "string" && / ^ [ a - z ] : $ / i. test ( pattern [ 3 ] ) ;
1539+ const fdi = fileUNC ? 3 : fileDrive ? 0 : void 0 ;
1540+ const pdi = patternUNC ? 3 : patternDrive ? 0 : void 0 ;
1541+ if ( typeof fdi === "number" && typeof pdi === "number" ) {
1542+ const [ fd , pd ] = [ file [ fdi ] , pattern [ pdi ] ] ;
15371543 if ( fd . toLowerCase ( ) === pd . toLowerCase ( ) ) {
1538- file [ 3 ] = pd ;
1539- }
1540- } else if ( patternUNC && typeof file [ 0 ] === "string" ) {
1541- const pd = pattern [ 3 ] ;
1542- const fd = file [ 0 ] ;
1543- if ( pd . toLowerCase ( ) === fd . toLowerCase ( ) ) {
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 ) ;
1544+ pattern [ pdi ] = fd ;
1545+ if ( pdi > fdi ) {
1546+ pattern = pattern . slice ( pdi ) ;
1547+ } else if ( fdi > pdi ) {
1548+ file = file . slice ( fdi ) ;
1549+ }
15521550 }
15531551 }
15541552 }
@@ -2990,14 +2988,14 @@ var LRUCache = class {
29902988 }
29912989} ;
29922990
2993- // node_modules/.pnpm/path-scurry@1.8.0 /node_modules/path-scurry/dist/mjs/index.js
2991+ // node_modules/.pnpm/path-scurry@1.9.2 /node_modules/path-scurry/dist/mjs/index.js
29942992var import_path = require ( "path" ) ;
29952993var import_url = require ( "url" ) ;
29962994var actualFS = __toESM ( require ( "fs" ) , 1 ) ;
29972995var import_fs2 = require ( "fs" ) ;
29982996var import_promises = require ( "fs/promises" ) ;
29992997
3000- // node_modules/.pnpm/minipass@5 .0.0 /node_modules/minipass/index.mjs
2998+ // node_modules/.pnpm/minipass@6 .0.2 /node_modules/minipass/index.mjs
30012999var import_events = __toESM ( require ( "events" ) , 1 ) ;
30023000var import_stream = __toESM ( require ( "stream" ) , 1 ) ;
30033001var import_string_decoder = __toESM ( require ( "string_decoder" ) , 1 ) ;
@@ -3598,7 +3596,7 @@ var Minipass = class extends import_stream.default {
35983596 }
35993597} ;
36003598
3601- // node_modules/.pnpm/path-scurry@1.8.0 /node_modules/path-scurry/dist/mjs/index.js
3599+ // node_modules/.pnpm/path-scurry@1.9.2 /node_modules/path-scurry/dist/mjs/index.js
36023600var realpathSync = import_fs2 . realpathSync . native ;
36033601var defaultFS = {
36043602 lstatSync : import_fs2 . lstatSync ,
@@ -3795,6 +3793,16 @@ var PathBase = class {
37953793 #children;
37963794 #linkTarget;
37973795 #realpath;
3796+ /**
3797+ * This property is for compatibility with the Dirent class as of
3798+ * Node v20, where Dirent['path'] refers to the path of the directory
3799+ * that was passed to readdir. So, somewhat counterintuitively, this
3800+ * property refers to the *parent* path, not the path object itself.
3801+ * For root entries, it's the path to the entry itself.
3802+ */
3803+ get path ( ) {
3804+ return ( this . parent || this ) . fullpath ( ) ;
3805+ }
37983806 /**
37993807 * Do not create new Path objects directly. They should always be accessed
38003808 * via the PathScurry class or other methods on the Path class.
@@ -5284,10 +5292,10 @@ var PathScurryDarwin = class extends PathScurryPosix {
52845292var Path = process . platform === "win32" ? PathWin32 : PathPosix ;
52855293var PathScurry = process . platform === "win32" ? PathScurryWin32 : process . platform === "darwin" ? PathScurryDarwin : PathScurryPosix ;
52865294
5287- // node_modules/.pnpm/glob@10.2.3 /node_modules/glob/dist/mjs/glob.js
5295+ // node_modules/.pnpm/glob@10.2.6 /node_modules/glob/dist/mjs/glob.js
52885296var import_url2 = require ( "url" ) ;
52895297
5290- // node_modules/.pnpm/glob@10.2.3 /node_modules/glob/dist/mjs/pattern.js
5298+ // node_modules/.pnpm/glob@10.2.6 /node_modules/glob/dist/mjs/pattern.js
52915299var isPatternList = ( pl ) => pl . length >= 1 ;
52925300var isGlobList = ( gl ) => gl . length >= 1 ;
52935301var Pattern = class {
@@ -5452,7 +5460,7 @@ var Pattern = class {
54525460 }
54535461} ;
54545462
5455- // node_modules/.pnpm/glob@10.2.3 /node_modules/glob/dist/mjs/ignore.js
5463+ // node_modules/.pnpm/glob@10.2.6 /node_modules/glob/dist/mjs/ignore.js
54565464var defaultPlatform2 = typeof process === "object" && process && typeof process . platform === "string" ? process . platform : "linux" ;
54575465var Ignore = class {
54585466 relative ;
@@ -5527,7 +5535,7 @@ var Ignore = class {
55275535 }
55285536} ;
55295537
5530- // node_modules/.pnpm/glob@10.2.3 /node_modules/glob/dist/mjs/processor.js
5538+ // node_modules/.pnpm/glob@10.2.6 /node_modules/glob/dist/mjs/processor.js
55315539var HasWalkedCache = class {
55325540 store ;
55335541 constructor ( store = /* @__PURE__ */ new Map ( ) ) {
@@ -5754,7 +5762,7 @@ var Processor = class {
57545762 }
57555763} ;
57565764
5757- // node_modules/.pnpm/glob@10.2.3 /node_modules/glob/dist/mjs/walker.js
5765+ // node_modules/.pnpm/glob@10.2.6 /node_modules/glob/dist/mjs/walker.js
57585766var makeIgnore = ( ignore , opts ) => typeof ignore === "string" ? new Ignore ( [ ignore ] , opts ) : Array . isArray ( ignore ) ? new Ignore ( ignore , opts ) : ignore ;
57595767var GlobUtil = class {
57605768 path ;
@@ -6058,7 +6066,7 @@ var GlobStream = class extends GlobUtil {
60586066 }
60596067} ;
60606068
6061- // node_modules/.pnpm/glob@10.2.3 /node_modules/glob/dist/mjs/glob.js
6069+ // node_modules/.pnpm/glob@10.2.6 /node_modules/glob/dist/mjs/glob.js
60626070var defaultPlatform3 = typeof process === "object" && process && typeof process . platform === "string" ? process . platform : "linux" ;
60636071var Glob = class {
60646072 absolute ;
@@ -6247,7 +6255,7 @@ var Glob = class {
62476255 }
62486256} ;
62496257
6250- // node_modules/.pnpm/glob@10.2.3 /node_modules/glob/dist/mjs/has-magic.js
6258+ // node_modules/.pnpm/glob@10.2.6 /node_modules/glob/dist/mjs/has-magic.js
62516259var hasMagic = ( pattern , options = { } ) => {
62526260 if ( ! Array . isArray ( pattern ) ) {
62536261 pattern = [ pattern ] ;
@@ -6259,7 +6267,7 @@ var hasMagic = (pattern, options = {}) => {
62596267 return false ;
62606268} ;
62616269
6262- // node_modules/.pnpm/glob@10.2.3 /node_modules/glob/dist/mjs/index.js
6270+ // node_modules/.pnpm/glob@10.2.6 /node_modules/glob/dist/mjs/index.js
62636271function globStreamSync ( pattern , options = { } ) {
62646272 return new Glob ( pattern , options ) . streamSync ( ) ;
62656273}
0 commit comments