@modern-js/repo-generator 0.0.0-next-20241015072043 → 0.0.0-next-20241015085202
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 +422 -401
- package/package.json +4 -3
- package/src/index.ts +9 -0
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-20241015085202",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"main": "./dist/index.js",
|
|
21
21
|
"files": [
|
|
@@ -26,8 +26,9 @@
|
|
|
26
26
|
"@modern-js/codesmith": "2.6.0",
|
|
27
27
|
"@types/node": "^14",
|
|
28
28
|
"typescript": "^5",
|
|
29
|
-
"@modern-js/repo-next-generator": "0.0.0-next-
|
|
30
|
-
"@scripts/build": "0.0.0-next-
|
|
29
|
+
"@modern-js/repo-next-generator": "0.0.0-next-20241015085202",
|
|
30
|
+
"@scripts/build": "0.0.0-next-20241015085202",
|
|
31
|
+
"@modern-js/generator-utils": "0.0.0-next-20241015085202"
|
|
31
32
|
},
|
|
32
33
|
"sideEffects": false,
|
|
33
34
|
"publishConfig": {
|
package/src/index.ts
CHANGED
|
@@ -3,6 +3,7 @@ import {
|
|
|
3
3
|
type GeneratorContext,
|
|
4
4
|
type GeneratorCore,
|
|
5
5
|
} from '@modern-js/codesmith';
|
|
6
|
+
import { getGeneratorPath } from '@modern-js/generator-utils';
|
|
6
7
|
|
|
7
8
|
export default async (context: GeneratorContext, generator: GeneratorCore) => {
|
|
8
9
|
process.setMaxListeners(20);
|
|
@@ -17,6 +18,14 @@ export default async (context: GeneratorContext, generator: GeneratorCore) => {
|
|
|
17
18
|
await codesmith.prepareGlobal();
|
|
18
19
|
}
|
|
19
20
|
|
|
21
|
+
const RepoNextGeneratort = '@modern-js/repo-next-generator';
|
|
22
|
+
|
|
23
|
+
await generator.runSubGenerator(
|
|
24
|
+
getGeneratorPath(RepoNextGeneratort, context.config.distTag, [__dirname]),
|
|
25
|
+
undefined,
|
|
26
|
+
context.config,
|
|
27
|
+
);
|
|
28
|
+
|
|
20
29
|
generator.logger.debug(`🚀 [Start Run Repo Generator]`);
|
|
21
30
|
|
|
22
31
|
generator.logger.debug(`🚀 [End Run Repo Generator]`);
|