antd-management-fast-config 1.1.88 → 1.1.90
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/package.json +18 -18
- package/src/configAssist.js +46 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "antd-management-fast-config",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.90",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "",
|
|
@@ -46,33 +46,33 @@
|
|
|
46
46
|
"z:tsc:build": "echo show tsc version and create declaration file && tsc -v && tsc -p ./tsconfig.types.json && echo declaration file generate complete"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@babel/core": "^7.24.
|
|
50
|
-
"@babel/eslint-parser": "^7.24.
|
|
49
|
+
"@babel/core": "^7.24.9",
|
|
50
|
+
"@babel/eslint-parser": "^7.24.8",
|
|
51
51
|
"@babel/plugin-external-helpers": "^7.24.7",
|
|
52
52
|
"@babel/plugin-proposal-decorators": "^7.24.7",
|
|
53
53
|
"@babel/plugin-transform-class-properties": "^7.24.7",
|
|
54
54
|
"@babel/plugin-transform-private-methods": "^7.24.7",
|
|
55
55
|
"@babel/plugin-transform-private-property-in-object": "^7.24.7",
|
|
56
56
|
"@babel/plugin-transform-runtime": "^7.24.7",
|
|
57
|
-
"@babel/preset-env": "^7.24.
|
|
57
|
+
"@babel/preset-env": "^7.24.8",
|
|
58
58
|
"@babel/preset-react": "^7.24.7",
|
|
59
|
-
"@babel/runtime": "^7.24.
|
|
60
|
-
"@changesets/cli": "^2.27.
|
|
59
|
+
"@babel/runtime": "^7.24.8",
|
|
60
|
+
"@changesets/cli": "^2.27.7",
|
|
61
61
|
"@commitlint/cli": "^19.3.0",
|
|
62
62
|
"@commitlint/config-conventional": "^19.2.2",
|
|
63
63
|
"@commitlint/config-pnpm-scopes": "^19.1.0",
|
|
64
64
|
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.15",
|
|
65
65
|
"@types/jest": "^29.5.12",
|
|
66
|
-
"@types/node": "^20.14.
|
|
67
|
-
"@typescript-eslint/parser": "^7.
|
|
68
|
-
"@umijs/max": "^4.
|
|
66
|
+
"@types/node": "^20.14.10",
|
|
67
|
+
"@typescript-eslint/parser": "^7.16.0",
|
|
68
|
+
"@umijs/max": "^4.3.6",
|
|
69
69
|
"babel-jest": "^29.7.0",
|
|
70
70
|
"commitizen": "^4.3.0",
|
|
71
71
|
"conventional-changelog-conventionalcommits": "^8.0.0",
|
|
72
72
|
"cross-env": "^7.0.3",
|
|
73
73
|
"cz-git": "^1.9.3",
|
|
74
74
|
"docdash": "^2.0.2",
|
|
75
|
-
"easy-soft-develop": "^2.1.
|
|
75
|
+
"easy-soft-develop": "^2.1.203",
|
|
76
76
|
"eslint": "^8.57.0",
|
|
77
77
|
"eslint-config-airbnb": "^19.0.4",
|
|
78
78
|
"eslint-config-airbnb-typescript": "^18.0.0",
|
|
@@ -84,29 +84,29 @@
|
|
|
84
84
|
"eslint-plugin-jest": "^28.6.0",
|
|
85
85
|
"eslint-plugin-jsx-a11y": "^6.9.0",
|
|
86
86
|
"eslint-plugin-prettier": "^5.1.3",
|
|
87
|
-
"eslint-plugin-promise": "^6.
|
|
88
|
-
"eslint-plugin-react": "^7.34.
|
|
87
|
+
"eslint-plugin-promise": "^6.4.0",
|
|
88
|
+
"eslint-plugin-react": "^7.34.4",
|
|
89
89
|
"eslint-plugin-react-hooks": "^4.6.2",
|
|
90
|
-
"eslint-plugin-simple-import-sort": "^12.1.
|
|
90
|
+
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
91
91
|
"eslint-plugin-unicorn": "^52.0.0",
|
|
92
92
|
"husky": "^9.0.11",
|
|
93
93
|
"jest": "^29.7.0",
|
|
94
94
|
"jsdoc": "^4.0.3",
|
|
95
95
|
"lint-staged": "^15.2.7",
|
|
96
96
|
"npm-check-updates": "^16.14.20",
|
|
97
|
-
"prettier": "^3.3.
|
|
98
|
-
"prettier-plugin-organize-imports": "^
|
|
97
|
+
"prettier": "^3.3.3",
|
|
98
|
+
"prettier-plugin-organize-imports": "^4.0.0",
|
|
99
99
|
"prettier-plugin-packagejson": "^2.5.0",
|
|
100
100
|
"react": "^18.3.1",
|
|
101
101
|
"react-dnd": "^16.0.1",
|
|
102
102
|
"react-refresh": "0.14.2",
|
|
103
|
-
"rimraf": "^
|
|
104
|
-
"stylelint": "^16.
|
|
103
|
+
"rimraf": "^6.0.1",
|
|
104
|
+
"stylelint": "^16.7.0",
|
|
105
105
|
"stylelint-config-css-modules": "^4.4.0",
|
|
106
106
|
"stylelint-config-prettier": "^9.0.5",
|
|
107
107
|
"stylelint-config-standard": "^36.0.1",
|
|
108
108
|
"stylelint-declaration-block-no-ignored-properties": "^2.8.0",
|
|
109
109
|
"stylelint-order": "^6.0.4",
|
|
110
|
-
"umi": "^4.
|
|
110
|
+
"umi": "^4.3.6"
|
|
111
111
|
}
|
|
112
112
|
}
|
package/src/configAssist.js
CHANGED
|
@@ -6,6 +6,10 @@ function checkDevelopment() {
|
|
|
6
6
|
return process.env.NODE_ENV === 'development';
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
+
function isArray(value) {
|
|
10
|
+
return Array.isArray(value);
|
|
11
|
+
}
|
|
12
|
+
|
|
9
13
|
/**
|
|
10
14
|
* buildConfig
|
|
11
15
|
*/
|
|
@@ -22,6 +26,47 @@ function buildConfig({ packageJson: packageImport, config = {} }) {
|
|
|
22
26
|
const shared = {};
|
|
23
27
|
|
|
24
28
|
if (deps) {
|
|
29
|
+
let { exclude } = {
|
|
30
|
+
exclude: [],
|
|
31
|
+
...mfsu,
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
if (!isArray(exclude)) {
|
|
35
|
+
exclude = [];
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
exclude = [
|
|
39
|
+
...exclude,
|
|
40
|
+
'@ant-design/graphs',
|
|
41
|
+
'@ant-design/icons',
|
|
42
|
+
'@ant-design/pro-components',
|
|
43
|
+
'@cyntler/react-doc-viewer',
|
|
44
|
+
'@emotion/css',
|
|
45
|
+
'@formily/antd-v5',
|
|
46
|
+
'@formily/core',
|
|
47
|
+
'@formily/react',
|
|
48
|
+
'@reduxjs/toolkit',
|
|
49
|
+
'@tanem/react-nprogress',
|
|
50
|
+
'@umijs/max',
|
|
51
|
+
'antd',
|
|
52
|
+
'antd-management-fast-common',
|
|
53
|
+
'antd-management-fast-component',
|
|
54
|
+
'antd-management-fast-design-playground',
|
|
55
|
+
'antd-management-fast-design-react',
|
|
56
|
+
'antd-management-fast-flow',
|
|
57
|
+
'antd-management-fast-formily',
|
|
58
|
+
'antd-management-fast-framework',
|
|
59
|
+
'easy-soft-dva',
|
|
60
|
+
'easy-soft-utility',
|
|
61
|
+
'react',
|
|
62
|
+
'react-dom',
|
|
63
|
+
'react-redux',
|
|
64
|
+
'redux',
|
|
65
|
+
'redux-saga',
|
|
66
|
+
'react-to-print',
|
|
67
|
+
'reactflow',
|
|
68
|
+
];
|
|
69
|
+
|
|
25
70
|
if (deps['react']) {
|
|
26
71
|
shared.react = {
|
|
27
72
|
singleton: true,
|
|
@@ -41,6 +86,7 @@ function buildConfig({ packageJson: packageImport, config = {} }) {
|
|
|
41
86
|
mfsu.shared = {
|
|
42
87
|
...mfsu.shared,
|
|
43
88
|
...shared,
|
|
89
|
+
exclude,
|
|
44
90
|
};
|
|
45
91
|
}
|
|
46
92
|
} else {
|