From 8f431632fd6ef79c75bc64de431bf606ffd76de4 Mon Sep 17 00:00:00 2001 From: Belinda Cao Date: Tue, 24 Oct 2023 14:12:15 +0800 Subject: [PATCH] feat: optimize generator bundle (#4838) --- .changeset/warm-days-dream.md | 34 ++ .../generator/generator-common/package.json | 6 +- .../generator/generator-plugin/package.json | 10 +- .../generator/generator-utils/package.json | 2 +- .../base-generator/modern.config.js | 11 +- .../generators/base-generator/package.json | 8 +- .../generators/bff-generator/modern.config.js | 11 +- .../generators/bff-generator/package.json | 10 +- .../changeset-generator/modern.config.js | 11 +- .../changeset-generator/package.json | 8 +- .../dependence-generator/modern.config.js | 11 +- .../dependence-generator/package.json | 10 +- .../entry-generator/modern.config.js | 11 +- .../generators/entry-generator/package.json | 10 +- .../generator-generator/modern.config.js | 11 +- .../generator-generator/package.json | 10 +- .../module-generator/modern.config.js | 11 +- .../generators/module-generator/package.json | 8 +- .../module-test-generator/modern.config.js | 11 +- .../module-test-generator/package.json | 10 +- .../monorepo-generator/modern.config.js | 11 +- .../monorepo-generator/package.json | 10 +- .../generators/mwa-generator/modern.config.js | 11 +- .../generators/mwa-generator/package.json | 8 +- .../packages-generator/modern.config.js | 8 +- .../packages-generator/package.json | 10 +- .../repo-generator/modern.config.js | 11 +- .../generators/repo-generator/package.json | 8 +- .../router-v5-generator/modern.config.js | 11 +- .../router-v5-generator/package.json | 8 +- .../rspack-generator/modern.config.js | 11 +- .../generators/rspack-generator/package.json | 8 +- .../server-generator/modern.config.js | 11 +- .../generators/server-generator/package.json | 10 +- .../generators/ssg-generator/modern.config.js | 11 +- .../generators/ssg-generator/package.json | 8 +- .../storybook-generator/modern.config.js | 11 +- .../storybook-generator/package.json | 10 +- .../tailwindcss-generator/modern.config.js | 11 +- .../tailwindcss-generator/package.json | 8 +- .../test-generator/modern.config.js | 11 +- .../generators/test-generator/package.json | 10 +- .../upgrade-generator/modern.config.js | 11 +- .../generators/upgrade-generator/package.json | 10 +- packages/generator/new-action/package.json | 4 +- .../generator/sandpack-react/package.json | 2 +- packages/toolkit/create/package.json | 2 +- packages/toolkit/upgrade/package.json | 2 +- pnpm-lock.yaml | 530 +++++++++++------- scripts/build/src/index.js | 16 + 50 files changed, 573 insertions(+), 434 deletions(-) create mode 100644 .changeset/warm-days-dream.md diff --git a/.changeset/warm-days-dream.md b/.changeset/warm-days-dream.md new file mode 100644 index 000000000000..8198de0aed88 --- /dev/null +++ b/.changeset/warm-days-dream.md @@ -0,0 +1,34 @@ +--- +'@modern-js/module-test-generator': patch +'@modern-js/tailwindcss-generator': patch +'@modern-js/dependence-generator': patch +'@modern-js/changeset-generator': patch +'@modern-js/generator-generator': patch +'@modern-js/router-v5-generator': patch +'@modern-js/storybook-generator': patch +'@modern-js/monorepo-generator': patch +'@modern-js/packages-generator': patch +'@modern-js/upgrade-generator': patch +'@modern-js/module-generator': patch +'@modern-js/rspack-generator': patch +'@modern-js/server-generator': patch +'@modern-js/entry-generator': patch +'@modern-js/base-generator': patch +'@modern-js/repo-generator': patch +'@modern-js/test-generator': patch +'@modern-js/bff-generator': patch +'@modern-js/mwa-generator': patch +'@modern-js/ssg-generator': patch +'@modern-js/generator-common': patch +'@modern-js/generator-plugin': patch +'@modern-js/generator-utils': patch +'@modern-js/sandpack-react': patch +'@modern-js/new-action': patch +'@modern-js/upgrade': patch +'@modern-js/create': patch +'@scripts/build': patch +--- + +feat: optimize generator bundle + +feat: 优化生成器打包 diff --git a/packages/generator/generator-common/package.json b/packages/generator/generator-common/package.json index 6a9b520a34bb..af1017f13469 100644 --- a/packages/generator/generator-common/package.json +++ b/packages/generator/generator-common/package.json @@ -37,13 +37,13 @@ "test": "jest --passWithNoTests" }, "dependencies": { - "@modern-js/codesmith-formily": "2.2.5", + "@modern-js/codesmith-formily": "2.3.0", "@modern-js/plugin-i18n": "workspace:*", "@swc/helpers": "0.5.1" }, "devDependencies": { - "@modern-js/codesmith": "2.2.5", - "@modern-js/codesmith-api-app": "2.2.5", + "@modern-js/codesmith": "2.3.0", + "@modern-js/codesmith-api-app": "2.3.0", "@modern-js/utils": "workspace:*", "@scripts/build": "workspace:*", "@scripts/jest-config": "workspace:*", diff --git a/packages/generator/generator-plugin/package.json b/packages/generator/generator-plugin/package.json index 67714be97480..3911cd196999 100644 --- a/packages/generator/generator-plugin/package.json +++ b/packages/generator/generator-plugin/package.json @@ -18,11 +18,11 @@ "test": "jest" }, "dependencies": { - "@modern-js/codesmith": "2.2.5", - "@modern-js/codesmith-api-git": "2.2.5", - "@modern-js/codesmith-api-json": "2.2.5", - "@modern-js/codesmith-api-npm": "2.2.5", - "@modern-js/codesmith-formily": "2.2.5", + "@modern-js/codesmith": "2.3.0", + "@modern-js/codesmith-api-git": "2.3.0", + "@modern-js/codesmith-api-json": "2.3.0", + "@modern-js/codesmith-api-npm": "2.3.0", + "@modern-js/codesmith-formily": "2.3.0", "@modern-js/generator-common": "workspace:*", "@modern-js/generator-utils": "workspace:*", "@modern-js/new-action": "workspace:*", diff --git a/packages/generator/generator-utils/package.json b/packages/generator/generator-utils/package.json index 5ae73d893049..c30cb2fdcaac 100644 --- a/packages/generator/generator-utils/package.json +++ b/packages/generator/generator-utils/package.json @@ -42,7 +42,7 @@ "@swc/helpers": "0.5.1" }, "devDependencies": { - "@modern-js/codesmith": "2.2.5", + "@modern-js/codesmith": "2.3.0", "@scripts/build": "workspace:*", "@scripts/jest-config": "workspace:*", "@types/jest": "^29", diff --git a/packages/generator/generators/base-generator/modern.config.js b/packages/generator/generators/base-generator/modern.config.js index 9df5200ab6eb..57303a8d8dfa 100644 --- a/packages/generator/generators/base-generator/modern.config.js +++ b/packages/generator/generators/base-generator/modern.config.js @@ -1,10 +1,5 @@ +const { generatorBuildConfig } = require('@scripts/build'); + module.exports = { - buildConfig: { - target: 'es2019', - autoExternal: false, - alias: { - chalk: '@modern-js/utils/chalk', - }, - dts: false, - }, + buildConfig: generatorBuildConfig, }; diff --git a/packages/generator/generators/base-generator/package.json b/packages/generator/generators/base-generator/package.json index 610ebf6e8e23..d87c677bee6a 100644 --- a/packages/generator/generators/base-generator/package.json +++ b/packages/generator/generators/base-generator/package.json @@ -29,12 +29,14 @@ "build": "modern-lib build", "test": "jest --passWithNoTests" }, + "dependencies": { + "@modern-js/utils": "workspace:*" + }, "devDependencies": { - "@modern-js/codesmith": "2.2.5", - "@modern-js/codesmith-api-app": "2.2.5", + "@modern-js/codesmith": "2.3.0", + "@modern-js/codesmith-api-app": "2.3.0", "@modern-js/generator-common": "workspace:*", "@modern-js/generator-utils": "workspace:*", - "@modern-js/utils": "workspace:*", "@scripts/build": "workspace:*", "@scripts/jest-config": "workspace:*", "@types/jest": "^29", diff --git a/packages/generator/generators/bff-generator/modern.config.js b/packages/generator/generators/bff-generator/modern.config.js index 9df5200ab6eb..57303a8d8dfa 100644 --- a/packages/generator/generators/bff-generator/modern.config.js +++ b/packages/generator/generators/bff-generator/modern.config.js @@ -1,10 +1,5 @@ +const { generatorBuildConfig } = require('@scripts/build'); + module.exports = { - buildConfig: { - target: 'es2019', - autoExternal: false, - alias: { - chalk: '@modern-js/utils/chalk', - }, - dts: false, - }, + buildConfig: generatorBuildConfig, }; diff --git a/packages/generator/generators/bff-generator/package.json b/packages/generator/generators/bff-generator/package.json index 74cda4068ebc..9be36fcb1182 100644 --- a/packages/generator/generators/bff-generator/package.json +++ b/packages/generator/generators/bff-generator/package.json @@ -29,14 +29,16 @@ "build": "modern-lib build", "test": "jest --passWithNoTests" }, + "dependencies": { + "@modern-js/utils": "workspace:*" + }, "devDependencies": { - "@modern-js/codesmith": "2.2.5", - "@modern-js/codesmith-api-app": "2.2.5", - "@modern-js/codesmith-api-json": "2.2.5", + "@modern-js/codesmith": "2.3.0", + "@modern-js/codesmith-api-app": "2.3.0", + "@modern-js/codesmith-api-json": "2.3.0", "@modern-js/generator-common": "workspace:*", "@modern-js/plugin-i18n": "workspace:*", "@modern-js/generator-utils": "workspace:*", - "@modern-js/utils": "workspace:*", "@scripts/build": "workspace:*", "@scripts/jest-config": "workspace:*", "@types/jest": "^29", diff --git a/packages/generator/generators/changeset-generator/modern.config.js b/packages/generator/generators/changeset-generator/modern.config.js index 9df5200ab6eb..57303a8d8dfa 100644 --- a/packages/generator/generators/changeset-generator/modern.config.js +++ b/packages/generator/generators/changeset-generator/modern.config.js @@ -1,10 +1,5 @@ +const { generatorBuildConfig } = require('@scripts/build'); + module.exports = { - buildConfig: { - target: 'es2019', - autoExternal: false, - alias: { - chalk: '@modern-js/utils/chalk', - }, - dts: false, - }, + buildConfig: generatorBuildConfig, }; diff --git a/packages/generator/generators/changeset-generator/package.json b/packages/generator/generators/changeset-generator/package.json index cac92555bca3..1fe8fc585c28 100644 --- a/packages/generator/generators/changeset-generator/package.json +++ b/packages/generator/generators/changeset-generator/package.json @@ -28,11 +28,13 @@ "build": "modern-lib build", "test": "jest --passWithNoTests" }, + "dependencies": { + "@modern-js/utils": "workspace:*" + }, "devDependencies": { - "@modern-js/codesmith": "2.2.5", - "@modern-js/codesmith-api-app": "2.2.5", + "@modern-js/codesmith": "2.3.0", + "@modern-js/codesmith-api-app": "2.3.0", "@modern-js/generator-common": "workspace:*", - "@modern-js/utils": "workspace:*", "@scripts/build": "workspace:*", "@scripts/jest-config": "workspace:*", "@types/jest": "^29", diff --git a/packages/generator/generators/dependence-generator/modern.config.js b/packages/generator/generators/dependence-generator/modern.config.js index 9df5200ab6eb..57303a8d8dfa 100644 --- a/packages/generator/generators/dependence-generator/modern.config.js +++ b/packages/generator/generators/dependence-generator/modern.config.js @@ -1,10 +1,5 @@ +const { generatorBuildConfig } = require('@scripts/build'); + module.exports = { - buildConfig: { - target: 'es2019', - autoExternal: false, - alias: { - chalk: '@modern-js/utils/chalk', - }, - dts: false, - }, + buildConfig: generatorBuildConfig, }; diff --git a/packages/generator/generators/dependence-generator/package.json b/packages/generator/generators/dependence-generator/package.json index aa4804b0ff0e..719d8341f797 100644 --- a/packages/generator/generators/dependence-generator/package.json +++ b/packages/generator/generators/dependence-generator/package.json @@ -28,14 +28,16 @@ "build": "modern-lib build", "test": "jest --passWithNoTests" }, + "dependencies": { + "@modern-js/utils": "workspace:*" + }, "devDependencies": { - "@modern-js/codesmith": "2.2.5", - "@modern-js/codesmith-api-app": "2.2.5", - "@modern-js/codesmith-api-json": "2.2.5", + "@modern-js/codesmith": "2.3.0", + "@modern-js/codesmith-api-app": "2.3.0", + "@modern-js/codesmith-api-json": "2.3.0", "@modern-js/generator-common": "workspace:*", "@modern-js/generator-utils": "workspace:*", "@modern-js/plugin-i18n": "workspace:*", - "@modern-js/utils": "workspace:*", "@scripts/build": "workspace:*", "@scripts/jest-config": "workspace:*", "@types/jest": "^29", diff --git a/packages/generator/generators/entry-generator/modern.config.js b/packages/generator/generators/entry-generator/modern.config.js index 9df5200ab6eb..57303a8d8dfa 100644 --- a/packages/generator/generators/entry-generator/modern.config.js +++ b/packages/generator/generators/entry-generator/modern.config.js @@ -1,10 +1,5 @@ +const { generatorBuildConfig } = require('@scripts/build'); + module.exports = { - buildConfig: { - target: 'es2019', - autoExternal: false, - alias: { - chalk: '@modern-js/utils/chalk', - }, - dts: false, - }, + buildConfig: generatorBuildConfig, }; diff --git a/packages/generator/generators/entry-generator/package.json b/packages/generator/generators/entry-generator/package.json index b305a15479c5..a9c76ca9e395 100644 --- a/packages/generator/generators/entry-generator/package.json +++ b/packages/generator/generators/entry-generator/package.json @@ -28,14 +28,16 @@ "build": "modern-lib build", "test": "jest --passWithNoTests" }, + "dependencies": { + "@modern-js/utils": "workspace:*" + }, "devDependencies": { - "@modern-js/codesmith": "2.2.5", - "@modern-js/codesmith-api-app": "2.2.5", - "@modern-js/codesmith-api-handlebars": "2.2.5", + "@modern-js/codesmith": "2.3.0", + "@modern-js/codesmith-api-app": "2.3.0", + "@modern-js/codesmith-api-handlebars": "2.3.0", "@modern-js/generator-common": "workspace:*", "@modern-js/generator-utils": "workspace:*", "@modern-js/plugin-i18n": "workspace:*", - "@modern-js/utils": "workspace:*", "@scripts/build": "workspace:*", "@scripts/jest-config": "workspace:*", "@types/jest": "^29", diff --git a/packages/generator/generators/generator-generator/modern.config.js b/packages/generator/generators/generator-generator/modern.config.js index 9df5200ab6eb..57303a8d8dfa 100644 --- a/packages/generator/generators/generator-generator/modern.config.js +++ b/packages/generator/generators/generator-generator/modern.config.js @@ -1,10 +1,5 @@ +const { generatorBuildConfig } = require('@scripts/build'); + module.exports = { - buildConfig: { - target: 'es2019', - autoExternal: false, - alias: { - chalk: '@modern-js/utils/chalk', - }, - dts: false, - }, + buildConfig: generatorBuildConfig, }; diff --git a/packages/generator/generators/generator-generator/package.json b/packages/generator/generators/generator-generator/package.json index e9ceb74c8690..51a7511d705f 100644 --- a/packages/generator/generators/generator-generator/package.json +++ b/packages/generator/generators/generator-generator/package.json @@ -28,15 +28,17 @@ "build": "modern-lib build", "test": "jest --passWithNoTests" }, + "dependencies": { + "@modern-js/utils": "workspace:*" + }, "devDependencies": { - "@modern-js/codesmith": "2.2.5", - "@modern-js/codesmith-api-app": "2.2.5", - "@modern-js/codesmith-api-json": "2.2.5", + "@modern-js/codesmith": "2.3.0", + "@modern-js/codesmith-api-app": "2.3.0", + "@modern-js/codesmith-api-json": "2.3.0", "@modern-js/generator-common": "workspace:*", "@modern-js/generator-utils": "workspace:*", "@modern-js/module-generator": "workspace:*", "@modern-js/plugin-i18n": "workspace:*", - "@modern-js/utils": "workspace:*", "@scripts/build": "workspace:*", "@scripts/jest-config": "workspace:*", "@types/jest": "^29", diff --git a/packages/generator/generators/module-generator/modern.config.js b/packages/generator/generators/module-generator/modern.config.js index 9df5200ab6eb..57303a8d8dfa 100644 --- a/packages/generator/generators/module-generator/modern.config.js +++ b/packages/generator/generators/module-generator/modern.config.js @@ -1,10 +1,5 @@ +const { generatorBuildConfig } = require('@scripts/build'); + module.exports = { - buildConfig: { - target: 'es2019', - autoExternal: false, - alias: { - chalk: '@modern-js/utils/chalk', - }, - dts: false, - }, + buildConfig: generatorBuildConfig, }; diff --git a/packages/generator/generators/module-generator/package.json b/packages/generator/generators/module-generator/package.json index f01725ccca27..c3d77f339b73 100644 --- a/packages/generator/generators/module-generator/package.json +++ b/packages/generator/generators/module-generator/package.json @@ -28,17 +28,19 @@ "build": "modern-lib build", "test": "jest --passWithNoTests" }, + "dependencies": { + "@modern-js/utils": "workspace:*" + }, "devDependencies": { "@modern-js/base-generator": "workspace:*", "@modern-js/changeset-generator": "workspace:*", - "@modern-js/codesmith": "2.2.5", - "@modern-js/codesmith-api-app": "2.2.5", + "@modern-js/codesmith": "2.3.0", + "@modern-js/codesmith-api-app": "2.3.0", "@modern-js/dependence-generator": "workspace:*", "@modern-js/generator-common": "workspace:*", "@modern-js/generator-utils": "workspace:*", "@modern-js/plugin-i18n": "workspace:*", "@modern-js/packages-generator": "workspace:*", - "@modern-js/utils": "workspace:*", "@scripts/build": "workspace:*", "@scripts/jest-config": "workspace:*", "@types/jest": "^29", diff --git a/packages/generator/generators/module-test-generator/modern.config.js b/packages/generator/generators/module-test-generator/modern.config.js index 9df5200ab6eb..57303a8d8dfa 100644 --- a/packages/generator/generators/module-test-generator/modern.config.js +++ b/packages/generator/generators/module-test-generator/modern.config.js @@ -1,10 +1,5 @@ +const { generatorBuildConfig } = require('@scripts/build'); + module.exports = { - buildConfig: { - target: 'es2019', - autoExternal: false, - alias: { - chalk: '@modern-js/utils/chalk', - }, - dts: false, - }, + buildConfig: generatorBuildConfig, }; diff --git a/packages/generator/generators/module-test-generator/package.json b/packages/generator/generators/module-test-generator/package.json index b11da6fe6311..40c195e48481 100644 --- a/packages/generator/generators/module-test-generator/package.json +++ b/packages/generator/generators/module-test-generator/package.json @@ -28,15 +28,17 @@ "build": "modern-lib build", "test": "jest --passWithNoTests" }, + "dependencies": { + "@modern-js/utils": "workspace:*" + }, "devDependencies": { - "@modern-js/codesmith": "2.2.5", - "@modern-js/codesmith-api-app": "2.2.5", - "@modern-js/codesmith-api-json": "2.2.5", + "@modern-js/codesmith": "2.3.0", + "@modern-js/codesmith-api-app": "2.3.0", + "@modern-js/codesmith-api-json": "2.3.0", "@modern-js/dependence-generator": "workspace:*", "@modern-js/generator-common": "workspace:*", "@modern-js/generator-utils": "workspace:*", "@modern-js/plugin-i18n": "workspace:*", - "@modern-js/utils": "workspace:*", "@scripts/build": "workspace:*", "@scripts/jest-config": "workspace:*", "@types/jest": "^29", diff --git a/packages/generator/generators/monorepo-generator/modern.config.js b/packages/generator/generators/monorepo-generator/modern.config.js index 9df5200ab6eb..57303a8d8dfa 100644 --- a/packages/generator/generators/monorepo-generator/modern.config.js +++ b/packages/generator/generators/monorepo-generator/modern.config.js @@ -1,10 +1,5 @@ +const { generatorBuildConfig } = require('@scripts/build'); + module.exports = { - buildConfig: { - target: 'es2019', - autoExternal: false, - alias: { - chalk: '@modern-js/utils/chalk', - }, - dts: false, - }, + buildConfig: generatorBuildConfig, }; diff --git a/packages/generator/generators/monorepo-generator/package.json b/packages/generator/generators/monorepo-generator/package.json index 72a27afbbd4d..ba9a04b01f82 100644 --- a/packages/generator/generators/monorepo-generator/package.json +++ b/packages/generator/generators/monorepo-generator/package.json @@ -28,17 +28,19 @@ "build": "modern-lib build", "test": "jest --passWithNoTests" }, + "dependencies": { + "@modern-js/utils": "workspace:*" + }, "devDependencies": { "@modern-js/base-generator": "workspace:*", "@modern-js/changeset-generator": "workspace:*", - "@modern-js/codesmith": "2.2.5", - "@modern-js/codesmith-api-app": "2.2.5", - "@modern-js/codesmith-api-json": "2.2.5", + "@modern-js/codesmith": "2.3.0", + "@modern-js/codesmith-api-app": "2.3.0", + "@modern-js/codesmith-api-json": "2.3.0", "@modern-js/generator-common": "workspace:*", "@modern-js/generator-utils": "workspace:*", "@modern-js/plugin-i18n": "workspace:*", "@modern-js/packages-generator": "workspace:*", - "@modern-js/utils": "workspace:*", "@scripts/build": "workspace:*", "@scripts/jest-config": "workspace:*", "@types/jest": "^29", diff --git a/packages/generator/generators/mwa-generator/modern.config.js b/packages/generator/generators/mwa-generator/modern.config.js index 9df5200ab6eb..57303a8d8dfa 100644 --- a/packages/generator/generators/mwa-generator/modern.config.js +++ b/packages/generator/generators/mwa-generator/modern.config.js @@ -1,10 +1,5 @@ +const { generatorBuildConfig } = require('@scripts/build'); + module.exports = { - buildConfig: { - target: 'es2019', - autoExternal: false, - alias: { - chalk: '@modern-js/utils/chalk', - }, - dts: false, - }, + buildConfig: generatorBuildConfig, }; diff --git a/packages/generator/generators/mwa-generator/package.json b/packages/generator/generators/mwa-generator/package.json index cbf4692bc3d2..07e4c29315fd 100644 --- a/packages/generator/generators/mwa-generator/package.json +++ b/packages/generator/generators/mwa-generator/package.json @@ -28,10 +28,13 @@ "build": "modern-lib build", "test": "jest --passWithNoTests" }, + "dependencies": { + "@modern-js/utils": "workspace:*" + }, "devDependencies": { "@modern-js/base-generator": "workspace:*", - "@modern-js/codesmith": "2.2.5", - "@modern-js/codesmith-api-app": "2.2.5", + "@modern-js/codesmith": "2.3.0", + "@modern-js/codesmith-api-app": "2.3.0", "@modern-js/dependence-generator": "workspace:*", "@modern-js/entry-generator": "workspace:*", "@modern-js/generator-common": "workspace:*", @@ -39,7 +42,6 @@ "@modern-js/packages-generator": "workspace:*", "@modern-js/rspack-generator": "workspace:*", "@modern-js/plugin-i18n": "workspace:*", - "@modern-js/utils": "workspace:*", "@scripts/build": "workspace:*", "@scripts/jest-config": "workspace:*", "@types/jest": "^29", diff --git a/packages/generator/generators/packages-generator/modern.config.js b/packages/generator/generators/packages-generator/modern.config.js index 2a999313ab2f..57303a8d8dfa 100644 --- a/packages/generator/generators/packages-generator/modern.config.js +++ b/packages/generator/generators/packages-generator/modern.config.js @@ -1,7 +1,5 @@ +const { generatorBuildConfig } = require('@scripts/build'); + module.exports = { - buildConfig: { - target: 'es2019', - autoExternal: false, - dts: false, - }, + buildConfig: generatorBuildConfig, }; diff --git a/packages/generator/generators/packages-generator/package.json b/packages/generator/generators/packages-generator/package.json index 78d6d0b9628c..bd768b7ae4d2 100644 --- a/packages/generator/generators/packages-generator/package.json +++ b/packages/generator/generators/packages-generator/package.json @@ -28,13 +28,15 @@ "build": "modern-lib build", "test": "jest --passWithNoTests" }, + "dependencies": { + "@modern-js/utils": "workspace:*" + }, "devDependencies": { - "@modern-js/codesmith": "2.2.5", - "@modern-js/codesmith-api-app": "2.2.5", - "@modern-js/codesmith-api-json": "2.2.5", + "@modern-js/codesmith": "2.3.0", + "@modern-js/codesmith-api-app": "2.3.0", + "@modern-js/codesmith-api-json": "2.3.0", "@modern-js/generator-common": "workspace:*", "@modern-js/generator-utils": "workspace:*", - "@modern-js/utils": "workspace:*", "@scripts/build": "workspace:*", "@scripts/jest-config": "workspace:*", "@types/jest": "^29", diff --git a/packages/generator/generators/repo-generator/modern.config.js b/packages/generator/generators/repo-generator/modern.config.js index 9df5200ab6eb..57303a8d8dfa 100644 --- a/packages/generator/generators/repo-generator/modern.config.js +++ b/packages/generator/generators/repo-generator/modern.config.js @@ -1,10 +1,5 @@ +const { generatorBuildConfig } = require('@scripts/build'); + module.exports = { - buildConfig: { - target: 'es2019', - autoExternal: false, - alias: { - chalk: '@modern-js/utils/chalk', - }, - dts: false, - }, + buildConfig: generatorBuildConfig, }; diff --git a/packages/generator/generators/repo-generator/package.json b/packages/generator/generators/repo-generator/package.json index 22a3b85f2bfa..f3e00b9deab2 100644 --- a/packages/generator/generators/repo-generator/package.json +++ b/packages/generator/generators/repo-generator/package.json @@ -28,17 +28,19 @@ "build": "modern-lib build", "test": "jest --passWithNoTests" }, + "dependencies": { + "@modern-js/utils": "workspace:*" + }, "devDependencies": { "@modern-js/base-generator": "workspace:*", - "@modern-js/codesmith": "2.2.5", - "@modern-js/codesmith-api-app": "2.2.5", + "@modern-js/codesmith": "2.3.0", + "@modern-js/codesmith-api-app": "2.3.0", "@modern-js/generator-common": "workspace:*", "@modern-js/generator-plugin": "workspace:*", "@modern-js/generator-utils": "workspace:*", "@modern-js/module-generator": "workspace:*", "@modern-js/monorepo-generator": "workspace:*", "@modern-js/mwa-generator": "workspace:*", - "@modern-js/utils": "workspace:*", "@scripts/build": "workspace:*", "@scripts/jest-config": "workspace:*", "@types/jest": "^29", diff --git a/packages/generator/generators/router-v5-generator/modern.config.js b/packages/generator/generators/router-v5-generator/modern.config.js index 9df5200ab6eb..57303a8d8dfa 100644 --- a/packages/generator/generators/router-v5-generator/modern.config.js +++ b/packages/generator/generators/router-v5-generator/modern.config.js @@ -1,10 +1,5 @@ +const { generatorBuildConfig } = require('@scripts/build'); + module.exports = { - buildConfig: { - target: 'es2019', - autoExternal: false, - alias: { - chalk: '@modern-js/utils/chalk', - }, - dts: false, - }, + buildConfig: generatorBuildConfig, }; diff --git a/packages/generator/generators/router-v5-generator/package.json b/packages/generator/generators/router-v5-generator/package.json index e305d1fb8418..f7531d6873d3 100644 --- a/packages/generator/generators/router-v5-generator/package.json +++ b/packages/generator/generators/router-v5-generator/package.json @@ -28,14 +28,16 @@ "build": "modern-lib build", "test": "jest --passWithNoTests" }, + "dependencies": { + "@modern-js/utils": "workspace:*" + }, "devDependencies": { - "@modern-js/codesmith": "2.2.5", - "@modern-js/codesmith-api-app": "2.2.5", + "@modern-js/codesmith": "2.3.0", + "@modern-js/codesmith-api-app": "2.3.0", "@modern-js/dependence-generator": "workspace:*", "@modern-js/generator-common": "workspace:*", "@modern-js/generator-utils": "workspace:*", "@modern-js/plugin-i18n": "workspace:*", - "@modern-js/utils": "workspace:*", "@scripts/build": "workspace:*", "@scripts/jest-config": "workspace:*", "@types/jest": "^29", diff --git a/packages/generator/generators/rspack-generator/modern.config.js b/packages/generator/generators/rspack-generator/modern.config.js index 9df5200ab6eb..57303a8d8dfa 100644 --- a/packages/generator/generators/rspack-generator/modern.config.js +++ b/packages/generator/generators/rspack-generator/modern.config.js @@ -1,10 +1,5 @@ +const { generatorBuildConfig } = require('@scripts/build'); + module.exports = { - buildConfig: { - target: 'es2019', - autoExternal: false, - alias: { - chalk: '@modern-js/utils/chalk', - }, - dts: false, - }, + buildConfig: generatorBuildConfig, }; diff --git a/packages/generator/generators/rspack-generator/package.json b/packages/generator/generators/rspack-generator/package.json index fded1f4bc0b8..9e3b1e082d6c 100644 --- a/packages/generator/generators/rspack-generator/package.json +++ b/packages/generator/generators/rspack-generator/package.json @@ -28,14 +28,16 @@ "build": "modern-lib build", "test": "jest --passWithNoTests" }, + "dependencies": { + "@modern-js/utils": "workspace:*" + }, "devDependencies": { - "@modern-js/codesmith": "2.2.5", - "@modern-js/codesmith-api-app": "2.2.5", + "@modern-js/codesmith": "2.3.0", + "@modern-js/codesmith-api-app": "2.3.0", "@modern-js/dependence-generator": "workspace:*", "@modern-js/generator-common": "workspace:*", "@modern-js/generator-utils": "workspace:*", "@modern-js/plugin-i18n": "workspace:*", - "@modern-js/utils": "workspace:*", "@scripts/build": "workspace:*", "@scripts/jest-config": "workspace:*", "@types/jest": "^29", diff --git a/packages/generator/generators/server-generator/modern.config.js b/packages/generator/generators/server-generator/modern.config.js index 9df5200ab6eb..57303a8d8dfa 100644 --- a/packages/generator/generators/server-generator/modern.config.js +++ b/packages/generator/generators/server-generator/modern.config.js @@ -1,10 +1,5 @@ +const { generatorBuildConfig } = require('@scripts/build'); + module.exports = { - buildConfig: { - target: 'es2019', - autoExternal: false, - alias: { - chalk: '@modern-js/utils/chalk', - }, - dts: false, - }, + buildConfig: generatorBuildConfig, }; diff --git a/packages/generator/generators/server-generator/package.json b/packages/generator/generators/server-generator/package.json index 5c613dd40dce..861942308e76 100644 --- a/packages/generator/generators/server-generator/package.json +++ b/packages/generator/generators/server-generator/package.json @@ -29,14 +29,16 @@ "build": "modern-lib build", "test": "jest --passWithNoTests" }, + "dependencies": { + "@modern-js/utils": "workspace:*" + }, "devDependencies": { - "@modern-js/codesmith": "2.2.5", - "@modern-js/codesmith-api-app": "2.2.5", - "@modern-js/codesmith-api-json": "2.2.5", + "@modern-js/codesmith": "2.3.0", + "@modern-js/codesmith-api-app": "2.3.0", + "@modern-js/codesmith-api-json": "2.3.0", "@modern-js/generator-common": "workspace:*", "@modern-js/generator-utils": "workspace:*", "@modern-js/dependence-generator": "workspace:*", - "@modern-js/utils": "workspace:*", "@scripts/build": "workspace:*", "@scripts/jest-config": "workspace:*", "@types/jest": "^29", diff --git a/packages/generator/generators/ssg-generator/modern.config.js b/packages/generator/generators/ssg-generator/modern.config.js index 9df5200ab6eb..57303a8d8dfa 100644 --- a/packages/generator/generators/ssg-generator/modern.config.js +++ b/packages/generator/generators/ssg-generator/modern.config.js @@ -1,10 +1,5 @@ +const { generatorBuildConfig } = require('@scripts/build'); + module.exports = { - buildConfig: { - target: 'es2019', - autoExternal: false, - alias: { - chalk: '@modern-js/utils/chalk', - }, - dts: false, - }, + buildConfig: generatorBuildConfig, }; diff --git a/packages/generator/generators/ssg-generator/package.json b/packages/generator/generators/ssg-generator/package.json index f64d7909a61c..03a525b3433d 100644 --- a/packages/generator/generators/ssg-generator/package.json +++ b/packages/generator/generators/ssg-generator/package.json @@ -28,14 +28,16 @@ "build": "modern-lib build", "test": "jest --passWithNoTests" }, + "dependencies": { + "@modern-js/utils": "workspace:*" + }, "devDependencies": { - "@modern-js/codesmith": "2.2.5", - "@modern-js/codesmith-api-app": "2.2.5", + "@modern-js/codesmith": "2.3.0", + "@modern-js/codesmith-api-app": "2.3.0", "@modern-js/dependence-generator": "workspace:*", "@modern-js/generator-common": "workspace:*", "@modern-js/generator-utils": "workspace:*", "@modern-js/plugin-i18n": "workspace:*", - "@modern-js/utils": "workspace:*", "@scripts/build": "workspace:*", "@scripts/jest-config": "workspace:*", "@types/jest": "^29", diff --git a/packages/generator/generators/storybook-generator/modern.config.js b/packages/generator/generators/storybook-generator/modern.config.js index 9df5200ab6eb..57303a8d8dfa 100644 --- a/packages/generator/generators/storybook-generator/modern.config.js +++ b/packages/generator/generators/storybook-generator/modern.config.js @@ -1,10 +1,5 @@ +const { generatorBuildConfig } = require('@scripts/build'); + module.exports = { - buildConfig: { - target: 'es2019', - autoExternal: false, - alias: { - chalk: '@modern-js/utils/chalk', - }, - dts: false, - }, + buildConfig: generatorBuildConfig, }; diff --git a/packages/generator/generators/storybook-generator/package.json b/packages/generator/generators/storybook-generator/package.json index c708065d063e..a20930a92672 100644 --- a/packages/generator/generators/storybook-generator/package.json +++ b/packages/generator/generators/storybook-generator/package.json @@ -28,15 +28,17 @@ "build": "modern-lib build", "test": "jest --passWithNoTests" }, + "dependencies": { + "@modern-js/utils": "workspace:*" + }, "devDependencies": { - "@modern-js/codesmith": "2.2.5", - "@modern-js/codesmith-api-app": "2.2.5", - "@modern-js/codesmith-api-json": "2.2.5", + "@modern-js/codesmith": "2.3.0", + "@modern-js/codesmith-api-app": "2.3.0", + "@modern-js/codesmith-api-json": "2.3.0", "@modern-js/dependence-generator": "workspace:*", "@modern-js/generator-common": "workspace:*", "@modern-js/generator-utils": "workspace:*", "@modern-js/plugin-i18n": "workspace:*", - "@modern-js/utils": "workspace:*", "@scripts/build": "workspace:*", "@scripts/jest-config": "workspace:*", "@types/jest": "^29", diff --git a/packages/generator/generators/tailwindcss-generator/modern.config.js b/packages/generator/generators/tailwindcss-generator/modern.config.js index 9df5200ab6eb..57303a8d8dfa 100644 --- a/packages/generator/generators/tailwindcss-generator/modern.config.js +++ b/packages/generator/generators/tailwindcss-generator/modern.config.js @@ -1,10 +1,5 @@ +const { generatorBuildConfig } = require('@scripts/build'); + module.exports = { - buildConfig: { - target: 'es2019', - autoExternal: false, - alias: { - chalk: '@modern-js/utils/chalk', - }, - dts: false, - }, + buildConfig: generatorBuildConfig, }; diff --git a/packages/generator/generators/tailwindcss-generator/package.json b/packages/generator/generators/tailwindcss-generator/package.json index 81ac8b6f7259..7dd99cbdbe61 100644 --- a/packages/generator/generators/tailwindcss-generator/package.json +++ b/packages/generator/generators/tailwindcss-generator/package.json @@ -28,13 +28,15 @@ "build": "modern-lib build", "test": "jest --passWithNoTests" }, + "dependencies": { + "@modern-js/utils": "workspace:*" + }, "devDependencies": { - "@modern-js/codesmith": "2.2.5", - "@modern-js/codesmith-api-app": "2.2.5", + "@modern-js/codesmith": "2.3.0", + "@modern-js/codesmith-api-app": "2.3.0", "@modern-js/dependence-generator": "workspace:*", "@modern-js/generator-common": "workspace:*", "@modern-js/generator-utils": "workspace:*", - "@modern-js/utils": "workspace:*", "@scripts/build": "workspace:*", "@scripts/jest-config": "workspace:*", "@types/jest": "^29", diff --git a/packages/generator/generators/test-generator/modern.config.js b/packages/generator/generators/test-generator/modern.config.js index 9df5200ab6eb..57303a8d8dfa 100644 --- a/packages/generator/generators/test-generator/modern.config.js +++ b/packages/generator/generators/test-generator/modern.config.js @@ -1,10 +1,5 @@ +const { generatorBuildConfig } = require('@scripts/build'); + module.exports = { - buildConfig: { - target: 'es2019', - autoExternal: false, - alias: { - chalk: '@modern-js/utils/chalk', - }, - dts: false, - }, + buildConfig: generatorBuildConfig, }; diff --git a/packages/generator/generators/test-generator/package.json b/packages/generator/generators/test-generator/package.json index 2b91165f6f85..b4d55dcd9a9f 100644 --- a/packages/generator/generators/test-generator/package.json +++ b/packages/generator/generators/test-generator/package.json @@ -28,15 +28,17 @@ "build": "modern-lib build", "test": "jest --passWithNoTests" }, + "dependencies": { + "@modern-js/utils": "workspace:*" + }, "devDependencies": { - "@modern-js/codesmith": "2.2.5", - "@modern-js/codesmith-api-app": "2.2.5", - "@modern-js/codesmith-api-json": "2.2.5", + "@modern-js/codesmith": "2.3.0", + "@modern-js/codesmith-api-app": "2.3.0", + "@modern-js/codesmith-api-json": "2.3.0", "@modern-js/dependence-generator": "workspace:*", "@modern-js/generator-common": "workspace:*", "@modern-js/generator-utils": "workspace:*", "@modern-js/plugin-i18n": "workspace:*", - "@modern-js/utils": "workspace:*", "@scripts/build": "workspace:*", "@scripts/jest-config": "workspace:*", "@types/jest": "^29", diff --git a/packages/generator/generators/upgrade-generator/modern.config.js b/packages/generator/generators/upgrade-generator/modern.config.js index 9df5200ab6eb..57303a8d8dfa 100644 --- a/packages/generator/generators/upgrade-generator/modern.config.js +++ b/packages/generator/generators/upgrade-generator/modern.config.js @@ -1,10 +1,5 @@ +const { generatorBuildConfig } = require('@scripts/build'); + module.exports = { - buildConfig: { - target: 'es2019', - autoExternal: false, - alias: { - chalk: '@modern-js/utils/chalk', - }, - dts: false, - }, + buildConfig: generatorBuildConfig, }; diff --git a/packages/generator/generators/upgrade-generator/package.json b/packages/generator/generators/upgrade-generator/package.json index c114c872f84c..88368ee2a841 100644 --- a/packages/generator/generators/upgrade-generator/package.json +++ b/packages/generator/generators/upgrade-generator/package.json @@ -28,14 +28,16 @@ "build": "modern-lib build", "test": "jest --passWithNoTests" }, + "dependencies": { + "@modern-js/utils": "workspace:*" + }, "devDependencies": { - "@modern-js/codesmith": "2.2.5", - "@modern-js/codesmith-api-app": "2.2.5", - "@modern-js/codesmith-api-json": "2.2.5", + "@modern-js/codesmith": "2.3.0", + "@modern-js/codesmith-api-app": "2.3.0", + "@modern-js/codesmith-api-json": "2.3.0", "@modern-js/generator-common": "workspace:*", "@modern-js/generator-utils": "workspace:*", "@modern-js/plugin-i18n": "workspace:*", - "@modern-js/utils": "workspace:*", "@scripts/build": "workspace:*", "@scripts/jest-config": "workspace:*", "@types/jest": "^29", diff --git a/packages/generator/new-action/package.json b/packages/generator/new-action/package.json index 833100df1297..6624d49a5c23 100644 --- a/packages/generator/new-action/package.json +++ b/packages/generator/new-action/package.json @@ -36,8 +36,8 @@ "test": "jest --passWithNoTests" }, "dependencies": { - "@modern-js/codesmith": "2.2.5", - "@modern-js/codesmith-formily": "2.2.5", + "@modern-js/codesmith": "2.3.0", + "@modern-js/codesmith-formily": "2.3.0", "@modern-js/generator-common": "workspace:*", "@modern-js/generator-utils": "workspace:*", "@modern-js/utils": "workspace:*", diff --git a/packages/generator/sandpack-react/package.json b/packages/generator/sandpack-react/package.json index 2bc0c796dace..05c4a0d3a1d8 100644 --- a/packages/generator/sandpack-react/package.json +++ b/packages/generator/sandpack-react/package.json @@ -49,7 +49,7 @@ "@modern-js/entry-generator": "workspace:*", "@modern-js/generator-utils": "workspace:*", "@modern-js/generator-common": "workspace:*", - "@modern-js/codesmith-api-handlebars": "2.2.5", + "@modern-js/codesmith-api-handlebars": "2.3.0", "@modern-js/utils": "workspace:*", "@scripts/build": "workspace:*", "@scripts/jest-config": "workspace:*", diff --git a/packages/toolkit/create/package.json b/packages/toolkit/create/package.json index 17842b03773f..e367221325a5 100644 --- a/packages/toolkit/create/package.json +++ b/packages/toolkit/create/package.json @@ -43,7 +43,7 @@ "test": "jest --passWithNoTests" }, "devDependencies": { - "@modern-js/codesmith": "2.2.5", + "@modern-js/codesmith": "2.3.0", "@modern-js/generator-plugin-plugin": "workspace:*", "@modern-js/plugin-i18n": "workspace:*", "@modern-js/repo-generator": "workspace:*", diff --git a/packages/toolkit/upgrade/package.json b/packages/toolkit/upgrade/package.json index 8ee4990306d8..bbdfbda4812c 100644 --- a/packages/toolkit/upgrade/package.json +++ b/packages/toolkit/upgrade/package.json @@ -39,7 +39,7 @@ "test": "jest --passWithNoTests" }, "dependencies": { - "@modern-js/codesmith": "2.2.5", + "@modern-js/codesmith": "2.3.0", "@modern-js/plugin-i18n": "workspace:*", "@modern-js/utils": "workspace:*", "@swc/helpers": "0.5.1" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 79004f5b6509..ec5d64ce8cb0 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1726,8 +1726,8 @@ importers: packages/generator/generator-common: dependencies: '@modern-js/codesmith-formily': - specifier: 2.2.5 - version: 2.2.5(@modern-js/codesmith@2.2.5)(typescript@5.0.4) + specifier: 2.3.0 + version: 2.3.0(@modern-js/codesmith@2.3.0)(typescript@5.0.4) '@modern-js/plugin-i18n': specifier: workspace:* version: link:../../cli/plugin-i18n @@ -1736,11 +1736,11 @@ importers: version: 0.5.1 devDependencies: '@modern-js/codesmith': - specifier: 2.2.5 - version: 2.2.5 + specifier: 2.3.0 + version: 2.3.0 '@modern-js/codesmith-api-app': - specifier: 2.2.5 - version: 2.2.5(@modern-js/codesmith@2.2.5)(typescript@5.0.4) + specifier: 2.3.0 + version: 2.3.0(@modern-js/codesmith@2.3.0)(typescript@5.0.4) '@modern-js/utils': specifier: workspace:* version: link:../../toolkit/utils @@ -1766,20 +1766,20 @@ importers: packages/generator/generator-plugin: dependencies: '@modern-js/codesmith': - specifier: 2.2.5 - version: 2.2.5 + specifier: 2.3.0 + version: 2.3.0 '@modern-js/codesmith-api-git': - specifier: 2.2.5 - version: 2.2.5(@modern-js/codesmith@2.2.5) + specifier: 2.3.0 + version: 2.3.0(@modern-js/codesmith@2.3.0) '@modern-js/codesmith-api-json': - specifier: 2.2.5 - version: 2.2.5 + specifier: 2.3.0 + version: 2.3.0 '@modern-js/codesmith-api-npm': - specifier: 2.2.5 - version: 2.2.5 + specifier: 2.3.0 + version: 2.3.0 '@modern-js/codesmith-formily': - specifier: 2.2.5 - version: 2.2.5(@modern-js/codesmith@2.2.5)(typescript@5.0.4) + specifier: 2.3.0 + version: 2.3.0(@modern-js/codesmith@2.3.0)(typescript@5.0.4) '@modern-js/generator-common': specifier: workspace:* version: link:../generator-common @@ -1846,8 +1846,8 @@ importers: version: 0.5.1 devDependencies: '@modern-js/codesmith': - specifier: 2.2.5 - version: 2.2.5 + specifier: 2.3.0 + version: 2.3.0 '@scripts/build': specifier: workspace:* version: link:../../../scripts/build @@ -1868,22 +1868,23 @@ importers: version: 5.0.4 packages/generator/generators/base-generator: + dependencies: + '@modern-js/utils': + specifier: workspace:* + version: link:../../../toolkit/utils devDependencies: '@modern-js/codesmith': - specifier: 2.2.5 - version: 2.2.5 + specifier: 2.3.0 + version: 2.3.0 '@modern-js/codesmith-api-app': - specifier: 2.2.5 - version: 2.2.5(@modern-js/codesmith@2.2.5)(typescript@5.0.4) + specifier: 2.3.0 + version: 2.3.0(@modern-js/codesmith@2.3.0)(typescript@5.0.4) '@modern-js/generator-common': specifier: workspace:* version: link:../../generator-common '@modern-js/generator-utils': specifier: workspace:* version: link:../../generator-utils - '@modern-js/utils': - specifier: workspace:* - version: link:../../../toolkit/utils '@scripts/build': specifier: workspace:* version: link:../../../../scripts/build @@ -1904,16 +1905,20 @@ importers: version: 5.0.4 packages/generator/generators/bff-generator: + dependencies: + '@modern-js/utils': + specifier: workspace:* + version: link:../../../toolkit/utils devDependencies: '@modern-js/codesmith': - specifier: 2.2.5 - version: 2.2.5 + specifier: 2.3.0 + version: 2.3.0 '@modern-js/codesmith-api-app': - specifier: 2.2.5 - version: 2.2.5(@modern-js/codesmith@2.2.5)(typescript@5.0.4) + specifier: 2.3.0 + version: 2.3.0(@modern-js/codesmith@2.3.0)(typescript@5.0.4) '@modern-js/codesmith-api-json': - specifier: 2.2.5 - version: 2.2.5 + specifier: 2.3.0 + version: 2.3.0 '@modern-js/generator-common': specifier: workspace:* version: link:../../generator-common @@ -1923,9 +1928,6 @@ importers: '@modern-js/plugin-i18n': specifier: workspace:* version: link:../../../cli/plugin-i18n - '@modern-js/utils': - specifier: workspace:* - version: link:../../../toolkit/utils '@scripts/build': specifier: workspace:* version: link:../../../../scripts/build @@ -1946,19 +1948,20 @@ importers: version: 5.0.4 packages/generator/generators/changeset-generator: + dependencies: + '@modern-js/utils': + specifier: workspace:* + version: link:../../../toolkit/utils devDependencies: '@modern-js/codesmith': - specifier: 2.2.5 - version: 2.2.5 + specifier: 2.3.0 + version: 2.3.0 '@modern-js/codesmith-api-app': - specifier: 2.2.5 - version: 2.2.5(@modern-js/codesmith@2.2.5)(typescript@5.0.4) + specifier: 2.3.0 + version: 2.3.0(@modern-js/codesmith@2.3.0)(typescript@5.0.4) '@modern-js/generator-common': specifier: workspace:* version: link:../../generator-common - '@modern-js/utils': - specifier: workspace:* - version: link:../../../toolkit/utils '@scripts/build': specifier: workspace:* version: link:../../../../scripts/build @@ -1979,16 +1982,20 @@ importers: version: 5.0.4 packages/generator/generators/dependence-generator: + dependencies: + '@modern-js/utils': + specifier: workspace:* + version: link:../../../toolkit/utils devDependencies: '@modern-js/codesmith': - specifier: 2.2.5 - version: 2.2.5 + specifier: 2.3.0 + version: 2.3.0 '@modern-js/codesmith-api-app': - specifier: 2.2.5 - version: 2.2.5(@modern-js/codesmith@2.2.5)(typescript@5.0.4) + specifier: 2.3.0 + version: 2.3.0(@modern-js/codesmith@2.3.0)(typescript@5.0.4) '@modern-js/codesmith-api-json': - specifier: 2.2.5 - version: 2.2.5 + specifier: 2.3.0 + version: 2.3.0 '@modern-js/generator-common': specifier: workspace:* version: link:../../generator-common @@ -1998,9 +2005,6 @@ importers: '@modern-js/plugin-i18n': specifier: workspace:* version: link:../../../cli/plugin-i18n - '@modern-js/utils': - specifier: workspace:* - version: link:../../../toolkit/utils '@scripts/build': specifier: workspace:* version: link:../../../../scripts/build @@ -2021,16 +2025,20 @@ importers: version: 5.0.4 packages/generator/generators/entry-generator: + dependencies: + '@modern-js/utils': + specifier: workspace:* + version: link:../../../toolkit/utils devDependencies: '@modern-js/codesmith': - specifier: 2.2.5 - version: 2.2.5 + specifier: 2.3.0 + version: 2.3.0 '@modern-js/codesmith-api-app': - specifier: 2.2.5 - version: 2.2.5(@modern-js/codesmith@2.2.5)(typescript@5.0.4) + specifier: 2.3.0 + version: 2.3.0(@modern-js/codesmith@2.3.0)(typescript@5.0.4) '@modern-js/codesmith-api-handlebars': - specifier: 2.2.5 - version: 2.2.5(@modern-js/codesmith@2.2.5) + specifier: 2.3.0 + version: 2.3.0(@modern-js/codesmith@2.3.0) '@modern-js/generator-common': specifier: workspace:* version: link:../../generator-common @@ -2040,9 +2048,6 @@ importers: '@modern-js/plugin-i18n': specifier: workspace:* version: link:../../../cli/plugin-i18n - '@modern-js/utils': - specifier: workspace:* - version: link:../../../toolkit/utils '@scripts/build': specifier: workspace:* version: link:../../../../scripts/build @@ -2063,16 +2068,20 @@ importers: version: 5.0.4 packages/generator/generators/generator-generator: + dependencies: + '@modern-js/utils': + specifier: workspace:* + version: link:../../../toolkit/utils devDependencies: '@modern-js/codesmith': - specifier: 2.2.5 - version: 2.2.5 + specifier: 2.3.0 + version: 2.3.0 '@modern-js/codesmith-api-app': - specifier: 2.2.5 - version: 2.2.5(@modern-js/codesmith@2.2.5)(typescript@5.0.4) + specifier: 2.3.0 + version: 2.3.0(@modern-js/codesmith@2.3.0)(typescript@5.0.4) '@modern-js/codesmith-api-json': - specifier: 2.2.5 - version: 2.2.5 + specifier: 2.3.0 + version: 2.3.0 '@modern-js/generator-common': specifier: workspace:* version: link:../../generator-common @@ -2085,9 +2094,6 @@ importers: '@modern-js/plugin-i18n': specifier: workspace:* version: link:../../../cli/plugin-i18n - '@modern-js/utils': - specifier: workspace:* - version: link:../../../toolkit/utils '@scripts/build': specifier: workspace:* version: link:../../../../scripts/build @@ -2108,6 +2114,10 @@ importers: version: 5.0.4 packages/generator/generators/module-generator: + dependencies: + '@modern-js/utils': + specifier: workspace:* + version: link:../../../toolkit/utils devDependencies: '@modern-js/base-generator': specifier: workspace:* @@ -2116,11 +2126,11 @@ importers: specifier: workspace:* version: link:../changeset-generator '@modern-js/codesmith': - specifier: 2.2.5 - version: 2.2.5 + specifier: 2.3.0 + version: 2.3.0 '@modern-js/codesmith-api-app': - specifier: 2.2.5 - version: 2.2.5(@modern-js/codesmith@2.2.5)(typescript@5.0.4) + specifier: 2.3.0 + version: 2.3.0(@modern-js/codesmith@2.3.0)(typescript@5.0.4) '@modern-js/dependence-generator': specifier: workspace:* version: link:../dependence-generator @@ -2136,9 +2146,6 @@ importers: '@modern-js/plugin-i18n': specifier: workspace:* version: link:../../../cli/plugin-i18n - '@modern-js/utils': - specifier: workspace:* - version: link:../../../toolkit/utils '@scripts/build': specifier: workspace:* version: link:../../../../scripts/build @@ -2159,16 +2166,20 @@ importers: version: 5.0.4 packages/generator/generators/module-test-generator: + dependencies: + '@modern-js/utils': + specifier: workspace:* + version: link:../../../toolkit/utils devDependencies: '@modern-js/codesmith': - specifier: 2.2.5 - version: 2.2.5 + specifier: 2.3.0 + version: 2.3.0 '@modern-js/codesmith-api-app': - specifier: 2.2.5 - version: 2.2.5(@modern-js/codesmith@2.2.5)(typescript@5.0.4) + specifier: 2.3.0 + version: 2.3.0(@modern-js/codesmith@2.3.0)(typescript@5.0.4) '@modern-js/codesmith-api-json': - specifier: 2.2.5 - version: 2.2.5 + specifier: 2.3.0 + version: 2.3.0 '@modern-js/dependence-generator': specifier: workspace:* version: link:../dependence-generator @@ -2181,9 +2192,6 @@ importers: '@modern-js/plugin-i18n': specifier: workspace:* version: link:../../../cli/plugin-i18n - '@modern-js/utils': - specifier: workspace:* - version: link:../../../toolkit/utils '@scripts/build': specifier: workspace:* version: link:../../../../scripts/build @@ -2204,6 +2212,10 @@ importers: version: 5.0.4 packages/generator/generators/monorepo-generator: + dependencies: + '@modern-js/utils': + specifier: workspace:* + version: link:../../../toolkit/utils devDependencies: '@modern-js/base-generator': specifier: workspace:* @@ -2212,14 +2224,14 @@ importers: specifier: workspace:* version: link:../changeset-generator '@modern-js/codesmith': - specifier: 2.2.5 - version: 2.2.5 + specifier: 2.3.0 + version: 2.3.0 '@modern-js/codesmith-api-app': - specifier: 2.2.5 - version: 2.2.5(@modern-js/codesmith@2.2.5)(typescript@5.0.4) + specifier: 2.3.0 + version: 2.3.0(@modern-js/codesmith@2.3.0)(typescript@5.0.4) '@modern-js/codesmith-api-json': - specifier: 2.2.5 - version: 2.2.5 + specifier: 2.3.0 + version: 2.3.0 '@modern-js/generator-common': specifier: workspace:* version: link:../../generator-common @@ -2232,9 +2244,6 @@ importers: '@modern-js/plugin-i18n': specifier: workspace:* version: link:../../../cli/plugin-i18n - '@modern-js/utils': - specifier: workspace:* - version: link:../../../toolkit/utils '@scripts/build': specifier: workspace:* version: link:../../../../scripts/build @@ -2255,16 +2264,20 @@ importers: version: 5.0.4 packages/generator/generators/mwa-generator: + dependencies: + '@modern-js/utils': + specifier: workspace:* + version: link:../../../toolkit/utils devDependencies: '@modern-js/base-generator': specifier: workspace:* version: link:../base-generator '@modern-js/codesmith': - specifier: 2.2.5 - version: 2.2.5 + specifier: 2.3.0 + version: 2.3.0 '@modern-js/codesmith-api-app': - specifier: 2.2.5 - version: 2.2.5(@modern-js/codesmith@2.2.5)(typescript@5.0.4) + specifier: 2.3.0 + version: 2.3.0(@modern-js/codesmith@2.3.0)(typescript@5.0.4) '@modern-js/dependence-generator': specifier: workspace:* version: link:../dependence-generator @@ -2286,9 +2299,6 @@ importers: '@modern-js/rspack-generator': specifier: workspace:* version: link:../rspack-generator - '@modern-js/utils': - specifier: workspace:* - version: link:../../../toolkit/utils '@scripts/build': specifier: workspace:* version: link:../../../../scripts/build @@ -2309,25 +2319,26 @@ importers: version: 5.0.4 packages/generator/generators/packages-generator: + dependencies: + '@modern-js/utils': + specifier: workspace:* + version: link:../../../toolkit/utils devDependencies: '@modern-js/codesmith': - specifier: 2.2.5 - version: 2.2.5 + specifier: 2.3.0 + version: 2.3.0 '@modern-js/codesmith-api-app': - specifier: 2.2.5 - version: 2.2.5(@modern-js/codesmith@2.2.5)(typescript@5.0.4) + specifier: 2.3.0 + version: 2.3.0(@modern-js/codesmith@2.3.0)(typescript@5.0.4) '@modern-js/codesmith-api-json': - specifier: 2.2.5 - version: 2.2.5 + specifier: 2.3.0 + version: 2.3.0 '@modern-js/generator-common': specifier: workspace:* version: link:../../generator-common '@modern-js/generator-utils': specifier: workspace:* version: link:../../generator-utils - '@modern-js/utils': - specifier: workspace:* - version: link:../../../toolkit/utils '@scripts/build': specifier: workspace:* version: link:../../../../scripts/build @@ -2348,16 +2359,20 @@ importers: version: 5.0.4 packages/generator/generators/repo-generator: + dependencies: + '@modern-js/utils': + specifier: workspace:* + version: link:../../../toolkit/utils devDependencies: '@modern-js/base-generator': specifier: workspace:* version: link:../base-generator '@modern-js/codesmith': - specifier: 2.2.5 - version: 2.2.5 + specifier: 2.3.0 + version: 2.3.0 '@modern-js/codesmith-api-app': - specifier: 2.2.5 - version: 2.2.5(@modern-js/codesmith@2.2.5)(typescript@5.0.4) + specifier: 2.3.0 + version: 2.3.0(@modern-js/codesmith@2.3.0)(typescript@5.0.4) '@modern-js/generator-common': specifier: workspace:* version: link:../../generator-common @@ -2376,9 +2391,6 @@ importers: '@modern-js/mwa-generator': specifier: workspace:* version: link:../mwa-generator - '@modern-js/utils': - specifier: workspace:* - version: link:../../../toolkit/utils '@scripts/build': specifier: workspace:* version: link:../../../../scripts/build @@ -2399,13 +2411,17 @@ importers: version: 5.0.4 packages/generator/generators/router-v5-generator: + dependencies: + '@modern-js/utils': + specifier: workspace:* + version: link:../../../toolkit/utils devDependencies: '@modern-js/codesmith': - specifier: 2.2.5 - version: 2.2.5 + specifier: 2.3.0 + version: 2.3.0 '@modern-js/codesmith-api-app': - specifier: 2.2.5 - version: 2.2.5(@modern-js/codesmith@2.2.5)(typescript@5.0.4) + specifier: 2.3.0 + version: 2.3.0(@modern-js/codesmith@2.3.0)(typescript@5.0.4) '@modern-js/dependence-generator': specifier: workspace:* version: link:../dependence-generator @@ -2418,9 +2434,6 @@ importers: '@modern-js/plugin-i18n': specifier: workspace:* version: link:../../../cli/plugin-i18n - '@modern-js/utils': - specifier: workspace:* - version: link:../../../toolkit/utils '@scripts/build': specifier: workspace:* version: link:../../../../scripts/build @@ -2441,13 +2454,17 @@ importers: version: 5.0.4 packages/generator/generators/rspack-generator: + dependencies: + '@modern-js/utils': + specifier: workspace:* + version: link:../../../toolkit/utils devDependencies: '@modern-js/codesmith': - specifier: 2.2.5 - version: 2.2.5 + specifier: 2.3.0 + version: 2.3.0 '@modern-js/codesmith-api-app': - specifier: 2.2.5 - version: 2.2.5(@modern-js/codesmith@2.2.5)(typescript@5.0.4) + specifier: 2.3.0 + version: 2.3.0(@modern-js/codesmith@2.3.0)(typescript@5.0.4) '@modern-js/dependence-generator': specifier: workspace:* version: link:../dependence-generator @@ -2460,9 +2477,6 @@ importers: '@modern-js/plugin-i18n': specifier: workspace:* version: link:../../../cli/plugin-i18n - '@modern-js/utils': - specifier: workspace:* - version: link:../../../toolkit/utils '@scripts/build': specifier: workspace:* version: link:../../../../scripts/build @@ -2483,16 +2497,20 @@ importers: version: 5.0.4 packages/generator/generators/server-generator: + dependencies: + '@modern-js/utils': + specifier: workspace:* + version: link:../../../toolkit/utils devDependencies: '@modern-js/codesmith': - specifier: 2.2.5 - version: 2.2.5 + specifier: 2.3.0 + version: 2.3.0 '@modern-js/codesmith-api-app': - specifier: 2.2.5 - version: 2.2.5(@modern-js/codesmith@2.2.5)(typescript@5.0.4) + specifier: 2.3.0 + version: 2.3.0(@modern-js/codesmith@2.3.0)(typescript@5.0.4) '@modern-js/codesmith-api-json': - specifier: 2.2.5 - version: 2.2.5 + specifier: 2.3.0 + version: 2.3.0 '@modern-js/dependence-generator': specifier: workspace:* version: link:../dependence-generator @@ -2502,9 +2520,6 @@ importers: '@modern-js/generator-utils': specifier: workspace:* version: link:../../generator-utils - '@modern-js/utils': - specifier: workspace:* - version: link:../../../toolkit/utils '@scripts/build': specifier: workspace:* version: link:../../../../scripts/build @@ -2525,13 +2540,17 @@ importers: version: 5.0.4 packages/generator/generators/ssg-generator: + dependencies: + '@modern-js/utils': + specifier: workspace:* + version: link:../../../toolkit/utils devDependencies: '@modern-js/codesmith': - specifier: 2.2.5 - version: 2.2.5 + specifier: 2.3.0 + version: 2.3.0 '@modern-js/codesmith-api-app': - specifier: 2.2.5 - version: 2.2.5(@modern-js/codesmith@2.2.5)(typescript@5.0.4) + specifier: 2.3.0 + version: 2.3.0(@modern-js/codesmith@2.3.0)(typescript@5.0.4) '@modern-js/dependence-generator': specifier: workspace:* version: link:../dependence-generator @@ -2544,9 +2563,6 @@ importers: '@modern-js/plugin-i18n': specifier: workspace:* version: link:../../../cli/plugin-i18n - '@modern-js/utils': - specifier: workspace:* - version: link:../../../toolkit/utils '@scripts/build': specifier: workspace:* version: link:../../../../scripts/build @@ -2567,16 +2583,20 @@ importers: version: 5.0.4 packages/generator/generators/storybook-generator: + dependencies: + '@modern-js/utils': + specifier: workspace:* + version: link:../../../toolkit/utils devDependencies: '@modern-js/codesmith': - specifier: 2.2.5 - version: 2.2.5 + specifier: 2.3.0 + version: 2.3.0 '@modern-js/codesmith-api-app': - specifier: 2.2.5 - version: 2.2.5(@modern-js/codesmith@2.2.5)(typescript@5.0.4) + specifier: 2.3.0 + version: 2.3.0(@modern-js/codesmith@2.3.0)(typescript@5.0.4) '@modern-js/codesmith-api-json': - specifier: 2.2.5 - version: 2.2.5 + specifier: 2.3.0 + version: 2.3.0 '@modern-js/dependence-generator': specifier: workspace:* version: link:../dependence-generator @@ -2589,9 +2609,6 @@ importers: '@modern-js/plugin-i18n': specifier: workspace:* version: link:../../../cli/plugin-i18n - '@modern-js/utils': - specifier: workspace:* - version: link:../../../toolkit/utils '@scripts/build': specifier: workspace:* version: link:../../../../scripts/build @@ -2654,13 +2671,17 @@ importers: version: 5.0.4 packages/generator/generators/tailwindcss-generator: + dependencies: + '@modern-js/utils': + specifier: workspace:* + version: link:../../../toolkit/utils devDependencies: '@modern-js/codesmith': - specifier: 2.2.5 - version: 2.2.5 + specifier: 2.3.0 + version: 2.3.0 '@modern-js/codesmith-api-app': - specifier: 2.2.5 - version: 2.2.5(@modern-js/codesmith@2.2.5)(typescript@5.0.4) + specifier: 2.3.0 + version: 2.3.0(@modern-js/codesmith@2.3.0)(typescript@5.0.4) '@modern-js/dependence-generator': specifier: workspace:* version: link:../dependence-generator @@ -2670,9 +2691,6 @@ importers: '@modern-js/generator-utils': specifier: workspace:* version: link:../../generator-utils - '@modern-js/utils': - specifier: workspace:* - version: link:../../../toolkit/utils '@scripts/build': specifier: workspace:* version: link:../../../../scripts/build @@ -2693,16 +2711,20 @@ importers: version: 5.0.4 packages/generator/generators/test-generator: + dependencies: + '@modern-js/utils': + specifier: workspace:* + version: link:../../../toolkit/utils devDependencies: '@modern-js/codesmith': - specifier: 2.2.5 - version: 2.2.5 + specifier: 2.3.0 + version: 2.3.0 '@modern-js/codesmith-api-app': - specifier: 2.2.5 - version: 2.2.5(@modern-js/codesmith@2.2.5)(typescript@5.0.4) + specifier: 2.3.0 + version: 2.3.0(@modern-js/codesmith@2.3.0)(typescript@5.0.4) '@modern-js/codesmith-api-json': - specifier: 2.2.5 - version: 2.2.5 + specifier: 2.3.0 + version: 2.3.0 '@modern-js/dependence-generator': specifier: workspace:* version: link:../dependence-generator @@ -2715,9 +2737,6 @@ importers: '@modern-js/plugin-i18n': specifier: workspace:* version: link:../../../cli/plugin-i18n - '@modern-js/utils': - specifier: workspace:* - version: link:../../../toolkit/utils '@scripts/build': specifier: workspace:* version: link:../../../../scripts/build @@ -2738,16 +2757,20 @@ importers: version: 5.0.4 packages/generator/generators/upgrade-generator: + dependencies: + '@modern-js/utils': + specifier: workspace:* + version: link:../../../toolkit/utils devDependencies: '@modern-js/codesmith': - specifier: 2.2.5 - version: 2.2.5 + specifier: 2.3.0 + version: 2.3.0 '@modern-js/codesmith-api-app': - specifier: 2.2.5 - version: 2.2.5(@modern-js/codesmith@2.2.5)(typescript@5.0.4) + specifier: 2.3.0 + version: 2.3.0(@modern-js/codesmith@2.3.0)(typescript@5.0.4) '@modern-js/codesmith-api-json': - specifier: 2.2.5 - version: 2.2.5 + specifier: 2.3.0 + version: 2.3.0 '@modern-js/generator-common': specifier: workspace:* version: link:../../generator-common @@ -2757,9 +2780,6 @@ importers: '@modern-js/plugin-i18n': specifier: workspace:* version: link:../../../cli/plugin-i18n - '@modern-js/utils': - specifier: workspace:* - version: link:../../../toolkit/utils '@scripts/build': specifier: workspace:* version: link:../../../../scripts/build @@ -2782,11 +2802,11 @@ importers: packages/generator/new-action: dependencies: '@modern-js/codesmith': - specifier: 2.2.5 - version: 2.2.5 + specifier: 2.3.0 + version: 2.3.0 '@modern-js/codesmith-formily': - specifier: 2.2.5 - version: 2.2.5(@modern-js/codesmith@2.2.5)(typescript@5.0.4) + specifier: 2.3.0 + version: 2.3.0(@modern-js/codesmith@2.3.0)(typescript@5.0.4) '@modern-js/generator-common': specifier: workspace:* version: link:../generator-common @@ -2871,8 +2891,8 @@ importers: specifier: workspace:* version: link:../generators/base-generator '@modern-js/codesmith-api-handlebars': - specifier: 2.2.5 - version: 2.2.5(@modern-js/codesmith@2.2.5) + specifier: 2.3.0 + version: 2.3.0(@modern-js/codesmith@2.3.0) '@modern-js/entry-generator': specifier: workspace:* version: link:../generators/entry-generator @@ -4937,8 +4957,8 @@ importers: packages/toolkit/create: devDependencies: '@modern-js/codesmith': - specifier: 2.2.5 - version: 2.2.5 + specifier: 2.3.0 + version: 2.3.0 '@modern-js/generator-plugin-plugin': specifier: workspace:* version: link:../../generator/plugins/generator-plugin @@ -5154,8 +5174,8 @@ importers: packages/toolkit/upgrade: dependencies: '@modern-js/codesmith': - specifier: 2.2.5 - version: 2.2.5 + specifier: 2.3.0 + version: 2.3.0 '@modern-js/plugin-i18n': specifier: workspace:* version: link:../../cli/plugin-i18n @@ -12173,6 +12193,29 @@ packages: - typescript dev: true + /@modern-js/codesmith-api-app@2.3.0(@modern-js/codesmith@2.3.0)(typescript@5.0.4): + resolution: {integrity: sha512-oDkedFJaKSLR7gzjlUmHdkjs+zvEtvqApqdA9wnELlh4JGGAvvcr3N5x0fl0VXrAOFV+/pKMYK3DmWqj0IvIjg==} + peerDependencies: + '@modern-js/codesmith': ^2.3.0 + dependencies: + '@modern-js/codesmith': 2.3.0 + '@modern-js/codesmith-api-ejs': 2.3.0(@modern-js/codesmith@2.3.0) + '@modern-js/codesmith-api-fs': 2.3.0(@modern-js/codesmith@2.3.0) + '@modern-js/codesmith-api-git': 2.3.0(@modern-js/codesmith@2.3.0) + '@modern-js/codesmith-api-handlebars': 2.3.0(@modern-js/codesmith@2.3.0) + '@modern-js/codesmith-api-npm': 2.3.0 + '@modern-js/codesmith-formily': 2.3.0(@modern-js/codesmith@2.3.0)(typescript@5.0.4) + '@modern-js/plugin-i18n': 2.37.2 + '@modern-js/utils': 2.37.2 + '@swc/helpers': 0.5.1 + comment-json: 4.2.3 + extra: 0.2.1 + inquirer: 8.1.3 + transitivePeerDependencies: + - debug + - typescript + dev: true + /@modern-js/codesmith-api-ejs@2.2.5(@modern-js/codesmith@2.2.5): resolution: {integrity: sha512-hN4sJy+nnr2dPD/BwVLlNdYRQdTC1O2lltRBeEFYD43tD1yEagjWRtccAweoBIt379DsAqi2UKydsW5OvFge/Q==} peerDependencies: @@ -12183,6 +12226,16 @@ packages: ejs: 3.1.9 dev: true + /@modern-js/codesmith-api-ejs@2.3.0(@modern-js/codesmith@2.3.0): + resolution: {integrity: sha512-itmA3ZmPoqSZhBebdC45VCqH01xy5k+0aQyBSYlQ1C4b6MlLtpkg2ywvzFc01N07jsRhmKOX78rryf36vlghTA==} + peerDependencies: + '@modern-js/codesmith': ^2.3.0 + dependencies: + '@modern-js/codesmith': 2.3.0 + '@swc/helpers': 0.5.1 + ejs: 3.1.9 + dev: true + /@modern-js/codesmith-api-fs@2.2.5(@modern-js/codesmith@2.2.5): resolution: {integrity: sha512-DG0ylrbQMUrB0mz/QmxdGTtY3TbRmwdxpXbqPBH7qfIdxNN9wcR2jigTsV/AdboDPM2U9otQkdYtUy7r3lgXKw==} peerDependencies: @@ -12192,6 +12245,15 @@ packages: '@modern-js/codesmith': 2.2.5 dev: true + /@modern-js/codesmith-api-fs@2.3.0(@modern-js/codesmith@2.3.0): + resolution: {integrity: sha512-IHjT/fP/KzXy9acpOhLtTwtrdonH1Lecfui2dgX8tyeGXRktzO2GzjGVEoTSoc8Ym0sXQ4IUcMUD8ZMWGNQJjA==} + peerDependencies: + '@modern-js/codesmith': ^2.3.0 + dependencies: + '@modern-js/codesmith': 2.3.0 + '@swc/helpers': 0.5.1 + dev: true + /@modern-js/codesmith-api-git@2.2.5(@modern-js/codesmith@2.2.5): resolution: {integrity: sha512-XZab49Z7K6WGjsXoowGs3//nA1D6WCbwI9haRJ2qJ2p/DvqtpVq0cS/FZGuu/7tMK2HckZsHi3aMH08XGEDFIA==} peerDependencies: @@ -12200,6 +12262,16 @@ packages: '@babel/runtime': 7.23.2 '@modern-js/codesmith': 2.2.5 '@modern-js/utils': 2.35.1 + dev: true + + /@modern-js/codesmith-api-git@2.3.0(@modern-js/codesmith@2.3.0): + resolution: {integrity: sha512-GIEIwarWMb6vMy1Dy3mrXrb/1MVH67/mmCe0A+8vGypUXIfXav3BDNU4kuPzzWnJ90JhJMgvqIH9clYxv2KB2Q==} + peerDependencies: + '@modern-js/codesmith': ^2.3.0 + dependencies: + '@modern-js/codesmith': 2.3.0 + '@modern-js/utils': 2.37.2 + '@swc/helpers': 0.5.1 /@modern-js/codesmith-api-handlebars@2.2.5(@modern-js/codesmith@2.2.5): resolution: {integrity: sha512-CXAMdRSaCVujIbKT7yP6DJ5qgiv/Eobwfbtm6nTkbmI0Qux5xqf/J69RVunNw+db/gL3CBWBiShS2GVLWh61/g==} @@ -12211,6 +12283,16 @@ packages: handlebars: 4.7.7 dev: true + /@modern-js/codesmith-api-handlebars@2.3.0(@modern-js/codesmith@2.3.0): + resolution: {integrity: sha512-c1ZI7hJuFNwq52ffNRuSx3FYoGSm75Yf3HD9BrHT+qSSmmq7CCGNImhI5qaNVYe+WR6S/EAVrfyuo/1/9FK6VQ==} + peerDependencies: + '@modern-js/codesmith': ^2.3.0 + dependencies: + '@modern-js/codesmith': 2.3.0 + '@swc/helpers': 0.5.1 + handlebars: 4.7.7 + dev: true + /@modern-js/codesmith-api-json@2.2.5: resolution: {integrity: sha512-E9uANiMKb4wKctwhF+uFhojsRctUxBiKcGL9OyKOCeLXCyXpOeNGYgbKjs1duatr2KtN7gUcSpy8UD1pGgPZeQ==} dependencies: @@ -12221,6 +12303,18 @@ packages: transitivePeerDependencies: - debug - supports-color + dev: true + + /@modern-js/codesmith-api-json@2.3.0: + resolution: {integrity: sha512-FM5VoJwwCK/IzYwTmBMZ5pMDng2/GtC6wZ4hM60w++4GByWGZs1EmGYr/5KbyydyiKkPl1f/kdjKLrriA33kew==} + dependencies: + '@modern-js/codesmith': 2.3.0 + '@swc/helpers': 0.5.1 + comment-json: 4.2.3 + declaration-update: 0.0.2 + transitivePeerDependencies: + - debug + - supports-color /@modern-js/codesmith-api-npm@2.2.5: resolution: {integrity: sha512-3WCzyZGMDVnLck+ZKQhRBznM69L+jQT8bZ90mZo+9dUzgS4GndsHTTCosNdQcvNDviaYWwFH02Js5fE2uiUdSA==} @@ -12230,6 +12324,16 @@ packages: '@modern-js/utils': 2.35.1 transitivePeerDependencies: - debug + dev: true + + /@modern-js/codesmith-api-npm@2.3.0: + resolution: {integrity: sha512-Rpzc5YVlxr3soy9hRqvAntP3lTKvI2QmVVqCVO+Fdv3aySmz0a7+pm95uMmp+5/ZWHTeI/0Fqikk73j8fqB1mQ==} + dependencies: + '@modern-js/codesmith': 2.3.0 + '@modern-js/utils': 2.37.2 + '@swc/helpers': 0.5.1 + transitivePeerDependencies: + - debug /@modern-js/codesmith-formily@2.2.5(@modern-js/codesmith@2.2.5)(typescript@5.0.4): resolution: {integrity: sha512-K2A+e/ptl3XoMlrCHIyAd+Oo49rwzQQrU8sOdwjRgQD/Ik4vNbIBSvZeTqU8ViYO2ZEk5IvffyTJw2ZbDNM99Q==} @@ -12244,6 +12348,21 @@ packages: inquirer: 8.2.5 transitivePeerDependencies: - typescript + dev: true + + /@modern-js/codesmith-formily@2.3.0(@modern-js/codesmith@2.3.0)(typescript@5.0.4): + resolution: {integrity: sha512-9YaG+iumS3+kyfwCKdGCKCWMgok0RyeZpwXWdz5Ky7qHuTzyz+QrUgvHs0L+KvY2akjGRZOX0dBbdr0srREvQA==} + peerDependencies: + '@modern-js/codesmith': ^2.3.0 + dependencies: + '@formily/json-schema': 2.2.24(typescript@5.0.4) + '@formily/validator': 2.2.24 + '@modern-js/codesmith': 2.3.0 + '@modern-js/utils': 2.37.2 + '@swc/helpers': 0.5.1 + inquirer: 8.2.5 + transitivePeerDependencies: + - typescript /@modern-js/codesmith@2.2.5: resolution: {integrity: sha512-crlaJqKT8iSLRTLOgTU7PCVWtXJ66ezM5CmKTRGdQYIEWx85Pmuj3lmupyXM3ecv4lhVzoonVs/nh3bS5ubeOQ==} @@ -12254,6 +12373,17 @@ packages: tar: 6.1.13 transitivePeerDependencies: - debug + dev: true + + /@modern-js/codesmith@2.3.0: + resolution: {integrity: sha512-jZtoOvyH8GtPJTtgnTBtamBbqOEryoMolSgjJDVjJwIQNREnt4tcUtXK2n9kTVVrTVIVqeFNe3gaaMZm0n+aQA==} + dependencies: + '@modern-js/utils': 2.37.2 + '@swc/helpers': 0.5.1 + axios: 0.21.4 + tar: 6.2.0 + transitivePeerDependencies: + - debug /@modern-js/inspector-webpack-plugin@1.0.6: resolution: {integrity: sha512-QAiW00QKoSfj0Dn/J8rnXh3vq1cA1tHsTbhEOkzgtGdKlV70SZ+54aPDFjygAOrY/GurmuLLoUgPpcPKLbHAmQ==} @@ -12270,6 +12400,13 @@ packages: - react-router-dom dev: true + /@modern-js/plugin-i18n@2.37.2: + resolution: {integrity: sha512-jZ4c8dczWGGllHbzVOjnW+eVTN0uMXElUx4nf89H9YOeBv0pYZrqEnQ8mWsqUXDUjtg0Omp6OzUtsAbwr4bU1Q==} + dependencies: + '@modern-js/utils': 2.37.2 + '@swc/helpers': 0.5.1 + dev: true + /@modern-js/polyfill-lib@1.0.2: resolution: {integrity: sha512-UdBEpS0kwBYm43n60FEZFvZ3dUhqlzzvZkIMwiQGYHvlpXuAN/30GrWnp2WUdd5+eM5ObRCJ1bSJ7+UYouxPAQ==} engines: {node: '>=8'} @@ -12437,6 +12574,15 @@ packages: '@swc/helpers': 0.5.1 caniuse-lite: 1.0.30001520 lodash: 4.17.21 + dev: true + + /@modern-js/utils@2.37.2: + resolution: {integrity: sha512-w9qsxogSrvUBHmBPKjr7vqV9b6HkzcSd7Ps0KhBaB+iAfv2fNumVELA/zWqtRyJdlXvMB0Y3ilYB9+XM17NmNw==} + dependencies: + '@swc/helpers': 0.5.1 + caniuse-lite: 1.0.30001520 + lodash: 4.17.21 + rslog: 1.1.0 /@napi-rs/image-android-arm-eabi@1.7.0: resolution: {integrity: sha512-lpyqxaIYUrdk096xoJjvPGin5jY1Ehor0RxryqDvowGUhVU3TDgolsjjuFPEki3cfvV6zzAm7bWUkmxIci2zaw==} @@ -25749,11 +25895,11 @@ packages: /minipass@4.2.5: resolution: {integrity: sha512-+yQl7SX3bIT83Lhb4BVorMAHVuqsskxRdlmO9kTpyukp8vsm2Sn/fUOV9xlnG8/a5JsypJzap21lz/y3FBMJ8Q==} engines: {node: '>=8'} + dev: true /minipass@5.0.0: resolution: {integrity: sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==} engines: {node: '>=8'} - dev: false /minipass@7.0.4: resolution: {integrity: sha512-jYofLM5Dam9279rdkWzqHozUo4ybjdZmCsDHePy5V/PbBcVMiSZR97gmAy45aqi8CK1lG2ECd356FU86avfwUQ==} @@ -31159,6 +31305,7 @@ packages: minizlib: 2.1.2 mkdirp: 1.0.4 yallist: 4.0.0 + dev: true /tar@6.2.0: resolution: {integrity: sha512-/Wo7DcT0u5HUV486xg675HtjNd3BXZ6xDbzsCUZPt5iw8bTQ63bP0Raut3mvro9u+CUyq7YQd8Cx55fsZXxqLQ==} @@ -31170,7 +31317,6 @@ packages: minizlib: 2.1.2 mkdirp: 1.0.4 yallist: 4.0.0 - dev: false /telejson@7.2.0: resolution: {integrity: sha512-1QTEcJkJEhc8OnStBx/ILRu5J2p0GjvWsBx56bmZRqnrkdBMUe+nX92jxV+p3dB4CP6PZCdJMQJwCggkNBMzkQ==} diff --git a/scripts/build/src/index.js b/scripts/build/src/index.js index c38e78ed79fd..32c92f7d44e3 100644 --- a/scripts/build/src/index.js +++ b/scripts/build/src/index.js @@ -163,6 +163,21 @@ const tscLikeBuildConfig = [ }, ]; +const generatorBuildConfig = { + target: 'es2019', + autoExternal: false, + alias: { + chalk: '@modern-js/utils/chalk', + }, + dts: false, + externals: [ + '@modern-js/utils', + '@modern-js/utils/lodash', + '@modern-js/utils/fs-extra', + '@modern-js/utils/chalk', + ], +}; + module.exports = { skipDts, dtsConfig, @@ -172,4 +187,5 @@ module.exports = { universalBuildConfig, extendUniversalBuildConfig, universalBuildConfigWithBundle, + generatorBuildConfig, };