@lage-run/cli 0.8.1 → 0.8.3
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.json +67 -1
- package/CHANGELOG.md +24 -2
- package/lib/cli.d.ts +1 -0
- package/lib/commands/addFilterOptions.d.ts +2 -0
- package/lib/commands/addLoggerOptions.d.ts +2 -0
- package/lib/commands/affected/action.d.ts +6 -0
- package/lib/commands/affected/index.d.ts +3 -0
- package/lib/commands/cache/action.d.ts +8 -0
- package/lib/commands/cache/cacheDir.d.ts +1 -0
- package/lib/commands/cache/clearCache.d.ts +8 -0
- package/lib/commands/cache/index.d.ts +3 -0
- package/lib/commands/cache/pruneCache.d.ts +9 -0
- package/lib/commands/cache/runners/ClearCacheRunner.d.ts +5 -0
- package/lib/commands/cache/runners/PruneCacheRunner.d.ts +5 -0
- package/lib/commands/createReporter.d.ts +3 -0
- package/lib/commands/initializeReporters.d.ts +3 -0
- package/lib/commands/isRunningFromCI.d.ts +1 -0
- package/lib/commands/run/action.d.ts +23 -0
- package/lib/commands/run/createCacheProvider.d.ts +15 -0
- package/lib/commands/run/createTargetGraph.d.ts +21 -0
- package/lib/commands/run/filterArgsForTasks.d.ts +4 -0
- package/lib/commands/run/filterPipelineDefinitions.d.ts +3 -0
- package/lib/commands/run/index.d.ts +3 -0
- package/lib/commands/run/infoAction.d.ts +14 -0
- package/lib/commands/run/runAction.d.ts +16 -0
- package/lib/commands/run/runners/NpmScriptRunner.d.ts +1 -0
- package/lib/commands/run/runners/WorkerRunner.d.ts +1 -0
- package/lib/commands/run/watchAction.d.ts +16 -0
- package/lib/commands/run/watcher.d.ts +3 -0
- package/lib/config/getConcurrency.d.ts +1 -0
- package/lib/config/getConfig.d.ts +2 -0
- package/lib/config/getMaxWorkersPerTask.d.ts +3 -0
- package/lib/config/getMaxWorkersPerTask.js +3 -3
- package/lib/filter/getFilteredPackages.d.ts +21 -0
- package/lib/index.d.ts +1 -0
- package/lib/showHelp.d.ts +1 -0
- package/lib/types/CacheOptions.d.ts +7 -0
- package/lib/types/ConfigOptions.d.ts +56 -0
- package/lib/types/FilterOptions.d.ts +9 -0
- package/lib/types/LoggerOptions.d.ts +15 -0
- package/lib/types/PipelineDefinition.d.ts +12 -0
- package/lib/types/Priority.d.ts +8 -0
- package/lib/types/ReporterInitOptions.d.ts +10 -0
- package/lib/types/errors.d.ts +1 -0
- package/package.json +7 -7
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,73 @@
|
|
|
2
2
|
"name": "@lage-run/cli",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Wed, 15 Feb 2023 16:46:37 GMT",
|
|
6
|
+
"tag": "@lage-run/cli_v0.8.3",
|
|
7
|
+
"version": "0.8.3",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "kchau@microsoft.com",
|
|
12
|
+
"package": "@lage-run/cli",
|
|
13
|
+
"commit": "d66a3b4811f36290a0499d9199948c84c8049728",
|
|
14
|
+
"comment": "bumping workspace-tools to latest to support yarn 3"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"author": "beachball",
|
|
18
|
+
"package": "@lage-run/cli",
|
|
19
|
+
"comment": "Bump @lage-run/scheduler to v0.8.4",
|
|
20
|
+
"commit": "d66a3b4811f36290a0499d9199948c84c8049728"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"author": "beachball",
|
|
24
|
+
"package": "@lage-run/cli",
|
|
25
|
+
"comment": "Bump @lage-run/scheduler-types to v0.3.1",
|
|
26
|
+
"commit": "d66a3b4811f36290a0499d9199948c84c8049728"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"author": "beachball",
|
|
30
|
+
"package": "@lage-run/cli",
|
|
31
|
+
"comment": "Bump @lage-run/target-graph to v0.6.2",
|
|
32
|
+
"commit": "d66a3b4811f36290a0499d9199948c84c8049728"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"author": "beachball",
|
|
36
|
+
"package": "@lage-run/cli",
|
|
37
|
+
"comment": "Bump @lage-run/cache to v0.2.4",
|
|
38
|
+
"commit": "d66a3b4811f36290a0499d9199948c84c8049728"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"author": "beachball",
|
|
42
|
+
"package": "@lage-run/cli",
|
|
43
|
+
"comment": "Bump @lage-run/reporters to v1.0.1",
|
|
44
|
+
"commit": "d66a3b4811f36290a0499d9199948c84c8049728"
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"date": "Tue, 07 Feb 2023 23:52:48 GMT",
|
|
51
|
+
"tag": "@lage-run/cli_v0.8.2",
|
|
52
|
+
"version": "0.8.2",
|
|
53
|
+
"comments": {
|
|
54
|
+
"patch": [
|
|
55
|
+
{
|
|
56
|
+
"author": "kchau@microsoft.com",
|
|
57
|
+
"package": "@lage-run/cli",
|
|
58
|
+
"commit": "d7bf00acf2e7bda7d3e3478b6ef60db0d32ba243",
|
|
59
|
+
"comment": "migrating to V2"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"author": "beachball",
|
|
63
|
+
"package": "@lage-run/cli",
|
|
64
|
+
"comment": "Bump @lage-run/scheduler to v0.8.3",
|
|
65
|
+
"commit": "d7bf00acf2e7bda7d3e3478b6ef60db0d32ba243"
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"date": "Mon, 06 Feb 2023 23:42:51 GMT",
|
|
6
72
|
"tag": "@lage-run/cli_v0.8.1",
|
|
7
73
|
"version": "0.8.1",
|
|
8
74
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,34 @@
|
|
|
1
1
|
# Change Log - @lage-run/cli
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Wed, 15 Feb 2023 16:46:37 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 0.8.3
|
|
8
|
+
|
|
9
|
+
Wed, 15 Feb 2023 16:46:37 GMT
|
|
10
|
+
|
|
11
|
+
### Patches
|
|
12
|
+
|
|
13
|
+
- bumping workspace-tools to latest to support yarn 3 (kchau@microsoft.com)
|
|
14
|
+
- Bump @lage-run/scheduler to v0.8.4
|
|
15
|
+
- Bump @lage-run/scheduler-types to v0.3.1
|
|
16
|
+
- Bump @lage-run/target-graph to v0.6.2
|
|
17
|
+
- Bump @lage-run/cache to v0.2.4
|
|
18
|
+
- Bump @lage-run/reporters to v1.0.1
|
|
19
|
+
|
|
20
|
+
## 0.8.2
|
|
21
|
+
|
|
22
|
+
Tue, 07 Feb 2023 23:52:48 GMT
|
|
23
|
+
|
|
24
|
+
### Patches
|
|
25
|
+
|
|
26
|
+
- migrating to V2 (kchau@microsoft.com)
|
|
27
|
+
- Bump @lage-run/scheduler to v0.8.3
|
|
28
|
+
|
|
7
29
|
## 0.8.1
|
|
8
30
|
|
|
9
|
-
Mon, 06 Feb 2023 23:42:
|
|
31
|
+
Mon, 06 Feb 2023 23:42:51 GMT
|
|
10
32
|
|
|
11
33
|
### Patches
|
|
12
34
|
|
package/lib/cli.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Command } from "commander";
|
|
2
|
+
import type { ReporterInitOptions } from "../../types/ReporterInitOptions.js";
|
|
3
|
+
interface CacheOptions extends ReporterInitOptions {
|
|
4
|
+
prune?: number;
|
|
5
|
+
clear?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare function cacheAction(options: CacheOptions, command: Command): Promise<void>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getCacheDir(workspace: string, internalCacheFolder: string): string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Logger } from "@lage-run/logger";
|
|
2
|
+
export interface PruneCacheOptions {
|
|
3
|
+
cwd: string;
|
|
4
|
+
internalCacheFolder: string;
|
|
5
|
+
logger: Logger;
|
|
6
|
+
concurrency: number;
|
|
7
|
+
pruneDays: number;
|
|
8
|
+
}
|
|
9
|
+
export declare function pruneCache(options: PruneCacheOptions): Promise<void>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { JsonReporter, AdoReporter, LogReporter, ProgressReporter, ChromeTraceEventsReporter } from "@lage-run/reporters";
|
|
2
|
+
import type { ReporterInitOptions } from "../types/ReporterInitOptions.js";
|
|
3
|
+
export declare function createReporter(reporter: string, options: ReporterInitOptions): ChromeTraceEventsReporter | JsonReporter | AdoReporter | ProgressReporter | LogReporter;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { Logger } from "@lage-run/logger";
|
|
2
|
+
import type { ReporterInitOptions } from "../types/ReporterInitOptions.js";
|
|
3
|
+
export declare function initializeReporters(logger: Logger, options: ReporterInitOptions): import("@lage-run/logger").Reporter<import("@lage-run/logger").LogStructuredData>[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const isRunningFromCI: boolean;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { Command } from "commander";
|
|
2
|
+
import type { ReporterInitOptions } from "../../types/ReporterInitOptions.js";
|
|
3
|
+
interface RunOptions extends ReporterInitOptions {
|
|
4
|
+
concurrency: number;
|
|
5
|
+
profile: string | boolean | undefined;
|
|
6
|
+
dependencies: boolean;
|
|
7
|
+
dependents: boolean;
|
|
8
|
+
since: string;
|
|
9
|
+
to: string[];
|
|
10
|
+
scope: string[];
|
|
11
|
+
skipLocalCache: boolean;
|
|
12
|
+
continue: boolean;
|
|
13
|
+
cache: boolean;
|
|
14
|
+
resetCache: boolean;
|
|
15
|
+
nodeArg: string;
|
|
16
|
+
ignore: string[];
|
|
17
|
+
unstableWatch: boolean;
|
|
18
|
+
info: boolean;
|
|
19
|
+
maxWorkersPerTask: string[];
|
|
20
|
+
allowNoTargetRuns: boolean;
|
|
21
|
+
}
|
|
22
|
+
export declare function action(options: RunOptions, command: Command): Promise<void>;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { CacheOptions } from "@lage-run/cache";
|
|
2
|
+
import { RemoteFallbackCacheProvider, TargetHasher } from "@lage-run/cache";
|
|
3
|
+
import type { Logger } from "@lage-run/logger";
|
|
4
|
+
interface CreateCacheOptions {
|
|
5
|
+
cacheOptions?: CacheOptions;
|
|
6
|
+
logger: Logger;
|
|
7
|
+
root: string;
|
|
8
|
+
skipLocalCache: boolean;
|
|
9
|
+
cliArgs: string[];
|
|
10
|
+
}
|
|
11
|
+
export declare function createCache(options: CreateCacheOptions): {
|
|
12
|
+
cacheProvider: RemoteFallbackCacheProvider;
|
|
13
|
+
hasher: TargetHasher;
|
|
14
|
+
};
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Logger } from "@lage-run/logger";
|
|
2
|
+
import type { PackageInfos } from "workspace-tools";
|
|
3
|
+
import type { PipelineDefinition } from "../../types/PipelineDefinition.js";
|
|
4
|
+
interface CreateTargetGraphOptions {
|
|
5
|
+
logger: Logger;
|
|
6
|
+
root: string;
|
|
7
|
+
dependencies: boolean;
|
|
8
|
+
dependents: boolean;
|
|
9
|
+
since: string;
|
|
10
|
+
scope: string[];
|
|
11
|
+
ignore: string[];
|
|
12
|
+
repoWideChanges: string[];
|
|
13
|
+
pipeline: PipelineDefinition;
|
|
14
|
+
outputs: string[];
|
|
15
|
+
tasks: string[];
|
|
16
|
+
packageInfos: PackageInfos;
|
|
17
|
+
}
|
|
18
|
+
export declare function createTargetGraph(options: CreateTargetGraphOptions): {
|
|
19
|
+
targets: Map<string, import("@lage-run/target-graph").Target>;
|
|
20
|
+
};
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Command } from "commander";
|
|
2
|
+
import type { ReporterInitOptions } from "../../types/ReporterInitOptions.js";
|
|
3
|
+
interface RunOptions extends ReporterInitOptions {
|
|
4
|
+
dependencies: boolean;
|
|
5
|
+
dependents: boolean;
|
|
6
|
+
since: string;
|
|
7
|
+
scope: string[];
|
|
8
|
+
to: string[];
|
|
9
|
+
cache: boolean;
|
|
10
|
+
nodeArg: string;
|
|
11
|
+
ignore: string[];
|
|
12
|
+
}
|
|
13
|
+
export declare function infoAction(options: RunOptions, command: Command): Promise<void>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Command } from "commander";
|
|
2
|
+
import type { ReporterInitOptions } from "../../types/ReporterInitOptions.js";
|
|
3
|
+
import type { FilterOptions } from "../../types/FilterOptions.js";
|
|
4
|
+
interface RunOptions extends ReporterInitOptions, FilterOptions {
|
|
5
|
+
concurrency: number;
|
|
6
|
+
maxWorkersPerTask: string[];
|
|
7
|
+
profile: string | boolean | undefined;
|
|
8
|
+
skipLocalCache: boolean;
|
|
9
|
+
continue: boolean;
|
|
10
|
+
cache: boolean;
|
|
11
|
+
resetCache: boolean;
|
|
12
|
+
nodeArg: string;
|
|
13
|
+
allowNoTargetRuns: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare function runAction(options: RunOptions, command: Command): Promise<void>;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { NpmScriptRunner } from "@lage-run/scheduler";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { WorkerRunner } from "@lage-run/scheduler";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Command } from "commander";
|
|
2
|
+
import type { ReporterInitOptions } from "../../types/ReporterInitOptions.js";
|
|
3
|
+
import type { FilterOptions } from "../../types/FilterOptions.js";
|
|
4
|
+
interface RunOptions extends ReporterInitOptions, FilterOptions {
|
|
5
|
+
concurrency: number;
|
|
6
|
+
maxWorkersPerTask: string[];
|
|
7
|
+
profile: string | boolean | undefined;
|
|
8
|
+
skipLocalCache: boolean;
|
|
9
|
+
continue: boolean;
|
|
10
|
+
cache: boolean;
|
|
11
|
+
resetCache: boolean;
|
|
12
|
+
nodeArg: string;
|
|
13
|
+
allowNoTargetRuns: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare function watchAction(options: RunOptions, command: Command): Promise<void>;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getConcurrency(optionsConcurrency: number | undefined, configConcurrency: number | undefined): number;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ConfigOptions } from "../types/ConfigOptions.js";
|
|
2
|
+
export declare function getMaxWorkersPerTask(pipelineConfig: ConfigOptions["pipeline"], concurrency: number): Map<string, number>;
|
|
3
|
+
export declare function getMaxWorkersPerTaskFromOptions(maxWorkersPerTask: string[]): Map<string, number>;
|
|
@@ -44,10 +44,10 @@ function getMaxWorkersPerTask(pipelineConfig, concurrency) {
|
|
|
44
44
|
// try to adjust the maxWorkersPerTask to fit the concurrency
|
|
45
45
|
if (grandTotal > concurrency) {
|
|
46
46
|
let newTotal = 0;
|
|
47
|
-
for (const [
|
|
48
|
-
const newMaxWorkers = Math.max(1, Math.floor(
|
|
47
|
+
for (const [task, maxWorkers] of maxWorkersPerTask.entries()){
|
|
48
|
+
const newMaxWorkers = Math.max(1, Math.floor(maxWorkers / grandTotal * concurrency));
|
|
49
49
|
newTotal += newMaxWorkers;
|
|
50
|
-
maxWorkersPerTask.set(
|
|
50
|
+
maxWorkersPerTask.set(task, newMaxWorkers);
|
|
51
51
|
}
|
|
52
52
|
if (newTotal > concurrency) {
|
|
53
53
|
throw new Error("Could not adjust maxWorkers per task to fit the concurrency, try reducing the maxWorkers, or increasing the --concurrency CLI argument, or separate the tasks to be run");
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { PackageInfos } from "workspace-tools";
|
|
2
|
+
import type { Logger } from "@lage-run/logger";
|
|
3
|
+
export declare function getFilteredPackages(options: {
|
|
4
|
+
root: string;
|
|
5
|
+
packageInfos: PackageInfos;
|
|
6
|
+
logger: Logger;
|
|
7
|
+
scope: string[] | undefined;
|
|
8
|
+
since: string | undefined;
|
|
9
|
+
sinceIgnoreGlobs: string[] | undefined;
|
|
10
|
+
repoWideChanges: string[];
|
|
11
|
+
includeDependents: boolean;
|
|
12
|
+
includeDependencies: boolean;
|
|
13
|
+
}): string[];
|
|
14
|
+
export declare function filterPackages(options: {
|
|
15
|
+
logger: Logger;
|
|
16
|
+
packageInfos: PackageInfos;
|
|
17
|
+
includeDependents: boolean;
|
|
18
|
+
includeDependencies: boolean;
|
|
19
|
+
scopedPackages: string[] | undefined;
|
|
20
|
+
changedPackages: string[] | undefined;
|
|
21
|
+
}): string[];
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { ConfigOptions } from "./types/ConfigOptions.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function showHelp(msg: string): void;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type { CacheOptions } from "./CacheOptions.js";
|
|
2
|
+
import type { Priority } from "./Priority.js";
|
|
3
|
+
import type { PipelineDefinition } from "./PipelineDefinition.js";
|
|
4
|
+
import type { LoggerOptions } from "./LoggerOptions.js";
|
|
5
|
+
import type { TargetRunnerPickerOptions } from "@lage-run/scheduler";
|
|
6
|
+
export type NpmClient = "npm" | "yarn" | "pnpm";
|
|
7
|
+
export interface ConfigOptions {
|
|
8
|
+
/**
|
|
9
|
+
* Defines the task pipeline, prefix with "^" character to denote a direct topological dependency,
|
|
10
|
+
* prefix with ^^ to denote a transitive topological dependency.
|
|
11
|
+
*
|
|
12
|
+
* Example:
|
|
13
|
+
*
|
|
14
|
+
* ```
|
|
15
|
+
* {
|
|
16
|
+
* build: ["^build"],
|
|
17
|
+
* test: ["build"],
|
|
18
|
+
* lint: []
|
|
19
|
+
* bundle: ["^^transpile"],
|
|
20
|
+
* transpile: [],
|
|
21
|
+
* }
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
pipeline: PipelineDefinition;
|
|
25
|
+
/** Backfill cache options */
|
|
26
|
+
cacheOptions: CacheOptions;
|
|
27
|
+
/** Which files to ignore when calculating scopes with --since */
|
|
28
|
+
ignore: string[];
|
|
29
|
+
/** disables --since flag when any of this list of files changed */
|
|
30
|
+
repoWideChanges: string[];
|
|
31
|
+
/** Which NPM Client to use when running npm lifecycle scripts */
|
|
32
|
+
npmClient: NpmClient;
|
|
33
|
+
/** Optional priority to set on tasks in a package to make the scheduler give priority to tasks on the critical path for high priority tasks */
|
|
34
|
+
priorities: Priority[];
|
|
35
|
+
/**
|
|
36
|
+
* Options that will be sent to all log reporters.
|
|
37
|
+
*/
|
|
38
|
+
loggerOptions: LoggerOptions;
|
|
39
|
+
/**
|
|
40
|
+
* Custom runners for tasks in the pipeline. The key is the task name, and the value is a configuration describing what would be
|
|
41
|
+
* passed to the runner constructor.
|
|
42
|
+
*/
|
|
43
|
+
runners: TargetRunnerPickerOptions;
|
|
44
|
+
/**
|
|
45
|
+
* Maximum worker idle memory, this would cause workers to restart if they exceed this limit. This is useful to prevent memory leaks.
|
|
46
|
+
*/
|
|
47
|
+
workerIdleMemoryLimit: number;
|
|
48
|
+
/**
|
|
49
|
+
* Maximum number of concurrent tasks to run
|
|
50
|
+
*/
|
|
51
|
+
concurrency: number;
|
|
52
|
+
/**
|
|
53
|
+
* Allows for no targets run
|
|
54
|
+
*/
|
|
55
|
+
allowNoTargetRuns: boolean;
|
|
56
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { LogLevel } from "@lage-run/logger";
|
|
2
|
+
export interface LoggerOptions {
|
|
3
|
+
disp?: {
|
|
4
|
+
[level: string]: string;
|
|
5
|
+
};
|
|
6
|
+
style?: {
|
|
7
|
+
[level: string]: {
|
|
8
|
+
fg?: string;
|
|
9
|
+
bg?: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
levels?: {
|
|
13
|
+
[level: string]: LogLevel;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { TargetConfig } from "@lage-run/target-graph";
|
|
2
|
+
import type { ConfigOptions } from "./ConfigOptions.js";
|
|
3
|
+
export interface FactoryArgs {
|
|
4
|
+
cwd: string;
|
|
5
|
+
config: ConfigOptions;
|
|
6
|
+
}
|
|
7
|
+
export interface TargetConfigFactory {
|
|
8
|
+
(args: FactoryArgs): TargetConfig | TargetConfig[];
|
|
9
|
+
}
|
|
10
|
+
export interface PipelineDefinition {
|
|
11
|
+
[task: string]: string[] | TargetConfig;
|
|
12
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface Priority {
|
|
2
|
+
/** package name, as in package.json */
|
|
3
|
+
package?: string;
|
|
4
|
+
/** task name, as listed in the `scripts` section of package.json */
|
|
5
|
+
task: string;
|
|
6
|
+
/** priority, the higher the more priority; undefined priority means lowest priority*/
|
|
7
|
+
priority: number;
|
|
8
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { LogLevel } from "@lage-run/logger";
|
|
2
|
+
export interface ReporterInitOptions {
|
|
3
|
+
reporter: string[] | string;
|
|
4
|
+
progress: boolean;
|
|
5
|
+
verbose: boolean;
|
|
6
|
+
grouped: boolean;
|
|
7
|
+
concurrency: number;
|
|
8
|
+
logLevel: keyof typeof LogLevel;
|
|
9
|
+
profile?: boolean | string;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const NoTargetFoundError: Error;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lage-run/cli",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.3",
|
|
4
4
|
"description": "Command Line Interface for Lage",
|
|
5
5
|
"repository": {
|
|
6
6
|
"url": "https://github.com/microsoft/lage"
|
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@lage-run/find-npm-client": "^0.1.4",
|
|
22
22
|
"@lage-run/logger": "^1.2.2",
|
|
23
|
-
"@lage-run/scheduler": "^0.8.
|
|
24
|
-
"@lage-run/scheduler-types": "^0.3.
|
|
25
|
-
"@lage-run/target-graph": "^0.6.
|
|
26
|
-
"@lage-run/cache": "^0.2.
|
|
27
|
-
"@lage-run/reporters": "^1.0.
|
|
23
|
+
"@lage-run/scheduler": "^0.8.4",
|
|
24
|
+
"@lage-run/scheduler-types": "^0.3.1",
|
|
25
|
+
"@lage-run/target-graph": "^0.6.2",
|
|
26
|
+
"@lage-run/cache": "^0.2.4",
|
|
27
|
+
"@lage-run/reporters": "^1.0.1",
|
|
28
28
|
"commander": "^9.4.0",
|
|
29
|
-
"workspace-tools": "^0.
|
|
29
|
+
"workspace-tools": "^0.30.0",
|
|
30
30
|
"chokidar": "3.5.3",
|
|
31
31
|
"fast-glob": "^3.2.11",
|
|
32
32
|
"cosmiconfig": "^7.0.0"
|