@modern-js/monorepo-tools 2.0.0-beta.6 → 2.0.0
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 +57 -0
- package/dist/types/dag/operator.d.ts +1 -1
- package/dist/types/dag/task.d.ts +1 -1
- package/dist/types/features/dev/cmds.d.ts +1 -1
- package/dist/types/parse-config/monorepo.d.ts +1 -1
- package/dist/types/projects/get-projects.d.ts +1 -1
- package/dist/types/type.d.ts +1 -1
- package/dist/types/utils/types.d.ts +1 -1
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,62 @@
|
|
|
1
1
|
# @modern-js/monorepo-tools
|
|
2
2
|
|
|
3
|
+
## 2.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- dda38c9c3e: chore: v2
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- d4a456659b: chore: rename plugin-jarvis to plugin-lint
|
|
12
|
+
|
|
13
|
+
chore: 重命名 plugin-jarvis 为 plugin-lint
|
|
14
|
+
|
|
15
|
+
- Updated dependencies [c9e800d39a]
|
|
16
|
+
- Updated dependencies [edd1cfb1af]
|
|
17
|
+
- Updated dependencies [d4a456659b]
|
|
18
|
+
- Updated dependencies [f680410886]
|
|
19
|
+
- Updated dependencies [dda38c9c3e]
|
|
20
|
+
- Updated dependencies [8b8e1bb571]
|
|
21
|
+
- Updated dependencies [ffb2ed4]
|
|
22
|
+
- Updated dependencies [bbe4c4ab64]
|
|
23
|
+
- @modern-js/core@2.0.0
|
|
24
|
+
- @modern-js/utils@2.0.0
|
|
25
|
+
- @modern-js/plugin-lint@2.0.0
|
|
26
|
+
- @modern-js/plugin-changeset@2.0.0
|
|
27
|
+
- @modern-js/plugin-i18n@2.0.0
|
|
28
|
+
- @modern-js/new-action@2.0.0
|
|
29
|
+
- @modern-js/plugin@2.0.0
|
|
30
|
+
- @modern-js/upgrade@2.0.0
|
|
31
|
+
|
|
32
|
+
## 2.0.0-beta.7
|
|
33
|
+
|
|
34
|
+
### Major Changes
|
|
35
|
+
|
|
36
|
+
- dda38c9c3e: chore: v2
|
|
37
|
+
|
|
38
|
+
### Patch Changes
|
|
39
|
+
|
|
40
|
+
- d4a456659b: chore: rename plugin-jarvis to plugin-lint
|
|
41
|
+
|
|
42
|
+
chore: 重命名 plugin-jarvis 为 plugin-lint
|
|
43
|
+
|
|
44
|
+
- Updated dependencies [c9e800d39a]
|
|
45
|
+
- Updated dependencies [edd1cfb1af]
|
|
46
|
+
- Updated dependencies [d4a456659b]
|
|
47
|
+
- Updated dependencies [f680410886]
|
|
48
|
+
- Updated dependencies [dda38c9c3e]
|
|
49
|
+
- Updated dependencies [8b8e1bb571]
|
|
50
|
+
- Updated dependencies [bbe4c4ab64]
|
|
51
|
+
- @modern-js/core@2.0.0-beta.7
|
|
52
|
+
- @modern-js/utils@2.0.0-beta.7
|
|
53
|
+
- @modern-js/plugin-lint@2.0.0-beta.7
|
|
54
|
+
- @modern-js/plugin-changeset@2.0.0-beta.7
|
|
55
|
+
- @modern-js/plugin-i18n@2.0.0-beta.7
|
|
56
|
+
- @modern-js/new-action@2.0.0-beta.7
|
|
57
|
+
- @modern-js/plugin@2.0.0-beta.7
|
|
58
|
+
- @modern-js/upgrade@2.0.0-beta.7
|
|
59
|
+
|
|
3
60
|
## 2.0.0-beta.6
|
|
4
61
|
|
|
5
62
|
### Major Changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IProjectNode } from '../projects/get-projects';
|
|
2
|
-
export
|
|
2
|
+
export type Task = (currentProject: IProjectNode, currentProjectPreviousProjects: IProjectNode[], earlyFinishFun: () => void) => Promise<void>;
|
|
3
3
|
export interface ITraverseConfig {
|
|
4
4
|
withSelf?: boolean;
|
|
5
5
|
runTaskConcurrency?: number;
|
package/dist/types/dag/task.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { EventEmitter } from 'events';
|
|
|
3
3
|
export interface ITaskRunnerConfig {
|
|
4
4
|
concurrency?: number;
|
|
5
5
|
}
|
|
6
|
-
export
|
|
6
|
+
export type TaskFunType<T = undefined> = (stopTask?: () => void) => Promise<T>;
|
|
7
7
|
export declare class TaskRunner<S> extends EventEmitter {
|
|
8
8
|
static DefaultConcurrency: number;
|
|
9
9
|
static TASK_FINISH: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { IProjectNode } from '../../projects/get-projects';
|
|
2
|
-
export
|
|
2
|
+
export type BuildWatchCmdsType = [string] | [string, string] | [string, (project: IProjectNode) => string[]];
|
|
3
3
|
export declare const defaultBuildWatchCmds: BuildWatchCmdsType;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const findMonorepoRoot: (starFindPath: string) => string | undefined;
|
|
2
2
|
export declare const getWorkspaceFile: (startFindPath: string) => string;
|
|
3
|
-
export
|
|
3
|
+
export type PackageManagerType = 'pnpm' | 'yarn' | 'npm';
|
|
4
4
|
export declare const packageManagerFlag: {
|
|
5
5
|
pnpm: string[];
|
|
6
6
|
yarn: (string | ((monorepoRootPath: string) => boolean))[];
|
|
@@ -26,6 +26,6 @@ export interface IProjectNode {
|
|
|
26
26
|
circlePath: string[];
|
|
27
27
|
criticalPathLength?: number;
|
|
28
28
|
}
|
|
29
|
-
export
|
|
29
|
+
export type IMonorepoSubProject = IProjectNode;
|
|
30
30
|
export declare const getProjects: (config: IFindSubProjectConfig, currentDir?: string) => Promise<IMonorepoSubProject[]>;
|
|
31
31
|
export declare const syncGetProjects: (config: IFindSubProjectConfig, currentDir?: string) => IMonorepoSubProject[];
|
package/dist/types/type.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type Argu<F extends (input: any) => any> = F extends (input: infer A) => any ? A : never;
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "2.0.0
|
|
14
|
+
"version": "2.0.0",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"types": "./dist/types/index.d.ts",
|
|
17
17
|
"main": "./dist/js/node/index.js",
|
|
@@ -39,14 +39,14 @@
|
|
|
39
39
|
"anymatch": "^3.1.2",
|
|
40
40
|
"md5": "^2.3.0",
|
|
41
41
|
"p-map": "^4.0.0",
|
|
42
|
-
"@modern-js/core": "2.0.0
|
|
43
|
-
"@modern-js/new-action": "2.0.0
|
|
44
|
-
"@modern-js/upgrade": "2.0.0
|
|
45
|
-
"@modern-js/plugin": "2.0.0
|
|
46
|
-
"@modern-js/plugin-changeset": "2.0.0
|
|
47
|
-
"@modern-js/plugin-i18n": "2.0.0
|
|
48
|
-
"@modern-js/plugin-lint": "2.0.0
|
|
49
|
-
"@modern-js/utils": "2.0.0
|
|
42
|
+
"@modern-js/core": "2.0.0",
|
|
43
|
+
"@modern-js/new-action": "2.0.0",
|
|
44
|
+
"@modern-js/upgrade": "2.0.0",
|
|
45
|
+
"@modern-js/plugin": "2.0.0",
|
|
46
|
+
"@modern-js/plugin-changeset": "2.0.0",
|
|
47
|
+
"@modern-js/plugin-i18n": "2.0.0",
|
|
48
|
+
"@modern-js/plugin-lint": "2.0.0",
|
|
49
|
+
"@modern-js/utils": "2.0.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@types/jest": "^27",
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
"@types/node": "^14",
|
|
55
55
|
"jest": "^27",
|
|
56
56
|
"typescript": "^4",
|
|
57
|
-
"@scripts/
|
|
58
|
-
"@scripts/
|
|
57
|
+
"@scripts/jest-config": "2.0.0",
|
|
58
|
+
"@scripts/build": "2.0.0"
|
|
59
59
|
},
|
|
60
60
|
"sideEffects": false,
|
|
61
61
|
"publishConfig": {
|