@modern-js/generator-common 3.4.16 → 3.4.17

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.
@@ -23,8 +23,8 @@ __export(locale_exports, {
23
23
  });
24
24
  module.exports = __toCommonJS(locale_exports);
25
25
  var import_plugin_i18n = require("@modern-js/plugin-i18n");
26
- var import_zh = require("./zh");
27
26
  var import_en = require("./en");
27
+ var import_zh = require("./zh");
28
28
  const i18n = new import_plugin_i18n.I18n();
29
29
  const localeKeys = i18n.init("en", {
30
30
  zh: import_zh.ZH_LOCALE,
@@ -24,8 +24,8 @@ __export(entry_exports, {
24
24
  getEntrySchemaProperties: () => getEntrySchemaProperties
25
25
  });
26
26
  module.exports = __toCommonJS(entry_exports);
27
- var import_locale = require("../locale");
28
27
  var import_common = require("../common");
28
+ var import_locale = require("../locale");
29
29
  const getEntryNameSchema = (extra = {}) => {
30
30
  return {
31
31
  type: "string",
@@ -31,8 +31,8 @@ __export(module_exports, {
31
31
  getModuleNewActionSchema: () => getModuleNewActionSchema
32
32
  });
33
33
  module.exports = __toCommonJS(module_exports);
34
- var import_common = require("../common");
35
34
  var import_locale = require("../../locale");
35
+ var import_common = require("../common");
36
36
  const ModuleActionTypes = [
37
37
  import_common.ActionType.Function
38
38
  ];
@@ -36,9 +36,9 @@ __export(mwa_exports, {
36
36
  getMWANewActionSchema: () => getMWANewActionSchema
37
37
  });
38
38
  module.exports = __toCommonJS(mwa_exports);
39
+ var import_locale = require("../../locale");
39
40
  var import_common = require("../../mwa/common");
40
41
  var import_common2 = require("../common");
41
- var import_locale = require("../../locale");
42
42
  const MWAActionTypes = [
43
43
  import_common2.ActionType.Element,
44
44
  import_common2.ActionType.Function,
@@ -1,4 +1,4 @@
1
- import { Language, getLanguageSchema, PackageManager, getPackageManagerSchema, getPackageNameSchema, getPackagePathSchema } from "../common";
1
+ import { Language, PackageManager, getLanguageSchema, getPackageManagerSchema, getPackageNameSchema, getPackagePathSchema } from "../common";
2
2
  var getGeneratorSchemaProperties = function() {
3
3
  var extra = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
4
4
  return {
@@ -1,6 +1,6 @@
1
1
  import { I18n } from "@modern-js/plugin-i18n";
2
- import { ZH_LOCALE } from "./zh";
3
2
  import { EN_LOCALE } from "./en";
3
+ import { ZH_LOCALE } from "./zh";
4
4
  var i18n = new I18n();
5
5
  var localeKeys = i18n.init("en", {
6
6
  zh: ZH_LOCALE,
@@ -1,4 +1,4 @@
1
- import { Language, getLanguageSchema, PackageManager, getPackageManagerSchema, getPackageNameSchema, getPackagePathSchema } from "../common";
1
+ import { Language, PackageManager, getLanguageSchema, getPackageManagerSchema, getPackageNameSchema, getPackagePathSchema } from "../common";
2
2
  var getModuleSchemaProperties = function(extra) {
3
3
  return {
4
4
  packageName: getPackageNameSchema(extra),
@@ -1,5 +1,5 @@
1
1
  import { i18n, localeKeys } from "../locale";
2
- import { getFrameworkSchema, Framework } from "./common";
2
+ import { Framework, getFrameworkSchema } from "./common";
3
3
  var BFFType;
4
4
  (function(BFFType2) {
5
5
  BFFType2["Func"] = "func";
@@ -1,5 +1,5 @@
1
- import { i18n, localeKeys } from "../locale";
2
1
  import { BooleanConfig } from "../common";
2
+ import { i18n, localeKeys } from "../locale";
3
3
  var getEntryNameSchema = function() {
4
4
  var extra = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
5
5
  return {
@@ -1,4 +1,4 @@
1
- import { BooleanConfig, getPackageNameSchema, getPackagePathSchema, Language, getLanguageSchema, PackageManager, getPackageManagerSchema } from "../common";
1
+ import { BooleanConfig, Language, PackageManager, getLanguageSchema, getPackageManagerSchema, getPackageNameSchema, getPackagePathSchema } from "../common";
2
2
  import { BuildTools, getBuildToolsSchema } from "./common";
3
3
  var getMWASchemaProperties = function(extra) {
4
4
  return {
@@ -1,6 +1,6 @@
1
1
  import { _ as _define_property } from "@swc/helpers/_/_define_property";
2
- import { ActionFunction, ActionFunctionText, ActionType, ActionTypeQuestionText, ActionTypeText } from "../common";
3
2
  import { i18n, localeKeys } from "../../locale";
3
+ import { ActionFunction, ActionFunctionText, ActionType, ActionTypeQuestionText, ActionTypeText } from "../common";
4
4
  var ModuleActionTypes = [
5
5
  ActionType.Function
6
6
  ];
@@ -1,7 +1,7 @@
1
1
  import { _ as _define_property } from "@swc/helpers/_/_define_property";
2
+ import { i18n, localeKeys } from "../../locale";
2
3
  import { Framework } from "../../mwa/common";
3
4
  import { ActionElement, ActionElementText, ActionFunction, ActionFunctionText, ActionRefactor, ActionRefactorText, ActionType, ActionTypeQuestionText, ActionTypeText } from "../common";
4
- import { i18n, localeKeys } from "../../locale";
5
5
  var MWAActionTypes = [
6
6
  ActionType.Element,
7
7
  ActionType.Function,
@@ -1,4 +1,4 @@
1
- import { Language, getLanguageSchema, PackageManager, getPackageManagerSchema, getPackageNameSchema, getPackagePathSchema } from "../common";
1
+ import { Language, PackageManager, getLanguageSchema, getPackageManagerSchema, getPackageNameSchema, getPackagePathSchema } from "../common";
2
2
  const getGeneratorSchemaProperties = (extra = {}) => {
3
3
  return {
4
4
  packageName: getPackageNameSchema(extra),
@@ -1,6 +1,6 @@
1
1
  import { I18n } from "@modern-js/plugin-i18n";
2
- import { ZH_LOCALE } from "./zh";
3
2
  import { EN_LOCALE } from "./en";
3
+ import { ZH_LOCALE } from "./zh";
4
4
  const i18n = new I18n();
5
5
  const localeKeys = i18n.init("en", {
6
6
  zh: ZH_LOCALE,
@@ -1,4 +1,4 @@
1
- import { Language, getLanguageSchema, PackageManager, getPackageManagerSchema, getPackageNameSchema, getPackagePathSchema } from "../common";
1
+ import { Language, PackageManager, getLanguageSchema, getPackageManagerSchema, getPackageNameSchema, getPackagePathSchema } from "../common";
2
2
  const getModuleSchemaProperties = (extra) => {
3
3
  return {
4
4
  packageName: getPackageNameSchema(extra),
@@ -1,5 +1,5 @@
1
1
  import { i18n, localeKeys } from "../locale";
2
- import { getFrameworkSchema, Framework } from "./common";
2
+ import { Framework, getFrameworkSchema } from "./common";
3
3
  var BFFType;
4
4
  (function(BFFType2) {
5
5
  BFFType2["Func"] = "func";
@@ -1,5 +1,5 @@
1
- import { i18n, localeKeys } from "../locale";
2
1
  import { BooleanConfig } from "../common";
2
+ import { i18n, localeKeys } from "../locale";
3
3
  const getEntryNameSchema = (extra = {}) => {
4
4
  return {
5
5
  type: "string",
@@ -1,4 +1,4 @@
1
- import { BooleanConfig, getPackageNameSchema, getPackagePathSchema, Language, getLanguageSchema, PackageManager, getPackageManagerSchema } from "../common";
1
+ import { BooleanConfig, Language, PackageManager, getLanguageSchema, getPackageManagerSchema, getPackageNameSchema, getPackagePathSchema } from "../common";
2
2
  import { BuildTools, getBuildToolsSchema } from "./common";
3
3
  const getMWASchemaProperties = (extra) => {
4
4
  return {
@@ -1,5 +1,5 @@
1
- import { ActionFunction, ActionFunctionText, ActionType, ActionTypeQuestionText, ActionTypeText } from "../common";
2
1
  import { i18n, localeKeys } from "../../locale";
2
+ import { ActionFunction, ActionFunctionText, ActionType, ActionTypeQuestionText, ActionTypeText } from "../common";
3
3
  const ModuleActionTypes = [
4
4
  ActionType.Function
5
5
  ];
@@ -1,6 +1,6 @@
1
+ import { i18n, localeKeys } from "../../locale";
1
2
  import { Framework } from "../../mwa/common";
2
3
  import { ActionElement, ActionElementText, ActionFunction, ActionFunctionText, ActionRefactor, ActionRefactorText, ActionType, ActionTypeQuestionText, ActionTypeText } from "../common";
3
- import { i18n, localeKeys } from "../../locale";
4
4
  const MWAActionTypes = [
5
5
  ActionType.Element,
6
6
  ActionType.Function,
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "3.4.16",
18
+ "version": "3.4.17",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "types": "./dist/types/index.d.ts",
21
21
  "main": "./dist/cjs/index.js",
@@ -33,7 +33,7 @@
33
33
  "dependencies": {
34
34
  "@modern-js/codesmith-formily": "2.4.1",
35
35
  "@swc/helpers": "0.5.3",
36
- "@modern-js/plugin-i18n": "2.58.2"
36
+ "@modern-js/plugin-i18n": "2.58.3"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@modern-js/codesmith": "2.4.1",
@@ -42,9 +42,9 @@
42
42
  "@types/node": "^14",
43
43
  "jest": "^29",
44
44
  "typescript": "^5",
45
- "@scripts/build": "2.58.2",
46
- "@scripts/jest-config": "2.58.2",
47
- "@modern-js/utils": "2.58.2"
45
+ "@modern-js/utils": "2.58.3",
46
+ "@scripts/build": "2.58.3",
47
+ "@scripts/jest-config": "2.58.3"
48
48
  },
49
49
  "sideEffects": false,
50
50
  "publishConfig": {