@modern-js/packages-generator 0.0.0-next-0bf5ec13d2 → 0.0.0-next-cb457b8
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/dist/index.js +126 -94
- package/package.json +6 -6
- package/src/index.ts +68 -0
package/dist/index.js
CHANGED
|
@@ -44651,9 +44651,9 @@ var require_src2 = __commonJS({
|
|
|
44651
44651
|
}
|
|
44652
44652
|
});
|
|
44653
44653
|
|
|
44654
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.
|
|
44654
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.5/node_modules/@modern-js/codesmith-api-npm/dist/js/node/utils/env.js
|
|
44655
44655
|
var require_env = __commonJS({
|
|
44656
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.
|
|
44656
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.5/node_modules/@modern-js/codesmith-api-npm/dist/js/node/utils/env.js"(exports) {
|
|
44657
44657
|
"use strict";
|
|
44658
44658
|
Object.defineProperty(exports, "__esModule", {
|
|
44659
44659
|
value: true
|
|
@@ -44715,9 +44715,9 @@ var require_env = __commonJS({
|
|
|
44715
44715
|
}
|
|
44716
44716
|
});
|
|
44717
44717
|
|
|
44718
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.
|
|
44718
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.5/node_modules/@modern-js/codesmith-api-npm/dist/js/node/utils/install.js
|
|
44719
44719
|
var require_install = __commonJS({
|
|
44720
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.
|
|
44720
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.5/node_modules/@modern-js/codesmith-api-npm/dist/js/node/utils/install.js"(exports) {
|
|
44721
44721
|
"use strict";
|
|
44722
44722
|
Object.defineProperty(exports, "__esModule", {
|
|
44723
44723
|
value: true
|
|
@@ -44869,9 +44869,9 @@ var require_install = __commonJS({
|
|
|
44869
44869
|
}
|
|
44870
44870
|
});
|
|
44871
44871
|
|
|
44872
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.
|
|
44872
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.5/node_modules/@modern-js/codesmith-api-npm/dist/js/node/utils/index.js
|
|
44873
44873
|
var require_utils = __commonJS({
|
|
44874
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.
|
|
44874
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.5/node_modules/@modern-js/codesmith-api-npm/dist/js/node/utils/index.js"(exports) {
|
|
44875
44875
|
"use strict";
|
|
44876
44876
|
Object.defineProperty(exports, "__esModule", {
|
|
44877
44877
|
value: true
|
|
@@ -44935,9 +44935,9 @@ var require_utils = __commonJS({
|
|
|
44935
44935
|
}
|
|
44936
44936
|
});
|
|
44937
44937
|
|
|
44938
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.
|
|
44938
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.5/node_modules/@modern-js/codesmith-api-npm/dist/js/node/index.js
|
|
44939
44939
|
var require_node = __commonJS({
|
|
44940
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.
|
|
44940
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.0.5/node_modules/@modern-js/codesmith-api-npm/dist/js/node/index.js"(exports) {
|
|
44941
44941
|
"use strict";
|
|
44942
44942
|
Object.defineProperty(exports, "__esModule", {
|
|
44943
44943
|
value: true
|
|
@@ -45012,9 +45012,9 @@ var require_node = __commonJS({
|
|
|
45012
45012
|
}
|
|
45013
45013
|
});
|
|
45014
45014
|
|
|
45015
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.0.
|
|
45015
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-git/dist/js/node/utils/index.js
|
|
45016
45016
|
var require_utils2 = __commonJS({
|
|
45017
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.0.
|
|
45017
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-git/dist/js/node/utils/index.js"(exports) {
|
|
45018
45018
|
"use strict";
|
|
45019
45019
|
Object.defineProperty(exports, "__esModule", {
|
|
45020
45020
|
value: true
|
|
@@ -45089,9 +45089,9 @@ var require_utils2 = __commonJS({
|
|
|
45089
45089
|
}
|
|
45090
45090
|
});
|
|
45091
45091
|
|
|
45092
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.0.
|
|
45092
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-git/dist/js/node/index.js
|
|
45093
45093
|
var require_node2 = __commonJS({
|
|
45094
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.0.
|
|
45094
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-git/dist/js/node/index.js"(exports) {
|
|
45095
45095
|
"use strict";
|
|
45096
45096
|
Object.defineProperty(exports, "__esModule", {
|
|
45097
45097
|
value: true
|
|
@@ -45170,9 +45170,9 @@ var require_node2 = __commonJS({
|
|
|
45170
45170
|
}
|
|
45171
45171
|
});
|
|
45172
45172
|
|
|
45173
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
45173
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/logger/constants.js
|
|
45174
45174
|
var require_constants2 = __commonJS({
|
|
45175
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
45175
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/logger/constants.js"(exports) {
|
|
45176
45176
|
"use strict";
|
|
45177
45177
|
Object.defineProperty(exports, "__esModule", {
|
|
45178
45178
|
value: true
|
|
@@ -45193,9 +45193,9 @@ var require_constants2 = __commonJS({
|
|
|
45193
45193
|
}
|
|
45194
45194
|
});
|
|
45195
45195
|
|
|
45196
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
45196
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/logger/index.js
|
|
45197
45197
|
var require_logger2 = __commonJS({
|
|
45198
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
45198
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/logger/index.js"(exports) {
|
|
45199
45199
|
"use strict";
|
|
45200
45200
|
Object.defineProperty(exports, "__esModule", {
|
|
45201
45201
|
value: true
|
|
@@ -45263,9 +45263,9 @@ var require_logger2 = __commonJS({
|
|
|
45263
45263
|
}
|
|
45264
45264
|
});
|
|
45265
45265
|
|
|
45266
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
45266
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/materials/constants.js
|
|
45267
45267
|
var require_constants3 = __commonJS({
|
|
45268
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
45268
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/materials/constants.js"(exports) {
|
|
45269
45269
|
"use strict";
|
|
45270
45270
|
Object.defineProperty(exports, "__esModule", {
|
|
45271
45271
|
value: true
|
|
@@ -45276,9 +45276,9 @@ var require_constants3 = __commonJS({
|
|
|
45276
45276
|
}
|
|
45277
45277
|
});
|
|
45278
45278
|
|
|
45279
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
45279
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/materials/FsResource.js
|
|
45280
45280
|
var require_FsResource = __commonJS({
|
|
45281
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
45281
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/materials/FsResource.js"(exports) {
|
|
45282
45282
|
"use strict";
|
|
45283
45283
|
Object.defineProperty(exports, "__esModule", {
|
|
45284
45284
|
value: true
|
|
@@ -45329,9 +45329,9 @@ var require_FsResource = __commonJS({
|
|
|
45329
45329
|
}
|
|
45330
45330
|
});
|
|
45331
45331
|
|
|
45332
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
45332
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/materials/FsMaterial.js
|
|
45333
45333
|
var require_FsMaterial = __commonJS({
|
|
45334
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
45334
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/materials/FsMaterial.js"(exports) {
|
|
45335
45335
|
"use strict";
|
|
45336
45336
|
Object.defineProperty(exports, "__esModule", {
|
|
45337
45337
|
value: true
|
|
@@ -45383,9 +45383,9 @@ var require_FsMaterial = __commonJS({
|
|
|
45383
45383
|
}
|
|
45384
45384
|
});
|
|
45385
45385
|
|
|
45386
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
45386
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/nodeRequire.js
|
|
45387
45387
|
var require_nodeRequire = __commonJS({
|
|
45388
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
45388
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/nodeRequire.js"(exports) {
|
|
45389
45389
|
"use strict";
|
|
45390
45390
|
Object.defineProperty(exports, "__esModule", {
|
|
45391
45391
|
value: true
|
|
@@ -45410,9 +45410,9 @@ var require_nodeRequire = __commonJS({
|
|
|
45410
45410
|
}
|
|
45411
45411
|
});
|
|
45412
45412
|
|
|
45413
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
45413
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/fsExists.js
|
|
45414
45414
|
var require_fsExists = __commonJS({
|
|
45415
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
45415
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/fsExists.js"(exports) {
|
|
45416
45416
|
"use strict";
|
|
45417
45417
|
Object.defineProperty(exports, "__esModule", {
|
|
45418
45418
|
value: true
|
|
@@ -45432,9 +45432,9 @@ var require_fsExists = __commonJS({
|
|
|
45432
45432
|
}
|
|
45433
45433
|
});
|
|
45434
45434
|
|
|
45435
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
45435
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/getGeneratorDir.js
|
|
45436
45436
|
var require_getGeneratorDir = __commonJS({
|
|
45437
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
45437
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/getGeneratorDir.js"(exports) {
|
|
45438
45438
|
"use strict";
|
|
45439
45439
|
Object.defineProperty(exports, "__esModule", {
|
|
45440
45440
|
value: true
|
|
@@ -45468,9 +45468,9 @@ var require_getGeneratorDir = __commonJS({
|
|
|
45468
45468
|
}
|
|
45469
45469
|
});
|
|
45470
45470
|
|
|
45471
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
45471
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/generator/index.js
|
|
45472
45472
|
var require_generator = __commonJS({
|
|
45473
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
45473
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/generator/index.js"(exports) {
|
|
45474
45474
|
"use strict";
|
|
45475
45475
|
Object.defineProperty(exports, "__esModule", {
|
|
45476
45476
|
value: true
|
|
@@ -45718,9 +45718,9 @@ check path: ${_utils.chalk.blue.underline(generator)} exist a package.json file
|
|
|
45718
45718
|
}
|
|
45719
45719
|
});
|
|
45720
45720
|
|
|
45721
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
45721
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/packageManager.js
|
|
45722
45722
|
var require_packageManager = __commonJS({
|
|
45723
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
45723
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/packageManager.js"(exports) {
|
|
45724
45724
|
"use strict";
|
|
45725
45725
|
Object.defineProperty(exports, "__esModule", {
|
|
45726
45726
|
value: true
|
|
@@ -45798,9 +45798,9 @@ var require_packageManager = __commonJS({
|
|
|
45798
45798
|
}
|
|
45799
45799
|
});
|
|
45800
45800
|
|
|
45801
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
45801
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/timeoutPromise.js
|
|
45802
45802
|
var require_timeoutPromise = __commonJS({
|
|
45803
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
45803
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/timeoutPromise.js"(exports) {
|
|
45804
45804
|
"use strict";
|
|
45805
45805
|
Object.defineProperty(exports, "__esModule", {
|
|
45806
45806
|
value: true
|
|
@@ -53626,9 +53626,9 @@ var require_tar = __commonJS({
|
|
|
53626
53626
|
}
|
|
53627
53627
|
});
|
|
53628
53628
|
|
|
53629
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
53629
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/constants.js
|
|
53630
53630
|
var require_constants5 = __commonJS({
|
|
53631
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
53631
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/constants.js"(exports) {
|
|
53632
53632
|
"use strict";
|
|
53633
53633
|
Object.defineProperty(exports, "__esModule", {
|
|
53634
53634
|
value: true
|
|
@@ -53641,9 +53641,9 @@ var require_constants5 = __commonJS({
|
|
|
53641
53641
|
}
|
|
53642
53642
|
});
|
|
53643
53643
|
|
|
53644
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
53644
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/getNpmTarballUrl.js
|
|
53645
53645
|
var require_getNpmTarballUrl = __commonJS({
|
|
53646
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
53646
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/getNpmTarballUrl.js"(exports) {
|
|
53647
53647
|
"use strict";
|
|
53648
53648
|
Object.defineProperty(exports, "__esModule", {
|
|
53649
53649
|
value: true
|
|
@@ -53677,9 +53677,9 @@ var require_getNpmTarballUrl = __commonJS({
|
|
|
53677
53677
|
}
|
|
53678
53678
|
});
|
|
53679
53679
|
|
|
53680
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
53680
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/getNpmVersion.js
|
|
53681
53681
|
var require_getNpmVersion = __commonJS({
|
|
53682
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
53682
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/getNpmVersion.js"(exports) {
|
|
53683
53683
|
"use strict";
|
|
53684
53684
|
Object.defineProperty(exports, "__esModule", {
|
|
53685
53685
|
value: true
|
|
@@ -53715,9 +53715,9 @@ var require_getNpmVersion = __commonJS({
|
|
|
53715
53715
|
}
|
|
53716
53716
|
});
|
|
53717
53717
|
|
|
53718
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
53718
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/downloadPackage.js
|
|
53719
53719
|
var require_downloadPackage = __commonJS({
|
|
53720
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
53720
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/downloadPackage.js"(exports) {
|
|
53721
53721
|
"use strict";
|
|
53722
53722
|
Object.defineProperty(exports, "__esModule", {
|
|
53723
53723
|
value: true
|
|
@@ -53819,9 +53819,9 @@ var require_downloadPackage = __commonJS({
|
|
|
53819
53819
|
}
|
|
53820
53820
|
});
|
|
53821
53821
|
|
|
53822
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
53822
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/getPackageInfo.js
|
|
53823
53823
|
var require_getPackageInfo = __commonJS({
|
|
53824
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
53824
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/getPackageInfo.js"(exports) {
|
|
53825
53825
|
"use strict";
|
|
53826
53826
|
Object.defineProperty(exports, "__esModule", {
|
|
53827
53827
|
value: true
|
|
@@ -53853,9 +53853,9 @@ var require_getPackageInfo = __commonJS({
|
|
|
53853
53853
|
}
|
|
53854
53854
|
});
|
|
53855
53855
|
|
|
53856
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
53856
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/index.js
|
|
53857
53857
|
var require_utils4 = __commonJS({
|
|
53858
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
53858
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/utils/index.js"(exports) {
|
|
53859
53859
|
"use strict";
|
|
53860
53860
|
Object.defineProperty(exports, "__esModule", {
|
|
53861
53861
|
value: true
|
|
@@ -53931,9 +53931,9 @@ var require_utils4 = __commonJS({
|
|
|
53931
53931
|
}
|
|
53932
53932
|
});
|
|
53933
53933
|
|
|
53934
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
53934
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/materials/index.js
|
|
53935
53935
|
var require_materials = __commonJS({
|
|
53936
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
53936
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/materials/index.js"(exports) {
|
|
53937
53937
|
"use strict";
|
|
53938
53938
|
Object.defineProperty(exports, "__esModule", {
|
|
53939
53939
|
value: true
|
|
@@ -53991,9 +53991,9 @@ var require_materials = __commonJS({
|
|
|
53991
53991
|
}
|
|
53992
53992
|
});
|
|
53993
53993
|
|
|
53994
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
53994
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/codesmith/index.js
|
|
53995
53995
|
var require_codesmith = __commonJS({
|
|
53996
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
53996
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/codesmith/index.js"(exports) {
|
|
53997
53997
|
"use strict";
|
|
53998
53998
|
Object.defineProperty(exports, "__esModule", {
|
|
53999
53999
|
value: true
|
|
@@ -54069,9 +54069,9 @@ var require_codesmith = __commonJS({
|
|
|
54069
54069
|
}
|
|
54070
54070
|
});
|
|
54071
54071
|
|
|
54072
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
54072
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/index.js
|
|
54073
54073
|
var require_node3 = __commonJS({
|
|
54074
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.
|
|
54074
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith/dist/js/node/index.js"(exports) {
|
|
54075
54075
|
"use strict";
|
|
54076
54076
|
Object.defineProperty(exports, "__esModule", {
|
|
54077
54077
|
value: true
|
|
@@ -60025,9 +60025,9 @@ var require_lib = __commonJS({
|
|
|
60025
60025
|
}
|
|
60026
60026
|
});
|
|
60027
60027
|
|
|
60028
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.
|
|
60028
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-handlebars/dist/js/node/utils/renderString.js
|
|
60029
60029
|
var require_renderString = __commonJS({
|
|
60030
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.
|
|
60030
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-handlebars/dist/js/node/utils/renderString.js"(exports) {
|
|
60031
60031
|
"use strict";
|
|
60032
60032
|
Object.defineProperty(exports, "__esModule", {
|
|
60033
60033
|
value: true
|
|
@@ -60076,9 +60076,9 @@ var require_renderString = __commonJS({
|
|
|
60076
60076
|
}
|
|
60077
60077
|
});
|
|
60078
60078
|
|
|
60079
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.
|
|
60079
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-handlebars/dist/js/node/utils/index.js
|
|
60080
60080
|
var require_utils6 = __commonJS({
|
|
60081
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.
|
|
60081
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-handlebars/dist/js/node/utils/index.js"(exports) {
|
|
60082
60082
|
"use strict";
|
|
60083
60083
|
Object.defineProperty(exports, "__esModule", {
|
|
60084
60084
|
value: true
|
|
@@ -60093,9 +60093,9 @@ var require_utils6 = __commonJS({
|
|
|
60093
60093
|
}
|
|
60094
60094
|
});
|
|
60095
60095
|
|
|
60096
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.
|
|
60096
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-handlebars/dist/js/node/index.js
|
|
60097
60097
|
var require_node4 = __commonJS({
|
|
60098
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.
|
|
60098
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-handlebars/dist/js/node/index.js"(exports) {
|
|
60099
60099
|
"use strict";
|
|
60100
60100
|
Object.defineProperty(exports, "__esModule", {
|
|
60101
60101
|
value: true
|
|
@@ -60109,6 +60109,27 @@ var require_node4 = __commonJS({
|
|
|
60109
60109
|
});
|
|
60110
60110
|
var _codesmith = require_node3();
|
|
60111
60111
|
var _utils = require_utils6();
|
|
60112
|
+
function ownKeys(object, enumerableOnly) {
|
|
60113
|
+
var keys = Object.keys(object);
|
|
60114
|
+
if (Object.getOwnPropertySymbols) {
|
|
60115
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
60116
|
+
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
60117
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
60118
|
+
})), keys.push.apply(keys, symbols);
|
|
60119
|
+
}
|
|
60120
|
+
return keys;
|
|
60121
|
+
}
|
|
60122
|
+
function _objectSpread(target) {
|
|
60123
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
60124
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
|
60125
|
+
i % 2 ? ownKeys(Object(source), true).forEach(function(key) {
|
|
60126
|
+
_defineProperty(target, key, source[key]);
|
|
60127
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
|
|
60128
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
60129
|
+
});
|
|
60130
|
+
}
|
|
60131
|
+
return target;
|
|
60132
|
+
}
|
|
60112
60133
|
function _defineProperty(obj, key, value) {
|
|
60113
60134
|
if (key in obj) {
|
|
60114
60135
|
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
@@ -60127,6 +60148,16 @@ var require_node4 = __commonJS({
|
|
|
60127
60148
|
partials: {}
|
|
60128
60149
|
};
|
|
60129
60150
|
}
|
|
60151
|
+
registerHelp(helpers) {
|
|
60152
|
+
return __async(this, null, function* () {
|
|
60153
|
+
this.registers.helpers = _objectSpread(_objectSpread({}, this.registers.helpers), helpers);
|
|
60154
|
+
});
|
|
60155
|
+
}
|
|
60156
|
+
registerPartials(partials) {
|
|
60157
|
+
return __async(this, null, function* () {
|
|
60158
|
+
this.registers.partials = _objectSpread(_objectSpread({}, this.registers.partials), partials);
|
|
60159
|
+
});
|
|
60160
|
+
}
|
|
60130
60161
|
renderTemplate(_0, _1) {
|
|
60131
60162
|
return __async(this, arguments, function* (templateResource, target, parameters = {}) {
|
|
60132
60163
|
if (templateResource._type !== _codesmith.FS_RESOURCE) {
|
|
@@ -60868,9 +60899,9 @@ var require_ejs = __commonJS({
|
|
|
60868
60899
|
}
|
|
60869
60900
|
});
|
|
60870
60901
|
|
|
60871
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.
|
|
60902
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-ejs/dist/js/node/utils/renderString.js
|
|
60872
60903
|
var require_renderString2 = __commonJS({
|
|
60873
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.
|
|
60904
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-ejs/dist/js/node/utils/renderString.js"(exports) {
|
|
60874
60905
|
"use strict";
|
|
60875
60906
|
Object.defineProperty(exports, "__esModule", {
|
|
60876
60907
|
value: true
|
|
@@ -60886,9 +60917,9 @@ var require_renderString2 = __commonJS({
|
|
|
60886
60917
|
}
|
|
60887
60918
|
});
|
|
60888
60919
|
|
|
60889
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.
|
|
60920
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-ejs/dist/js/node/utils/index.js
|
|
60890
60921
|
var require_utils8 = __commonJS({
|
|
60891
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.
|
|
60922
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-ejs/dist/js/node/utils/index.js"(exports) {
|
|
60892
60923
|
"use strict";
|
|
60893
60924
|
Object.defineProperty(exports, "__esModule", {
|
|
60894
60925
|
value: true
|
|
@@ -60903,9 +60934,9 @@ var require_utils8 = __commonJS({
|
|
|
60903
60934
|
}
|
|
60904
60935
|
});
|
|
60905
60936
|
|
|
60906
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.
|
|
60937
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-ejs/dist/js/node/index.js
|
|
60907
60938
|
var require_node5 = __commonJS({
|
|
60908
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.
|
|
60939
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-ejs/dist/js/node/index.js"(exports) {
|
|
60909
60940
|
"use strict";
|
|
60910
60941
|
Object.defineProperty(exports, "__esModule", {
|
|
60911
60942
|
value: true
|
|
@@ -60963,9 +60994,9 @@ var require_node5 = __commonJS({
|
|
|
60963
60994
|
}
|
|
60964
60995
|
});
|
|
60965
60996
|
|
|
60966
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.0.
|
|
60997
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-fs/dist/js/node/constant.js
|
|
60967
60998
|
var require_constant = __commonJS({
|
|
60968
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.0.
|
|
60999
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-fs/dist/js/node/constant.js"(exports) {
|
|
60969
61000
|
"use strict";
|
|
60970
61001
|
Object.defineProperty(exports, "__esModule", {
|
|
60971
61002
|
value: true
|
|
@@ -60976,9 +61007,9 @@ var require_constant = __commonJS({
|
|
|
60976
61007
|
}
|
|
60977
61008
|
});
|
|
60978
61009
|
|
|
60979
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.0.
|
|
61010
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-fs/dist/js/node/index.js
|
|
60980
61011
|
var require_node6 = __commonJS({
|
|
60981
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.0.
|
|
61012
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.0.5_@modern-js+codesmith@2.0.5/node_modules/@modern-js/codesmith-api-fs/dist/js/node/index.js"(exports) {
|
|
60982
61013
|
"use strict";
|
|
60983
61014
|
Object.defineProperty(exports, "__esModule", {
|
|
60984
61015
|
value: true
|
|
@@ -103779,9 +103810,9 @@ var require_inquirer = __commonJS({
|
|
|
103779
103810
|
}
|
|
103780
103811
|
});
|
|
103781
103812
|
|
|
103782
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.
|
|
103813
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-formily/dist/js/node/transform.js
|
|
103783
103814
|
var require_transform = __commonJS({
|
|
103784
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.
|
|
103815
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-formily/dist/js/node/transform.js"(exports) {
|
|
103785
103816
|
"use strict";
|
|
103786
103817
|
Object.defineProperty(exports, "__esModule", {
|
|
103787
103818
|
value: true
|
|
@@ -103950,9 +103981,9 @@ var require_transform = __commonJS({
|
|
|
103950
103981
|
}
|
|
103951
103982
|
});
|
|
103952
103983
|
|
|
103953
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.
|
|
103984
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-formily/dist/js/node/prompt.js
|
|
103954
103985
|
var require_prompt2 = __commonJS({
|
|
103955
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.
|
|
103986
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-formily/dist/js/node/prompt.js"(exports) {
|
|
103956
103987
|
"use strict";
|
|
103957
103988
|
Object.defineProperty(exports, "__esModule", {
|
|
103958
103989
|
value: true
|
|
@@ -104090,9 +104121,9 @@ var require_prompt2 = __commonJS({
|
|
|
104090
104121
|
}
|
|
104091
104122
|
});
|
|
104092
104123
|
|
|
104093
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.
|
|
104124
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-formily/dist/js/node/inquirer.js
|
|
104094
104125
|
var require_inquirer2 = __commonJS({
|
|
104095
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.
|
|
104126
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-formily/dist/js/node/inquirer.js"(exports) {
|
|
104096
104127
|
"use strict";
|
|
104097
104128
|
Object.defineProperty(exports, "__esModule", {
|
|
104098
104129
|
value: true
|
|
@@ -104164,9 +104195,9 @@ var require_inquirer2 = __commonJS({
|
|
|
104164
104195
|
}
|
|
104165
104196
|
});
|
|
104166
104197
|
|
|
104167
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.
|
|
104198
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-formily/dist/js/node/index.js
|
|
104168
104199
|
var require_node7 = __commonJS({
|
|
104169
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.
|
|
104200
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-formily/dist/js/node/index.js"(exports) {
|
|
104170
104201
|
"use strict";
|
|
104171
104202
|
Object.defineProperty(exports, "__esModule", {
|
|
104172
104203
|
value: true
|
|
@@ -106979,9 +107010,9 @@ var require_node8 = __commonJS({
|
|
|
106979
107010
|
}
|
|
106980
107011
|
});
|
|
106981
107012
|
|
|
106982
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.
|
|
107013
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-api-app/dist/js/node/locale/zh.js
|
|
106983
107014
|
var require_zh = __commonJS({
|
|
106984
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.
|
|
107015
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-api-app/dist/js/node/locale/zh.js"(exports) {
|
|
106985
107016
|
"use strict";
|
|
106986
107017
|
Object.defineProperty(exports, "__esModule", {
|
|
106987
107018
|
value: true
|
|
@@ -107016,9 +107047,9 @@ var require_zh = __commonJS({
|
|
|
107016
107047
|
}
|
|
107017
107048
|
});
|
|
107018
107049
|
|
|
107019
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.
|
|
107050
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-api-app/dist/js/node/locale/en.js
|
|
107020
107051
|
var require_en = __commonJS({
|
|
107021
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.
|
|
107052
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-api-app/dist/js/node/locale/en.js"(exports) {
|
|
107022
107053
|
"use strict";
|
|
107023
107054
|
Object.defineProperty(exports, "__esModule", {
|
|
107024
107055
|
value: true
|
|
@@ -107053,9 +107084,9 @@ var require_en = __commonJS({
|
|
|
107053
107084
|
}
|
|
107054
107085
|
});
|
|
107055
107086
|
|
|
107056
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.
|
|
107087
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-api-app/dist/js/node/locale/index.js
|
|
107057
107088
|
var require_locale = __commonJS({
|
|
107058
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.
|
|
107089
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-api-app/dist/js/node/locale/index.js"(exports) {
|
|
107059
107090
|
"use strict";
|
|
107060
107091
|
Object.defineProperty(exports, "__esModule", {
|
|
107061
107092
|
value: true
|
|
@@ -107080,9 +107111,9 @@ var require_locale = __commonJS({
|
|
|
107080
107111
|
}
|
|
107081
107112
|
});
|
|
107082
107113
|
|
|
107083
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.
|
|
107114
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-api-app/dist/js/node/utils/transform.js
|
|
107084
107115
|
var require_transform2 = __commonJS({
|
|
107085
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.
|
|
107116
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-api-app/dist/js/node/utils/transform.js"(exports) {
|
|
107086
107117
|
"use strict";
|
|
107087
107118
|
Object.defineProperty(exports, "__esModule", {
|
|
107088
107119
|
value: true
|
|
@@ -107117,9 +107148,9 @@ var require_transform2 = __commonJS({
|
|
|
107117
107148
|
}
|
|
107118
107149
|
});
|
|
107119
107150
|
|
|
107120
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.
|
|
107151
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-api-app/dist/js/node/utils/checkUseNvm.js
|
|
107121
107152
|
var require_checkUseNvm = __commonJS({
|
|
107122
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.
|
|
107153
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-api-app/dist/js/node/utils/checkUseNvm.js"(exports) {
|
|
107123
107154
|
"use strict";
|
|
107124
107155
|
Object.defineProperty(exports, "__esModule", {
|
|
107125
107156
|
value: true
|
|
@@ -107182,9 +107213,9 @@ var require_checkUseNvm = __commonJS({
|
|
|
107182
107213
|
}
|
|
107183
107214
|
});
|
|
107184
107215
|
|
|
107185
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.
|
|
107216
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-api-app/dist/js/node/index.js
|
|
107186
107217
|
var require_node9 = __commonJS({
|
|
107187
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.
|
|
107218
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.0.5_nm4hhkiukvbf5akr5dslvh5h6q/node_modules/@modern-js/codesmith-api-app/dist/js/node/index.js"(exports) {
|
|
107188
107219
|
"use strict";
|
|
107189
107220
|
Object.defineProperty(exports, "__esModule", {
|
|
107190
107221
|
value: true
|
|
@@ -107238,13 +107269,13 @@ var require_node9 = __commonJS({
|
|
|
107238
107269
|
var AppAPI2 = class {
|
|
107239
107270
|
constructor(generatorContext, generatorCore) {
|
|
107240
107271
|
_defineProperty(this, "i18n", _locale.i18n);
|
|
107241
|
-
_defineProperty(this, "generatorCore", void 0);
|
|
107242
|
-
_defineProperty(this, "generatorContext", void 0);
|
|
107243
107272
|
_defineProperty(this, "npmApi", void 0);
|
|
107244
107273
|
_defineProperty(this, "gitApi", void 0);
|
|
107245
107274
|
_defineProperty(this, "handlebarsAPI", void 0);
|
|
107246
107275
|
_defineProperty(this, "ejsAPI", void 0);
|
|
107247
107276
|
_defineProperty(this, "fsAPI", void 0);
|
|
107277
|
+
_defineProperty(this, "generatorCore", void 0);
|
|
107278
|
+
_defineProperty(this, "generatorContext", void 0);
|
|
107248
107279
|
this.generatorCore = generatorCore;
|
|
107249
107280
|
this.generatorContext = generatorContext;
|
|
107250
107281
|
this.npmApi = new _codesmithApiNpm.NpmAPI(generatorCore);
|
|
@@ -107304,6 +107335,7 @@ var require_node9 = __commonJS({
|
|
|
107304
107335
|
yield intallPromise;
|
|
107305
107336
|
this.generatorCore.logger.info(_locale.i18n.t(_locale.localeKeys.install.success));
|
|
107306
107337
|
} catch (e) {
|
|
107338
|
+
this.generatorCore.logger.warn(e);
|
|
107307
107339
|
this.generatorCore.logger.warn(_locale.i18n.t(_locale.localeKeys.install.failed, {
|
|
107308
107340
|
command: command || `${packageManager} install`
|
|
107309
107341
|
}));
|
|
@@ -108335,9 +108367,9 @@ var require_dist2 = __commonJS({
|
|
|
108335
108367
|
}
|
|
108336
108368
|
});
|
|
108337
108369
|
|
|
108338
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.0.
|
|
108370
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.0.5/node_modules/@modern-js/codesmith-api-json/dist/js/node/utils/index.js
|
|
108339
108371
|
var require_utils12 = __commonJS({
|
|
108340
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.0.
|
|
108372
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.0.5/node_modules/@modern-js/codesmith-api-json/dist/js/node/utils/index.js"(exports) {
|
|
108341
108373
|
"use strict";
|
|
108342
108374
|
Object.defineProperty(exports, "__esModule", {
|
|
108343
108375
|
value: true
|
|
@@ -108359,9 +108391,9 @@ var require_utils12 = __commonJS({
|
|
|
108359
108391
|
}
|
|
108360
108392
|
});
|
|
108361
108393
|
|
|
108362
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.0.
|
|
108394
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.0.5/node_modules/@modern-js/codesmith-api-json/dist/js/node/index.js
|
|
108363
108395
|
var require_node10 = __commonJS({
|
|
108364
|
-
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.0.
|
|
108396
|
+
"../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.0.5/node_modules/@modern-js/codesmith-api-json/dist/js/node/index.js"(exports) {
|
|
108365
108397
|
"use strict";
|
|
108366
108398
|
Object.defineProperty(exports, "__esModule", {
|
|
108367
108399
|
value: true
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "0.0.0-next-
|
|
14
|
+
"version": "0.0.0-next-cb457b8",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"main": "./dist/index.js",
|
|
17
17
|
"files": [
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"@modern-js/codesmith": "2.0.5",
|
|
24
24
|
"@modern-js/codesmith-api-app": "2.0.5",
|
|
25
25
|
"@modern-js/codesmith-api-json": "2.0.5",
|
|
26
|
-
"@modern-js/generator-common": "0.0.0-next-0bf5ec13d2",
|
|
27
|
-
"@modern-js/generator-utils": "0.0.0-next-0bf5ec13d2",
|
|
28
|
-
"@scripts/build": "0.0.0-next-0bf5ec13d2",
|
|
29
|
-
"@scripts/jest-config": "0.0.0-next-0bf5ec13d2",
|
|
30
26
|
"@types/jest": "^27",
|
|
31
27
|
"@types/node": "^14",
|
|
32
28
|
"jest": "^27",
|
|
33
|
-
"typescript": "^4"
|
|
29
|
+
"typescript": "^4",
|
|
30
|
+
"@scripts/jest-config": "0.0.0-next-cb457b8",
|
|
31
|
+
"@scripts/build": "0.0.0-next-cb457b8",
|
|
32
|
+
"@modern-js/generator-utils": "0.0.0-next-cb457b8",
|
|
33
|
+
"@modern-js/generator-common": "0.0.0-next-cb457b8"
|
|
34
34
|
},
|
|
35
35
|
"sideEffects": false,
|
|
36
36
|
"publishConfig": {
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import path from 'path';
|
|
2
|
+
import { GeneratorContext, GeneratorCore } from '@modern-js/codesmith';
|
|
3
|
+
import { AppAPI } from '@modern-js/codesmith-api-app';
|
|
4
|
+
import { JsonAPI } from '@modern-js/codesmith-api-json';
|
|
5
|
+
import { PackageManager } from '@modern-js/generator-common';
|
|
6
|
+
import { fs } from '@modern-js/generator-utils';
|
|
7
|
+
|
|
8
|
+
const handleTemplateFile = async (
|
|
9
|
+
context: GeneratorContext,
|
|
10
|
+
generator: GeneratorCore,
|
|
11
|
+
) => {
|
|
12
|
+
const { packageManager, packagesInfo } = context.config;
|
|
13
|
+
const jsonAPI = new JsonAPI(generator);
|
|
14
|
+
if (packageManager === PackageManager.Pnpm) {
|
|
15
|
+
const update: Record<string, string> = {};
|
|
16
|
+
Object.entries(packagesInfo || {}).forEach(([name, version]) => {
|
|
17
|
+
update[`pnpm.overrides.${name}`] = version as string;
|
|
18
|
+
});
|
|
19
|
+
await jsonAPI.update(context.materials.default.get('package.json'), {
|
|
20
|
+
query: {},
|
|
21
|
+
update: {
|
|
22
|
+
$set: update,
|
|
23
|
+
},
|
|
24
|
+
});
|
|
25
|
+
} else {
|
|
26
|
+
const pkgInfo = fs.readJSONSync(
|
|
27
|
+
path.join(context.materials.default.basePath, 'package.json'),
|
|
28
|
+
'utf-8',
|
|
29
|
+
);
|
|
30
|
+
const { dependencies = {}, devDependencies = {} } = pkgInfo;
|
|
31
|
+
|
|
32
|
+
const update: Record<string, string> = {};
|
|
33
|
+
Object.entries(packagesInfo || {}).forEach(([name, version]) => {
|
|
34
|
+
update[`resolutions.${name}`] = version as string;
|
|
35
|
+
if (dependencies[name]) {
|
|
36
|
+
update[`dependencies.${name}`] = version as string;
|
|
37
|
+
}
|
|
38
|
+
if (devDependencies[name]) {
|
|
39
|
+
update[`devDependencies.${name}`] = version as string;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
await jsonAPI.update(context.materials.default.get('package.json'), {
|
|
43
|
+
query: {},
|
|
44
|
+
update: {
|
|
45
|
+
$set: update,
|
|
46
|
+
},
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
export default async (context: GeneratorContext, generator: GeneratorCore) => {
|
|
52
|
+
const appApi = new AppAPI(context, generator);
|
|
53
|
+
const { locale } = context.config;
|
|
54
|
+
appApi.i18n.changeLanguage({ locale });
|
|
55
|
+
|
|
56
|
+
if (!(await appApi.checkEnvironment())) {
|
|
57
|
+
// eslint-disable-next-line no-process-exit
|
|
58
|
+
process.exit(1);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
generator.logger.debug(`start run @modern-js/packages-generator`);
|
|
62
|
+
generator.logger.debug(`context=${JSON.stringify(context)}`);
|
|
63
|
+
generator.logger.debug(`context.data=${JSON.stringify(context.data)}`);
|
|
64
|
+
|
|
65
|
+
await handleTemplateFile(context, generator);
|
|
66
|
+
|
|
67
|
+
generator.logger.debug(`forge @modern-js/packages-generator succeed `);
|
|
68
|
+
};
|