@@ -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.1.9 " ,
274
+ version : "0.2.0 " ,
275
275
description : "SoybeanJS's command lint tools" ,
276
276
author : {
277
277
name : "Soybean" ,
@@ -303,9 +303,10 @@ var package_default = {
303
303
commit : "soy git-commit" ,
304
304
cleanup : "soy cleanup" ,
305
305
"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' ,
307
307
"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"
309
310
} ,
310
311
dependencies : {
311
312
commander : "10.0.1" ,
@@ -314,13 +315,15 @@ var package_default = {
314
315
kolorist : "1.8.0" ,
315
316
minimist : "1.2.8" ,
316
317
"npm-check-updates" : "16.10.12" ,
317
- rimraf : "5.0.0 "
318
+ rimraf : "5.0.1 "
318
319
} ,
319
320
devDependencies : {
320
321
"@soybeanjs/cli" : "link:" ,
322
+ "@types/node" : "^20.2.3" ,
321
323
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" ,
324
327
"lint-staged" : "13.2.2" ,
325
328
"simple-git-hooks" : "2.8.1" ,
326
329
tsup : "6.7.0" ,
@@ -422,10 +425,10 @@ function verifyGitCommit() {
422
425
// src/scripts/cleanup.ts
423
426
var import_rimraf = require ( "rimraf" ) ;
424
427
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
426
429
var import_brace_expansion = __toESM ( require_brace_expansion ( ) , 1 ) ;
427
430
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
429
432
var MAX_PATTERN_LENGTH = 1024 * 64 ;
430
433
var assertValidPattern = ( pattern ) => {
431
434
if ( typeof pattern !== "string" ) {
@@ -436,7 +439,7 @@ var assertValidPattern = (pattern) => {
436
439
}
437
440
} ;
438
441
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
440
443
var posixClasses = {
441
444
"[:alnum:]" : [ "\\p{L}\\p{Nl}\\p{Nd}" , true ] ,
442
445
"[:alpha:]" : [ "\\p{L}\\p{Nl}" , true ] ,
@@ -546,12 +549,12 @@ var parseClass = (glob2, position) => {
546
549
return [ comb , uflag , endPos - pos , true ] ;
547
550
} ;
548
551
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
550
553
var unescape = ( s , { windowsPathsNoEscape = false } = { } ) => {
551
554
return windowsPathsNoEscape ? s . replace ( / \[ ( [ ^ \/ \\ ] ) \] / g, "$1" ) : s . replace ( / ( (? ! \\ ) .| ^ ) \[ ( [ ^ \/ \\ ] ) \] / g, "$1$2" ) . replace ( / \\ ( [ ^ \/ ] ) / g, "$1" ) ;
552
555
} ;
553
556
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
555
558
var types2 = /* @__PURE__ */ new Set ( [ "!" , "?" , "+" , "*" , "@" ] ) ;
556
559
var isExtglobType = ( c ) => types2 . has ( c ) ;
557
560
var startNoTraversal = "(?!\\.\\.?(?:$|/))" ;
@@ -1037,12 +1040,12 @@ parseGlob_fn = function(glob2, hasMagic2, noEmpty = false) {
1037
1040
__privateAdd ( AST , _parseAST ) ;
1038
1041
__privateAdd ( AST , _parseGlob ) ;
1039
1042
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
1041
1044
var escape = ( s , { windowsPathsNoEscape = false } = { } ) => {
1042
1045
return windowsPathsNoEscape ? s . replace ( / [ ? * ( ) [ \] ] / g, "[$&]" ) : s . replace ( / [ ? * ( ) [ \] \\ ] / g, "\\$&" ) ;
1043
1046
} ;
1044
1047
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
1046
1049
var minimatch = ( p , pattern , options = { } ) => {
1047
1050
assertValidPattern ( pattern ) ;
1048
1051
if ( ! options . nocomment && pattern . charAt ( 0 ) === "#" ) {
@@ -1529,26 +1532,21 @@ var Minimatch = class {
1529
1532
matchOne ( file , pattern , partial = false ) {
1530
1533
const options = this . options ;
1531
1534
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 ] ] ;
1537
1543
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
+ }
1552
1550
}
1553
1551
}
1554
1552
}
@@ -2990,14 +2988,14 @@ var LRUCache = class {
2990
2988
}
2991
2989
} ;
2992
2990
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
2994
2992
var import_path = require ( "path" ) ;
2995
2993
var import_url = require ( "url" ) ;
2996
2994
var actualFS = __toESM ( require ( "fs" ) , 1 ) ;
2997
2995
var import_fs2 = require ( "fs" ) ;
2998
2996
var import_promises = require ( "fs/promises" ) ;
2999
2997
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
3001
2999
var import_events = __toESM ( require ( "events" ) , 1 ) ;
3002
3000
var import_stream = __toESM ( require ( "stream" ) , 1 ) ;
3003
3001
var import_string_decoder = __toESM ( require ( "string_decoder" ) , 1 ) ;
@@ -3598,7 +3596,7 @@ var Minipass = class extends import_stream.default {
3598
3596
}
3599
3597
} ;
3600
3598
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
3602
3600
var realpathSync = import_fs2 . realpathSync . native ;
3603
3601
var defaultFS = {
3604
3602
lstatSync : import_fs2 . lstatSync ,
@@ -3795,6 +3793,16 @@ var PathBase = class {
3795
3793
#children;
3796
3794
#linkTarget;
3797
3795
#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
+ }
3798
3806
/**
3799
3807
* Do not create new Path objects directly. They should always be accessed
3800
3808
* via the PathScurry class or other methods on the Path class.
@@ -5284,10 +5292,10 @@ var PathScurryDarwin = class extends PathScurryPosix {
5284
5292
var Path = process . platform === "win32" ? PathWin32 : PathPosix ;
5285
5293
var PathScurry = process . platform === "win32" ? PathScurryWin32 : process . platform === "darwin" ? PathScurryDarwin : PathScurryPosix ;
5286
5294
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
5288
5296
var import_url2 = require ( "url" ) ;
5289
5297
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
5291
5299
var isPatternList = ( pl ) => pl . length >= 1 ;
5292
5300
var isGlobList = ( gl ) => gl . length >= 1 ;
5293
5301
var Pattern = class {
@@ -5452,7 +5460,7 @@ var Pattern = class {
5452
5460
}
5453
5461
} ;
5454
5462
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
5456
5464
var defaultPlatform2 = typeof process === "object" && process && typeof process . platform === "string" ? process . platform : "linux" ;
5457
5465
var Ignore = class {
5458
5466
relative ;
@@ -5527,7 +5535,7 @@ var Ignore = class {
5527
5535
}
5528
5536
} ;
5529
5537
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
5531
5539
var HasWalkedCache = class {
5532
5540
store ;
5533
5541
constructor ( store = /* @__PURE__ */ new Map ( ) ) {
@@ -5754,7 +5762,7 @@ var Processor = class {
5754
5762
}
5755
5763
} ;
5756
5764
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
5758
5766
var makeIgnore = ( ignore , opts ) => typeof ignore === "string" ? new Ignore ( [ ignore ] , opts ) : Array . isArray ( ignore ) ? new Ignore ( ignore , opts ) : ignore ;
5759
5767
var GlobUtil = class {
5760
5768
path ;
@@ -6058,7 +6066,7 @@ var GlobStream = class extends GlobUtil {
6058
6066
}
6059
6067
} ;
6060
6068
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
6062
6070
var defaultPlatform3 = typeof process === "object" && process && typeof process . platform === "string" ? process . platform : "linux" ;
6063
6071
var Glob = class {
6064
6072
absolute ;
@@ -6247,7 +6255,7 @@ var Glob = class {
6247
6255
}
6248
6256
} ;
6249
6257
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
6251
6259
var hasMagic = ( pattern , options = { } ) => {
6252
6260
if ( ! Array . isArray ( pattern ) ) {
6253
6261
pattern = [ pattern ] ;
@@ -6259,7 +6267,7 @@ var hasMagic = (pattern, options = {}) => {
6259
6267
return false ;
6260
6268
} ;
6261
6269
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
6263
6271
function globStreamSync ( pattern , options = { } ) {
6264
6272
return new Glob ( pattern , options ) . streamSync ( ) ;
6265
6273
}
0 commit comments