@modern-js/create 2.7.0 → 2.8.0
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/README.md +2 -2
- package/dist/index.js +56 -45
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -19,8 +19,8 @@ Please follow [Quick Start](https://modernjs.dev/en/guides/get-started/quick-sta
|
|
|
19
19
|
|
|
20
20
|
## Contributing
|
|
21
21
|
|
|
22
|
-
Please read the [Contributing Guide](https://github.com/
|
|
22
|
+
Please read the [Contributing Guide](https://github.com/web-infra-dev/modern.js/blob/main/CONTRIBUTING.md).
|
|
23
23
|
|
|
24
24
|
## License
|
|
25
25
|
|
|
26
|
-
Modern.js is [MIT licensed](https://github.com/
|
|
26
|
+
Modern.js is [MIT licensed](https://github.com/web-infra-dev/modern.js/blob/main/LICENSE).
|
package/dist/index.js
CHANGED
|
@@ -35509,8 +35509,10 @@ var require_is = __commonJS({
|
|
|
35509
35509
|
isEmpty: () => isEmpty,
|
|
35510
35510
|
isFastRefresh: () => isFastRefresh,
|
|
35511
35511
|
isRouterV5: () => isRouterV5,
|
|
35512
|
+
isSSGEntry: () => isSSGEntry,
|
|
35512
35513
|
isSSR: () => isSSR,
|
|
35513
35514
|
isServiceWorker: () => isServiceWorker,
|
|
35515
|
+
isSingleEntry: () => isSingleEntry,
|
|
35514
35516
|
isTypescript: () => isTypescript,
|
|
35515
35517
|
isUseSSRBundle: () => isUseSSRBundle
|
|
35516
35518
|
});
|
|
@@ -35568,6 +35570,12 @@ var require_is = __commonJS({
|
|
|
35568
35570
|
var _a, _b, _c;
|
|
35569
35571
|
return typeof ((_a = config.runtime) == null ? void 0 : _a.router) !== "boolean" && ((_c = (_b = config == null ? void 0 : config.runtime) == null ? void 0 : _b.router) == null ? void 0 : _c.mode) === "react-router-5";
|
|
35570
35572
|
};
|
|
35573
|
+
var isSSGEntry = (config, entryName, entrypoints) => {
|
|
35574
|
+
const ssgConfig = config.output.ssg;
|
|
35575
|
+
const useSSG = isSingleEntry(entrypoints) ? Boolean(ssgConfig) : ssgConfig === true || typeof (ssgConfig == null ? void 0 : ssgConfig[0]) === "function" || Boolean(ssgConfig == null ? void 0 : ssgConfig[entryName]);
|
|
35576
|
+
return useSSG;
|
|
35577
|
+
};
|
|
35578
|
+
var isSingleEntry = (entrypoints) => entrypoints.length === 1 && entrypoints[0].entryName === "main";
|
|
35571
35579
|
}
|
|
35572
35580
|
});
|
|
35573
35581
|
|
|
@@ -37019,14 +37027,12 @@ var require_prettyInstructions = __commonJS({
|
|
|
37019
37027
|
__export2(prettyInstructions_exports, {
|
|
37020
37028
|
getAddressUrls: () => getAddressUrls,
|
|
37021
37029
|
getIpv4Interfaces: () => getIpv4Interfaces,
|
|
37022
|
-
isSingleEntry: () => isSingleEntry,
|
|
37023
37030
|
prettyInstructions: () => prettyInstructions
|
|
37024
37031
|
});
|
|
37025
37032
|
module2.exports = __toCommonJS2(prettyInstructions_exports);
|
|
37026
37033
|
var import_os2 = __toESM2(require("os"));
|
|
37027
37034
|
var import_compiled = require_compiled();
|
|
37028
37035
|
var import_is = require_is();
|
|
37029
|
-
var isSingleEntry = (entrypoints) => entrypoints.length === 1 && entrypoints[0].entryName === "main";
|
|
37030
37036
|
var normalizeUrl = (url) => url.replace(/([^:]\/)\/+/g, "$1");
|
|
37031
37037
|
var getIpv4Interfaces = () => {
|
|
37032
37038
|
const interfaces = import_os2.default.networkInterfaces();
|
|
@@ -37065,7 +37071,7 @@ var require_prettyInstructions = __commonJS({
|
|
|
37065
37071
|
);
|
|
37066
37072
|
const routes = !apiOnly ? serverRoutes.filter((route) => route.entryName) : serverRoutes;
|
|
37067
37073
|
let message = "App running at:\n\n";
|
|
37068
|
-
if (isSingleEntry(entrypoints) || apiOnly) {
|
|
37074
|
+
if ((0, import_is.isSingleEntry)(entrypoints) || apiOnly) {
|
|
37069
37075
|
message += urls.map(
|
|
37070
37076
|
({ type, url }) => ` ${import_compiled.chalk.bold(`> ${type.padEnd(10)}`)}${import_compiled.chalk.cyanBright(
|
|
37071
37077
|
normalizeUrl(`${url}/${routes[0].urlPath}`)
|
|
@@ -37557,7 +37563,8 @@ var require_analyzeProject = __commonJS({
|
|
|
37557
37563
|
};
|
|
37558
37564
|
var analyzeProject_exports = {};
|
|
37559
37565
|
__export2(analyzeProject_exports, {
|
|
37560
|
-
isApiOnly: () => isApiOnly
|
|
37566
|
+
isApiOnly: () => isApiOnly,
|
|
37567
|
+
isWebOnly: () => isWebOnly
|
|
37561
37568
|
});
|
|
37562
37569
|
module2.exports = __toCommonJS2(analyzeProject_exports);
|
|
37563
37570
|
var path4 = __toESM2(require("path"));
|
|
@@ -37568,6 +37575,10 @@ var require_analyzeProject = __commonJS({
|
|
|
37568
37575
|
const options = (0, import_compiled.minimist)(process.argv.slice(2));
|
|
37569
37576
|
return !existSrc || Boolean(options["api-only"]);
|
|
37570
37577
|
});
|
|
37578
|
+
var isWebOnly = () => __async2(void 0, null, function* () {
|
|
37579
|
+
const options = (0, import_compiled.minimist)(process.argv.slice(2));
|
|
37580
|
+
return Boolean(options["web-only"]);
|
|
37581
|
+
});
|
|
37571
37582
|
}
|
|
37572
37583
|
});
|
|
37573
37584
|
|
|
@@ -38249,9 +38260,9 @@ var require_dist = __commonJS({
|
|
|
38249
38260
|
}
|
|
38250
38261
|
});
|
|
38251
38262
|
|
|
38252
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
38263
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/logger/constants.js
|
|
38253
38264
|
var require_constants2 = __commonJS({
|
|
38254
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
38265
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/logger/constants.js"(exports) {
|
|
38255
38266
|
"use strict";
|
|
38256
38267
|
Object.defineProperty(exports, "__esModule", {
|
|
38257
38268
|
value: true
|
|
@@ -69286,9 +69297,9 @@ var require_dist2 = __commonJS({
|
|
|
69286
69297
|
}
|
|
69287
69298
|
});
|
|
69288
69299
|
|
|
69289
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
69300
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/logger/index.js
|
|
69290
69301
|
var require_logger3 = __commonJS({
|
|
69291
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
69302
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/logger/index.js"(exports) {
|
|
69292
69303
|
"use strict";
|
|
69293
69304
|
Object.defineProperty(exports, "__esModule", {
|
|
69294
69305
|
value: true
|
|
@@ -69356,9 +69367,9 @@ var require_logger3 = __commonJS({
|
|
|
69356
69367
|
}
|
|
69357
69368
|
});
|
|
69358
69369
|
|
|
69359
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
69370
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/materials/constants.js
|
|
69360
69371
|
var require_constants4 = __commonJS({
|
|
69361
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
69372
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/materials/constants.js"(exports) {
|
|
69362
69373
|
"use strict";
|
|
69363
69374
|
Object.defineProperty(exports, "__esModule", {
|
|
69364
69375
|
value: true
|
|
@@ -69369,9 +69380,9 @@ var require_constants4 = __commonJS({
|
|
|
69369
69380
|
}
|
|
69370
69381
|
});
|
|
69371
69382
|
|
|
69372
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
69383
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/materials/FsResource.js
|
|
69373
69384
|
var require_FsResource = __commonJS({
|
|
69374
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
69385
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/materials/FsResource.js"(exports) {
|
|
69375
69386
|
"use strict";
|
|
69376
69387
|
Object.defineProperty(exports, "__esModule", {
|
|
69377
69388
|
value: true
|
|
@@ -69422,9 +69433,9 @@ var require_FsResource = __commonJS({
|
|
|
69422
69433
|
}
|
|
69423
69434
|
});
|
|
69424
69435
|
|
|
69425
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
69436
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/materials/FsMaterial.js
|
|
69426
69437
|
var require_FsMaterial = __commonJS({
|
|
69427
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
69438
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/materials/FsMaterial.js"(exports) {
|
|
69428
69439
|
"use strict";
|
|
69429
69440
|
Object.defineProperty(exports, "__esModule", {
|
|
69430
69441
|
value: true
|
|
@@ -69476,9 +69487,9 @@ var require_FsMaterial = __commonJS({
|
|
|
69476
69487
|
}
|
|
69477
69488
|
});
|
|
69478
69489
|
|
|
69479
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
69490
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/nodeRequire.js
|
|
69480
69491
|
var require_nodeRequire = __commonJS({
|
|
69481
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
69492
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/nodeRequire.js"(exports) {
|
|
69482
69493
|
"use strict";
|
|
69483
69494
|
Object.defineProperty(exports, "__esModule", {
|
|
69484
69495
|
value: true
|
|
@@ -69503,9 +69514,9 @@ var require_nodeRequire = __commonJS({
|
|
|
69503
69514
|
}
|
|
69504
69515
|
});
|
|
69505
69516
|
|
|
69506
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
69517
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/fsExists.js
|
|
69507
69518
|
var require_fsExists = __commonJS({
|
|
69508
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
69519
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/fsExists.js"(exports) {
|
|
69509
69520
|
"use strict";
|
|
69510
69521
|
Object.defineProperty(exports, "__esModule", {
|
|
69511
69522
|
value: true
|
|
@@ -69525,9 +69536,9 @@ var require_fsExists = __commonJS({
|
|
|
69525
69536
|
}
|
|
69526
69537
|
});
|
|
69527
69538
|
|
|
69528
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
69539
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/getGeneratorDir.js
|
|
69529
69540
|
var require_getGeneratorDir = __commonJS({
|
|
69530
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
69541
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/getGeneratorDir.js"(exports) {
|
|
69531
69542
|
"use strict";
|
|
69532
69543
|
Object.defineProperty(exports, "__esModule", {
|
|
69533
69544
|
value: true
|
|
@@ -69561,9 +69572,9 @@ var require_getGeneratorDir = __commonJS({
|
|
|
69561
69572
|
}
|
|
69562
69573
|
});
|
|
69563
69574
|
|
|
69564
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
69575
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/generator/index.js
|
|
69565
69576
|
var require_generator = __commonJS({
|
|
69566
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
69577
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/generator/index.js"(exports) {
|
|
69567
69578
|
"use strict";
|
|
69568
69579
|
Object.defineProperty(exports, "__esModule", {
|
|
69569
69580
|
value: true
|
|
@@ -69811,9 +69822,9 @@ check path: ${_utils.chalk.blue.underline(generator)} exist a package.json file
|
|
|
69811
69822
|
}
|
|
69812
69823
|
});
|
|
69813
69824
|
|
|
69814
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
69825
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/packageManager.js
|
|
69815
69826
|
var require_packageManager = __commonJS({
|
|
69816
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
69827
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/packageManager.js"(exports) {
|
|
69817
69828
|
"use strict";
|
|
69818
69829
|
Object.defineProperty(exports, "__esModule", {
|
|
69819
69830
|
value: true
|
|
@@ -69891,9 +69902,9 @@ var require_packageManager = __commonJS({
|
|
|
69891
69902
|
}
|
|
69892
69903
|
});
|
|
69893
69904
|
|
|
69894
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
69905
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/timeoutPromise.js
|
|
69895
69906
|
var require_timeoutPromise = __commonJS({
|
|
69896
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
69907
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/timeoutPromise.js"(exports) {
|
|
69897
69908
|
"use strict";
|
|
69898
69909
|
Object.defineProperty(exports, "__esModule", {
|
|
69899
69910
|
value: true
|
|
@@ -77719,9 +77730,9 @@ var require_tar = __commonJS({
|
|
|
77719
77730
|
}
|
|
77720
77731
|
});
|
|
77721
77732
|
|
|
77722
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
77733
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/constants.js
|
|
77723
77734
|
var require_constants6 = __commonJS({
|
|
77724
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
77735
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/constants.js"(exports) {
|
|
77725
77736
|
"use strict";
|
|
77726
77737
|
Object.defineProperty(exports, "__esModule", {
|
|
77727
77738
|
value: true
|
|
@@ -77734,9 +77745,9 @@ var require_constants6 = __commonJS({
|
|
|
77734
77745
|
}
|
|
77735
77746
|
});
|
|
77736
77747
|
|
|
77737
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
77748
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/getNpmTarballUrl.js
|
|
77738
77749
|
var require_getNpmTarballUrl = __commonJS({
|
|
77739
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
77750
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/getNpmTarballUrl.js"(exports) {
|
|
77740
77751
|
"use strict";
|
|
77741
77752
|
Object.defineProperty(exports, "__esModule", {
|
|
77742
77753
|
value: true
|
|
@@ -77770,9 +77781,9 @@ var require_getNpmTarballUrl = __commonJS({
|
|
|
77770
77781
|
}
|
|
77771
77782
|
});
|
|
77772
77783
|
|
|
77773
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
77784
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/getNpmVersion.js
|
|
77774
77785
|
var require_getNpmVersion = __commonJS({
|
|
77775
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
77786
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/getNpmVersion.js"(exports) {
|
|
77776
77787
|
"use strict";
|
|
77777
77788
|
Object.defineProperty(exports, "__esModule", {
|
|
77778
77789
|
value: true
|
|
@@ -77808,9 +77819,9 @@ var require_getNpmVersion = __commonJS({
|
|
|
77808
77819
|
}
|
|
77809
77820
|
});
|
|
77810
77821
|
|
|
77811
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
77822
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/downloadPackage.js
|
|
77812
77823
|
var require_downloadPackage = __commonJS({
|
|
77813
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
77824
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/downloadPackage.js"(exports) {
|
|
77814
77825
|
"use strict";
|
|
77815
77826
|
Object.defineProperty(exports, "__esModule", {
|
|
77816
77827
|
value: true
|
|
@@ -77912,9 +77923,9 @@ var require_downloadPackage = __commonJS({
|
|
|
77912
77923
|
}
|
|
77913
77924
|
});
|
|
77914
77925
|
|
|
77915
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
77926
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/getPackageInfo.js
|
|
77916
77927
|
var require_getPackageInfo = __commonJS({
|
|
77917
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
77928
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/getPackageInfo.js"(exports) {
|
|
77918
77929
|
"use strict";
|
|
77919
77930
|
Object.defineProperty(exports, "__esModule", {
|
|
77920
77931
|
value: true
|
|
@@ -77946,9 +77957,9 @@ var require_getPackageInfo = __commonJS({
|
|
|
77946
77957
|
}
|
|
77947
77958
|
});
|
|
77948
77959
|
|
|
77949
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
77960
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/index.js
|
|
77950
77961
|
var require_utils2 = __commonJS({
|
|
77951
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
77962
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/index.js"(exports) {
|
|
77952
77963
|
"use strict";
|
|
77953
77964
|
Object.defineProperty(exports, "__esModule", {
|
|
77954
77965
|
value: true
|
|
@@ -78024,9 +78035,9 @@ var require_utils2 = __commonJS({
|
|
|
78024
78035
|
}
|
|
78025
78036
|
});
|
|
78026
78037
|
|
|
78027
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
78038
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/materials/index.js
|
|
78028
78039
|
var require_materials = __commonJS({
|
|
78029
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
78040
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/materials/index.js"(exports) {
|
|
78030
78041
|
"use strict";
|
|
78031
78042
|
Object.defineProperty(exports, "__esModule", {
|
|
78032
78043
|
value: true
|
|
@@ -78084,9 +78095,9 @@ var require_materials = __commonJS({
|
|
|
78084
78095
|
}
|
|
78085
78096
|
});
|
|
78086
78097
|
|
|
78087
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
78098
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/codesmith/index.js
|
|
78088
78099
|
var require_codesmith = __commonJS({
|
|
78089
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
78100
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/codesmith/index.js"(exports) {
|
|
78090
78101
|
"use strict";
|
|
78091
78102
|
Object.defineProperty(exports, "__esModule", {
|
|
78092
78103
|
value: true
|
|
@@ -78162,9 +78173,9 @@ var require_codesmith = __commonJS({
|
|
|
78162
78173
|
}
|
|
78163
78174
|
});
|
|
78164
78175
|
|
|
78165
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
78176
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/index.js
|
|
78166
78177
|
var require_node = __commonJS({
|
|
78167
|
-
"../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
78178
|
+
"../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/index.js"(exports) {
|
|
78168
78179
|
"use strict";
|
|
78169
78180
|
Object.defineProperty(exports, "__esModule", {
|
|
78170
78181
|
value: true
|
|
@@ -78272,7 +78283,7 @@ var import_path2 = __toESM(require("path"));
|
|
|
78272
78283
|
var import_codesmith = __toESM(require_node());
|
|
78273
78284
|
|
|
78274
78285
|
// package.json
|
|
78275
|
-
var version = "2.
|
|
78286
|
+
var version = "2.8.0";
|
|
78276
78287
|
|
|
78277
78288
|
// ../../cli/plugin-i18n/dist/esm-node/index.js
|
|
78278
78289
|
var import_lodash2 = __toESM(require_lodash2());
|
package/package.json
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"name": "@modern-js/create",
|
|
3
3
|
"description": "A Progressive React Framework for modern web development.",
|
|
4
4
|
"homepage": "https://modernjs.dev",
|
|
5
|
-
"bugs": "https://github.com/
|
|
6
|
-
"repository": "
|
|
5
|
+
"bugs": "https://github.com/web-infra-dev/modern.js/issues",
|
|
6
|
+
"repository": "web-infra-dev/modern.js",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"keywords": [
|
|
9
9
|
"react",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "2.
|
|
14
|
+
"version": "2.8.0",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"types": "./dist/types/index.d.ts",
|
|
17
17
|
"main": "./dist/index.js",
|
|
@@ -34,18 +34,18 @@
|
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@babel/runtime": "^7.18.0",
|
|
37
|
-
"@modern-js/codesmith": "2.0.
|
|
37
|
+
"@modern-js/codesmith": "2.0.5",
|
|
38
38
|
"@types/jest": "^27",
|
|
39
39
|
"@types/node": "^14",
|
|
40
40
|
"jest": "^27",
|
|
41
41
|
"ts-node": "^10.1.0",
|
|
42
42
|
"typescript": "^4",
|
|
43
|
-
"@modern-js/
|
|
44
|
-
"@modern-js/
|
|
45
|
-
"@modern-js/repo-generator": "3.0.
|
|
46
|
-
"@modern-js/
|
|
47
|
-
"@scripts/build": "2.
|
|
48
|
-
"@scripts/jest-config": "2.
|
|
43
|
+
"@modern-js/generator-plugin-plugin": "3.0.10",
|
|
44
|
+
"@modern-js/utils": "2.8.0",
|
|
45
|
+
"@modern-js/repo-generator": "3.0.10",
|
|
46
|
+
"@modern-js/plugin-i18n": "2.8.0",
|
|
47
|
+
"@scripts/build": "2.8.0",
|
|
48
|
+
"@scripts/jest-config": "2.8.0"
|
|
49
49
|
},
|
|
50
50
|
"sideEffects": false,
|
|
51
51
|
"publishConfig": {
|