@modern-js/repo-generator 3.2.10 → 3.3.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +233 -198
- package/package.json +11 -11
package/dist/index.js
CHANGED
@@ -10758,9 +10758,9 @@ var require_axios2 = __commonJS({
|
|
10758
10758
|
}
|
10759
10759
|
});
|
10760
10760
|
|
10761
|
-
// ../../../../node_modules/.pnpm/tar@6.
|
10761
|
+
// ../../../../node_modules/.pnpm/tar@6.2.0/node_modules/tar/lib/high-level-opt.js
|
10762
10762
|
var require_high_level_opt = __commonJS({
|
10763
|
-
"../../../../node_modules/.pnpm/tar@6.
|
10763
|
+
"../../../../node_modules/.pnpm/tar@6.2.0/node_modules/tar/lib/high-level-opt.js"(exports, module2) {
|
10764
10764
|
"use strict";
|
10765
10765
|
var argmap = /* @__PURE__ */ new Map([
|
10766
10766
|
["C", "cwd"],
|
@@ -10790,9 +10790,9 @@ var require_high_level_opt = __commonJS({
|
|
10790
10790
|
}
|
10791
10791
|
});
|
10792
10792
|
|
10793
|
-
// ../../../../node_modules/.pnpm/minipass@
|
10793
|
+
// ../../../../node_modules/.pnpm/minipass@5.0.0/node_modules/minipass/index.js
|
10794
10794
|
var require_minipass = __commonJS({
|
10795
|
-
"../../../../node_modules/.pnpm/minipass@
|
10795
|
+
"../../../../node_modules/.pnpm/minipass@5.0.0/node_modules/minipass/index.js"(exports) {
|
10796
10796
|
"use strict";
|
10797
10797
|
var proc = typeof process === "object" && process ? process : {
|
10798
10798
|
stdout: null,
|
@@ -11393,7 +11393,7 @@ var require_minipass = __commonJS({
|
|
11393
11393
|
typeof s.write === "function" && typeof s.end === "function"));
|
11394
11394
|
}
|
11395
11395
|
};
|
11396
|
-
|
11396
|
+
exports.Minipass = Minipass;
|
11397
11397
|
}
|
11398
11398
|
});
|
11399
11399
|
|
@@ -12302,23 +12302,23 @@ var require_minizlib = __commonJS({
|
|
12302
12302
|
}
|
12303
12303
|
});
|
12304
12304
|
|
12305
|
-
// ../../../../node_modules/.pnpm/tar@6.
|
12305
|
+
// ../../../../node_modules/.pnpm/tar@6.2.0/node_modules/tar/lib/normalize-windows-path.js
|
12306
12306
|
var require_normalize_windows_path = __commonJS({
|
12307
|
-
"../../../../node_modules/.pnpm/tar@6.
|
12307
|
+
"../../../../node_modules/.pnpm/tar@6.2.0/node_modules/tar/lib/normalize-windows-path.js"(exports, module2) {
|
12308
12308
|
"use strict";
|
12309
12309
|
var platform = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
|
12310
12310
|
module2.exports = platform !== "win32" ? (p) => p : (p) => p && p.replace(/\\/g, "/");
|
12311
12311
|
}
|
12312
12312
|
});
|
12313
12313
|
|
12314
|
-
// ../../../../node_modules/.pnpm/tar@6.
|
12314
|
+
// ../../../../node_modules/.pnpm/tar@6.2.0/node_modules/tar/lib/read-entry.js
|
12315
12315
|
var require_read_entry = __commonJS({
|
12316
|
-
"../../../../node_modules/.pnpm/tar@6.
|
12316
|
+
"../../../../node_modules/.pnpm/tar@6.2.0/node_modules/tar/lib/read-entry.js"(exports, module2) {
|
12317
12317
|
"use strict";
|
12318
|
-
var
|
12318
|
+
var { Minipass } = require_minipass();
|
12319
12319
|
var normPath = require_normalize_windows_path();
|
12320
12320
|
var SLURP = Symbol("slurp");
|
12321
|
-
module2.exports = class ReadEntry extends
|
12321
|
+
module2.exports = class ReadEntry extends Minipass {
|
12322
12322
|
constructor(header, ex, gex) {
|
12323
12323
|
super();
|
12324
12324
|
this.pause();
|
@@ -12405,9 +12405,9 @@ var require_read_entry = __commonJS({
|
|
12405
12405
|
}
|
12406
12406
|
});
|
12407
12407
|
|
12408
|
-
// ../../../../node_modules/.pnpm/tar@6.
|
12408
|
+
// ../../../../node_modules/.pnpm/tar@6.2.0/node_modules/tar/lib/types.js
|
12409
12409
|
var require_types = __commonJS({
|
12410
|
-
"../../../../node_modules/.pnpm/tar@6.
|
12410
|
+
"../../../../node_modules/.pnpm/tar@6.2.0/node_modules/tar/lib/types.js"(exports) {
|
12411
12411
|
"use strict";
|
12412
12412
|
exports.name = /* @__PURE__ */ new Map([
|
12413
12413
|
["0", "File"],
|
@@ -12452,9 +12452,9 @@ var require_types = __commonJS({
|
|
12452
12452
|
}
|
12453
12453
|
});
|
12454
12454
|
|
12455
|
-
// ../../../../node_modules/.pnpm/tar@6.
|
12455
|
+
// ../../../../node_modules/.pnpm/tar@6.2.0/node_modules/tar/lib/large-numbers.js
|
12456
12456
|
var require_large_numbers = __commonJS({
|
12457
|
-
"../../../../node_modules/.pnpm/tar@6.
|
12457
|
+
"../../../../node_modules/.pnpm/tar@6.2.0/node_modules/tar/lib/large-numbers.js"(exports, module2) {
|
12458
12458
|
"use strict";
|
12459
12459
|
var encode = (num, buf) => {
|
12460
12460
|
if (!Number.isSafeInteger(num)) {
|
@@ -12542,9 +12542,9 @@ var require_large_numbers = __commonJS({
|
|
12542
12542
|
}
|
12543
12543
|
});
|
12544
12544
|
|
12545
|
-
// ../../../../node_modules/.pnpm/tar@6.
|
12545
|
+
// ../../../../node_modules/.pnpm/tar@6.2.0/node_modules/tar/lib/header.js
|
12546
12546
|
var require_header = __commonJS({
|
12547
|
-
"../../../../node_modules/.pnpm/tar@6.
|
12547
|
+
"../../../../node_modules/.pnpm/tar@6.2.0/node_modules/tar/lib/header.js"(exports, module2) {
|
12548
12548
|
"use strict";
|
12549
12549
|
var types = require_types();
|
12550
12550
|
var pathModule = require("path").posix;
|
@@ -12762,9 +12762,9 @@ var require_header = __commonJS({
|
|
12762
12762
|
}
|
12763
12763
|
});
|
12764
12764
|
|
12765
|
-
// ../../../../node_modules/.pnpm/tar@6.
|
12765
|
+
// ../../../../node_modules/.pnpm/tar@6.2.0/node_modules/tar/lib/pax.js
|
12766
12766
|
var require_pax = __commonJS({
|
12767
|
-
"../../../../node_modules/.pnpm/tar@6.
|
12767
|
+
"../../../../node_modules/.pnpm/tar@6.2.0/node_modules/tar/lib/pax.js"(exports, module2) {
|
12768
12768
|
"use strict";
|
12769
12769
|
var Header = require_header();
|
12770
12770
|
var path18 = require("path");
|
@@ -12863,9 +12863,9 @@ var require_pax = __commonJS({
|
|
12863
12863
|
}
|
12864
12864
|
});
|
12865
12865
|
|
12866
|
-
// ../../../../node_modules/.pnpm/tar@6.
|
12866
|
+
// ../../../../node_modules/.pnpm/tar@6.2.0/node_modules/tar/lib/strip-trailing-slashes.js
|
12867
12867
|
var require_strip_trailing_slashes = __commonJS({
|
12868
|
-
"../../../../node_modules/.pnpm/tar@6.
|
12868
|
+
"../../../../node_modules/.pnpm/tar@6.2.0/node_modules/tar/lib/strip-trailing-slashes.js"(exports, module2) {
|
12869
12869
|
"use strict";
|
12870
12870
|
module2.exports = (str) => {
|
12871
12871
|
let i = str.length - 1;
|
@@ -12879,9 +12879,9 @@ var require_strip_trailing_slashes = __commonJS({
|
|
12879
12879
|
}
|
12880
12880
|
});
|
12881
12881
|
|
12882
|
-
// ../../../../node_modules/.pnpm/tar@6.
|
12882
|
+
// ../../../../node_modules/.pnpm/tar@6.2.0/node_modules/tar/lib/warn-mixin.js
|
12883
12883
|
var require_warn_mixin = __commonJS({
|
12884
|
-
"../../../../node_modules/.pnpm/tar@6.
|
12884
|
+
"../../../../node_modules/.pnpm/tar@6.2.0/node_modules/tar/lib/warn-mixin.js"(exports, module2) {
|
12885
12885
|
"use strict";
|
12886
12886
|
module2.exports = (Base) => class extends Base {
|
12887
12887
|
warn(code, message, data = {}) {
|
@@ -12909,9 +12909,9 @@ var require_warn_mixin = __commonJS({
|
|
12909
12909
|
}
|
12910
12910
|
});
|
12911
12911
|
|
12912
|
-
// ../../../../node_modules/.pnpm/tar@6.
|
12912
|
+
// ../../../../node_modules/.pnpm/tar@6.2.0/node_modules/tar/lib/winchars.js
|
12913
12913
|
var require_winchars = __commonJS({
|
12914
|
-
"../../../../node_modules/.pnpm/tar@6.
|
12914
|
+
"../../../../node_modules/.pnpm/tar@6.2.0/node_modules/tar/lib/winchars.js"(exports, module2) {
|
12915
12915
|
"use strict";
|
12916
12916
|
var raw2 = [
|
12917
12917
|
"|",
|
@@ -12930,9 +12930,9 @@ var require_winchars = __commonJS({
|
|
12930
12930
|
}
|
12931
12931
|
});
|
12932
12932
|
|
12933
|
-
// ../../../../node_modules/.pnpm/tar@6.
|
12933
|
+
// ../../../../node_modules/.pnpm/tar@6.2.0/node_modules/tar/lib/strip-absolute-path.js
|
12934
12934
|
var require_strip_absolute_path = __commonJS({
|
12935
|
-
"../../../../node_modules/.pnpm/tar@6.
|
12935
|
+
"../../../../node_modules/.pnpm/tar@6.2.0/node_modules/tar/lib/strip-absolute-path.js"(exports, module2) {
|
12936
12936
|
"use strict";
|
12937
12937
|
var { isAbsolute, parse: parse3 } = require("path").win32;
|
12938
12938
|
module2.exports = (path18) => {
|
@@ -12949,9 +12949,9 @@ var require_strip_absolute_path = __commonJS({
|
|
12949
12949
|
}
|
12950
12950
|
});
|
12951
12951
|
|
12952
|
-
// ../../../../node_modules/.pnpm/tar@6.
|
12952
|
+
// ../../../../node_modules/.pnpm/tar@6.2.0/node_modules/tar/lib/mode-fix.js
|
12953
12953
|
var require_mode_fix = __commonJS({
|
12954
|
-
"../../../../node_modules/.pnpm/tar@6.
|
12954
|
+
"../../../../node_modules/.pnpm/tar@6.2.0/node_modules/tar/lib/mode-fix.js"(exports, module2) {
|
12955
12955
|
"use strict";
|
12956
12956
|
module2.exports = (mode, isDir, portable) => {
|
12957
12957
|
mode &= 4095;
|
@@ -12974,11 +12974,11 @@ var require_mode_fix = __commonJS({
|
|
12974
12974
|
}
|
12975
12975
|
});
|
12976
12976
|
|
12977
|
-
// ../../../../node_modules/.pnpm/tar@6.
|
12977
|
+
// ../../../../node_modules/.pnpm/tar@6.2.0/node_modules/tar/lib/write-entry.js
|
12978
12978
|
var require_write_entry = __commonJS({
|
12979
|
-
"../../../../node_modules/.pnpm/tar@6.
|
12979
|
+
"../../../../node_modules/.pnpm/tar@6.2.0/node_modules/tar/lib/write-entry.js"(exports, module2) {
|
12980
12980
|
"use strict";
|
12981
|
-
var
|
12981
|
+
var { Minipass } = require_minipass();
|
12982
12982
|
var Pax = require_pax();
|
12983
12983
|
var Header = require_header();
|
12984
12984
|
var fs11 = require("fs");
|
@@ -13016,7 +13016,7 @@ var require_write_entry = __commonJS({
|
|
13016
13016
|
var winchars = require_winchars();
|
13017
13017
|
var stripAbsolutePath = require_strip_absolute_path();
|
13018
13018
|
var modeFix = require_mode_fix();
|
13019
|
-
var WriteEntry = warner(class WriteEntry extends
|
13019
|
+
var WriteEntry = warner(class WriteEntry extends Minipass {
|
13020
13020
|
constructor(p, opt) {
|
13021
13021
|
opt = opt || {};
|
13022
13022
|
super(opt);
|
@@ -13332,7 +13332,7 @@ var require_write_entry = __commonJS({
|
|
13332
13332
|
cb();
|
13333
13333
|
}
|
13334
13334
|
};
|
13335
|
-
var WriteEntryTar = warner(class WriteEntryTar extends
|
13335
|
+
var WriteEntryTar = warner(class WriteEntryTar extends Minipass {
|
13336
13336
|
constructor(readEntry, opt) {
|
13337
13337
|
opt = opt || {};
|
13338
13338
|
super(opt);
|
@@ -13822,9 +13822,9 @@ var require_yallist = __commonJS({
|
|
13822
13822
|
}
|
13823
13823
|
});
|
13824
13824
|
|
13825
|
-
// ../../../../node_modules/.pnpm/tar@6.
|
13825
|
+
// ../../../../node_modules/.pnpm/tar@6.2.0/node_modules/tar/lib/pack.js
|
13826
13826
|
var require_pack = __commonJS({
|
13827
|
-
"../../../../node_modules/.pnpm/tar@6.
|
13827
|
+
"../../../../node_modules/.pnpm/tar@6.2.0/node_modules/tar/lib/pack.js"(exports, module2) {
|
13828
13828
|
"use strict";
|
13829
13829
|
var PackJob = class {
|
13830
13830
|
constructor(path19, absolute) {
|
@@ -13838,7 +13838,7 @@ var require_pack = __commonJS({
|
|
13838
13838
|
this.piped = false;
|
13839
13839
|
}
|
13840
13840
|
};
|
13841
|
-
var
|
13841
|
+
var { Minipass } = require_minipass();
|
13842
13842
|
var zlib = require_minizlib();
|
13843
13843
|
var ReadEntry = require_read_entry();
|
13844
13844
|
var WriteEntry = require_write_entry();
|
@@ -13870,7 +13870,7 @@ var require_pack = __commonJS({
|
|
13870
13870
|
var path18 = require("path");
|
13871
13871
|
var warner = require_warn_mixin();
|
13872
13872
|
var normPath = require_normalize_windows_path();
|
13873
|
-
var Pack = warner(class Pack extends
|
13873
|
+
var Pack = warner(class Pack extends Minipass {
|
13874
13874
|
constructor(opt) {
|
13875
13875
|
super(opt);
|
13876
13876
|
opt = opt || /* @__PURE__ */ Object.create(null);
|
@@ -13891,14 +13891,25 @@ var require_pack = __commonJS({
|
|
13891
13891
|
}
|
13892
13892
|
this.portable = !!opt.portable;
|
13893
13893
|
this.zip = null;
|
13894
|
-
if (opt.gzip) {
|
13895
|
-
if (
|
13896
|
-
|
13894
|
+
if (opt.gzip || opt.brotli) {
|
13895
|
+
if (opt.gzip && opt.brotli) {
|
13896
|
+
throw new TypeError("gzip and brotli are mutually exclusive");
|
13897
13897
|
}
|
13898
|
-
if (
|
13899
|
-
opt.gzip
|
13898
|
+
if (opt.gzip) {
|
13899
|
+
if (typeof opt.gzip !== "object") {
|
13900
|
+
opt.gzip = {};
|
13901
|
+
}
|
13902
|
+
if (this.portable) {
|
13903
|
+
opt.gzip.portable = true;
|
13904
|
+
}
|
13905
|
+
this.zip = new zlib.Gzip(opt.gzip);
|
13906
|
+
}
|
13907
|
+
if (opt.brotli) {
|
13908
|
+
if (typeof opt.brotli !== "object") {
|
13909
|
+
opt.brotli = {};
|
13910
|
+
}
|
13911
|
+
this.zip = new zlib.BrotliCompress(opt.brotli);
|
13900
13912
|
}
|
13901
|
-
this.zip = new zlib.Gzip(opt.gzip);
|
13902
13913
|
this.zip.on("data", (chunk) => super.write(chunk));
|
13903
13914
|
this.zip.on("end", (_) => super.end());
|
13904
13915
|
this.zip.on("drain", (_) => this[ONDRAIN]());
|
@@ -14555,9 +14566,9 @@ var require_fs_minipass = __commonJS({
|
|
14555
14566
|
}
|
14556
14567
|
});
|
14557
14568
|
|
14558
|
-
// ../../../../node_modules/.pnpm/tar@6.
|
14569
|
+
// ../../../../node_modules/.pnpm/tar@6.2.0/node_modules/tar/lib/parse.js
|
14559
14570
|
var require_parse2 = __commonJS({
|
14560
|
-
"../../../../node_modules/.pnpm/tar@6.
|
14571
|
+
"../../../../node_modules/.pnpm/tar@6.2.0/node_modules/tar/lib/parse.js"(exports, module2) {
|
14561
14572
|
"use strict";
|
14562
14573
|
var warner = require_warn_mixin();
|
14563
14574
|
var Header = require_header();
|
@@ -14623,6 +14634,8 @@ var require_parse2 = __commonJS({
|
|
14623
14634
|
this.strict = !!opt.strict;
|
14624
14635
|
this.maxMetaEntrySize = opt.maxMetaEntrySize || maxMetaEntrySize;
|
14625
14636
|
this.filter = typeof opt.filter === "function" ? opt.filter : noop;
|
14637
|
+
const isTBR = opt.file && (opt.file.endsWith(".tar.br") || opt.file.endsWith(".tbr"));
|
14638
|
+
this.brotli = !opt.gzip && opt.brotli !== void 0 ? opt.brotli : isTBR ? void 0 : false;
|
14626
14639
|
this.writable = true;
|
14627
14640
|
this.readable = false;
|
14628
14641
|
this[QUEUE] = new Yallist();
|
@@ -14824,7 +14837,8 @@ var require_parse2 = __commonJS({
|
|
14824
14837
|
if (this[ABORTED]) {
|
14825
14838
|
return;
|
14826
14839
|
}
|
14827
|
-
|
14840
|
+
const needSniff = this[UNZIP] === null || this.brotli === void 0 && this[UNZIP] === false;
|
14841
|
+
if (needSniff && chunk) {
|
14828
14842
|
if (this[BUFFER]) {
|
14829
14843
|
chunk = Buffer.concat([this[BUFFER], chunk]);
|
14830
14844
|
this[BUFFER] = null;
|
@@ -14838,10 +14852,28 @@ var require_parse2 = __commonJS({
|
|
14838
14852
|
this[UNZIP] = false;
|
14839
14853
|
}
|
14840
14854
|
}
|
14841
|
-
|
14855
|
+
const maybeBrotli = this.brotli === void 0;
|
14856
|
+
if (this[UNZIP] === false && maybeBrotli) {
|
14857
|
+
if (chunk.length < 512) {
|
14858
|
+
if (this[ENDED]) {
|
14859
|
+
this.brotli = true;
|
14860
|
+
} else {
|
14861
|
+
this[BUFFER] = chunk;
|
14862
|
+
return true;
|
14863
|
+
}
|
14864
|
+
} else {
|
14865
|
+
try {
|
14866
|
+
new Header(chunk.slice(0, 512));
|
14867
|
+
this.brotli = false;
|
14868
|
+
} catch (_) {
|
14869
|
+
this.brotli = true;
|
14870
|
+
}
|
14871
|
+
}
|
14872
|
+
}
|
14873
|
+
if (this[UNZIP] === null || this[UNZIP] === false && this.brotli) {
|
14842
14874
|
const ended = this[ENDED];
|
14843
14875
|
this[ENDED] = false;
|
14844
|
-
this[UNZIP] = new zlib.Unzip();
|
14876
|
+
this[UNZIP] = this[UNZIP] === null ? new zlib.Unzip() : new zlib.BrotliDecompress();
|
14845
14877
|
this[UNZIP].on("data", (chunk2) => this[CONSUMECHUNK](chunk2));
|
14846
14878
|
this[UNZIP].on("error", (er) => this.abort(er));
|
14847
14879
|
this[UNZIP].on("end", (_) => {
|
@@ -14948,6 +14980,8 @@ var require_parse2 = __commonJS({
|
|
14948
14980
|
this[UNZIP].end(chunk);
|
14949
14981
|
} else {
|
14950
14982
|
this[ENDED] = true;
|
14983
|
+
if (this.brotli === void 0)
|
14984
|
+
chunk = chunk || Buffer.alloc(0);
|
14951
14985
|
this.write(chunk);
|
14952
14986
|
}
|
14953
14987
|
}
|
@@ -14956,9 +14990,9 @@ var require_parse2 = __commonJS({
|
|
14956
14990
|
}
|
14957
14991
|
});
|
14958
14992
|
|
14959
|
-
// ../../../../node_modules/.pnpm/tar@6.
|
14993
|
+
// ../../../../node_modules/.pnpm/tar@6.2.0/node_modules/tar/lib/list.js
|
14960
14994
|
var require_list = __commonJS({
|
14961
|
-
"../../../../node_modules/.pnpm/tar@6.
|
14995
|
+
"../../../../node_modules/.pnpm/tar@6.2.0/node_modules/tar/lib/list.js"(exports, module2) {
|
14962
14996
|
"use strict";
|
14963
14997
|
var hlo = require_high_level_opt();
|
14964
14998
|
var Parser2 = require_parse2();
|
@@ -15070,9 +15104,9 @@ var require_list = __commonJS({
|
|
15070
15104
|
}
|
15071
15105
|
});
|
15072
15106
|
|
15073
|
-
// ../../../../node_modules/.pnpm/tar@6.
|
15107
|
+
// ../../../../node_modules/.pnpm/tar@6.2.0/node_modules/tar/lib/create.js
|
15074
15108
|
var require_create = __commonJS({
|
15075
|
-
"../../../../node_modules/.pnpm/tar@6.
|
15109
|
+
"../../../../node_modules/.pnpm/tar@6.2.0/node_modules/tar/lib/create.js"(exports, module2) {
|
15076
15110
|
"use strict";
|
15077
15111
|
var hlo = require_high_level_opt();
|
15078
15112
|
var Pack = require_pack();
|
@@ -15164,9 +15198,9 @@ var require_create = __commonJS({
|
|
15164
15198
|
}
|
15165
15199
|
});
|
15166
15200
|
|
15167
|
-
// ../../../../node_modules/.pnpm/tar@6.
|
15201
|
+
// ../../../../node_modules/.pnpm/tar@6.2.0/node_modules/tar/lib/replace.js
|
15168
15202
|
var require_replace = __commonJS({
|
15169
|
-
"../../../../node_modules/.pnpm/tar@6.
|
15203
|
+
"../../../../node_modules/.pnpm/tar@6.2.0/node_modules/tar/lib/replace.js"(exports, module2) {
|
15170
15204
|
"use strict";
|
15171
15205
|
var hlo = require_high_level_opt();
|
15172
15206
|
var Pack = require_pack();
|
@@ -15180,7 +15214,7 @@ var require_replace = __commonJS({
|
|
15180
15214
|
if (!opt.file) {
|
15181
15215
|
throw new TypeError("file is required");
|
15182
15216
|
}
|
15183
|
-
if (opt.gzip) {
|
15217
|
+
if (opt.gzip || opt.brotli || opt.file.endsWith(".br") || opt.file.endsWith(".tbr")) {
|
15184
15218
|
throw new TypeError("cannot append to compressed archives");
|
15185
15219
|
}
|
15186
15220
|
if (!files || !Array.isArray(files) || !files.length) {
|
@@ -15380,9 +15414,9 @@ var require_replace = __commonJS({
|
|
15380
15414
|
}
|
15381
15415
|
});
|
15382
15416
|
|
15383
|
-
// ../../../../node_modules/.pnpm/tar@6.
|
15417
|
+
// ../../../../node_modules/.pnpm/tar@6.2.0/node_modules/tar/lib/update.js
|
15384
15418
|
var require_update = __commonJS({
|
15385
|
-
"../../../../node_modules/.pnpm/tar@6.
|
15419
|
+
"../../../../node_modules/.pnpm/tar@6.2.0/node_modules/tar/lib/update.js"(exports, module2) {
|
15386
15420
|
"use strict";
|
15387
15421
|
var hlo = require_high_level_opt();
|
15388
15422
|
var r = require_replace();
|
@@ -15391,7 +15425,7 @@ var require_update = __commonJS({
|
|
15391
15425
|
if (!opt.file) {
|
15392
15426
|
throw new TypeError("file is required");
|
15393
15427
|
}
|
15394
|
-
if (opt.gzip) {
|
15428
|
+
if (opt.gzip || opt.brotli || opt.file.endsWith(".br") || opt.file.endsWith(".tbr")) {
|
15395
15429
|
throw new TypeError("cannot append to compressed archives");
|
15396
15430
|
}
|
15397
15431
|
if (!files || !Array.isArray(files) || !files.length) {
|
@@ -15774,9 +15808,9 @@ var require_chownr = __commonJS({
|
|
15774
15808
|
}
|
15775
15809
|
});
|
15776
15810
|
|
15777
|
-
// ../../../../node_modules/.pnpm/tar@6.
|
15811
|
+
// ../../../../node_modules/.pnpm/tar@6.2.0/node_modules/tar/lib/mkdir.js
|
15778
15812
|
var require_mkdir = __commonJS({
|
15779
|
-
"../../../../node_modules/.pnpm/tar@6.
|
15813
|
+
"../../../../node_modules/.pnpm/tar@6.2.0/node_modules/tar/lib/mkdir.js"(exports, module2) {
|
15780
15814
|
"use strict";
|
15781
15815
|
var mkdirp = require_mkdirp();
|
15782
15816
|
var fs11 = require("fs");
|
@@ -15966,24 +16000,24 @@ var require_mkdir = __commonJS({
|
|
15966
16000
|
}
|
15967
16001
|
});
|
15968
16002
|
|
15969
|
-
// ../../../../node_modules/.pnpm/tar@6.
|
16003
|
+
// ../../../../node_modules/.pnpm/tar@6.2.0/node_modules/tar/lib/normalize-unicode.js
|
15970
16004
|
var require_normalize_unicode = __commonJS({
|
15971
|
-
"../../../../node_modules/.pnpm/tar@6.
|
16005
|
+
"../../../../node_modules/.pnpm/tar@6.2.0/node_modules/tar/lib/normalize-unicode.js"(exports, module2) {
|
15972
16006
|
"use strict";
|
15973
16007
|
var normalizeCache = /* @__PURE__ */ Object.create(null);
|
15974
16008
|
var { hasOwnProperty: hasOwnProperty6 } = Object.prototype;
|
15975
16009
|
module2.exports = (s) => {
|
15976
16010
|
if (!hasOwnProperty6.call(normalizeCache, s)) {
|
15977
|
-
normalizeCache[s] = s.normalize("
|
16011
|
+
normalizeCache[s] = s.normalize("NFD");
|
15978
16012
|
}
|
15979
16013
|
return normalizeCache[s];
|
15980
16014
|
};
|
15981
16015
|
}
|
15982
16016
|
});
|
15983
16017
|
|
15984
|
-
// ../../../../node_modules/.pnpm/tar@6.
|
16018
|
+
// ../../../../node_modules/.pnpm/tar@6.2.0/node_modules/tar/lib/path-reservations.js
|
15985
16019
|
var require_path_reservations = __commonJS({
|
15986
|
-
"../../../../node_modules/.pnpm/tar@6.
|
16020
|
+
"../../../../node_modules/.pnpm/tar@6.2.0/node_modules/tar/lib/path-reservations.js"(exports, module2) {
|
15987
16021
|
"use strict";
|
15988
16022
|
var assert = require("assert");
|
15989
16023
|
var normalize = require_normalize_unicode();
|
@@ -16065,7 +16099,7 @@ var require_path_reservations = __commonJS({
|
|
16065
16099
|
};
|
16066
16100
|
const reserve = (paths, fn) => {
|
16067
16101
|
paths = isWindows ? ["win32 parallelization disabled"] : paths.map((p) => {
|
16068
|
-
return
|
16102
|
+
return stripSlashes(join(normalize(p))).toLowerCase();
|
16069
16103
|
});
|
16070
16104
|
const dirs = new Set(
|
16071
16105
|
paths.map((path18) => getDirs(path18)).reduce((a, b) => a.concat(b))
|
@@ -16096,9 +16130,9 @@ var require_path_reservations = __commonJS({
|
|
16096
16130
|
}
|
16097
16131
|
});
|
16098
16132
|
|
16099
|
-
// ../../../../node_modules/.pnpm/tar@6.
|
16133
|
+
// ../../../../node_modules/.pnpm/tar@6.2.0/node_modules/tar/lib/get-write-flag.js
|
16100
16134
|
var require_get_write_flag = __commonJS({
|
16101
|
-
"../../../../node_modules/.pnpm/tar@6.
|
16135
|
+
"../../../../node_modules/.pnpm/tar@6.2.0/node_modules/tar/lib/get-write-flag.js"(exports, module2) {
|
16102
16136
|
"use strict";
|
16103
16137
|
var platform = process.env.__FAKE_PLATFORM__ || process.platform;
|
16104
16138
|
var isWindows = platform === "win32";
|
@@ -16111,9 +16145,9 @@ var require_get_write_flag = __commonJS({
|
|
16111
16145
|
}
|
16112
16146
|
});
|
16113
16147
|
|
16114
|
-
// ../../../../node_modules/.pnpm/tar@6.
|
16148
|
+
// ../../../../node_modules/.pnpm/tar@6.2.0/node_modules/tar/lib/unpack.js
|
16115
16149
|
var require_unpack = __commonJS({
|
16116
|
-
"../../../../node_modules/.pnpm/tar@6.
|
16150
|
+
"../../../../node_modules/.pnpm/tar@6.2.0/node_modules/tar/lib/unpack.js"(exports, module2) {
|
16117
16151
|
"use strict";
|
16118
16152
|
var assert = require("assert");
|
16119
16153
|
var Parser2 = require_parse2();
|
@@ -16177,7 +16211,7 @@ var require_unpack = __commonJS({
|
|
16177
16211
|
fs11.unlinkSync(name);
|
16178
16212
|
};
|
16179
16213
|
var uint32 = (a, b, c) => a === a >>> 0 ? a : b === b >>> 0 ? b : c;
|
16180
|
-
var cacheKeyNormalize = (path19) =>
|
16214
|
+
var cacheKeyNormalize = (path19) => stripSlash(normPath(normalize(path19))).toLowerCase();
|
16181
16215
|
var pruneCache = (cache, abs) => {
|
16182
16216
|
abs = cacheKeyNormalize(abs);
|
16183
16217
|
for (const path19 of cache.keys()) {
|
@@ -16793,9 +16827,9 @@ var require_unpack = __commonJS({
|
|
16793
16827
|
}
|
16794
16828
|
});
|
16795
16829
|
|
16796
|
-
// ../../../../node_modules/.pnpm/tar@6.
|
16830
|
+
// ../../../../node_modules/.pnpm/tar@6.2.0/node_modules/tar/lib/extract.js
|
16797
16831
|
var require_extract = __commonJS({
|
16798
|
-
"../../../../node_modules/.pnpm/tar@6.
|
16832
|
+
"../../../../node_modules/.pnpm/tar@6.2.0/node_modules/tar/lib/extract.js"(exports, module2) {
|
16799
16833
|
"use strict";
|
16800
16834
|
var hlo = require_high_level_opt();
|
16801
16835
|
var Unpack = require_unpack();
|
@@ -16878,9 +16912,9 @@ var require_extract = __commonJS({
|
|
16878
16912
|
}
|
16879
16913
|
});
|
16880
16914
|
|
16881
|
-
// ../../../../node_modules/.pnpm/tar@6.
|
16915
|
+
// ../../../../node_modules/.pnpm/tar@6.2.0/node_modules/tar/index.js
|
16882
16916
|
var require_tar = __commonJS({
|
16883
|
-
"../../../../node_modules/.pnpm/tar@6.
|
16917
|
+
"../../../../node_modules/.pnpm/tar@6.2.0/node_modules/tar/index.js"(exports) {
|
16884
16918
|
"use strict";
|
16885
16919
|
exports.c = exports.create = require_create();
|
16886
16920
|
exports.r = exports.replace = require_replace();
|
@@ -72381,6 +72415,15 @@ var AppAPI = class {
|
|
72381
72415
|
}
|
72382
72416
|
};
|
72383
72417
|
|
72418
|
+
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.3/node_modules/@swc/helpers/esm/_define_property.js
|
72419
|
+
function _define_property2(obj, key, value) {
|
72420
|
+
if (key in obj) {
|
72421
|
+
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
72422
|
+
} else
|
72423
|
+
obj[key] = value;
|
72424
|
+
return obj;
|
72425
|
+
}
|
72426
|
+
|
72384
72427
|
// ../../../cli/plugin-i18n/dist/esm-node/index.js
|
72385
72428
|
var import_lodash8 = require("@modern-js/utils/lodash");
|
72386
72429
|
|
@@ -72439,8 +72482,8 @@ var I18n2 = class {
|
|
72439
72482
|
};
|
72440
72483
|
}
|
72441
72484
|
constructor() {
|
72442
|
-
|
72443
|
-
|
72485
|
+
_define_property2(this, "language", "en");
|
72486
|
+
_define_property2(this, "languageMap", {});
|
72444
72487
|
}
|
72445
72488
|
};
|
72446
72489
|
|
@@ -72481,7 +72524,8 @@ var ZH_LOCALE2 = {
|
|
72481
72524
|
polyfill: "启用「基于 UA 的 Polyfill」功能",
|
72482
72525
|
proxy: "启用「全局代理」",
|
72483
72526
|
swc: "启用「SWC 编译」",
|
72484
|
-
rspack: "启用「Rspack 构建」(实验性)"
|
72527
|
+
rspack: "启用「Rspack 构建」(实验性)",
|
72528
|
+
module_doc: "启动「模块文档」功能"
|
72485
72529
|
},
|
72486
72530
|
element: {
|
72487
72531
|
self: "创建工程元素",
|
@@ -72579,7 +72623,8 @@ var EN_LOCALE2 = {
|
|
72579
72623
|
polyfill: "Enable UA-based Polyfill Feature",
|
72580
72624
|
proxy: "Enable Global Proxy",
|
72581
72625
|
swc: "Enable SWC Compile",
|
72582
|
-
rspack: "Enable Rspack Build (experimental)"
|
72626
|
+
rspack: "Enable Rspack Build (experimental)",
|
72627
|
+
module_doc: "Enable Module Doc"
|
72583
72628
|
},
|
72584
72629
|
element: {
|
72585
72630
|
self: "Create Element",
|
@@ -72652,10 +72697,6 @@ var BooleanConfig;
|
|
72652
72697
|
BooleanConfig2["NO"] = "no";
|
72653
72698
|
BooleanConfig2["YES"] = "yes";
|
72654
72699
|
})(BooleanConfig || (BooleanConfig = {}));
|
72655
|
-
var BooleanConfigName = {
|
72656
|
-
[BooleanConfig.NO]: () => i18n2.t(localeKeys2.boolean.no),
|
72657
|
-
[BooleanConfig.YES]: () => i18n2.t(localeKeys2.boolean.yes)
|
72658
|
-
};
|
72659
72700
|
|
72660
72701
|
// ../../generator-common/dist/esm-node/common/solution.js
|
72661
72702
|
var Solution;
|
@@ -72670,18 +72711,18 @@ var SubSolution;
|
|
72670
72711
|
SubSolution22["Module"] = "module";
|
72671
72712
|
})(SubSolution || (SubSolution = {}));
|
72672
72713
|
var SolutionText = {
|
72673
|
-
[
|
72674
|
-
[
|
72675
|
-
[
|
72714
|
+
["mwa"]: () => i18n2.t(localeKeys2.solution.mwa),
|
72715
|
+
["module"]: () => i18n2.t(localeKeys2.solution.module),
|
72716
|
+
["monorepo"]: () => i18n2.t(localeKeys2.solution.monorepo)
|
72676
72717
|
};
|
72677
72718
|
var SubSolutionText = {
|
72678
|
-
[
|
72679
|
-
[
|
72719
|
+
["mwa"]: () => i18n2.t(localeKeys2.sub_solution.mwa),
|
72720
|
+
["module"]: () => i18n2.t(localeKeys2.sub_solution.module)
|
72680
72721
|
};
|
72681
72722
|
var SolutionToolsMap = {
|
72682
|
-
[
|
72683
|
-
[
|
72684
|
-
[
|
72723
|
+
["mwa"]: "@modern-js/app-tools",
|
72724
|
+
["module"]: "@modern-js/module-tools",
|
72725
|
+
["monorepo"]: "@modern-js/monorepo-tools"
|
72685
72726
|
};
|
72686
72727
|
var getSolutionSchema = (extra = {}) => {
|
72687
72728
|
return {
|
@@ -72692,7 +72733,7 @@ var getSolutionSchema = (extra = {}) => {
|
|
72692
72733
|
title: extra.isMonorepo ? i18n2.t(localeKeys2.sub_solution.self) : i18n2.t(localeKeys2.solution.self),
|
72693
72734
|
enum: (() => {
|
72694
72735
|
var _extra_customPlugin_custom, _extra_customPlugin;
|
72695
|
-
const items = ((extra === null || extra === void 0 ? void 0 : extra.solutions) || Object.values((extra === null || extra === void 0 ? void 0 : extra.isMonorepo) ? SubSolution : Solution)).filter((solution) => !((extra === null || extra === void 0 ? void 0 : extra.isSubProject) && solution ===
|
72736
|
+
const items = ((extra === null || extra === void 0 ? void 0 : extra.solutions) || Object.values((extra === null || extra === void 0 ? void 0 : extra.isMonorepo) ? SubSolution : Solution)).filter((solution) => !((extra === null || extra === void 0 ? void 0 : extra.isSubProject) && solution === "monorepo")).map((solution) => ({
|
72696
72737
|
value: solution,
|
72697
72738
|
label: (extra === null || extra === void 0 ? void 0 : extra.isMonorepo) ? SubSolutionText[solution]() : SolutionText[solution]()
|
72698
72739
|
}));
|
@@ -72739,13 +72780,13 @@ var getScenesSchema = (extra = {}) => {
|
|
72739
72780
|
};
|
72740
72781
|
var BaseGenerator = "@modern-js/base-generator";
|
72741
72782
|
var SolutionGenerator = {
|
72742
|
-
[
|
72743
|
-
[
|
72744
|
-
[
|
72783
|
+
["mwa"]: "@modern-js/mwa-generator",
|
72784
|
+
["module"]: "@modern-js/module-generator",
|
72785
|
+
["monorepo"]: "@modern-js/monorepo-generator"
|
72745
72786
|
};
|
72746
72787
|
var SubSolutionGenerator = {
|
72747
|
-
[
|
72748
|
-
[
|
72788
|
+
["mwa"]: "@modern-js/mwa-generator",
|
72789
|
+
["module"]: "@modern-js/module-generator"
|
72749
72790
|
};
|
72750
72791
|
|
72751
72792
|
// ../../generator-common/dist/esm-node/common/language.js
|
@@ -72755,8 +72796,8 @@ var Language;
|
|
72755
72796
|
Language2["JS"] = "js";
|
72756
72797
|
})(Language || (Language = {}));
|
72757
72798
|
var LanguageName = {
|
72758
|
-
[
|
72759
|
-
[
|
72799
|
+
["ts"]: "TS",
|
72800
|
+
["js"]: "ES6+"
|
72760
72801
|
};
|
72761
72802
|
var getLanguageSchema = (_extra = {}) => {
|
72762
72803
|
return {
|
@@ -72777,15 +72818,15 @@ var PackageManager;
|
|
72777
72818
|
PackageManager2["Npm"] = "npm";
|
72778
72819
|
})(PackageManager || (PackageManager = {}));
|
72779
72820
|
var PackageManagerName = {
|
72780
|
-
[
|
72781
|
-
[
|
72782
|
-
[
|
72821
|
+
["pnpm"]: "pnpm",
|
72822
|
+
["yarn"]: "Yarn",
|
72823
|
+
["npm"]: "npm"
|
72783
72824
|
};
|
72784
72825
|
var getPackageManagerSchema = (extra = {}) => {
|
72785
72826
|
return {
|
72786
72827
|
type: "string",
|
72787
72828
|
title: i18n2.t(localeKeys2.packageManager.self),
|
72788
|
-
enum: Object.values(PackageManager).filter((packageManager) => (extra === null || extra === void 0 ? void 0 : extra.solution) === "monorepo" ? packageManager !==
|
72829
|
+
enum: Object.values(PackageManager).filter((packageManager) => (extra === null || extra === void 0 ? void 0 : extra.solution) === "monorepo" ? packageManager !== "npm" : true).map((packageManager) => ({
|
72789
72830
|
value: packageManager,
|
72790
72831
|
label: PackageManagerName[packageManager]
|
72791
72832
|
})),
|
@@ -72924,10 +72965,6 @@ var getBuildToolsSchema = (_extra = {}) => {
|
|
72924
72965
|
}))
|
72925
72966
|
};
|
72926
72967
|
};
|
72927
|
-
var FrameworkAppendTypeContent = {
|
72928
|
-
[Framework.Express]: `/// <reference types='@modern-js/plugin-express/types' />`,
|
72929
|
-
[Framework.Koa]: `/// <reference types='@modern-js/plugin-koa/types' />`
|
72930
|
-
};
|
72931
72968
|
|
72932
72969
|
// ../../generator-common/dist/esm-node/mwa/project.js
|
72933
72970
|
var getMWASchemaProperties = (extra) => {
|
@@ -72980,48 +73017,45 @@ var ActionFunction;
|
|
72980
73017
|
ActionFunction2["Proxy"] = "proxy";
|
72981
73018
|
ActionFunction2["SWC"] = "swc";
|
72982
73019
|
ActionFunction2["Rspack"] = "rspack";
|
73020
|
+
ActionFunction2["ModuleDoc"] = "module_doc";
|
72983
73021
|
})(ActionFunction || (ActionFunction = {}));
|
72984
73022
|
var ActionRefactor;
|
72985
73023
|
(function(ActionRefactor2) {
|
72986
73024
|
ActionRefactor2["ReactRouter5"] = "react_router_5";
|
72987
73025
|
})(ActionRefactor || (ActionRefactor = {}));
|
72988
73026
|
var ActionTypeText = {
|
72989
|
-
[
|
72990
|
-
[
|
72991
|
-
[
|
73027
|
+
["function"]: () => i18n2.t(localeKeys2.action.function.self),
|
73028
|
+
["element"]: () => i18n2.t(localeKeys2.action.element.self),
|
73029
|
+
["refactor"]: () => i18n2.t(localeKeys2.action.refactor.self)
|
72992
73030
|
};
|
72993
73031
|
var ActionTypeQuestionText = {
|
72994
|
-
[
|
72995
|
-
[
|
72996
|
-
[
|
73032
|
+
["function"]: () => i18n2.t(localeKeys2.action.function.question),
|
73033
|
+
["element"]: () => i18n2.t(localeKeys2.action.element.question),
|
73034
|
+
["refactor"]: () => i18n2.t(localeKeys2.action.refactor.question)
|
72997
73035
|
};
|
72998
73036
|
var ActionElementText = {
|
72999
|
-
[
|
73000
|
-
[
|
73037
|
+
["entry"]: () => i18n2.t(localeKeys2.action.element.entry),
|
73038
|
+
["server"]: () => i18n2.t(localeKeys2.action.element.server)
|
73001
73039
|
};
|
73002
73040
|
var ActionFunctionText = {
|
73003
|
-
[
|
73004
|
-
[
|
73005
|
-
[
|
73006
|
-
[
|
73007
|
-
[
|
73008
|
-
[
|
73009
|
-
[
|
73010
|
-
[
|
73011
|
-
[
|
73012
|
-
[
|
73013
|
-
[
|
73014
|
-
[
|
73015
|
-
[
|
73016
|
-
[
|
73041
|
+
["tailwindcss"]: () => i18n2.t(localeKeys2.action.function.tailwindcss),
|
73042
|
+
["bff"]: () => i18n2.t(localeKeys2.action.function.bff),
|
73043
|
+
["micro_frontend"]: () => i18n2.t(localeKeys2.action.function.micro_frontend),
|
73044
|
+
["i18n"]: () => i18n2.t(localeKeys2.action.function.i18n),
|
73045
|
+
["test"]: () => i18n2.t(localeKeys2.action.function.test),
|
73046
|
+
["e2e_test"]: () => i18n2.t(localeKeys2.action.function.e2e_test),
|
73047
|
+
["storybook"]: () => i18n2.t(localeKeys2.action.function.storybook),
|
73048
|
+
["storybookV7"]: () => i18n2.t(localeKeys2.action.function.storybookV7),
|
73049
|
+
["runtimeApi"]: () => i18n2.t(localeKeys2.action.function.runtime_api),
|
73050
|
+
["ssg"]: () => i18n2.t(localeKeys2.action.function.ssg),
|
73051
|
+
["polyfill"]: () => i18n2.t(localeKeys2.action.function.polyfill),
|
73052
|
+
["proxy"]: () => i18n2.t(localeKeys2.action.function.proxy),
|
73053
|
+
["swc"]: () => i18n2.t(localeKeys2.action.function.swc),
|
73054
|
+
["rspack"]: () => i18n2.t(localeKeys2.action.function.rspack),
|
73055
|
+
["module_doc"]: () => i18n2.t(localeKeys2.action.function.module_doc)
|
73017
73056
|
};
|
73018
73057
|
var ActionRefactorText = {
|
73019
|
-
[
|
73020
|
-
};
|
73021
|
-
var ActionTypeTextMap = {
|
73022
|
-
[ActionType.Element]: ActionElementText,
|
73023
|
-
[ActionType.Function]: ActionFunctionText,
|
73024
|
-
[ActionType.Refactor]: ActionRefactorText
|
73058
|
+
["react_router_5"]: () => i18n2.t(localeKeys2.action.refactor.react_router_5)
|
73025
73059
|
};
|
73026
73060
|
|
73027
73061
|
// ../../generator-common/dist/esm-node/newAction/mwa/index.js
|
@@ -73238,9 +73272,9 @@ var ModuleActionTypes = [
|
|
73238
73272
|
var ModuleActionFunctions = [
|
73239
73273
|
ActionFunction.Test,
|
73240
73274
|
ActionFunction.TailwindCSS,
|
73241
|
-
ActionFunction.Storybook,
|
73242
73275
|
ActionFunction.StorybookV7,
|
73243
|
-
ActionFunction.RuntimeApi
|
73276
|
+
ActionFunction.RuntimeApi,
|
73277
|
+
ActionFunction.ModuleDoc
|
73244
73278
|
];
|
73245
73279
|
var ModuleActionTypesMap = {
|
73246
73280
|
[ActionType.Function]: ModuleActionFunctions
|
@@ -73285,11 +73319,11 @@ var getModuleNewActionSchema = (extra = {}) => {
|
|
73285
73319
|
};
|
73286
73320
|
};
|
73287
73321
|
var ModuleActionFunctionsDevDependencies = {
|
73288
|
-
[ActionFunction.Storybook]: "@modern-js/plugin-storybook",
|
73289
73322
|
[ActionFunction.StorybookV7]: "@modern-js/storybook",
|
73290
73323
|
[ActionFunction.Test]: "@modern-js/plugin-testing",
|
73291
73324
|
[ActionFunction.RuntimeApi]: "@modern-js/runtime",
|
73292
|
-
[ActionFunction.TailwindCSS]: "tailwindcss"
|
73325
|
+
[ActionFunction.TailwindCSS]: "tailwindcss",
|
73326
|
+
[ActionFunction.ModuleDoc]: "@modern-js/plugin-rspress"
|
73293
73327
|
};
|
73294
73328
|
var ModuleActionFunctionsPeerDependencies = {
|
73295
73329
|
[ActionFunction.RuntimeApi]: "@modern-js/runtime",
|
@@ -73302,15 +73336,15 @@ var ModuleNewActionGenerators = {
|
|
73302
73336
|
[ActionType.Function]: {
|
73303
73337
|
[ActionFunction.Test]: "@modern-js/module-test-generator",
|
73304
73338
|
[ActionFunction.TailwindCSS]: "@modern-js/tailwindcss-generator",
|
73305
|
-
[ActionFunction.Storybook]: "@modern-js/storybook-generator",
|
73306
73339
|
[ActionFunction.StorybookV7]: "@modern-js/storybook-next-generator",
|
73307
|
-
[ActionFunction.RuntimeApi]: "@modern-js/dependence-generator"
|
73340
|
+
[ActionFunction.RuntimeApi]: "@modern-js/dependence-generator",
|
73341
|
+
[ActionFunction.ModuleDoc]: "@modern-js/module-doc-generator"
|
73308
73342
|
}
|
73309
73343
|
};
|
73310
73344
|
var ModuleNewActionPluginName = {
|
73311
73345
|
[ActionType.Function]: {
|
73312
73346
|
[ActionFunction.TailwindCSS]: "tailwindcssPlugin",
|
73313
|
-
[ActionFunction.
|
73347
|
+
[ActionFunction.ModuleDoc]: "modulePluginDoc",
|
73314
73348
|
[ActionFunction.Test]: "testPlugin"
|
73315
73349
|
}
|
73316
73350
|
};
|
@@ -73318,7 +73352,7 @@ var ModuleNewActionPluginDependence = {
|
|
73318
73352
|
[ActionType.Function]: {
|
73319
73353
|
[ActionFunction.Test]: "@modern-js/plugin-testing",
|
73320
73354
|
[ActionFunction.TailwindCSS]: "@modern-js/plugin-tailwindcss",
|
73321
|
-
[ActionFunction.
|
73355
|
+
[ActionFunction.ModuleDoc]: "@modern-js/plugin-rspress"
|
73322
73356
|
}
|
73323
73357
|
};
|
73324
73358
|
|
@@ -73353,7 +73387,7 @@ var SolutionSchemas = {
|
|
73353
73387
|
custom: getBaseSchema
|
73354
73388
|
};
|
73355
73389
|
|
73356
|
-
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.
|
73390
|
+
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.3/node_modules/@swc/helpers/esm/_async_to_generator.js
|
73357
73391
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
73358
73392
|
try {
|
73359
73393
|
var info = gen[key](arg);
|
@@ -73383,13 +73417,13 @@ function _async_to_generator(fn) {
|
|
73383
73417
|
};
|
73384
73418
|
}
|
73385
73419
|
|
73386
|
-
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.
|
73420
|
+
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.3/node_modules/@swc/helpers/esm/_class_call_check.js
|
73387
73421
|
function _class_call_check(instance, Constructor) {
|
73388
73422
|
if (!(instance instanceof Constructor))
|
73389
73423
|
throw new TypeError("Cannot call a class as a function");
|
73390
73424
|
}
|
73391
73425
|
|
73392
|
-
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.
|
73426
|
+
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.3/node_modules/@swc/helpers/esm/_create_class.js
|
73393
73427
|
function _defineProperties(target, props) {
|
73394
73428
|
for (var i = 0; i < props.length; i++) {
|
73395
73429
|
var descriptor = props[i];
|
@@ -73408,7 +73442,7 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
73408
73442
|
return Constructor;
|
73409
73443
|
}
|
73410
73444
|
|
73411
|
-
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.
|
73445
|
+
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.3/node_modules/@swc/helpers/esm/_object_spread.js
|
73412
73446
|
function _object_spread(target) {
|
73413
73447
|
for (var i = 1; i < arguments.length; i++) {
|
73414
73448
|
var source = arguments[i] != null ? arguments[i] : {};
|
@@ -73421,13 +73455,13 @@ function _object_spread(target) {
|
|
73421
73455
|
);
|
73422
73456
|
}
|
73423
73457
|
ownKeys2.forEach(function(key) {
|
73424
|
-
|
73458
|
+
_define_property2(target, key, source[key]);
|
73425
73459
|
});
|
73426
73460
|
}
|
73427
73461
|
return target;
|
73428
73462
|
}
|
73429
73463
|
|
73430
|
-
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.
|
73464
|
+
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.3/node_modules/@swc/helpers/esm/_object_spread_props.js
|
73431
73465
|
function ownKeys(object, enumerableOnly) {
|
73432
73466
|
var keys = Object.keys(object);
|
73433
73467
|
if (Object.getOwnPropertySymbols) {
|
@@ -73453,7 +73487,7 @@ function _object_spread_props(target, source) {
|
|
73453
73487
|
return target;
|
73454
73488
|
}
|
73455
73489
|
|
73456
|
-
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.
|
73490
|
+
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.3/node_modules/@swc/helpers/esm/_object_without_properties_loose.js
|
73457
73491
|
function _object_without_properties_loose(source, excluded) {
|
73458
73492
|
if (source == null)
|
73459
73493
|
return {};
|
@@ -73469,7 +73503,7 @@ function _object_without_properties_loose(source, excluded) {
|
|
73469
73503
|
return target;
|
73470
73504
|
}
|
73471
73505
|
|
73472
|
-
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.
|
73506
|
+
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.3/node_modules/@swc/helpers/esm/_object_without_properties.js
|
73473
73507
|
function _object_without_properties(source, excluded) {
|
73474
73508
|
if (source == null)
|
73475
73509
|
return {};
|
@@ -73489,7 +73523,7 @@ function _object_without_properties(source, excluded) {
|
|
73489
73523
|
return target;
|
73490
73524
|
}
|
73491
73525
|
|
73492
|
-
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.
|
73526
|
+
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.3/node_modules/@swc/helpers/esm/_array_like_to_array.js
|
73493
73527
|
function _array_like_to_array(arr, len) {
|
73494
73528
|
if (len == null || len > arr.length)
|
73495
73529
|
len = arr.length;
|
@@ -73498,25 +73532,25 @@ function _array_like_to_array(arr, len) {
|
|
73498
73532
|
return arr2;
|
73499
73533
|
}
|
73500
73534
|
|
73501
|
-
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.
|
73535
|
+
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.3/node_modules/@swc/helpers/esm/_array_without_holes.js
|
73502
73536
|
function _array_without_holes(arr) {
|
73503
73537
|
if (Array.isArray(arr))
|
73504
73538
|
return _array_like_to_array(arr);
|
73505
73539
|
}
|
73506
73540
|
|
73507
|
-
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.
|
73541
|
+
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.3/node_modules/@swc/helpers/esm/_iterable_to_array.js
|
73508
73542
|
function _iterable_to_array(iter) {
|
73509
73543
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
|
73510
73544
|
return Array.from(iter);
|
73511
73545
|
}
|
73512
73546
|
}
|
73513
73547
|
|
73514
|
-
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.
|
73548
|
+
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.3/node_modules/@swc/helpers/esm/_non_iterable_spread.js
|
73515
73549
|
function _non_iterable_spread() {
|
73516
73550
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
73517
73551
|
}
|
73518
73552
|
|
73519
|
-
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.
|
73553
|
+
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.3/node_modules/@swc/helpers/esm/_unsupported_iterable_to_array.js
|
73520
73554
|
function _unsupported_iterable_to_array(o, minLen) {
|
73521
73555
|
if (!o)
|
73522
73556
|
return;
|
@@ -73531,7 +73565,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
73531
73565
|
return _array_like_to_array(o, minLen);
|
73532
73566
|
}
|
73533
73567
|
|
73534
|
-
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.
|
73568
|
+
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.3/node_modules/@swc/helpers/esm/_to_consumable_array.js
|
73535
73569
|
function _to_consumable_array(arr) {
|
73536
73570
|
return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
|
73537
73571
|
}
|
@@ -73898,7 +73932,7 @@ function _addFile() {
|
|
73898
73932
|
case 2:
|
73899
73933
|
_state.sent();
|
73900
73934
|
absTemplatePath = config.templateFile ? import_path12.default.join(templatePath, config.templateFile) : null;
|
73901
|
-
if (!(absTemplatePath != null && (config.type ===
|
73935
|
+
if (!(absTemplatePath != null && (config.type === "binary" || Object.keys(config.data || {}).length === 0)))
|
73902
73936
|
return [
|
73903
73937
|
3,
|
73904
73938
|
5
|
@@ -74059,8 +74093,8 @@ var PluginHandlebarsAPI = /* @__PURE__ */ function() {
|
|
74059
74093
|
"use strict";
|
74060
74094
|
function PluginHandlebarsAPI2() {
|
74061
74095
|
_class_call_check(this, PluginHandlebarsAPI2);
|
74062
|
-
|
74063
|
-
|
74096
|
+
_define_property2(this, "helpers", {});
|
74097
|
+
_define_property2(this, "partials", {});
|
74064
74098
|
}
|
74065
74099
|
_create_class(PluginHandlebarsAPI2, [
|
74066
74100
|
{
|
@@ -74132,11 +74166,11 @@ var PluginFileAPI = /* @__PURE__ */ function() {
|
|
74132
74166
|
"use strict";
|
74133
74167
|
function PluginFileAPI2() {
|
74134
74168
|
_class_call_check(this, PluginFileAPI2);
|
74135
|
-
|
74136
|
-
|
74137
|
-
|
74138
|
-
|
74139
|
-
|
74169
|
+
_define_property2(this, "projectPath", "");
|
74170
|
+
_define_property2(this, "templatePath", "");
|
74171
|
+
_define_property2(this, "handlebarAPI", new PluginHandlebarsAPI());
|
74172
|
+
_define_property2(this, "ejsAPI", new PluginEjsAPI());
|
74173
|
+
_define_property2(this, "jsonAPI", void 0);
|
74140
74174
|
this.renderString = this.renderString.bind(this);
|
74141
74175
|
}
|
74142
74176
|
_create_class(PluginFileAPI2, [
|
@@ -74444,9 +74478,9 @@ var PluginGitAPI = /* @__PURE__ */ function() {
|
|
74444
74478
|
"use strict";
|
74445
74479
|
function PluginGitAPI2() {
|
74446
74480
|
_class_call_check(this, PluginGitAPI2);
|
74447
|
-
|
74448
|
-
|
74449
|
-
|
74481
|
+
_define_property2(this, "gitMessage", "");
|
74482
|
+
_define_property2(this, "gitApi", void 0);
|
74483
|
+
_define_property2(this, "projectPath", void 0);
|
74450
74484
|
}
|
74451
74485
|
_create_class(PluginGitAPI2, [
|
74452
74486
|
{
|
@@ -74549,11 +74583,11 @@ var PluginInputContext = /* @__PURE__ */ function() {
|
|
74549
74583
|
"use strict";
|
74550
74584
|
function PluginInputContext2(solutionSchema) {
|
74551
74585
|
_class_call_check(this, PluginInputContext2);
|
74552
|
-
|
74553
|
-
|
74554
|
-
|
74555
|
-
|
74556
|
-
|
74586
|
+
_define_property2(this, "inputValue", {});
|
74587
|
+
_define_property2(this, "defaultConfig", {});
|
74588
|
+
_define_property2(this, "solutionSchemaFunc", void 0);
|
74589
|
+
_define_property2(this, "solutionSchema", {});
|
74590
|
+
_define_property2(this, "extendInputMap", {});
|
74557
74591
|
this.solutionSchemaFunc = solutionSchema;
|
74558
74592
|
}
|
74559
74593
|
_create_class(PluginInputContext2, [
|
@@ -74611,7 +74645,7 @@ var PluginInputContext = /* @__PURE__ */ function() {
|
|
74611
74645
|
this.extendInputMap[key].before[inputKey] = properties[inputKey];
|
74612
74646
|
} else {
|
74613
74647
|
this.extendInputMap[key] = {
|
74614
|
-
before:
|
74648
|
+
before: _define_property2({}, inputKey, properties[inputKey]),
|
74615
74649
|
after: {}
|
74616
74650
|
};
|
74617
74651
|
}
|
@@ -74647,7 +74681,7 @@ var PluginInputContext = /* @__PURE__ */ function() {
|
|
74647
74681
|
} else {
|
74648
74682
|
this.extendInputMap[key] = {
|
74649
74683
|
before: {},
|
74650
|
-
after:
|
74684
|
+
after: _define_property2({}, inputKey, properties[inputKey])
|
74651
74685
|
};
|
74652
74686
|
}
|
74653
74687
|
}
|
@@ -74754,8 +74788,8 @@ var PluginNpmAPI = /* @__PURE__ */ function() {
|
|
74754
74788
|
"use strict";
|
74755
74789
|
function PluginNpmAPI2(projectPath, packageManager) {
|
74756
74790
|
_class_call_check(this, PluginNpmAPI2);
|
74757
|
-
|
74758
|
-
|
74791
|
+
_define_property2(this, "projectPath", "");
|
74792
|
+
_define_property2(this, "packageManager", void 0);
|
74759
74793
|
this.projectPath = projectPath;
|
74760
74794
|
this.packageManager = packageManager;
|
74761
74795
|
}
|
@@ -75069,7 +75103,8 @@ var ModuleNewAction = async (options) => {
|
|
75069
75103
|
} : {},
|
75070
75104
|
pluginName: ModuleNewActionPluginName[actionType][action2],
|
75071
75105
|
pluginDependence: ModuleNewActionPluginDependence[actionType][action2],
|
75072
|
-
shouldUsePluginNameExport
|
75106
|
+
shouldUsePluginNameExport,
|
75107
|
+
isModuleProject: true
|
75073
75108
|
});
|
75074
75109
|
const task = [
|
75075
75110
|
{
|
@@ -75153,9 +75188,9 @@ var PluginNewAPI = /* @__PURE__ */ function() {
|
|
75153
75188
|
"use strict";
|
75154
75189
|
function PluginNewAPI2(solution, projectPath, inputData) {
|
75155
75190
|
_class_call_check(this, PluginNewAPI2);
|
75156
|
-
|
75157
|
-
|
75158
|
-
|
75191
|
+
_define_property2(this, "solution", void 0);
|
75192
|
+
_define_property2(this, "projectPath", void 0);
|
75193
|
+
_define_property2(this, "inputData", void 0);
|
75159
75194
|
this.solution = solution;
|
75160
75195
|
this.projectPath = projectPath;
|
75161
75196
|
this.inputData = inputData;
|
@@ -75324,16 +75359,16 @@ var PluginContext = /* @__PURE__ */ function() {
|
|
75324
75359
|
"use strict";
|
75325
75360
|
function PluginContext2(solutionSchema, locale) {
|
75326
75361
|
_class_call_check(this, PluginContext2);
|
75327
|
-
|
75328
|
-
|
75329
|
-
|
75330
|
-
|
75331
|
-
|
75332
|
-
|
75333
|
-
|
75362
|
+
_define_property2(this, "generator", void 0);
|
75363
|
+
_define_property2(this, "inputContext", void 0);
|
75364
|
+
_define_property2(this, "gitAPI", void 0);
|
75365
|
+
_define_property2(this, "fileAPI", void 0);
|
75366
|
+
_define_property2(this, "npmAPI", void 0);
|
75367
|
+
_define_property2(this, "newAPI", void 0);
|
75368
|
+
_define_property2(this, "locale", void 0);
|
75334
75369
|
var _obj;
|
75335
|
-
|
75336
|
-
}),
|
75370
|
+
_define_property2(this, "lifeCycleFuncMap", (_obj = {}, _define_property2(_obj, "onForged", function() {
|
75371
|
+
}), _define_property2(_obj, "afterForged", function() {
|
75337
75372
|
}), _obj));
|
75338
75373
|
this.inputContext = new PluginInputContext(solutionSchema);
|
75339
75374
|
this.gitAPI = new PluginGitAPI();
|
@@ -75377,13 +75412,13 @@ var PluginContext = /* @__PURE__ */ function() {
|
|
75377
75412
|
{
|
75378
75413
|
key: "onForged",
|
75379
75414
|
value: function onForged(func) {
|
75380
|
-
this.lifeCycleFuncMap[
|
75415
|
+
this.lifeCycleFuncMap["onForged"] = func;
|
75381
75416
|
}
|
75382
75417
|
},
|
75383
75418
|
{
|
75384
75419
|
key: "afterForged",
|
75385
75420
|
value: function afterForged(func) {
|
75386
|
-
this.lifeCycleFuncMap[
|
75421
|
+
this.lifeCycleFuncMap["afterForged"] = func;
|
75387
75422
|
}
|
75388
75423
|
}
|
75389
75424
|
]);
|
@@ -75552,11 +75587,11 @@ var GeneratorPlugin = /* @__PURE__ */ function() {
|
|
75552
75587
|
function GeneratorPlugin2(logger2, event) {
|
75553
75588
|
var locale = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "en";
|
75554
75589
|
_class_call_check(this, GeneratorPlugin2);
|
75555
|
-
|
75556
|
-
|
75557
|
-
|
75558
|
-
|
75559
|
-
|
75590
|
+
_define_property2(this, "plugins", []);
|
75591
|
+
_define_property2(this, "extendPlugin", {});
|
75592
|
+
_define_property2(this, "customPlugin", {});
|
75593
|
+
_define_property2(this, "event", void 0);
|
75594
|
+
_define_property2(this, "logger", void 0);
|
75560
75595
|
this.event = event;
|
75561
75596
|
this.logger = logger2;
|
75562
75597
|
if (event) {
|
package/package.json
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
"modern",
|
16
16
|
"modern.js"
|
17
17
|
],
|
18
|
-
"version": "3.
|
18
|
+
"version": "3.3.0",
|
19
19
|
"jsnext:source": "./src/index.ts",
|
20
20
|
"main": "./dist/index.js",
|
21
21
|
"files": [
|
@@ -23,7 +23,7 @@
|
|
23
23
|
"/dist/index.js"
|
24
24
|
],
|
25
25
|
"dependencies": {
|
26
|
-
"@modern-js/utils": "2.
|
26
|
+
"@modern-js/utils": "2.41.0"
|
27
27
|
},
|
28
28
|
"devDependencies": {
|
29
29
|
"@modern-js/codesmith": "2.3.0",
|
@@ -32,15 +32,15 @@
|
|
32
32
|
"@types/node": "^14",
|
33
33
|
"jest": "^29",
|
34
34
|
"typescript": "^5",
|
35
|
-
"@modern-js/base-generator": "3.
|
36
|
-
"@modern-js/generator-common": "3.
|
37
|
-
"@modern-js/generator-
|
38
|
-
"@modern-js/generator-
|
39
|
-
"@modern-js/module-generator": "3.
|
40
|
-
"@modern-js/
|
41
|
-
"@modern-js/
|
42
|
-
"@scripts/
|
43
|
-
"@scripts/
|
35
|
+
"@modern-js/base-generator": "3.3.0",
|
36
|
+
"@modern-js/generator-common": "3.3.0",
|
37
|
+
"@modern-js/generator-utils": "3.3.0",
|
38
|
+
"@modern-js/generator-plugin": "3.3.0",
|
39
|
+
"@modern-js/module-generator": "3.3.0",
|
40
|
+
"@modern-js/monorepo-generator": "3.3.0",
|
41
|
+
"@modern-js/mwa-generator": "3.3.0",
|
42
|
+
"@scripts/build": "2.41.0",
|
43
|
+
"@scripts/jest-config": "2.41.0"
|
44
44
|
},
|
45
45
|
"sideEffects": false,
|
46
46
|
"publishConfig": {
|