@modern-js/repo-generator 0.0.0-next-1687751137272 → 0.0.0-next-1687763260175
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 +2 -29
- package/package.json +12 -12
package/dist/index.js
CHANGED
|
@@ -124099,9 +124099,6 @@ var require_path = __commonJS({
|
|
|
124099
124099
|
},
|
|
124100
124100
|
removeSlash: function() {
|
|
124101
124101
|
return removeSlash;
|
|
124102
|
-
},
|
|
124103
|
-
cutNameByHyphen: function() {
|
|
124104
|
-
return cutNameByHyphen;
|
|
124105
124102
|
}
|
|
124106
124103
|
});
|
|
124107
124104
|
var _interop_require_default = require_interop_require_default();
|
|
@@ -124151,9 +124148,6 @@ var require_path = __commonJS({
|
|
|
124151
124148
|
var removeLeadingSlash = (s) => s.replace(/^\/+/, "");
|
|
124152
124149
|
var removeTailSlash = (s) => s.replace(/\/+$/, "");
|
|
124153
124150
|
var removeSlash = (s) => removeLeadingSlash(removeTailSlash(s));
|
|
124154
|
-
var cutNameByHyphen = (s) => {
|
|
124155
|
-
return s.split(/[-_]/)[0];
|
|
124156
|
-
};
|
|
124157
124151
|
}
|
|
124158
124152
|
});
|
|
124159
124153
|
|
|
@@ -147165,15 +147159,6 @@ function getGeneratorPath(generator, distTag) {
|
|
|
147165
147159
|
}
|
|
147166
147160
|
return generator;
|
|
147167
147161
|
}
|
|
147168
|
-
function usePluginNameExport(solution, options) {
|
|
147169
|
-
return __async(this, null, function* () {
|
|
147170
|
-
const solutionVersion = yield getModernPluginVersion(solution, SolutionToolsMap[Solution.MWA], options);
|
|
147171
|
-
if (import_utils30.semver.valid(solutionVersion) && import_utils30.semver.gte(solutionVersion, "2.0.0")) {
|
|
147172
|
-
return import_utils30.semver.gt(solutionVersion, "2.24.0");
|
|
147173
|
-
}
|
|
147174
|
-
return true;
|
|
147175
|
-
});
|
|
147176
|
-
}
|
|
147177
147162
|
|
|
147178
147163
|
// ../../new-action/dist/esm/mwa.js
|
|
147179
147164
|
var import_lodash11 = __toESM(require_lodash2());
|
|
@@ -147230,11 +147215,6 @@ var MWANewAction = (options) => __async(void 0, null, function* () {
|
|
|
147230
147215
|
};
|
|
147231
147216
|
const devDependency = MWAActionFunctionsDevDependencies[action2];
|
|
147232
147217
|
const dependency = MWAActionFunctionsDependencies[action2] || MWAActionRefactorDependencies[action2];
|
|
147233
|
-
const shouldUsePluginNameExport = yield usePluginNameExport(Solution.MWA, {
|
|
147234
|
-
registry: registry2,
|
|
147235
|
-
distTag,
|
|
147236
|
-
cwd
|
|
147237
|
-
});
|
|
147238
147218
|
const finalConfig = (0, import_lodash11.merge)(UserConfig, ans, {
|
|
147239
147219
|
locale: UserConfig.locale || locale,
|
|
147240
147220
|
packageManager: UserConfig.packageManager || (yield (0, import_utils27.getPackageManager)(cwd)),
|
|
@@ -147248,8 +147228,7 @@ var MWANewAction = (options) => __async(void 0, null, function* () {
|
|
|
147248
147228
|
} : {},
|
|
147249
147229
|
appendTypeContent: MWAActionFunctionsAppendTypeContent[action2] || MWAActionReactorAppendTypeContent[action2],
|
|
147250
147230
|
pluginName: MWANewActionPluginName[actionType][action2],
|
|
147251
|
-
pluginDependence: MWANewActionPluginDependence[actionType][action2]
|
|
147252
|
-
shouldUsePluginNameExport
|
|
147231
|
+
pluginDependence: MWANewActionPluginDependence[actionType][action2]
|
|
147253
147232
|
});
|
|
147254
147233
|
const task = [
|
|
147255
147234
|
{
|
|
@@ -147324,11 +147303,6 @@ var ModuleNewAction = (options) => __async(void 0, null, function* () {
|
|
|
147324
147303
|
cwd
|
|
147325
147304
|
});
|
|
147326
147305
|
};
|
|
147327
|
-
const shouldUsePluginNameExport = yield usePluginNameExport(Solution.Module, {
|
|
147328
|
-
registry: registry2,
|
|
147329
|
-
distTag,
|
|
147330
|
-
cwd
|
|
147331
|
-
});
|
|
147332
147306
|
const finalConfig = (0, import_lodash12.merge)(UserConfig, ans, {
|
|
147333
147307
|
locale: UserConfig.locale || locale,
|
|
147334
147308
|
packageManager: UserConfig.packageManager || (yield (0, import_utils27.getPackageManager)(cwd)),
|
|
@@ -147344,8 +147318,7 @@ var ModuleNewAction = (options) => __async(void 0, null, function* () {
|
|
|
147344
147318
|
[peerDependency]: `${yield getModulePluginVersion(peerDependency)}`
|
|
147345
147319
|
} : {},
|
|
147346
147320
|
pluginName: ModuleNewActionPluginName[actionType][action2],
|
|
147347
|
-
pluginDependence: ModuleNewActionPluginDependence[actionType][action2]
|
|
147348
|
-
shouldUsePluginNameExport
|
|
147321
|
+
pluginDependence: ModuleNewActionPluginDependence[actionType][action2]
|
|
147349
147322
|
});
|
|
147350
147323
|
const task = [
|
|
147351
147324
|
{
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "0.0.0-next-
|
|
18
|
+
"version": "0.0.0-next-1687763260175",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"main": "./dist/index.js",
|
|
21
21
|
"files": [
|
|
@@ -29,17 +29,17 @@
|
|
|
29
29
|
"@types/node": "^14",
|
|
30
30
|
"jest": "^29",
|
|
31
31
|
"typescript": "^5",
|
|
32
|
-
"@modern-js/base-generator": "0.0.0-next-
|
|
33
|
-
"@modern-js/generator-common": "0.0.0-next-
|
|
34
|
-
"@modern-js/generator-plugin": "0.0.0-next-
|
|
35
|
-
"@modern-js/generator-utils": "0.0.0-next-
|
|
36
|
-
"@modern-js/
|
|
37
|
-
"@
|
|
38
|
-
"@modern-js/
|
|
39
|
-
"@modern-js/
|
|
40
|
-
"@
|
|
41
|
-
"@
|
|
42
|
-
"@
|
|
32
|
+
"@modern-js/base-generator": "0.0.0-next-1687763260175",
|
|
33
|
+
"@modern-js/generator-common": "0.0.0-next-1687763260175",
|
|
34
|
+
"@modern-js/generator-plugin": "0.0.0-next-1687763260175",
|
|
35
|
+
"@modern-js/generator-utils": "0.0.0-next-1687763260175",
|
|
36
|
+
"@modern-js/module-generator": "0.0.0-next-1687763260175",
|
|
37
|
+
"@modern-js/monorepo-generator": "0.0.0-next-1687763260175",
|
|
38
|
+
"@modern-js/mwa-generator": "0.0.0-next-1687763260175",
|
|
39
|
+
"@modern-js/doc-generator": "0.0.0-next-1687763260175",
|
|
40
|
+
"@modern-js/utils": "0.0.0-next-1687763260175",
|
|
41
|
+
"@scripts/build": "0.0.0-next-1687763260175",
|
|
42
|
+
"@scripts/jest-config": "0.0.0-next-1687763260175"
|
|
43
43
|
},
|
|
44
44
|
"sideEffects": false,
|
|
45
45
|
"publishConfig": {
|