bun-workspaces 1.5.0 → 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 +2 -3
- 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 +4 -4
- 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/cli/index.mjs
CHANGED
package/src/cli/middleware.mjs
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { defineErrors } from "../internal/core/index.mjs";
|
|
2
|
-
import { logger } from "../internal/logger/index.mjs";
|
|
3
|
-
// CONCATENATED MODULE: external "../internal/logger/index.mjs"
|
|
4
|
-
// CONCATENATED MODULE: ./src/cli/middleware.ts
|
|
2
|
+
import { logger } from "../internal/logger/index.mjs";
|
|
5
3
|
|
|
6
4
|
const MIDDLEWARE_ERRORS = defineErrors("MiddlewareHandlerFailed");
|
|
7
5
|
const resolveMiddleware = (defaultMiddleware, runMiddleware) =>
|
package/src/config/index.mjs
CHANGED
package/src/config/public.d.ts
CHANGED
|
@@ -1,10 +1,93 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
// Generated by dts-bundle-generator v9.5.1
|
|
2
|
+
|
|
3
|
+
declare const SCRIPT_SHELL_OPTIONS: readonly ["bun", "system"];
|
|
4
|
+
export type ScriptShellOption = (typeof SCRIPT_SHELL_OPTIONS)[number];
|
|
5
|
+
export type ShellOption = ScriptShellOption | "default";
|
|
6
|
+
declare const PARALLEL_MAX_VALUES: readonly ["auto", "unbounded", "default"];
|
|
7
|
+
export type PercentageValue = `${number}%`;
|
|
8
|
+
/**
|
|
9
|
+
* The maximum number of scripts that can run in parallel.
|
|
10
|
+
*
|
|
11
|
+
* - `number`: The exact number of scripts that can run in parallel.
|
|
12
|
+
* - `"auto"`: The number of available logical CPU threads.
|
|
13
|
+
* - `"unbounded"`: No limit.
|
|
14
|
+
* - `"default"`: The default value, either "auto" or the value of the root config's "parallelMax" option.
|
|
15
|
+
* - `"${number}%"`: A percentage of the available logical CPU threads (e.g. "50%").
|
|
16
|
+
*/
|
|
17
|
+
export type ParallelMaxValue =
|
|
18
|
+
| number
|
|
19
|
+
| (typeof PARALLEL_MAX_VALUES)[number]
|
|
20
|
+
| PercentageValue;
|
|
21
|
+
export type WorkspaceDependenciesRule = {
|
|
22
|
+
allowPatterns?: string[];
|
|
23
|
+
denyPatterns?: string[];
|
|
24
|
+
};
|
|
25
|
+
export type WorkspaceRules = {
|
|
26
|
+
workspaceDependencies?: WorkspaceDependenciesRule;
|
|
27
|
+
};
|
|
28
|
+
/** Configuration that applies to a specific package.json script */
|
|
29
|
+
export type ScriptConfig = {
|
|
30
|
+
/**
|
|
31
|
+
* The order in which the script should be executed.
|
|
32
|
+
*
|
|
33
|
+
* Scripts with no `order` set will be executed in alphanumerical order
|
|
34
|
+
* of their relative path from the project root.
|
|
35
|
+
*/
|
|
36
|
+
order?: number;
|
|
37
|
+
};
|
|
38
|
+
/** Configuration that applies to a specific workspace */
|
|
39
|
+
export type WorkspaceConfig = {
|
|
40
|
+
/**
|
|
41
|
+
* An alias or list of aliases for the workspace.
|
|
42
|
+
*
|
|
43
|
+
* These must be unique to other workspaces' aliases
|
|
44
|
+
* and package.json names.
|
|
45
|
+
*/
|
|
46
|
+
alias?: string | string[];
|
|
47
|
+
/**
|
|
48
|
+
* Tags for the workspace.
|
|
49
|
+
*
|
|
50
|
+
* These can be used to group workspaces by a common tag.
|
|
51
|
+
*/
|
|
52
|
+
tags?: string[];
|
|
53
|
+
/**
|
|
54
|
+
* Configuration that maps to a script name in the workspace's package.json.
|
|
55
|
+
*/
|
|
56
|
+
scripts?: Record<string, ScriptConfig>;
|
|
57
|
+
/**
|
|
58
|
+
* Rules that validate the workspace.
|
|
59
|
+
*/
|
|
60
|
+
rules?: WorkspaceRules;
|
|
61
|
+
};
|
|
62
|
+
export type ResolvedWorkspaceConfig = {
|
|
63
|
+
aliases: string[];
|
|
64
|
+
tags: string[];
|
|
65
|
+
scripts: Record<string, ScriptConfig>;
|
|
66
|
+
rules: WorkspaceRules;
|
|
67
|
+
};
|
|
68
|
+
export type RootConfig = {
|
|
69
|
+
defaults?: {
|
|
70
|
+
/** The maximum number of scripts that can run in parallel. (default: "auto") */
|
|
71
|
+
parallelMax?: ParallelMaxValue;
|
|
72
|
+
/** The shell to use for inline scripts. (default: "bun") */
|
|
73
|
+
shell?: ShellOption;
|
|
74
|
+
/** Whether to include the root workspace in the workspaces list by default. (default: false) */
|
|
75
|
+
includeRootWorkspace?: boolean;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
export type ResolvedRootConfig = {
|
|
79
|
+
defaults: {
|
|
80
|
+
parallelMax: number;
|
|
81
|
+
shell: ScriptShellOption;
|
|
82
|
+
/** `undefined` means the value was not set in the input config */
|
|
83
|
+
includeRootWorkspace: boolean | undefined;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
export declare const defineRootConfig: (
|
|
87
|
+
config: RootConfig,
|
|
88
|
+
) => ResolvedRootConfig;
|
|
89
|
+
export declare const defineWorkspaceConfig: (
|
|
90
|
+
config: WorkspaceConfig,
|
|
91
|
+
) => ResolvedWorkspaceConfig;
|
|
92
|
+
|
|
93
|
+
export {};
|
package/src/config/public.mjs
CHANGED
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
// CONCATENATED MODULE: external "./workspaceConfig/defineWorkspaceConfig.mjs"
|
|
4
|
-
// CONCATENATED MODULE: ./src/config/public.ts
|
|
5
|
-
|
|
6
|
-
export { defineRootConfig, defineWorkspaceConfig };
|
|
1
|
+
export { defineRootConfig } from "./rootConfig/defineRootConfig.mjs";
|
|
2
|
+
export { defineWorkspaceConfig } from "./workspaceConfig/defineWorkspaceConfig.mjs";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { resolveRootConfig } from "./rootConfig.mjs";
|
|
2
|
-
// CONCATENATED MODULE: ./src/config/rootConfig/defineRootConfig.ts
|
|
1
|
+
import { resolveRootConfig } from "./rootConfig.mjs";
|
|
3
2
|
|
|
4
3
|
const defineRootConfig = (config) => resolveRootConfig(config);
|
|
5
4
|
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { defineErrors } from "../../internal/core/index.mjs";
|
|
2
|
-
// CONCATENATED MODULE: ./src/config/rootConfig/errors.ts
|
|
1
|
+
import { defineErrors } from "../../internal/core/index.mjs";
|
|
3
2
|
|
|
4
3
|
const ROOT_CONFIG_ERRORS = defineErrors("InvalidRootConfig");
|
|
5
4
|
|
|
@@ -3,10 +3,7 @@ import { createDefaultRootConfig, resolveRootConfig } from "./rootConfig.mjs";
|
|
|
3
3
|
import {
|
|
4
4
|
ROOT_CONFIG_FILE_NAME,
|
|
5
5
|
ROOT_CONFIG_PACKAGE_JSON_KEY,
|
|
6
|
-
} from "
|
|
7
|
-
// CONCATENATED MODULE: external "./rootConfig.mjs"
|
|
8
|
-
// CONCATENATED MODULE: external "./rootConfigLocation.mjs"
|
|
9
|
-
// CONCATENATED MODULE: ./src/config/rootConfig/loadRootConfig.ts
|
|
6
|
+
} from "../../8529.mjs";
|
|
10
7
|
|
|
11
8
|
const loadRootConfig = (rootDirectory) => {
|
|
12
9
|
const config = loadConfig(
|
|
@@ -5,12 +5,7 @@ import {
|
|
|
5
5
|
} from "../../runScript/index.mjs";
|
|
6
6
|
import { getUserEnvVar } from "../userEnvVars/index.mjs";
|
|
7
7
|
import { executeValidator } from "../util/validateConfig.mjs";
|
|
8
|
-
import { ROOT_CONFIG_ERRORS } from "./errors.mjs";
|
|
9
|
-
// CONCATENATED MODULE: external "../../runScript/index.mjs"
|
|
10
|
-
// CONCATENATED MODULE: external "../userEnvVars/index.mjs"
|
|
11
|
-
// CONCATENATED MODULE: external "../util/validateConfig.mjs"
|
|
12
|
-
// CONCATENATED MODULE: external "./errors.mjs"
|
|
13
|
-
// CONCATENATED MODULE: ./src/config/rootConfig/rootConfig.ts
|
|
8
|
+
import { ROOT_CONFIG_ERRORS } from "./errors.mjs";
|
|
14
9
|
|
|
15
10
|
const rootConfig_validateRootConfig = (config) =>
|
|
16
11
|
executeValidator(
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
parallelMaxDefault: "BW_PARALLEL_MAX_DEFAULT",
|
|
4
|
-
scriptShellDefault: "BW_SHELL_DEFAULT",
|
|
5
|
-
includeRootWorkspaceDefault: "BW_INCLUDE_ROOT_WORKSPACE_DEFAULT",
|
|
6
|
-
};
|
|
1
|
+
import { USER_ENV_VARS } from "../../5166.mjs";
|
|
2
|
+
|
|
7
3
|
const getUserEnvVar = (key) => process.env[USER_ENV_VARS[key]];
|
|
8
|
-
const getUserEnvVarName = (key) => USER_ENV_VARS[key];
|
|
9
4
|
|
|
10
|
-
export {
|
|
5
|
+
export { getUserEnvVar };
|
|
@@ -5,12 +5,7 @@ import { logger } from "../../internal/logger/index.mjs";
|
|
|
5
5
|
import {
|
|
6
6
|
CONFIG_LOCATION_TYPES,
|
|
7
7
|
createConfigLocationPath,
|
|
8
|
-
} from "
|
|
9
|
-
// CONCATENATED MODULE: external "path"
|
|
10
|
-
// CONCATENATED MODULE: external "../../internal/core/index.mjs"
|
|
11
|
-
// CONCATENATED MODULE: external "../../internal/logger/index.mjs"
|
|
12
|
-
// CONCATENATED MODULE: external "./configLocation.mjs"
|
|
13
|
-
// CONCATENATED MODULE: ./src/config/util/loadConfig.ts
|
|
8
|
+
} from "../../8529.mjs";
|
|
14
9
|
|
|
15
10
|
const LOAD_CONFIG_ERRORS = defineErrors(
|
|
16
11
|
"InvalidJSON",
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { resolveWorkspaceConfig } from "./workspaceConfig.mjs";
|
|
2
|
-
// CONCATENATED MODULE: ./src/config/workspaceConfig/defineWorkspaceConfig.ts
|
|
1
|
+
import { resolveWorkspaceConfig } from "./workspaceConfig.mjs";
|
|
3
2
|
|
|
4
3
|
const defineWorkspaceConfig = (config) => {
|
|
5
4
|
if (Array.isArray(config.aliases)) {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { defineErrors } from "../../internal/core/index.mjs";
|
|
2
|
-
// CONCATENATED MODULE: ./src/config/workspaceConfig/errors.ts
|
|
1
|
+
import { defineErrors } from "../../internal/core/index.mjs";
|
|
3
2
|
|
|
4
3
|
const WORKSPACE_CONFIG_ERRORS = defineErrors("InvalidWorkspaceConfig");
|
|
5
4
|
|
|
@@ -2,4 +2,5 @@ export * from "./workspaceConfigSchema.mjs";
|
|
|
2
2
|
export * from "./workspaceConfig.mjs";
|
|
3
3
|
export * from "./loadWorkspaceConfig.mjs";
|
|
4
4
|
export * from "./errors.mjs";
|
|
5
|
-
|
|
5
|
+
|
|
6
|
+
export {};
|
|
@@ -3,20 +3,14 @@ import {
|
|
|
3
3
|
createDefaultWorkspaceConfig,
|
|
4
4
|
resolveWorkspaceConfig,
|
|
5
5
|
} from "./workspaceConfig.mjs";
|
|
6
|
-
import {
|
|
7
|
-
WORKSPACE_CONFIG_FILE_NAME,
|
|
8
|
-
WORKSPACE_CONFIG_PACKAGE_JSON_KEY,
|
|
9
|
-
} from "./workspaceConfigLocation.mjs"; // CONCATENATED MODULE: external "../util/loadConfig.mjs"
|
|
10
|
-
// CONCATENATED MODULE: external "./workspaceConfig.mjs"
|
|
11
|
-
// CONCATENATED MODULE: external "./workspaceConfigLocation.mjs"
|
|
12
|
-
// CONCATENATED MODULE: ./src/config/workspaceConfig/loadWorkspaceConfig.ts
|
|
6
|
+
import { WORKSPACE_CONFIG_FILE_NAME } from "../../8529.mjs";
|
|
13
7
|
|
|
14
8
|
const loadWorkspaceConfig = (workspacePath) => {
|
|
15
9
|
const config = loadConfig(
|
|
16
10
|
"workspace",
|
|
17
11
|
workspacePath,
|
|
18
12
|
WORKSPACE_CONFIG_FILE_NAME,
|
|
19
|
-
WORKSPACE_CONFIG_PACKAGE_JSON_KEY,
|
|
13
|
+
/* inlined export .WORKSPACE_CONFIG_PACKAGE_JSON_KEY */ "bw",
|
|
20
14
|
(content) => resolveWorkspaceConfig(content),
|
|
21
15
|
);
|
|
22
16
|
return config ?? createDefaultWorkspaceConfig();
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import { resolveOptionalArray } from "../../internal/core/index.mjs";
|
|
2
2
|
import validateWorkspaceConfig from "../../internal/generated/ajv/validateWorkspaceConfig.mjs";
|
|
3
3
|
import { executeValidator } from "../util/validateConfig.mjs";
|
|
4
|
-
import { WORKSPACE_CONFIG_ERRORS } from "./errors.mjs";
|
|
5
|
-
// CONCATENATED MODULE: external "../../internal/generated/ajv/validateWorkspaceConfig.mjs"
|
|
6
|
-
// CONCATENATED MODULE: external "../util/validateConfig.mjs"
|
|
7
|
-
// CONCATENATED MODULE: external "./errors.mjs"
|
|
8
|
-
// CONCATENATED MODULE: ./src/config/workspaceConfig/workspaceConfig.ts
|
|
4
|
+
import { WORKSPACE_CONFIG_ERRORS } from "./errors.mjs";
|
|
9
5
|
|
|
10
6
|
const validate = validateWorkspaceConfig;
|
|
11
7
|
const workspaceConfig_validateWorkspaceConfig = (config) => {
|
package/src/doctor/doctor.mjs
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import fs from "fs";
|
|
2
2
|
import os from "os";
|
|
3
3
|
import path from "path";
|
|
4
|
-
import package_0 from "../../package.json";
|
|
5
|
-
// CONCATENATED MODULE: external "os"
|
|
6
|
-
// CONCATENATED MODULE: external "path"
|
|
7
|
-
// CONCATENATED MODULE: external "../../package.json"
|
|
8
|
-
// CONCATENATED MODULE: ./src/doctor/doctor.ts
|
|
4
|
+
import package_0 from "../../package.json";
|
|
9
5
|
|
|
10
6
|
const getBinaryInfo = () => {
|
|
11
7
|
const argv = process.argv.slice(0);
|
package/src/doctor/index.mjs
CHANGED