@modern-js/monorepo-tools 2.20.0 → 2.21.1
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/CHANGELOG.md +42 -0
- package/bin/modern.js +1 -3
- package/dist/cjs/index.js +5 -0
- package/dist/esm/index.js +5 -0
- package/dist/types/dag/operator.d.ts +0 -3
- package/dist/types/dag/utils.d.ts +0 -1
- package/dist/types/features/dev/index.d.ts +0 -1
- package/dist/types/index.d.ts +0 -2
- package/dist/types/projects/getProjects.d.ts +0 -1
- package/package.json +12 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,47 @@
|
|
|
1
1
|
# @modern-js/monorepo-tools
|
|
2
2
|
|
|
3
|
+
## 2.21.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- @modern-js/core@2.21.1
|
|
8
|
+
- @modern-js/plugin-changeset@2.21.1
|
|
9
|
+
- @modern-js/plugin-i18n@2.21.1
|
|
10
|
+
- @modern-js/plugin-lint@2.21.1
|
|
11
|
+
- @modern-js/new-action@2.21.1
|
|
12
|
+
- @modern-js/plugin@2.21.1
|
|
13
|
+
- @modern-js/upgrade@2.21.1
|
|
14
|
+
- @modern-js/utils@2.21.1
|
|
15
|
+
|
|
16
|
+
## 2.21.0
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- df43559: fix(core): toolsType is overridden when install multiple solutions
|
|
21
|
+
|
|
22
|
+
fix(core): 修复安装多个 solutions 时 toolsType 被覆盖的问题
|
|
23
|
+
|
|
24
|
+
- 26dcf3a: chore: bump typescript to v5 in devDependencies
|
|
25
|
+
|
|
26
|
+
chore: 升级 devDependencies 中的 typescript 版本到 v5
|
|
27
|
+
|
|
28
|
+
- Updated dependencies [df43559]
|
|
29
|
+
- Updated dependencies [e81eeaf]
|
|
30
|
+
- Updated dependencies [26dcf3a]
|
|
31
|
+
- Updated dependencies [056627f]
|
|
32
|
+
- Updated dependencies [de8f73f]
|
|
33
|
+
- Updated dependencies [0fc15ca]
|
|
34
|
+
- Updated dependencies [43b4e83]
|
|
35
|
+
- Updated dependencies [ad78387]
|
|
36
|
+
- @modern-js/core@2.21.0
|
|
37
|
+
- @modern-js/utils@2.21.0
|
|
38
|
+
- @modern-js/plugin-changeset@2.21.0
|
|
39
|
+
- @modern-js/new-action@2.21.0
|
|
40
|
+
- @modern-js/plugin-i18n@2.21.0
|
|
41
|
+
- @modern-js/plugin-lint@2.21.0
|
|
42
|
+
- @modern-js/upgrade@2.21.0
|
|
43
|
+
- @modern-js/plugin@2.21.0
|
|
44
|
+
|
|
3
45
|
## 2.20.0
|
|
4
46
|
|
|
5
47
|
### Patch Changes
|
package/bin/modern.js
CHANGED
package/dist/cjs/index.js
CHANGED
|
@@ -25,6 +25,11 @@ const _default = () => ({
|
|
|
25
25
|
],
|
|
26
26
|
registerHook: _hooks.hooks,
|
|
27
27
|
setup: (api) => {
|
|
28
|
+
const appContext = api.useAppContext();
|
|
29
|
+
api.setAppContext({
|
|
30
|
+
...appContext,
|
|
31
|
+
toolsType: "monorepo-tools"
|
|
32
|
+
});
|
|
28
33
|
const locale = (0, _languagedetector.getLocaleLanguage)();
|
|
29
34
|
_locale.i18n.changeLanguage({
|
|
30
35
|
locale
|
package/dist/esm/index.js
CHANGED
|
@@ -15,6 +15,11 @@ export default () => ({
|
|
|
15
15
|
],
|
|
16
16
|
registerHook: hooks,
|
|
17
17
|
setup: (api) => {
|
|
18
|
+
const appContext = api.useAppContext();
|
|
19
|
+
api.setAppContext({
|
|
20
|
+
...appContext,
|
|
21
|
+
toolsType: "monorepo-tools"
|
|
22
|
+
});
|
|
18
23
|
const locale = getLocaleLanguage();
|
|
19
24
|
i18n.changeLanguage({
|
|
20
25
|
locale
|
|
@@ -31,7 +31,6 @@ export declare class DagOperator {
|
|
|
31
31
|
* 3. 检查是否存在 dependencyEdge === 0 的节点,加入叶子节点集合 A中。
|
|
32
32
|
* 4. 根据情况(是否存在空闲的进程)选择是否执行新加入的节点对应的任务。
|
|
33
33
|
*/
|
|
34
|
-
|
|
35
34
|
traverseProjectToDependent(name: string, task: Task, {
|
|
36
35
|
withSelf,
|
|
37
36
|
runTaskConcurrency
|
|
@@ -43,7 +42,6 @@ export declare class DagOperator {
|
|
|
43
42
|
* 4. 检查 B 集合中是否存在入度为0的节点,则此节点为叶子节点,并加入叶子节点集合 A
|
|
44
43
|
* 5. 根据情况(是否存在空闲的进程)选择是否执行新加入的节点对应的任务。
|
|
45
44
|
*/
|
|
46
|
-
|
|
47
45
|
traverseDependenciesToProject(name: string, task: Task, {
|
|
48
46
|
withSelf,
|
|
49
47
|
runTaskConcurrency
|
|
@@ -58,7 +56,6 @@ export declare class DagOperator {
|
|
|
58
56
|
/**
|
|
59
57
|
* Checks for projects that indirectly depend on themselves.
|
|
60
58
|
*/
|
|
61
|
-
|
|
62
59
|
private _checkForCyclicDependencies;
|
|
63
60
|
private _getDependencyLeafNodes;
|
|
64
61
|
private readonly _createTask;
|
|
@@ -3,7 +3,6 @@ import { IProjectNode } from '../projects/getProjects';
|
|
|
3
3
|
* Calculate the number of packages which must be built before we reach
|
|
4
4
|
* the furthest away "root" node
|
|
5
5
|
*/
|
|
6
|
-
|
|
7
6
|
export declare const calculateCriticalPaths: (project: IProjectNode) => number;
|
|
8
7
|
export declare const recursiveGetDependency: (project: IProjectNode, skipCircleProjects?: boolean) => IProjectNode[];
|
|
9
8
|
export declare const sortProjects: (projects: IProjectNode[]) => IProjectNode[][];
|
|
@@ -17,7 +17,6 @@ export interface IProjectChangeResult {
|
|
|
17
17
|
/**
|
|
18
18
|
* Contains the git hashes for all tracked files in the repo
|
|
19
19
|
*/
|
|
20
|
-
|
|
21
20
|
state: any;
|
|
22
21
|
}
|
|
23
22
|
export declare const runBuildWatchTask: (projectName: string, operator: DagOperator, config: IBuildWatchConfig, taskCmds?: BuildWatchCmdsType) => Promise<void>;
|
package/dist/types/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "2.
|
|
18
|
+
"version": "2.21.1",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"types": "./dist/types/index.d.ts",
|
|
21
21
|
"main": "./dist/cjs/index.js",
|
|
@@ -43,23 +43,23 @@
|
|
|
43
43
|
"md5": "^2.3.0",
|
|
44
44
|
"p-map": "^4.0.0",
|
|
45
45
|
"@swc/helpers": "0.5.1",
|
|
46
|
-
"@modern-js/core": "2.
|
|
47
|
-
"@modern-js/new-action": "2.
|
|
48
|
-
"@modern-js/upgrade": "2.
|
|
49
|
-
"@modern-js/plugin": "2.
|
|
50
|
-
"@modern-js/plugin-changeset": "2.
|
|
51
|
-
"@modern-js/plugin-i18n": "2.
|
|
52
|
-
"@modern-js/plugin-lint": "2.
|
|
53
|
-
"@modern-js/utils": "2.
|
|
46
|
+
"@modern-js/core": "2.21.1",
|
|
47
|
+
"@modern-js/new-action": "2.21.1",
|
|
48
|
+
"@modern-js/upgrade": "2.21.1",
|
|
49
|
+
"@modern-js/plugin": "2.21.1",
|
|
50
|
+
"@modern-js/plugin-changeset": "2.21.1",
|
|
51
|
+
"@modern-js/plugin-i18n": "2.21.1",
|
|
52
|
+
"@modern-js/plugin-lint": "2.21.1",
|
|
53
|
+
"@modern-js/utils": "2.21.1"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@types/jest": "^29",
|
|
57
57
|
"@types/md5": "^2.3.1",
|
|
58
58
|
"@types/node": "^14",
|
|
59
59
|
"jest": "^29",
|
|
60
|
-
"typescript": "^
|
|
61
|
-
"@scripts/build": "2.
|
|
62
|
-
"@scripts/jest-config": "2.
|
|
60
|
+
"typescript": "^5",
|
|
61
|
+
"@scripts/build": "2.21.1",
|
|
62
|
+
"@scripts/jest-config": "2.21.1"
|
|
63
63
|
},
|
|
64
64
|
"sideEffects": false,
|
|
65
65
|
"publishConfig": {
|