@modern-js/generator-common 3.4.15 → 3.4.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/common/packagePath.js +1 -1
- package/dist/cjs/common/solution.js +2 -1
- package/dist/esm/common/packagePath.js +1 -1
- package/dist/esm/common/solution.js +2 -1
- package/dist/esm-node/common/packagePath.js +1 -1
- package/dist/esm-node/common/solution.js +2 -1
- package/dist/types/base/project.d.ts +1 -1
- package/dist/types/common/boolean.d.ts +1 -1
- package/dist/types/common/language.d.ts +1 -1
- package/dist/types/common/packageManager.d.ts +1 -1
- package/dist/types/common/packageName.d.ts +1 -1
- package/dist/types/common/packagePath.d.ts +1 -1
- package/dist/types/common/solution.d.ts +1 -1
- package/dist/types/expand/generator.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/module/project.d.ts +1 -1
- package/dist/types/monorepo/project.d.ts +1 -1
- package/dist/types/mwa/bff.d.ts +1 -1
- package/dist/types/mwa/common.d.ts +1 -1
- package/dist/types/mwa/entry.d.ts +1 -1
- package/dist/types/mwa/project.d.ts +1 -1
- package/dist/types/newAction/module/index.d.ts +1 -1
- package/dist/types/newAction/mwa/index.d.ts +1 -1
- package/package.json +8 -8
|
@@ -23,7 +23,7 @@ __export(packagePath_exports, {
|
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(packagePath_exports);
|
|
25
25
|
var import_locale = require("../locale");
|
|
26
|
-
const PackagePathRegex =
|
|
26
|
+
const PackagePathRegex = /^[a-z0-9-_]+[a-z0-9-\/_]*$/;
|
|
27
27
|
const getPackagePathSchema = (extra) => {
|
|
28
28
|
return {
|
|
29
29
|
type: "string",
|
|
@@ -74,7 +74,8 @@ const getSolutionSchema = (extra = {}) => {
|
|
|
74
74
|
};
|
|
75
75
|
};
|
|
76
76
|
const getScenesSchema = (extra = {}) => {
|
|
77
|
-
|
|
77
|
+
var _extra_customPlugin;
|
|
78
|
+
const hasPlugin = (extra === null || extra === void 0 ? void 0 : (_extra_customPlugin = extra.customPlugin) === null || _extra_customPlugin === void 0 ? void 0 : _extra_customPlugin[extra === null || extra === void 0 ? void 0 : extra.solution]) && extra.customPlugin[extra === null || extra === void 0 ? void 0 : extra.solution].length > 0;
|
|
78
79
|
return {
|
|
79
80
|
type: "object",
|
|
80
81
|
properties: hasPlugin ? {
|
|
@@ -46,7 +46,8 @@ var getSolutionSchema = function() {
|
|
|
46
46
|
};
|
|
47
47
|
var getScenesSchema = function() {
|
|
48
48
|
var extra = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
49
|
-
var
|
|
49
|
+
var _extra_customPlugin;
|
|
50
|
+
var hasPlugin = (extra === null || extra === void 0 ? void 0 : (_extra_customPlugin = extra.customPlugin) === null || _extra_customPlugin === void 0 ? void 0 : _extra_customPlugin[extra === null || extra === void 0 ? void 0 : extra.solution]) && extra.customPlugin[extra === null || extra === void 0 ? void 0 : extra.solution].length > 0;
|
|
50
51
|
return {
|
|
51
52
|
type: "object",
|
|
52
53
|
properties: hasPlugin ? {
|
|
@@ -41,7 +41,8 @@ const getSolutionSchema = (extra = {}) => {
|
|
|
41
41
|
};
|
|
42
42
|
};
|
|
43
43
|
const getScenesSchema = (extra = {}) => {
|
|
44
|
-
|
|
44
|
+
var _extra_customPlugin;
|
|
45
|
+
const hasPlugin = (extra === null || extra === void 0 ? void 0 : (_extra_customPlugin = extra.customPlugin) === null || _extra_customPlugin === void 0 ? void 0 : _extra_customPlugin[extra === null || extra === void 0 ? void 0 : extra.solution]) && extra.customPlugin[extra === null || extra === void 0 ? void 0 : extra.solution].length > 0;
|
|
45
46
|
return {
|
|
46
47
|
type: "object",
|
|
47
48
|
properties: hasPlugin ? {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Schema } from '@modern-js/codesmith-formily';
|
|
1
|
+
import type { Schema } from '@modern-js/codesmith-formily';
|
|
2
2
|
import { PackageManager } from '../common';
|
|
3
3
|
export declare const getBaseSchema: (extra?: Record<string, any>) => Schema;
|
|
4
4
|
export declare const BaseDefaultConfig: {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Schema } from '@modern-js/codesmith-formily';
|
|
1
|
+
import type { Schema } from '@modern-js/codesmith-formily';
|
|
2
2
|
export declare const getPackageNameSchema: (extra?: Record<string, any>) => Schema;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Schema } from '@modern-js/codesmith-formily';
|
|
1
|
+
import type { Schema } from '@modern-js/codesmith-formily';
|
|
2
2
|
import { Language, PackageManager } from '../common';
|
|
3
3
|
export declare const getGeneratorSchemaProperties: (extra?: Record<string, any>) => Schema['properties'];
|
|
4
4
|
export declare const getGeneratorSchema: (extra?: Record<string, any>) => Schema;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Schema } from '@modern-js/codesmith-formily';
|
|
1
|
+
import type { Schema } from '@modern-js/codesmith-formily';
|
|
2
2
|
import { Language, PackageManager } from '../common';
|
|
3
3
|
export declare const getModuleSchemaProperties: (extra: Record<string, any>) => Schema['properties'];
|
|
4
4
|
export declare const getModuleSchema: (extra?: Record<string, any>) => Schema;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Schema } from '@modern-js/codesmith-formily';
|
|
1
|
+
import type { Schema } from '@modern-js/codesmith-formily';
|
|
2
2
|
import { PackageManager } from '../common';
|
|
3
3
|
export declare const getMonorepoSchema: (extra?: Record<string, any>) => Schema;
|
|
4
4
|
export declare const MonorepoDefaultConfig: {
|
package/dist/types/mwa/bff.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Schema } from '@modern-js/codesmith-formily';
|
|
1
|
+
import type { Schema } from '@modern-js/codesmith-formily';
|
|
2
2
|
import { BooleanConfig } from '../common';
|
|
3
3
|
export declare const getEntryNameSchema: (extra?: Record<string, any>) => Schema;
|
|
4
4
|
export declare const getEntrySchemaProperties: (extra: Record<string, any>) => Schema['properties'];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Schema } from '@modern-js/codesmith-formily';
|
|
1
|
+
import type { Schema } from '@modern-js/codesmith-formily';
|
|
2
2
|
import { BooleanConfig, Language, PackageManager } from '../common';
|
|
3
3
|
import { BuildTools } from './common';
|
|
4
4
|
export declare const getMWASchemaProperties: (extra: Record<string, any>) => Schema['properties'];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Schema } from '@modern-js/codesmith-formily';
|
|
1
|
+
import type { Schema } from '@modern-js/codesmith-formily';
|
|
2
2
|
import { ActionFunction, ActionType } from '../common';
|
|
3
3
|
export declare const ModuleActionTypes: ActionType[];
|
|
4
4
|
export declare const ModuleActionFunctions: ActionFunction[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Schema } from '@modern-js/codesmith-formily';
|
|
1
|
+
import type { Schema } from '@modern-js/codesmith-formily';
|
|
2
2
|
import { Framework } from '../../mwa/common';
|
|
3
3
|
import { ActionElement, ActionFunction, ActionRefactor, ActionType } from '../common';
|
|
4
4
|
export declare const MWAActionTypes: ActionType[];
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "3.4.
|
|
18
|
+
"version": "3.4.16",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"types": "./dist/types/index.d.ts",
|
|
21
21
|
"main": "./dist/cjs/index.js",
|
|
@@ -31,20 +31,20 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@modern-js/codesmith-formily": "2.4.
|
|
34
|
+
"@modern-js/codesmith-formily": "2.4.1",
|
|
35
35
|
"@swc/helpers": "0.5.3",
|
|
36
|
-
"@modern-js/plugin-i18n": "2.58.
|
|
36
|
+
"@modern-js/plugin-i18n": "2.58.2"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@modern-js/codesmith": "2.4.
|
|
40
|
-
"@modern-js/codesmith-api-app": "2.4.
|
|
39
|
+
"@modern-js/codesmith": "2.4.1",
|
|
40
|
+
"@modern-js/codesmith-api-app": "2.4.1",
|
|
41
41
|
"@types/jest": "^29",
|
|
42
42
|
"@types/node": "^14",
|
|
43
43
|
"jest": "^29",
|
|
44
44
|
"typescript": "^5",
|
|
45
|
-
"@
|
|
46
|
-
"@scripts/jest-config": "2.58.
|
|
47
|
-
"@
|
|
45
|
+
"@scripts/build": "2.58.2",
|
|
46
|
+
"@scripts/jest-config": "2.58.2",
|
|
47
|
+
"@modern-js/utils": "2.58.2"
|
|
48
48
|
},
|
|
49
49
|
"sideEffects": false,
|
|
50
50
|
"publishConfig": {
|