@modern-js/repo-generator 0.0.0-next-20240228095700 → 0.0.0-next-20240228180816
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 +7 -3
- package/package.json +11 -11
- package/src/index.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -84467,9 +84467,13 @@ async function getAvailableVersion(packageName, currentVersion, registry2) {
|
|
|
84467
84467
|
|
|
84468
84468
|
// ../../generator-utils/dist/esm/utils/getGeneratorPath.js
|
|
84469
84469
|
var import_path11 = __toESM(require("path"));
|
|
84470
|
-
var getGeneratorPath = (generator, distTag) => {
|
|
84470
|
+
var getGeneratorPath = (generator, distTag, paths) => {
|
|
84471
84471
|
if (process.env.CODESMITH_ENV === "development") {
|
|
84472
|
-
return import_path11.default.dirname(require.resolve(generator
|
|
84472
|
+
return import_path11.default.dirname(require.resolve(generator, {
|
|
84473
|
+
paths: paths !== null && paths !== void 0 ? paths : [
|
|
84474
|
+
process.cwd()
|
|
84475
|
+
]
|
|
84476
|
+
}));
|
|
84473
84477
|
} else if (distTag) {
|
|
84474
84478
|
return `${generator}@${distTag}`;
|
|
84475
84479
|
}
|
|
@@ -87057,7 +87061,7 @@ var handleTemplateFile = async (context, generator, appApi, generatorPlugin) =>
|
|
|
87057
87061
|
generator.logger.error("solution is not valid ");
|
|
87058
87062
|
}
|
|
87059
87063
|
await appApi.runSubGenerator(
|
|
87060
|
-
getGeneratorPath(solutionGenerator, context.config.distTag),
|
|
87064
|
+
getGeneratorPath(solutionGenerator, context.config.distTag, [__dirname]),
|
|
87061
87065
|
void 0,
|
|
87062
87066
|
{
|
|
87063
87067
|
...isMonorepo ? MonorepoNewActionConfig[solution] || {} : {},
|
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-20240228180816",
|
|
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": "0.0.0-next-
|
|
26
|
+
"@modern-js/utils": "0.0.0-next-20240228180816"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@modern-js/codesmith": "2.3.5",
|
|
@@ -32,15 +32,15 @@
|
|
|
32
32
|
"@types/node": "^14",
|
|
33
33
|
"jest": "^29",
|
|
34
34
|
"typescript": "^5",
|
|
35
|
-
"@modern-js/base-generator": "0.0.0-next-
|
|
36
|
-
"@modern-js/generator-
|
|
37
|
-
"@modern-js/generator-
|
|
38
|
-
"@modern-js/generator-utils": "0.0.0-next-
|
|
39
|
-
"@modern-js/module-generator": "0.0.0-next-
|
|
40
|
-
"@modern-js/monorepo-generator": "0.0.0-next-
|
|
41
|
-
"@modern-js/mwa-generator": "0.0.0-next-
|
|
42
|
-
"@scripts/build": "0.0.0-next-
|
|
43
|
-
"@scripts/jest-config": "0.0.0-next-
|
|
35
|
+
"@modern-js/base-generator": "0.0.0-next-20240228180816",
|
|
36
|
+
"@modern-js/generator-plugin": "0.0.0-next-20240228180816",
|
|
37
|
+
"@modern-js/generator-common": "0.0.0-next-20240228180816",
|
|
38
|
+
"@modern-js/generator-utils": "0.0.0-next-20240228180816",
|
|
39
|
+
"@modern-js/module-generator": "0.0.0-next-20240228180816",
|
|
40
|
+
"@modern-js/monorepo-generator": "0.0.0-next-20240228180816",
|
|
41
|
+
"@modern-js/mwa-generator": "0.0.0-next-20240228180816",
|
|
42
|
+
"@scripts/build": "0.0.0-next-20240228180816",
|
|
43
|
+
"@scripts/jest-config": "0.0.0-next-20240228180816"
|
|
44
44
|
},
|
|
45
45
|
"sideEffects": false,
|
|
46
46
|
"publishConfig": {
|
package/src/index.ts
CHANGED