@modern-js/monorepo-generator 0.0.0-nightly-20240226170701 → 0.0.0-nightly-20240227061009

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.
Files changed (2) hide show
  1. package/dist/index.js +28 -28
  2. package/package.json +13 -13
package/dist/index.js CHANGED
@@ -52668,12 +52668,12 @@ function _define_property(obj, key, value) {
52668
52668
  return obj;
52669
52669
  }
52670
52670
 
52671
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js
52671
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js
52672
52672
  var import_path = __toESM(require("path"));
52673
52673
  var import_utils = require("@modern-js/utils");
52674
52674
  var FS_RESOURCE = "_codesmith_core_fs_resource";
52675
52675
 
52676
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/utils/fsExists.js
52676
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/fsExists.js
52677
52677
  var import_utils2 = require("@modern-js/utils");
52678
52678
  async function fsExists(path7) {
52679
52679
  try {
@@ -52684,7 +52684,7 @@ async function fsExists(path7) {
52684
52684
  }
52685
52685
  }
52686
52686
 
52687
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/utils/packageManager.js
52687
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/packageManager.js
52688
52688
  var import_path2 = __toESM(require("path"));
52689
52689
  var import_utils3 = require("@modern-js/utils");
52690
52690
  async function canUseYarn() {
@@ -52712,12 +52712,12 @@ async function canUsePnpm() {
52712
52712
  }
52713
52713
  }
52714
52714
 
52715
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
52715
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.4_@modern-js+codesmith@2.3.4_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
52716
52716
  var import_utils14 = require("@modern-js/utils");
52717
52717
  var import_lodash5 = require("@modern-js/utils/lodash");
52718
52718
  var import_comment_json = __toESM(require_src2());
52719
52719
 
52720
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.5/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/utils/env.js
52720
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.4/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/utils/env.js
52721
52721
  var import_utils4 = require("@modern-js/utils");
52722
52722
  async function canUseNvm() {
52723
52723
  try {
@@ -52767,7 +52767,7 @@ async function canUsePnpm2() {
52767
52767
  }
52768
52768
  }
52769
52769
 
52770
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.5/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/utils/install.js
52770
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.4/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/utils/install.js
52771
52771
  var import_utils5 = require("@modern-js/utils");
52772
52772
  function execaWithStreamLog(command, args, options) {
52773
52773
  const promise = (0, import_utils5.execa)(command, args, {
@@ -52863,7 +52863,7 @@ async function pnpmInstall({ cwd, registryUrl, ignoreScripts, useNvm }) {
52863
52863
  throw new Error("please install pnpm first");
52864
52864
  }
52865
52865
 
52866
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.5/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/index.js
52866
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.4/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/index.js
52867
52867
  var NpmAPI = class {
52868
52868
  npmInstall({ cwd, registryUrl, ignoreScripts }) {
52869
52869
  return npmInstall({
@@ -52892,7 +52892,7 @@ var NpmAPI = class {
52892
52892
  }
52893
52893
  };
52894
52894
 
52895
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.3.5_@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith-api-git/dist/esm-node/utils/index.js
52895
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.3.4_@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith-api-git/dist/esm-node/utils/index.js
52896
52896
  var import_utils7 = require("@modern-js/utils");
52897
52897
  async function canUseGit() {
52898
52898
  try {
@@ -52967,7 +52967,7 @@ async function gitCommit(cwd, commitMessage) {
52967
52967
  });
52968
52968
  }
52969
52969
 
52970
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.3.5_@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith-api-git/dist/esm-node/index.js
52970
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.3.4_@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith-api-git/dist/esm-node/index.js
52971
52971
  var GitAPI = class {
52972
52972
  async isInGitRepo(cwd = this.generatorCore.outputPath) {
52973
52973
  const canUse = await canUseGit();
@@ -53019,7 +53019,7 @@ var GitAPI = class {
53019
53019
  }
53020
53020
  };
53021
53021
 
53022
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.3.5_@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith-api-handlebars/dist/esm-node/utils/renderString.js
53022
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.3.4_@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith-api-handlebars/dist/esm-node/utils/renderString.js
53023
53023
  var import_handlebars = __toESM(require_lib());
53024
53024
  function renderString(template, fullData, registers) {
53025
53025
  const helpers = {
@@ -53033,7 +53033,7 @@ function renderString(template, fullData, registers) {
53033
53033
  return import_handlebars.default.compile(template)(fullData) || "";
53034
53034
  }
53035
53035
 
53036
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.3.5_@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith-api-handlebars/dist/esm-node/index.js
53036
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.3.4_@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith-api-handlebars/dist/esm-node/index.js
53037
53037
  var HandlebarsAPI = class {
53038
53038
  async registerHelp(helpers) {
53039
53039
  this.registers.helpers = {
@@ -53083,13 +53083,13 @@ var HandlebarsAPI = class {
53083
53083
  }
53084
53084
  };
53085
53085
 
53086
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.3.5_@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith-api-ejs/dist/esm-node/utils/renderString.js
53086
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.3.4_@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith-api-ejs/dist/esm-node/utils/renderString.js
53087
53087
  var import_ejs = __toESM(require_ejs());
53088
53088
  function renderString2(template, fullData) {
53089
53089
  return import_ejs.default.render(template, fullData) || "";
53090
53090
  }
53091
53091
 
53092
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.3.5_@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith-api-ejs/dist/esm-node/index.js
53092
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.3.4_@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith-api-ejs/dist/esm-node/index.js
53093
53093
  var EjsAPI = class {
53094
53094
  async renderTemplate(templateResource, target, parameters = {}) {
53095
53095
  if (templateResource._type !== FS_RESOURCE) {
@@ -53122,7 +53122,7 @@ var EjsAPI = class {
53122
53122
  }
53123
53123
  };
53124
53124
 
53125
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.3.5_@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith-api-fs/dist/esm-node/index.js
53125
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.3.4_@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith-api-fs/dist/esm-node/index.js
53126
53126
  var import_path3 = __toESM(require("path"));
53127
53127
  var import_utils11 = require("@modern-js/utils");
53128
53128
  var FsAPI = class {
@@ -62706,10 +62706,10 @@ var Schema = (
62706
62706
  }()
62707
62707
  );
62708
62708
 
62709
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
62709
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.4_@modern-js+codesmith@2.3.4_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
62710
62710
  var import_inquirer = __toESM(require_inquirer());
62711
62711
 
62712
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/transform.js
62712
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.4_@modern-js+codesmith@2.3.4_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/transform.js
62713
62713
  var import_lodash = require("@modern-js/utils/lodash");
62714
62714
  function validateSchema(schema) {
62715
62715
  const { type, properties } = schema;
@@ -62801,7 +62801,7 @@ function transformForm(schema, configValue = {}, validateMap, initValue) {
62801
62801
  return getQuestionFromSchema(schema, configValue, validateMap, initValue);
62802
62802
  }
62803
62803
 
62804
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
62804
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.4_@modern-js+codesmith@2.3.4_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
62805
62805
  var compileRule = (rule, scope) => {
62806
62806
  const state = Schema.compile(rule, {
62807
62807
  $self: {},
@@ -62905,7 +62905,7 @@ async function prompt(schema, configValue = {}, validateMap, initValue) {
62905
62905
  return answers;
62906
62906
  }
62907
62907
 
62908
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/inquirer.js
62908
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.4_@modern-js+codesmith@2.3.4_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/inquirer.js
62909
62909
  var CLIReader = class {
62910
62910
  getAnswers() {
62911
62911
  return this.answers;
@@ -62936,7 +62936,7 @@ var CLIReader = class {
62936
62936
  }
62937
62937
  };
62938
62938
 
62939
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
62939
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.4_@modern-js+codesmith@2.3.4_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
62940
62940
  var import_inquirer2 = __toESM(require_inquirer2());
62941
62941
 
62942
62942
  // ../../../../node_modules/.pnpm/@modern-js+plugin-i18n@2.37.2/node_modules/@modern-js/plugin-i18n/dist/esm-node/index.js
@@ -63002,7 +63002,7 @@ var I18n = class {
63002
63002
  }
63003
63003
  };
63004
63004
 
63005
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/zh.js
63005
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.4_@modern-js+codesmith@2.3.4_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/zh.js
63006
63006
  var ZH_LOCALE = {
63007
63007
  environment: {
63008
63008
  node_version: "请升级 Node 版本至 LIS",
@@ -63029,7 +63029,7 @@ var ZH_LOCALE = {
63029
63029
  }
63030
63030
  };
63031
63031
 
63032
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/en.js
63032
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.4_@modern-js+codesmith@2.3.4_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/en.js
63033
63033
  var EN_LOCALE = {
63034
63034
  environment: {
63035
63035
  node_version: "please upgrade node to lts version",
@@ -63056,14 +63056,14 @@ var EN_LOCALE = {
63056
63056
  }
63057
63057
  };
63058
63058
 
63059
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/index.js
63059
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.4_@modern-js+codesmith@2.3.4_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/index.js
63060
63060
  var i18n = new I18n();
63061
63061
  var localeKeys = i18n.init("zh", {
63062
63062
  zh: ZH_LOCALE,
63063
63063
  en: EN_LOCALE
63064
63064
  });
63065
63065
 
63066
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/transform.js
63066
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.4_@modern-js+codesmith@2.3.4_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/transform.js
63067
63067
  var import_lodash4 = require("@modern-js/utils/lodash");
63068
63068
  function transformInquirerSchema(questions, configValue = {}, validateMap = {}, initValue = {}) {
63069
63069
  for (const question of questions) {
@@ -63091,7 +63091,7 @@ function transformInquirerSchema(questions, configValue = {}, validateMap = {},
63091
63091
  return questions;
63092
63092
  }
63093
63093
 
63094
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/checkUseNvm.js
63094
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.4_@modern-js+codesmith@2.3.4_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/checkUseNvm.js
63095
63095
  var import_path5 = __toESM(require("path"));
63096
63096
  var import_utils13 = require("@modern-js/utils");
63097
63097
  var NODE_MAJOR_VERSION_MAP = {
@@ -63139,7 +63139,7 @@ async function checkUseNvm(cwd, logger) {
63139
63139
  }
63140
63140
  }
63141
63141
 
63142
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
63142
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.4_@modern-js+codesmith@2.3.4_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
63143
63143
  var AppAPI = class {
63144
63144
  async checkEnvironment(nodeVersion) {
63145
63145
  if (import_utils14.semver.lt(process.versions.node, nodeVersion || "12.22.12")) {
@@ -63379,11 +63379,11 @@ var AppAPI = class {
63379
63379
  }
63380
63380
  };
63381
63381
 
63382
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.5/node_modules/@modern-js/codesmith-api-json/dist/esm-node/index.js
63382
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.4/node_modules/@modern-js/codesmith-api-json/dist/esm-node/index.js
63383
63383
  var import_comment_json2 = __toESM(require_src2());
63384
63384
  var declarationUpdate = __toESM(require_dist());
63385
63385
 
63386
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.5/node_modules/@modern-js/codesmith-api-json/dist/esm-node/utils/index.js
63386
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.4/node_modules/@modern-js/codesmith-api-json/dist/esm-node/utils/index.js
63387
63387
  async function editJson(generatorCore, resource, getNewJsonValue) {
63388
63388
  const originJsonValue = await resource.value();
63389
63389
  const newJsonString = await getNewJsonValue(originJsonValue.content);
@@ -63396,7 +63396,7 @@ async function editJson(generatorCore, resource, getNewJsonValue) {
63396
63396
  return newJsonString;
63397
63397
  }
63398
63398
 
63399
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.5/node_modules/@modern-js/codesmith-api-json/dist/esm-node/index.js
63399
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.4/node_modules/@modern-js/codesmith-api-json/dist/esm-node/index.js
63400
63400
  var JsonAPI = class {
63401
63401
  async get(resource) {
63402
63402
  const originJsonValue = await resource.value();
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "0.0.0-nightly-20240226170701",
18
+ "version": "0.0.0-nightly-20240227061009",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "main": "./dist/index.js",
21
21
  "files": [
@@ -23,24 +23,24 @@
23
23
  "/dist/index.js"
24
24
  ],
25
25
  "dependencies": {
26
- "@modern-js/utils": "0.0.0-nightly-20240226170701"
26
+ "@modern-js/utils": "0.0.0-nightly-20240227061009"
27
27
  },
28
28
  "devDependencies": {
29
- "@modern-js/codesmith": "2.3.5",
30
- "@modern-js/codesmith-api-app": "2.3.5",
31
- "@modern-js/codesmith-api-json": "2.3.5",
29
+ "@modern-js/codesmith": "2.3.4",
30
+ "@modern-js/codesmith-api-app": "2.3.4",
31
+ "@modern-js/codesmith-api-json": "2.3.4",
32
32
  "@types/jest": "^29",
33
33
  "@types/node": "^14",
34
34
  "jest": "^29",
35
35
  "typescript": "^5",
36
- "@modern-js/base-generator": "0.0.0-nightly-20240226170701",
37
- "@modern-js/changeset-generator": "0.0.0-nightly-20240226170701",
38
- "@modern-js/generator-common": "0.0.0-nightly-20240226170701",
39
- "@modern-js/generator-utils": "0.0.0-nightly-20240226170701",
40
- "@modern-js/plugin-i18n": "0.0.0-nightly-20240226170701",
41
- "@scripts/build": "0.0.0-nightly-20240226170701",
42
- "@scripts/jest-config": "0.0.0-nightly-20240226170701",
43
- "@modern-js/packages-generator": "0.0.0-nightly-20240226170701"
36
+ "@modern-js/base-generator": "0.0.0-nightly-20240227061009",
37
+ "@modern-js/changeset-generator": "0.0.0-nightly-20240227061009",
38
+ "@modern-js/generator-utils": "0.0.0-nightly-20240227061009",
39
+ "@modern-js/packages-generator": "0.0.0-nightly-20240227061009",
40
+ "@modern-js/plugin-i18n": "0.0.0-nightly-20240227061009",
41
+ "@scripts/build": "0.0.0-nightly-20240227061009",
42
+ "@scripts/jest-config": "0.0.0-nightly-20240227061009",
43
+ "@modern-js/generator-common": "0.0.0-nightly-20240227061009"
44
44
  },
45
45
  "sideEffects": false,
46
46
  "publishConfig": {