bun-workspaces 1.5.1 → 1.5.2
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/bin/cli.js +0 -0
- package/package.json +1 -5
- package/src/1108.mjs +30 -0
- package/src/{cli/commands/commandsConfig.mjs → 2392.mjs} +52 -11
- package/src/4427.mjs +9 -0
- package/src/5166.mjs +8 -0
- package/src/8126.mjs +4 -0
- package/src/8257.mjs +4 -0
- package/src/{config/util/configLocation.mjs → 8529.mjs} +11 -2
- package/src/ai/mcp/bwMcpServer.mjs +213 -9
- package/src/ai/mcp/core/index.mjs +3 -1
- package/src/ai/mcp/core/server.mjs +1 -3
- package/src/ai/mcp/core/transport.mjs +1 -2
- package/src/ai/mcp/core/types.mjs +0 -1
- package/src/ai/mcp/index.mjs +3 -1
- package/src/ai/mcp/resources.mjs +1 -2
- package/src/ai/mcp/tools.mjs +1 -5
- package/src/cli/commands/commandHandlerUtils.mjs +2 -6
- package/src/cli/commands/commands.mjs +1 -4
- package/src/cli/commands/handleSimpleCommands.mjs +4 -10
- package/src/cli/commands/index.mjs +11 -2
- package/src/cli/commands/mcp.mjs +1 -4
- package/src/cli/commands/runScript/handleRunScript.mjs +1 -9
- package/src/cli/commands/runScript/index.mjs +3 -1
- package/src/cli/commands/runScript/output/index.mjs +3 -1
- package/src/cli/commands/runScript/output/outputStyle.mjs +1 -3
- package/src/cli/commands/runScript/output/renderGroupedOutput.mjs +1 -6
- package/src/cli/commands/runScript/output/renderPlainOutput.mjs +1 -2
- package/src/cli/commands/runScript/output/sanitizeChunk.mjs +0 -1
- package/src/cli/createCli.mjs +2 -12
- package/src/cli/fatalErrorLogger.mjs +1 -2
- package/src/cli/globalOptions/globalOptions.mjs +2 -9
- package/src/cli/globalOptions/index.mjs +3 -2
- package/src/cli/index.d.ts +1025 -3
- package/src/cli/index.mjs +3 -1
- package/src/cli/middleware.mjs +1 -3
- package/src/config/index.mjs +3 -1
- package/src/config/public.d.ts +93 -10
- package/src/config/public.mjs +2 -6
- package/src/config/rootConfig/defineRootConfig.mjs +1 -2
- package/src/config/rootConfig/errors.mjs +1 -2
- package/src/config/rootConfig/index.mjs +2 -1
- package/src/config/rootConfig/loadRootConfig.mjs +1 -4
- package/src/config/rootConfig/rootConfig.mjs +1 -6
- package/src/config/rootConfig/rootConfigSchema.mjs +0 -1
- package/src/config/userEnvVars/index.mjs +3 -1
- package/src/config/userEnvVars/userEnvVars.mjs +3 -8
- package/src/config/util/ajvTypes.mjs +2 -1
- package/src/config/util/index.mjs +2 -1
- package/src/config/util/loadConfig.mjs +1 -6
- package/src/config/util/validateConfig.mjs +0 -1
- package/src/config/workspaceConfig/defineWorkspaceConfig.mjs +1 -2
- package/src/config/workspaceConfig/errors.mjs +1 -2
- package/src/config/workspaceConfig/index.mjs +2 -1
- package/src/config/workspaceConfig/loadWorkspaceConfig.mjs +2 -8
- package/src/config/workspaceConfig/workspaceConfig.mjs +1 -5
- package/src/config/workspaceConfig/workspaceConfigSchema.mjs +0 -1
- package/src/doctor/doctor.mjs +1 -5
- package/src/doctor/index.mjs +3 -1
- package/src/index.d.ts +458 -38
- package/src/index.mjs +4 -13
- package/src/internal/bun/bunLock.mjs +2 -4
- package/src/internal/bun/bunVersion.mjs +1 -3
- package/src/internal/bun/index.mjs +3 -1
- package/src/internal/bundledDeps/commander.mjs +3843 -0
- package/src/internal/bundledDeps/shellQuote.mjs +291 -0
- package/src/internal/core/error/error.mjs +0 -1
- package/src/internal/core/error/index.mjs +3 -1
- package/src/internal/core/index.mjs +3 -1
- package/src/internal/core/json/index.mjs +3 -1
- package/src/internal/core/json/json.mjs +3 -5
- package/src/internal/core/json/jsonc.mjs +0 -1
- package/src/internal/core/language/array/index.mjs +3 -1
- package/src/internal/core/language/array/optionalArray.mjs +0 -1
- package/src/internal/core/language/asyncIterable/asyncIterableQueue.mjs +0 -1
- package/src/internal/core/language/asyncIterable/index.mjs +3 -1
- package/src/internal/core/language/asyncIterable/mergeAsyncIterables.mjs +0 -1
- package/src/internal/core/language/events/typedEventTarget.mjs +0 -1
- package/src/internal/core/language/index.mjs +3 -1
- package/src/internal/core/language/regex/index.mjs +3 -1
- package/src/internal/core/language/regex/regex.mjs +0 -1
- package/src/internal/core/language/string/id.mjs +0 -1
- package/src/internal/core/language/string/index.mjs +3 -1
- package/src/internal/core/language/string/utf/eastAsianWidth.mjs +0 -1
- package/src/internal/core/language/string/utf/visibleLength.mjs +1 -2
- package/src/internal/core/language/types/index.mjs +3 -1
- package/src/internal/core/language/types/typeof.mjs +1 -3
- package/src/internal/core/language/types/types.mjs +3 -2
- package/src/internal/core/runtime/env.mjs +0 -1
- package/src/internal/core/runtime/index.mjs +3 -1
- package/src/internal/core/runtime/onExit.mjs +1 -2
- package/src/internal/core/runtime/os.mjs +1 -3
- package/src/internal/core/runtime/tempFile.mjs +1 -9
- package/src/internal/core/runtime/terminal.mjs +0 -1
- package/src/internal/generated/aiDocs/.gitkeep.mjs +1 -0
- package/src/internal/generated/aiDocs/docs.mjs +0 -1
- package/src/internal/logger/index.mjs +3 -1
- package/src/internal/logger/logger.mjs +4 -14
- package/src/internal/version.mjs +1 -2
- package/src/project/errors.mjs +1 -2
- package/src/project/implementations/fileSystemProject.mjs +3 -18
- package/src/project/implementations/memoryProject.mjs +1 -5
- package/src/project/implementations/projectBase.mjs +10 -19
- package/src/project/index.mjs +3 -1
- package/src/project/project.mjs +2 -1
- package/src/rslib-runtime.mjs +62 -0
- package/src/runScript/index.mjs +3 -1
- package/src/runScript/output/index.mjs +3 -1
- package/src/runScript/output/multiProcessOutput.mjs +1 -2
- package/src/runScript/output/outputStream.mjs +1 -1
- package/src/runScript/output/processOutput.mjs +1 -2
- package/src/runScript/parallel.mjs +4 -10
- package/src/runScript/recursion.mjs +1 -2
- package/src/runScript/runScript.mjs +1 -4
- package/src/runScript/runScripts.mjs +1 -6
- package/src/runScript/scriptCommand.mjs +1 -2
- package/src/runScript/scriptExecution.mjs +1 -3
- package/src/runScript/scriptRuntimeMetadata.mjs +38 -56
- package/src/runScript/scriptShellOption.mjs +5 -14
- package/src/runScript/subprocesses.mjs +1 -3
- package/src/workspaces/dependencyGraph/cycles.mjs +0 -1
- package/src/workspaces/dependencyGraph/index.mjs +3 -1
- package/src/workspaces/dependencyGraph/resolveDependencies.mjs +1 -2
- package/src/workspaces/dependencyGraph/validateDependencyRules.mjs +1 -3
- package/src/workspaces/errors.mjs +1 -2
- package/src/workspaces/findWorkspaces.mjs +1 -11
- package/src/workspaces/index.mjs +3 -1
- package/src/workspaces/packageJson.mjs +2 -7
- package/src/workspaces/workspace.mjs +2 -1
- package/src/workspaces/workspacePattern.mjs +4 -4
- package/src/ai/mcp/bwMcpServer.d.ts +0 -4
- package/src/ai/mcp/core/index.d.ts +0 -3
- package/src/ai/mcp/core/server.d.ts +0 -14
- package/src/ai/mcp/core/transport.d.ts +0 -12
- package/src/ai/mcp/core/types.d.ts +0 -104
- package/src/ai/mcp/index.d.ts +0 -2
- package/src/ai/mcp/resources.d.ts +0 -6
- package/src/ai/mcp/tools.d.ts +0 -6
- package/src/cli/commands/commandHandlerUtils.d.ts +0 -51
- package/src/cli/commands/commands.d.ts +0 -10
- package/src/cli/commands/commandsConfig.d.ts +0 -436
- package/src/cli/commands/handleSimpleCommands.d.ts +0 -21
- package/src/cli/commands/index.d.ts +0 -4
- package/src/cli/commands/mcp.d.ts +0 -3
- package/src/cli/commands/runScript/handleRunScript.d.ts +0 -3
- package/src/cli/commands/runScript/index.d.ts +0 -2
- package/src/cli/commands/runScript/output/index.d.ts +0 -1
- package/src/cli/commands/runScript/output/outputStyle.d.ts +0 -9
- package/src/cli/commands/runScript/output/renderGroupedOutput.d.ts +0 -75
- package/src/cli/commands/runScript/output/renderPlainOutput.d.ts +0 -24
- package/src/cli/commands/runScript/output/sanitizeChunk.d.ts +0 -4
- package/src/cli/createCli.d.ts +0 -26
- package/src/cli/fatalErrorLogger.d.ts +0 -1
- package/src/cli/globalOptions/globalOptions.d.ts +0 -43
- package/src/cli/globalOptions/globalOptionsConfig.d.ts +0 -52
- package/src/cli/globalOptions/globalOptionsConfig.mjs +0 -43
- package/src/cli/globalOptions/index.d.ts +0 -2
- package/src/cli/middleware.d.ts +0 -83
- package/src/config/index.d.ts +0 -3
- package/src/config/rootConfig/defineRootConfig.d.ts +0 -4
- package/src/config/rootConfig/errors.d.ts +0 -1
- package/src/config/rootConfig/index.d.ts +0 -5
- package/src/config/rootConfig/loadRootConfig.d.ts +0 -3
- package/src/config/rootConfig/rootConfig.d.ts +0 -25
- package/src/config/rootConfig/rootConfigLocation.d.ts +0 -2
- package/src/config/rootConfig/rootConfigLocation.mjs +0 -5
- package/src/config/rootConfig/rootConfigSchema.d.ts +0 -21
- package/src/config/userEnvVars/index.d.ts +0 -1
- package/src/config/userEnvVars/userEnvVars.d.ts +0 -13
- package/src/config/util/ajvTypes.d.ts +0 -10
- package/src/config/util/configLocation.d.ts +0 -18
- package/src/config/util/index.d.ts +0 -4
- package/src/config/util/loadConfig.d.ts +0 -18
- package/src/config/util/validateConfig.d.ts +0 -8
- package/src/config/workspaceConfig/defineWorkspaceConfig.d.ts +0 -7
- package/src/config/workspaceConfig/errors.d.ts +0 -1
- package/src/config/workspaceConfig/index.d.ts +0 -5
- package/src/config/workspaceConfig/loadWorkspaceConfig.d.ts +0 -3
- package/src/config/workspaceConfig/workspaceConfig.d.ts +0 -56
- package/src/config/workspaceConfig/workspaceConfigLocation.d.ts +0 -2
- package/src/config/workspaceConfig/workspaceConfigLocation.mjs +0 -5
- package/src/config/workspaceConfig/workspaceConfigSchema.d.ts +0 -56
- package/src/doctor/doctor.d.ts +0 -35
- package/src/doctor/index.d.ts +0 -1
- package/src/internal/bun/bunLock.d.ts +0 -20
- package/src/internal/bun/bunVersion.d.ts +0 -21
- package/src/internal/bun/index.d.ts +0 -2
- package/src/internal/core/error/error.d.ts +0 -13
- package/src/internal/core/error/index.d.ts +0 -1
- package/src/internal/core/index.d.ts +0 -4
- package/src/internal/core/json/index.d.ts +0 -2
- package/src/internal/core/json/json.d.ts +0 -49
- package/src/internal/core/json/jsonc.d.ts +0 -9
- package/src/internal/core/language/array/index.d.ts +0 -1
- package/src/internal/core/language/array/optionalArray.d.ts +0 -15
- package/src/internal/core/language/asyncIterable/asyncIterableQueue.d.ts +0 -16
- package/src/internal/core/language/asyncIterable/index.d.ts +0 -2
- package/src/internal/core/language/asyncIterable/mergeAsyncIterables.d.ts +0 -5
- package/src/internal/core/language/events/typedEventTarget.d.ts +0 -50
- package/src/internal/core/language/index.d.ts +0 -5
- package/src/internal/core/language/regex/index.d.ts +0 -1
- package/src/internal/core/language/regex/regex.d.ts +0 -3
- package/src/internal/core/language/string/id.d.ts +0 -1
- package/src/internal/core/language/string/index.d.ts +0 -1
- package/src/internal/core/language/string/utf/eastAsianWidth.d.ts +0 -16
- package/src/internal/core/language/string/utf/visibleLength.d.ts +0 -5
- package/src/internal/core/language/types/index.d.ts +0 -2
- package/src/internal/core/language/types/typeof.d.ts +0 -102
- package/src/internal/core/language/types/types.d.ts +0 -19
- package/src/internal/core/runtime/env.d.ts +0 -6
- package/src/internal/core/runtime/index.d.ts +0 -5
- package/src/internal/core/runtime/onExit.d.ts +0 -4
- package/src/internal/core/runtime/os.d.ts +0 -6
- package/src/internal/core/runtime/tempFile.d.ts +0 -20
- package/src/internal/core/runtime/terminal.d.ts +0 -1
- package/src/internal/docs/apiQuickstart.d.ts +0 -3
- package/src/internal/docs/apiQuickstart.mjs +0 -132
- package/src/internal/docs/cliQuickstart.d.ts +0 -2
- package/src/internal/docs/cliQuickstart.mjs +0 -86
- package/src/internal/docs/index.d.ts +0 -2
- package/src/internal/docs/index.mjs +0 -2
- package/src/internal/generated/aiDocs/docs.d.ts +0 -10
- package/src/internal/logger/index.d.ts +0 -1
- package/src/internal/logger/logger.d.ts +0 -45
- package/src/internal/version.d.ts +0 -1
- package/src/project/errors.d.ts +0 -5
- package/src/project/implementations/fileSystemProject.d.ts +0 -148
- package/src/project/implementations/memoryProject.d.ts +0 -41
- package/src/project/implementations/projectBase.d.ts +0 -37
- package/src/project/index.d.ts +0 -5
- package/src/project/project.d.ts +0 -79
- package/src/runScript/index.d.ts +0 -7
- package/src/runScript/output/index.d.ts +0 -3
- package/src/runScript/output/multiProcessOutput.d.ts +0 -14
- package/src/runScript/output/outputStream.d.ts +0 -1
- package/src/runScript/output/processOutput.d.ts +0 -33
- package/src/runScript/parallel.d.ts +0 -24
- package/src/runScript/recursion.d.ts +0 -4
- package/src/runScript/runScript.d.ts +0 -45
- package/src/runScript/runScripts.d.ts +0 -65
- package/src/runScript/scriptCommand.d.ts +0 -33
- package/src/runScript/scriptExecution.d.ts +0 -9
- package/src/runScript/scriptRuntimeMetadata.d.ts +0 -73
- package/src/runScript/scriptShellOption.d.ts +0 -8
- package/src/runScript/subprocesses.d.ts +0 -11
- package/src/workspaces/dependencyGraph/cycles.d.ts +0 -9
- package/src/workspaces/dependencyGraph/index.d.ts +0 -3
- package/src/workspaces/dependencyGraph/resolveDependencies.d.ts +0 -18
- package/src/workspaces/dependencyGraph/validateDependencyRules.d.ts +0 -7
- package/src/workspaces/errors.d.ts +0 -14
- package/src/workspaces/findWorkspaces.d.ts +0 -24
- package/src/workspaces/index.d.ts +0 -4
- package/src/workspaces/packageJson.d.ts +0 -31
- package/src/workspaces/workspace.d.ts +0 -21
- package/src/workspaces/workspacePattern.d.ts +0 -22
package/src/ai/mcp/tools.d.ts
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { type Command } from "commander";
|
|
2
|
-
import type { FileSystemProject } from "../../project/implementations/fileSystemProject";
|
|
3
|
-
import type { Workspace } from "../../workspaces";
|
|
4
|
-
import type { WriteOutputOptions } from "../createCli";
|
|
5
|
-
import type { CliMiddleware } from "../middleware";
|
|
6
|
-
import {
|
|
7
|
-
type CliGlobalCommandName,
|
|
8
|
-
type CliProjectCommandName,
|
|
9
|
-
} from "./commandsConfig";
|
|
10
|
-
/** @todo DRY use of output text in cases such as having no workspaces/scripts */
|
|
11
|
-
export type GlobalCommandContext = {
|
|
12
|
-
program: Command;
|
|
13
|
-
postTerminatorArgs: string[];
|
|
14
|
-
middleware: CliMiddleware;
|
|
15
|
-
outputWriters: Required<WriteOutputOptions>;
|
|
16
|
-
terminalWidth: number;
|
|
17
|
-
terminalHeight: number;
|
|
18
|
-
};
|
|
19
|
-
export type ProjectCommandContext = GlobalCommandContext & {
|
|
20
|
-
project: FileSystemProject;
|
|
21
|
-
projectError: Error | null;
|
|
22
|
-
};
|
|
23
|
-
/** Splits workspace patterns by whitespace, but allows escaping spaces via backslash */
|
|
24
|
-
export declare const splitWorkspacePatterns: (
|
|
25
|
-
workspacePatterns: string,
|
|
26
|
-
) => string[];
|
|
27
|
-
export declare const createWorkspaceInfoLines: (
|
|
28
|
-
workspace: Workspace,
|
|
29
|
-
) => string[];
|
|
30
|
-
export declare const createScriptInfoLines: (
|
|
31
|
-
script: string,
|
|
32
|
-
workspaces: Workspace[],
|
|
33
|
-
) => string[];
|
|
34
|
-
export declare const createJsonLines: (
|
|
35
|
-
data: unknown,
|
|
36
|
-
options: {
|
|
37
|
-
pretty: boolean;
|
|
38
|
-
},
|
|
39
|
-
) => string[];
|
|
40
|
-
export declare const commandOutputLogger: import("../../internal/logger").Logger;
|
|
41
|
-
export declare const handleGlobalCommand: <ActionArgs extends unknown[]>(
|
|
42
|
-
commandName: CliGlobalCommandName,
|
|
43
|
-
handler: (context: GlobalCommandContext, ...actionArgs: ActionArgs) => void,
|
|
44
|
-
) => (context: GlobalCommandContext) => Command;
|
|
45
|
-
export declare const handleProjectCommand: <ActionArgs extends unknown[]>(
|
|
46
|
-
commandName: CliProjectCommandName,
|
|
47
|
-
handler: (
|
|
48
|
-
context: Omit<ProjectCommandContext, "projectError">,
|
|
49
|
-
...actionArgs: ActionArgs
|
|
50
|
-
) => void,
|
|
51
|
-
) => (context: ProjectCommandContext) => Command;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
GlobalCommandContext,
|
|
3
|
-
ProjectCommandContext,
|
|
4
|
-
} from "./commandHandlerUtils";
|
|
5
|
-
export declare const defineGlobalCommands: (
|
|
6
|
-
context: GlobalCommandContext,
|
|
7
|
-
) => void;
|
|
8
|
-
export declare const defineProjectCommands: (
|
|
9
|
-
context: ProjectCommandContext,
|
|
10
|
-
) => void;
|
|
@@ -1,436 +0,0 @@
|
|
|
1
|
-
export interface CliCommandConfig {
|
|
2
|
-
command: string;
|
|
3
|
-
isGlobal: boolean;
|
|
4
|
-
aliases: string[] | readonly string[];
|
|
5
|
-
description: string;
|
|
6
|
-
options: Record<
|
|
7
|
-
string,
|
|
8
|
-
{
|
|
9
|
-
flags: string[] | readonly string[];
|
|
10
|
-
description: string;
|
|
11
|
-
values?: string[];
|
|
12
|
-
deprecated?: boolean;
|
|
13
|
-
}
|
|
14
|
-
>;
|
|
15
|
-
}
|
|
16
|
-
export type CliCommandName = keyof typeof CLI_COMMANDS_CONFIG;
|
|
17
|
-
export type CliGlobalCommandName = {
|
|
18
|
-
[K in CliCommandName]: (typeof CLI_COMMANDS_CONFIG)[K] extends {
|
|
19
|
-
isGlobal: true;
|
|
20
|
-
}
|
|
21
|
-
? K
|
|
22
|
-
: never;
|
|
23
|
-
}[CliCommandName];
|
|
24
|
-
export type CliProjectCommandName = Exclude<
|
|
25
|
-
CliCommandName,
|
|
26
|
-
CliGlobalCommandName
|
|
27
|
-
>;
|
|
28
|
-
export declare const JSON_FLAGS: readonly ["-j", "--json"];
|
|
29
|
-
export declare const CLI_COMMANDS_CONFIG: {
|
|
30
|
-
readonly doctor: {
|
|
31
|
-
readonly command: "doctor";
|
|
32
|
-
readonly isGlobal: true;
|
|
33
|
-
readonly aliases: [];
|
|
34
|
-
readonly description: "Print diagnostic information";
|
|
35
|
-
readonly options: {
|
|
36
|
-
readonly json: {
|
|
37
|
-
readonly flags: readonly ["-j", "--json"];
|
|
38
|
-
readonly description: "Output as JSON";
|
|
39
|
-
};
|
|
40
|
-
readonly pretty: {
|
|
41
|
-
readonly flags: ["-p", "--pretty"];
|
|
42
|
-
readonly description: "Pretty print JSON";
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
readonly listWorkspaces: {
|
|
47
|
-
readonly command: "list-workspaces [workspacePatterns...]";
|
|
48
|
-
readonly isGlobal: false;
|
|
49
|
-
readonly aliases: ["ls", "list"];
|
|
50
|
-
readonly description: "List all workspaces";
|
|
51
|
-
readonly options: {
|
|
52
|
-
readonly workspacePatterns: {
|
|
53
|
-
readonly flags: ["-W", "--workspace-patterns <patterns>"];
|
|
54
|
-
readonly description: "Workspace patterns to match, separated by spaces";
|
|
55
|
-
};
|
|
56
|
-
readonly nameOnly: {
|
|
57
|
-
readonly flags: ["-n", "--name-only"];
|
|
58
|
-
readonly description: "Only show workspace names";
|
|
59
|
-
};
|
|
60
|
-
readonly json: {
|
|
61
|
-
readonly flags: readonly ["-j", "--json"];
|
|
62
|
-
readonly description: "Output as JSON";
|
|
63
|
-
};
|
|
64
|
-
readonly pretty: {
|
|
65
|
-
readonly flags: ["-p", "--pretty"];
|
|
66
|
-
readonly description: "Pretty print JSON";
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
|
-
readonly listScripts: {
|
|
71
|
-
readonly command: "list-scripts";
|
|
72
|
-
readonly isGlobal: false;
|
|
73
|
-
readonly aliases: ["ls-scripts"];
|
|
74
|
-
readonly description: "List all scripts available with their workspaces";
|
|
75
|
-
readonly options: {
|
|
76
|
-
readonly nameOnly: {
|
|
77
|
-
readonly flags: ["-n", "--name-only"];
|
|
78
|
-
readonly description: "Only show script names";
|
|
79
|
-
};
|
|
80
|
-
readonly json: {
|
|
81
|
-
readonly flags: readonly ["-j", "--json"];
|
|
82
|
-
readonly description: "Output as JSON";
|
|
83
|
-
};
|
|
84
|
-
readonly pretty: {
|
|
85
|
-
readonly flags: ["-p", "--pretty"];
|
|
86
|
-
readonly description: "Pretty print JSON";
|
|
87
|
-
};
|
|
88
|
-
};
|
|
89
|
-
};
|
|
90
|
-
readonly workspaceInfo: {
|
|
91
|
-
readonly command: "workspace-info <workspaceName>";
|
|
92
|
-
readonly isGlobal: false;
|
|
93
|
-
readonly aliases: ["info"];
|
|
94
|
-
readonly description: "Show information about a workspace";
|
|
95
|
-
readonly options: {
|
|
96
|
-
readonly json: {
|
|
97
|
-
readonly flags: readonly ["-j", "--json"];
|
|
98
|
-
readonly description: "Output as JSON";
|
|
99
|
-
};
|
|
100
|
-
readonly pretty: {
|
|
101
|
-
readonly flags: ["-p", "--pretty"];
|
|
102
|
-
readonly description: "Pretty print JSON";
|
|
103
|
-
};
|
|
104
|
-
};
|
|
105
|
-
};
|
|
106
|
-
readonly scriptInfo: {
|
|
107
|
-
readonly command: "script-info <script>";
|
|
108
|
-
readonly isGlobal: false;
|
|
109
|
-
readonly aliases: [];
|
|
110
|
-
readonly description: "Show information about a script";
|
|
111
|
-
readonly options: {
|
|
112
|
-
readonly workspacesOnly: {
|
|
113
|
-
readonly flags: ["-w", "--workspaces-only"];
|
|
114
|
-
readonly description: "Only show script's workspace names";
|
|
115
|
-
};
|
|
116
|
-
readonly json: {
|
|
117
|
-
readonly flags: readonly ["-j", "--json"];
|
|
118
|
-
readonly description: "Output as JSON";
|
|
119
|
-
};
|
|
120
|
-
readonly pretty: {
|
|
121
|
-
readonly flags: ["-p", "--pretty"];
|
|
122
|
-
readonly description: "Pretty print JSON";
|
|
123
|
-
};
|
|
124
|
-
};
|
|
125
|
-
};
|
|
126
|
-
readonly listTags: {
|
|
127
|
-
readonly command: "list-tags";
|
|
128
|
-
readonly isGlobal: false;
|
|
129
|
-
readonly aliases: ["ls-tags"];
|
|
130
|
-
readonly description: "List all tags available with their workspaces";
|
|
131
|
-
readonly options: {
|
|
132
|
-
readonly nameOnly: {
|
|
133
|
-
readonly flags: ["-n", "--name-only"];
|
|
134
|
-
readonly description: "Only show tag names";
|
|
135
|
-
};
|
|
136
|
-
readonly json: {
|
|
137
|
-
readonly flags: readonly ["-j", "--json"];
|
|
138
|
-
readonly description: "Output as JSON";
|
|
139
|
-
};
|
|
140
|
-
readonly pretty: {
|
|
141
|
-
readonly flags: ["-p", "--pretty"];
|
|
142
|
-
readonly description: "Pretty print JSON";
|
|
143
|
-
};
|
|
144
|
-
};
|
|
145
|
-
};
|
|
146
|
-
readonly tagInfo: {
|
|
147
|
-
readonly command: "tag-info <tag>";
|
|
148
|
-
readonly isGlobal: false;
|
|
149
|
-
readonly aliases: [];
|
|
150
|
-
readonly description: "Show information about a tag";
|
|
151
|
-
readonly options: {
|
|
152
|
-
readonly json: {
|
|
153
|
-
readonly flags: readonly ["-j", "--json"];
|
|
154
|
-
readonly description: "Output as JSON";
|
|
155
|
-
};
|
|
156
|
-
readonly pretty: {
|
|
157
|
-
readonly flags: ["-p", "--pretty"];
|
|
158
|
-
readonly description: "Pretty print JSON";
|
|
159
|
-
};
|
|
160
|
-
};
|
|
161
|
-
};
|
|
162
|
-
readonly mcpServer: {
|
|
163
|
-
readonly command: "mcp-server";
|
|
164
|
-
readonly isGlobal: false;
|
|
165
|
-
readonly aliases: [];
|
|
166
|
-
readonly description: "Start the bun-workspaces MCP (Model Context Protocol) server over stdio";
|
|
167
|
-
readonly options: {};
|
|
168
|
-
};
|
|
169
|
-
readonly runScript: {
|
|
170
|
-
readonly command: "run-script [script] [workspacePatterns...]";
|
|
171
|
-
readonly isGlobal: false;
|
|
172
|
-
readonly aliases: ["run"];
|
|
173
|
-
readonly description: 'Run a script in all workspaces that have it in their "scripts" field in package.json';
|
|
174
|
-
readonly options: {
|
|
175
|
-
readonly script: {
|
|
176
|
-
readonly flags: ["-S", "--script <script>"];
|
|
177
|
-
readonly description: "The script to run.";
|
|
178
|
-
};
|
|
179
|
-
readonly workspacePatterns: {
|
|
180
|
-
readonly flags: ["-W", "--workspace-patterns <patterns>"];
|
|
181
|
-
readonly description: "Workspace patterns to match, separated by spaces.";
|
|
182
|
-
};
|
|
183
|
-
readonly parallel: {
|
|
184
|
-
readonly flags: ["-P", "--parallel [max]"];
|
|
185
|
-
readonly description: 'Run the scripts in parallel. Pass "false" for series, or a concurrency limit as a number, percentage ("50%"), "auto", "default", or"unbounded"';
|
|
186
|
-
};
|
|
187
|
-
readonly args: {
|
|
188
|
-
readonly flags: ["-a", "--args <args>"];
|
|
189
|
-
readonly description: "Args to append to the script command";
|
|
190
|
-
};
|
|
191
|
-
readonly outputStyle: {
|
|
192
|
-
readonly flags: ["-o", "--output-style <style>"];
|
|
193
|
-
readonly description: "The output style to use";
|
|
194
|
-
readonly values: ["grouped", "prefixed", "plain", "none"];
|
|
195
|
-
};
|
|
196
|
-
readonly groupedLines: {
|
|
197
|
-
readonly flags: ["-L", "--grouped-lines <count>"];
|
|
198
|
-
readonly description: 'With grouped output, the max preview lines (number or "auto", default "auto")';
|
|
199
|
-
};
|
|
200
|
-
readonly noPrefix: {
|
|
201
|
-
readonly flags: ["-N", "--no-prefix"];
|
|
202
|
-
readonly description: "(DEPRECATED) Use --output-style=plain instead";
|
|
203
|
-
readonly deprecated: true;
|
|
204
|
-
};
|
|
205
|
-
readonly inline: {
|
|
206
|
-
readonly flags: ["-i", "--inline"];
|
|
207
|
-
readonly description: "Run the script as an inline command from the workspace directory";
|
|
208
|
-
};
|
|
209
|
-
readonly inlineName: {
|
|
210
|
-
readonly flags: ["-I", "--inline-name <name>"];
|
|
211
|
-
readonly description: "An optional name for the script when --inline is passed";
|
|
212
|
-
};
|
|
213
|
-
readonly shell: {
|
|
214
|
-
readonly flags: ["-s", "--shell <shell>"];
|
|
215
|
-
readonly values: ["bun", "system", "default"];
|
|
216
|
-
readonly description: "When using --inline, the shell to use to run the script";
|
|
217
|
-
};
|
|
218
|
-
readonly depOrder: {
|
|
219
|
-
readonly flags: ["-d", "--dep-order"];
|
|
220
|
-
readonly description: "Scripts for dependent workspaces run only after their dependencies";
|
|
221
|
-
};
|
|
222
|
-
readonly ignoreDepFailure: {
|
|
223
|
-
readonly flags: ["-f", "--ignore-dep-failure"];
|
|
224
|
-
readonly description: "In dependency order, continue running scripts even if a dependency fails";
|
|
225
|
-
};
|
|
226
|
-
readonly jsonOutfile: {
|
|
227
|
-
readonly flags: ["-j", "--json-outfile <file>"];
|
|
228
|
-
readonly description: "Output results in a JSON file";
|
|
229
|
-
};
|
|
230
|
-
};
|
|
231
|
-
};
|
|
232
|
-
};
|
|
233
|
-
export declare const getCliCommandConfig: (commandName: CliCommandName) =>
|
|
234
|
-
| {
|
|
235
|
-
readonly command: "doctor";
|
|
236
|
-
readonly isGlobal: true;
|
|
237
|
-
readonly aliases: [];
|
|
238
|
-
readonly description: "Print diagnostic information";
|
|
239
|
-
readonly options: {
|
|
240
|
-
readonly json: {
|
|
241
|
-
readonly flags: readonly ["-j", "--json"];
|
|
242
|
-
readonly description: "Output as JSON";
|
|
243
|
-
};
|
|
244
|
-
readonly pretty: {
|
|
245
|
-
readonly flags: ["-p", "--pretty"];
|
|
246
|
-
readonly description: "Pretty print JSON";
|
|
247
|
-
};
|
|
248
|
-
};
|
|
249
|
-
}
|
|
250
|
-
| {
|
|
251
|
-
readonly command: "list-workspaces [workspacePatterns...]";
|
|
252
|
-
readonly isGlobal: false;
|
|
253
|
-
readonly aliases: ["ls", "list"];
|
|
254
|
-
readonly description: "List all workspaces";
|
|
255
|
-
readonly options: {
|
|
256
|
-
readonly workspacePatterns: {
|
|
257
|
-
readonly flags: ["-W", "--workspace-patterns <patterns>"];
|
|
258
|
-
readonly description: "Workspace patterns to match, separated by spaces";
|
|
259
|
-
};
|
|
260
|
-
readonly nameOnly: {
|
|
261
|
-
readonly flags: ["-n", "--name-only"];
|
|
262
|
-
readonly description: "Only show workspace names";
|
|
263
|
-
};
|
|
264
|
-
readonly json: {
|
|
265
|
-
readonly flags: readonly ["-j", "--json"];
|
|
266
|
-
readonly description: "Output as JSON";
|
|
267
|
-
};
|
|
268
|
-
readonly pretty: {
|
|
269
|
-
readonly flags: ["-p", "--pretty"];
|
|
270
|
-
readonly description: "Pretty print JSON";
|
|
271
|
-
};
|
|
272
|
-
};
|
|
273
|
-
}
|
|
274
|
-
| {
|
|
275
|
-
readonly command: "list-scripts";
|
|
276
|
-
readonly isGlobal: false;
|
|
277
|
-
readonly aliases: ["ls-scripts"];
|
|
278
|
-
readonly description: "List all scripts available with their workspaces";
|
|
279
|
-
readonly options: {
|
|
280
|
-
readonly nameOnly: {
|
|
281
|
-
readonly flags: ["-n", "--name-only"];
|
|
282
|
-
readonly description: "Only show script names";
|
|
283
|
-
};
|
|
284
|
-
readonly json: {
|
|
285
|
-
readonly flags: readonly ["-j", "--json"];
|
|
286
|
-
readonly description: "Output as JSON";
|
|
287
|
-
};
|
|
288
|
-
readonly pretty: {
|
|
289
|
-
readonly flags: ["-p", "--pretty"];
|
|
290
|
-
readonly description: "Pretty print JSON";
|
|
291
|
-
};
|
|
292
|
-
};
|
|
293
|
-
}
|
|
294
|
-
| {
|
|
295
|
-
readonly command: "workspace-info <workspaceName>";
|
|
296
|
-
readonly isGlobal: false;
|
|
297
|
-
readonly aliases: ["info"];
|
|
298
|
-
readonly description: "Show information about a workspace";
|
|
299
|
-
readonly options: {
|
|
300
|
-
readonly json: {
|
|
301
|
-
readonly flags: readonly ["-j", "--json"];
|
|
302
|
-
readonly description: "Output as JSON";
|
|
303
|
-
};
|
|
304
|
-
readonly pretty: {
|
|
305
|
-
readonly flags: ["-p", "--pretty"];
|
|
306
|
-
readonly description: "Pretty print JSON";
|
|
307
|
-
};
|
|
308
|
-
};
|
|
309
|
-
}
|
|
310
|
-
| {
|
|
311
|
-
readonly command: "script-info <script>";
|
|
312
|
-
readonly isGlobal: false;
|
|
313
|
-
readonly aliases: [];
|
|
314
|
-
readonly description: "Show information about a script";
|
|
315
|
-
readonly options: {
|
|
316
|
-
readonly workspacesOnly: {
|
|
317
|
-
readonly flags: ["-w", "--workspaces-only"];
|
|
318
|
-
readonly description: "Only show script's workspace names";
|
|
319
|
-
};
|
|
320
|
-
readonly json: {
|
|
321
|
-
readonly flags: readonly ["-j", "--json"];
|
|
322
|
-
readonly description: "Output as JSON";
|
|
323
|
-
};
|
|
324
|
-
readonly pretty: {
|
|
325
|
-
readonly flags: ["-p", "--pretty"];
|
|
326
|
-
readonly description: "Pretty print JSON";
|
|
327
|
-
};
|
|
328
|
-
};
|
|
329
|
-
}
|
|
330
|
-
| {
|
|
331
|
-
readonly command: "list-tags";
|
|
332
|
-
readonly isGlobal: false;
|
|
333
|
-
readonly aliases: ["ls-tags"];
|
|
334
|
-
readonly description: "List all tags available with their workspaces";
|
|
335
|
-
readonly options: {
|
|
336
|
-
readonly nameOnly: {
|
|
337
|
-
readonly flags: ["-n", "--name-only"];
|
|
338
|
-
readonly description: "Only show tag names";
|
|
339
|
-
};
|
|
340
|
-
readonly json: {
|
|
341
|
-
readonly flags: readonly ["-j", "--json"];
|
|
342
|
-
readonly description: "Output as JSON";
|
|
343
|
-
};
|
|
344
|
-
readonly pretty: {
|
|
345
|
-
readonly flags: ["-p", "--pretty"];
|
|
346
|
-
readonly description: "Pretty print JSON";
|
|
347
|
-
};
|
|
348
|
-
};
|
|
349
|
-
}
|
|
350
|
-
| {
|
|
351
|
-
readonly command: "tag-info <tag>";
|
|
352
|
-
readonly isGlobal: false;
|
|
353
|
-
readonly aliases: [];
|
|
354
|
-
readonly description: "Show information about a tag";
|
|
355
|
-
readonly options: {
|
|
356
|
-
readonly json: {
|
|
357
|
-
readonly flags: readonly ["-j", "--json"];
|
|
358
|
-
readonly description: "Output as JSON";
|
|
359
|
-
};
|
|
360
|
-
readonly pretty: {
|
|
361
|
-
readonly flags: ["-p", "--pretty"];
|
|
362
|
-
readonly description: "Pretty print JSON";
|
|
363
|
-
};
|
|
364
|
-
};
|
|
365
|
-
}
|
|
366
|
-
| {
|
|
367
|
-
readonly command: "mcp-server";
|
|
368
|
-
readonly isGlobal: false;
|
|
369
|
-
readonly aliases: [];
|
|
370
|
-
readonly description: "Start the bun-workspaces MCP (Model Context Protocol) server over stdio";
|
|
371
|
-
readonly options: {};
|
|
372
|
-
}
|
|
373
|
-
| {
|
|
374
|
-
readonly command: "run-script [script] [workspacePatterns...]";
|
|
375
|
-
readonly isGlobal: false;
|
|
376
|
-
readonly aliases: ["run"];
|
|
377
|
-
readonly description: 'Run a script in all workspaces that have it in their "scripts" field in package.json';
|
|
378
|
-
readonly options: {
|
|
379
|
-
readonly script: {
|
|
380
|
-
readonly flags: ["-S", "--script <script>"];
|
|
381
|
-
readonly description: "The script to run.";
|
|
382
|
-
};
|
|
383
|
-
readonly workspacePatterns: {
|
|
384
|
-
readonly flags: ["-W", "--workspace-patterns <patterns>"];
|
|
385
|
-
readonly description: "Workspace patterns to match, separated by spaces.";
|
|
386
|
-
};
|
|
387
|
-
readonly parallel: {
|
|
388
|
-
readonly flags: ["-P", "--parallel [max]"];
|
|
389
|
-
readonly description: 'Run the scripts in parallel. Pass "false" for series, or a concurrency limit as a number, percentage ("50%"), "auto", "default", or"unbounded"';
|
|
390
|
-
};
|
|
391
|
-
readonly args: {
|
|
392
|
-
readonly flags: ["-a", "--args <args>"];
|
|
393
|
-
readonly description: "Args to append to the script command";
|
|
394
|
-
};
|
|
395
|
-
readonly outputStyle: {
|
|
396
|
-
readonly flags: ["-o", "--output-style <style>"];
|
|
397
|
-
readonly description: "The output style to use";
|
|
398
|
-
readonly values: ["grouped", "prefixed", "plain", "none"];
|
|
399
|
-
};
|
|
400
|
-
readonly groupedLines: {
|
|
401
|
-
readonly flags: ["-L", "--grouped-lines <count>"];
|
|
402
|
-
readonly description: 'With grouped output, the max preview lines (number or "auto", default "auto")';
|
|
403
|
-
};
|
|
404
|
-
readonly noPrefix: {
|
|
405
|
-
readonly flags: ["-N", "--no-prefix"];
|
|
406
|
-
readonly description: "(DEPRECATED) Use --output-style=plain instead";
|
|
407
|
-
readonly deprecated: true;
|
|
408
|
-
};
|
|
409
|
-
readonly inline: {
|
|
410
|
-
readonly flags: ["-i", "--inline"];
|
|
411
|
-
readonly description: "Run the script as an inline command from the workspace directory";
|
|
412
|
-
};
|
|
413
|
-
readonly inlineName: {
|
|
414
|
-
readonly flags: ["-I", "--inline-name <name>"];
|
|
415
|
-
readonly description: "An optional name for the script when --inline is passed";
|
|
416
|
-
};
|
|
417
|
-
readonly shell: {
|
|
418
|
-
readonly flags: ["-s", "--shell <shell>"];
|
|
419
|
-
readonly values: ["bun", "system", "default"];
|
|
420
|
-
readonly description: "When using --inline, the shell to use to run the script";
|
|
421
|
-
};
|
|
422
|
-
readonly depOrder: {
|
|
423
|
-
readonly flags: ["-d", "--dep-order"];
|
|
424
|
-
readonly description: "Scripts for dependent workspaces run only after their dependencies";
|
|
425
|
-
};
|
|
426
|
-
readonly ignoreDepFailure: {
|
|
427
|
-
readonly flags: ["-f", "--ignore-dep-failure"];
|
|
428
|
-
readonly description: "In dependency order, continue running scripts even if a dependency fails";
|
|
429
|
-
};
|
|
430
|
-
readonly jsonOutfile: {
|
|
431
|
-
readonly flags: ["-j", "--json-outfile <file>"];
|
|
432
|
-
readonly description: "Output results in a JSON file";
|
|
433
|
-
};
|
|
434
|
-
};
|
|
435
|
-
};
|
|
436
|
-
export declare const getCliCommandNames: () => CliCommandName[];
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export declare const doctor: (
|
|
2
|
-
context: import("./commandHandlerUtils").GlobalCommandContext,
|
|
3
|
-
) => import("commander").Command;
|
|
4
|
-
export declare const listWorkspaces: (
|
|
5
|
-
context: import("./commandHandlerUtils").ProjectCommandContext,
|
|
6
|
-
) => import("commander").Command;
|
|
7
|
-
export declare const listScripts: (
|
|
8
|
-
context: import("./commandHandlerUtils").ProjectCommandContext,
|
|
9
|
-
) => import("commander").Command;
|
|
10
|
-
export declare const workspaceInfo: (
|
|
11
|
-
context: import("./commandHandlerUtils").ProjectCommandContext,
|
|
12
|
-
) => import("commander").Command;
|
|
13
|
-
export declare const scriptInfo: (
|
|
14
|
-
context: import("./commandHandlerUtils").ProjectCommandContext,
|
|
15
|
-
) => import("commander").Command;
|
|
16
|
-
export declare const listTags: (
|
|
17
|
-
context: import("./commandHandlerUtils").ProjectCommandContext,
|
|
18
|
-
) => import("commander").Command;
|
|
19
|
-
export declare const tagInfo: (
|
|
20
|
-
context: import("./commandHandlerUtils").ProjectCommandContext,
|
|
21
|
-
) => import("commander").Command;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./renderPlainOutput";
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare const OUTPUT_STYLE_VALUES: readonly [
|
|
2
|
-
"grouped",
|
|
3
|
-
"prefixed",
|
|
4
|
-
"plain",
|
|
5
|
-
"none",
|
|
6
|
-
];
|
|
7
|
-
export type OutputStyleName = (typeof OUTPUT_STYLE_VALUES)[number];
|
|
8
|
-
export declare const getDefaultOutputStyle: () => OutputStyleName;
|
|
9
|
-
export declare const validateOutputStyle: (style: string) => OutputStyleName;
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
type TypedEvent,
|
|
3
|
-
TypedEventTarget,
|
|
4
|
-
} from "../../../../internal/core/language/events/typedEventTarget";
|
|
5
|
-
import type {
|
|
6
|
-
RunScriptAcrossWorkspacesOutput,
|
|
7
|
-
RunWorkspaceScriptMetadata,
|
|
8
|
-
} from "../../../../project";
|
|
9
|
-
import type {
|
|
10
|
-
RunScriptExit,
|
|
11
|
-
RunScriptsSummary,
|
|
12
|
-
ScriptEventName,
|
|
13
|
-
} from "../../../../runScript";
|
|
14
|
-
import type { Workspace } from "../../../../workspaces";
|
|
15
|
-
import type { WriteOutputOptions } from "../../../createCli";
|
|
16
|
-
type ScriptEvent = TypedEvent<
|
|
17
|
-
ScriptEventName,
|
|
18
|
-
{
|
|
19
|
-
workspace: Workspace;
|
|
20
|
-
exitResult: RunScriptExit<RunWorkspaceScriptMetadata> | null;
|
|
21
|
-
}
|
|
22
|
-
>;
|
|
23
|
-
declare class ScriptEventTarget extends TypedEventTarget<{
|
|
24
|
-
[key in ScriptEvent["type"]]: ScriptEvent;
|
|
25
|
-
}> {}
|
|
26
|
-
export declare const createScriptEventTarget: () => ScriptEventTarget;
|
|
27
|
-
export declare const createScriptEvent: {
|
|
28
|
-
start: (
|
|
29
|
-
properties: Omit<
|
|
30
|
-
{
|
|
31
|
-
type: ScriptEventName;
|
|
32
|
-
} & {
|
|
33
|
-
workspace: Workspace;
|
|
34
|
-
exitResult: RunScriptExit<RunWorkspaceScriptMetadata> | null;
|
|
35
|
-
},
|
|
36
|
-
"type"
|
|
37
|
-
>,
|
|
38
|
-
options?: EventInit,
|
|
39
|
-
) => ScriptEvent;
|
|
40
|
-
skip: (
|
|
41
|
-
properties: Omit<
|
|
42
|
-
{
|
|
43
|
-
type: ScriptEventName;
|
|
44
|
-
} & {
|
|
45
|
-
workspace: Workspace;
|
|
46
|
-
exitResult: RunScriptExit<RunWorkspaceScriptMetadata> | null;
|
|
47
|
-
},
|
|
48
|
-
"type"
|
|
49
|
-
>,
|
|
50
|
-
options?: EventInit,
|
|
51
|
-
) => ScriptEvent;
|
|
52
|
-
exit: (
|
|
53
|
-
properties: Omit<
|
|
54
|
-
{
|
|
55
|
-
type: ScriptEventName;
|
|
56
|
-
} & {
|
|
57
|
-
workspace: Workspace;
|
|
58
|
-
exitResult: RunScriptExit<RunWorkspaceScriptMetadata> | null;
|
|
59
|
-
},
|
|
60
|
-
"type"
|
|
61
|
-
>,
|
|
62
|
-
options?: EventInit,
|
|
63
|
-
) => ScriptEvent;
|
|
64
|
-
};
|
|
65
|
-
export declare const renderGroupedOutput: (
|
|
66
|
-
workspaces: Workspace[],
|
|
67
|
-
output: RunScriptAcrossWorkspacesOutput,
|
|
68
|
-
summary: Promise<RunScriptsSummary<RunWorkspaceScriptMetadata>>,
|
|
69
|
-
scriptEventTarget: ScriptEventTarget,
|
|
70
|
-
activeScriptLines: number | "all" | "auto",
|
|
71
|
-
outputWriters: Required<WriteOutputOptions>,
|
|
72
|
-
terminalWidth: number,
|
|
73
|
-
terminalHeight: number,
|
|
74
|
-
) => Promise<void>;
|
|
75
|
-
export {};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { RunScriptAcrossWorkspacesOutput } from "../../../../project";
|
|
2
|
-
import type { WriteOutputOptions } from "../../../createCli";
|
|
3
|
-
export type RenderPlainOutputOptions = {
|
|
4
|
-
stripDisruptiveControls?: boolean;
|
|
5
|
-
prefix?: boolean;
|
|
6
|
-
};
|
|
7
|
-
export declare function generatePlainOutputLines(
|
|
8
|
-
output: RunScriptAcrossWorkspacesOutput,
|
|
9
|
-
{ stripDisruptiveControls, prefix }: RenderPlainOutputOptions,
|
|
10
|
-
): AsyncGenerator<
|
|
11
|
-
{
|
|
12
|
-
line: string;
|
|
13
|
-
metadata: import("../../../..").RunWorkspaceScriptMetadata & {
|
|
14
|
-
streamName: import("../../../..").OutputStreamName;
|
|
15
|
-
};
|
|
16
|
-
},
|
|
17
|
-
void,
|
|
18
|
-
unknown
|
|
19
|
-
>;
|
|
20
|
-
export declare const renderPlainOutput: (
|
|
21
|
-
output: RunScriptAcrossWorkspacesOutput,
|
|
22
|
-
outputWriters: Required<WriteOutputOptions>,
|
|
23
|
-
{ stripDisruptiveControls, prefix }: RenderPlainOutputOptions,
|
|
24
|
-
) => Promise<void>;
|