@storm-software/config-tools 1.119.0 → 1.130.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/README.md +1 -1
- package/dist/chunk-4IYEDNYJ.mjs +426 -0
- package/dist/chunk-5QZ7AV2J.js +27 -0
- package/dist/chunk-64RYHF5D.mjs +51 -0
- package/dist/chunk-66ACWURQ.mjs +125 -0
- package/dist/chunk-6OYLNZFT.mjs +169 -0
- package/dist/chunk-6SJLAEJ3.js +70 -0
- package/dist/chunk-6WPG3DXV.js +32 -0
- package/dist/chunk-7KVSSDMX.mjs +545 -0
- package/dist/chunk-7XY63NME.js +44 -0
- package/dist/chunk-A7VLTBS6.mjs +271 -0
- package/dist/chunk-BS5OC5E6.js +426 -0
- package/dist/chunk-E3IN3SQD.mjs +6 -0
- package/dist/chunk-FW22KPOW.mjs +27 -0
- package/dist/chunk-GIZ23UUE.js +189 -0
- package/dist/chunk-GOQAHXJF.mjs +28 -0
- package/dist/chunk-H6XXDZ7A.js +28 -0
- package/dist/chunk-HCF3QA4H.js +102 -0
- package/dist/chunk-JDK3PXQR.js +545 -0
- package/dist/chunk-K6TQN2LZ.js +6 -0
- package/dist/chunk-LKZSRXS7.js +169 -0
- package/dist/chunk-MGI2M3SX.js +6 -0
- package/dist/chunk-N32EGEJB.js +90 -0
- package/dist/chunk-N4BRCEYB.js +27 -0
- package/dist/chunk-OXK45X3L.js +125 -0
- package/dist/chunk-PEHVR33I.js +67 -0
- package/dist/chunk-PQNCKJAR.js +271 -0
- package/dist/chunk-PVPSTJNJ.mjs +90 -0
- package/dist/chunk-QHVHX67K.js +6 -0
- package/dist/chunk-QUVGIEZZ.mjs +6 -0
- package/dist/chunk-RAWSXKTG.mjs +189 -0
- package/dist/chunk-SJO5XZQA.js +6 -0
- package/dist/chunk-TEKFJAJJ.mjs +70 -0
- package/dist/chunk-TTCXDK6S.mjs +27 -0
- package/dist/chunk-UCUOC6LA.mjs +70 -0
- package/dist/chunk-VQLOUFMG.mjs +32 -0
- package/dist/chunk-WRFJFYOU.mjs +51 -0
- package/dist/chunk-WXOSG64C.js +70 -0
- package/dist/chunk-WXYJGX4C.mjs +6 -0
- package/dist/chunk-X6VIYUJR.mjs +6 -0
- package/dist/chunk-XJEQHMOE.js +49 -0
- package/dist/chunk-XLMGW4ZW.mjs +67 -0
- package/dist/chunk-XXHENMLT.mjs +44 -0
- package/dist/chunk-Z2EXWNIQ.mjs +102 -0
- package/dist/chunk-ZVXEYJQO.js +51 -0
- package/dist/config-file/get-config-file.d.mts +20 -0
- package/dist/config-file/get-config-file.d.ts +20 -0
- package/dist/config-file/get-config-file.js +23 -0
- package/dist/config-file/get-config-file.mjs +23 -0
- package/dist/config-file/index.d.mts +4 -0
- package/dist/config-file/index.d.ts +4 -0
- package/dist/config-file/index.js +24 -0
- package/dist/config-file/index.mjs +24 -0
- package/dist/create-storm-config.d.mts +29 -0
- package/dist/create-storm-config.d.ts +29 -0
- package/dist/create-storm-config.js +30 -0
- package/dist/create-storm-config.mjs +30 -0
- package/dist/env/get-env.d.mts +19 -0
- package/dist/env/get-env.d.ts +19 -0
- package/dist/env/get-env.js +13 -0
- package/dist/env/get-env.mjs +13 -0
- package/dist/env/index.d.mts +5 -0
- package/dist/env/index.d.ts +5 -0
- package/dist/env/index.js +20 -0
- package/dist/env/index.mjs +20 -0
- package/{src/env/get-env.d.ts → dist/env/set-env.d.mts} +7 -4
- package/{src → dist}/env/set-env.d.ts +7 -3
- package/dist/env/set-env.js +12 -0
- package/dist/env/set-env.mjs +12 -0
- package/dist/index.d.mts +19 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.js +132 -0
- package/dist/index.mjs +132 -0
- package/dist/logger/chalk.d.mts +25 -0
- package/{src/utilities → dist/logger}/chalk.d.ts +4 -2
- package/dist/logger/chalk.js +7 -0
- package/dist/logger/chalk.mjs +7 -0
- package/dist/logger/console.d.mts +82 -0
- package/{src/utilities/logger.d.ts → dist/logger/console.d.ts} +18 -14
- package/dist/logger/console.js +35 -0
- package/dist/logger/console.mjs +35 -0
- package/dist/logger/get-log-level.d.mts +27 -0
- package/{src/utilities → dist/logger}/get-log-level.d.ts +9 -4
- package/dist/logger/get-log-level.js +12 -0
- package/dist/logger/get-log-level.mjs +12 -0
- package/dist/logger/index.d.mts +6 -0
- package/dist/logger/index.d.ts +6 -0
- package/dist/logger/index.js +46 -0
- package/dist/logger/index.mjs +46 -0
- package/dist/types-DGWqy1xb.d.mts +1395 -0
- package/dist/types-DGWqy1xb.d.ts +1395 -0
- package/dist/types.d.mts +40 -0
- package/{src → dist}/types.d.ts +14 -7
- package/dist/types.js +9 -0
- package/dist/types.mjs +9 -0
- package/dist/utilities/apply-workspace-tokens.d.mts +9 -0
- package/dist/utilities/apply-workspace-tokens.d.ts +9 -0
- package/dist/utilities/apply-workspace-tokens.js +14 -0
- package/dist/utilities/apply-workspace-tokens.mjs +14 -0
- package/dist/utilities/correct-paths.d.mts +19 -0
- package/dist/utilities/correct-paths.d.ts +19 -0
- package/dist/utilities/correct-paths.js +9 -0
- package/dist/utilities/correct-paths.mjs +9 -0
- package/dist/utilities/file-path-utils.d.mts +4 -0
- package/dist/utilities/file-path-utils.d.ts +4 -0
- package/dist/utilities/file-path-utils.js +9 -0
- package/dist/utilities/file-path-utils.mjs +9 -0
- package/dist/utilities/find-up.d.mts +6 -0
- package/dist/utilities/find-up.d.ts +6 -0
- package/dist/utilities/find-up.js +7 -0
- package/dist/utilities/find-up.mjs +7 -0
- package/dist/utilities/find-workspace-root.d.mts +16 -0
- package/{src → dist}/utilities/find-workspace-root.d.ts +4 -2
- package/dist/utilities/find-workspace-root.js +11 -0
- package/dist/utilities/find-workspace-root.mjs +11 -0
- package/dist/utilities/get-default-config.d.mts +15 -0
- package/dist/utilities/get-default-config.d.ts +15 -0
- package/dist/utilities/get-default-config.js +13 -0
- package/dist/utilities/get-default-config.mjs +13 -0
- package/dist/utilities/index.d.mts +11 -0
- package/dist/utilities/index.d.ts +11 -0
- package/dist/utilities/index.js +58 -0
- package/dist/utilities/index.mjs +58 -0
- package/dist/utilities/process-handler.d.mts +8 -0
- package/dist/utilities/process-handler.d.ts +8 -0
- package/dist/utilities/process-handler.js +20 -0
- package/dist/utilities/process-handler.mjs +20 -0
- package/dist/utilities/run.d.mts +36 -0
- package/dist/utilities/run.d.ts +36 -0
- package/dist/utilities/run.js +11 -0
- package/dist/utilities/run.mjs +11 -0
- package/package.json +1 -24
- package/CHANGELOG.md +0 -3122
- package/declarations.d.ts +0 -304
- package/index.cjs +0 -67508
- package/index.js +0 -67463
- package/meta.cjs.json +0 -5352
- package/meta.esm.json +0 -5413
- package/src/config-file/get-config-file.d.ts +0 -16
- package/src/config-file/index.d.ts +0 -1
- package/src/create-storm-config.d.ts +0 -26
- package/src/env/index.d.ts +0 -2
- package/src/index.d.ts +0 -13
- package/src/utilities/apply-workspace-tokens.d.ts +0 -4
- package/src/utilities/correct-paths.d.ts +0 -1
- package/src/utilities/file-path-utils.d.ts +0 -2
- package/src/utilities/find-up.d.ts +0 -4
- package/src/utilities/get-default-config.d.ts +0 -15
- package/src/utilities/index.d.ts +0 -10
- package/src/utilities/process-handler.d.ts +0 -4
- package/src/utilities/run.d.ts +0 -18
- package/utilities/chalk.cjs +0 -1610
- package/utilities/chalk.js +0 -1605
- package/utilities/find-workspace-root.cjs +0 -118
- package/utilities/find-workspace-root.js +0 -91
- package/utilities/logger.cjs +0 -5914
- package/utilities/logger.js +0 -5897
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { StormConfigInput } from "@storm-software/config";
|
|
2
|
-
import { ResolvedConfig, type LoadConfigOptions } from "c12";
|
|
3
|
-
/**
|
|
4
|
-
* Get the config file for the current Storm workspace
|
|
5
|
-
*
|
|
6
|
-
* @param fileName - The name of the config file to search for
|
|
7
|
-
* @param filePath - The path to search for the config file in
|
|
8
|
-
* @returns The config file for the current Storm workspace
|
|
9
|
-
*/
|
|
10
|
-
export declare const getConfigFileByName: (fileName: string, filePath?: string, options?: LoadConfigOptions<Partial<StormConfigInput>>) => Promise<ResolvedConfig<Partial<StormConfigInput>>>;
|
|
11
|
-
/**
|
|
12
|
-
* Get the config file for the current Storm workspace
|
|
13
|
-
*
|
|
14
|
-
* @returns The config file for the current Storm workspace
|
|
15
|
-
*/
|
|
16
|
-
export declare const getConfigFile: (filePath?: string, additionalFileNames?: string[]) => Promise<Partial<StormConfigInput> | undefined>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./get-config-file";
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { StormConfig } from "@storm-software/config";
|
|
2
|
-
import type { ZodTypeAny } from "zod";
|
|
3
|
-
/**
|
|
4
|
-
* Get the config for the current Storm workspace
|
|
5
|
-
*
|
|
6
|
-
* @returns The config for the current Storm workspace
|
|
7
|
-
*/
|
|
8
|
-
export declare const createConfig: (workspaceRoot?: string) => StormConfig;
|
|
9
|
-
/**
|
|
10
|
-
* Get the config for the current Storm workspace
|
|
11
|
-
*
|
|
12
|
-
* @returns The config for the current Storm workspace
|
|
13
|
-
*/
|
|
14
|
-
export declare const createStormConfig: <TExtensionName extends keyof StormConfig["extensions"] = string, TExtensionConfig = any, TExtensionSchema extends ZodTypeAny = ZodTypeAny>(extensionName?: TExtensionName, schema?: TExtensionSchema, workspaceRoot?: string) => StormConfig<TExtensionName, TExtensionConfig>;
|
|
15
|
-
/**
|
|
16
|
-
* Get the config for a specific Storm config Extension
|
|
17
|
-
*
|
|
18
|
-
* @param extensionName - The name of the config extension
|
|
19
|
-
* @param options - The options for the config extension
|
|
20
|
-
* @returns The config for the specified Storm config extension. If the extension does not exist, `undefined` is returned.
|
|
21
|
-
*/
|
|
22
|
-
export declare const createConfigExtension: <TExtensionName extends keyof StormConfig["extensions"] = string, TExtensionConfig = any, TExtensionSchema extends ZodTypeAny = ZodTypeAny>(extensionName: TExtensionName, schema: TExtensionSchema) => TExtensionConfig;
|
|
23
|
-
/**
|
|
24
|
-
* Load the config file values for the current Storm workspace into environment variables
|
|
25
|
-
*/
|
|
26
|
-
export declare const loadStormConfig: (workspaceRoot?: string) => Promise<StormConfig>;
|
package/src/env/index.d.ts
DELETED
package/src/index.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The config-tools library used by Storm Software for building TypeScript applications.
|
|
3
|
-
*
|
|
4
|
-
* @remarks
|
|
5
|
-
* A package containing various utilities to support custom workspace configurations
|
|
6
|
-
*
|
|
7
|
-
* @packageDocumentation
|
|
8
|
-
*/
|
|
9
|
-
export * from "./config-file";
|
|
10
|
-
export * from "./create-storm-config";
|
|
11
|
-
export * from "./env";
|
|
12
|
-
export * from "./types";
|
|
13
|
-
export * from "./utilities";
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { BaseTokenizerOptions, ProjectTokenizerOptions } from "../../declarations";
|
|
2
|
-
export declare const applyWorkspaceBaseTokens: (option: string, tokenizerOptions: BaseTokenizerOptions) => Promise<string>;
|
|
3
|
-
export declare const applyWorkspaceProjectTokens: (option: string, tokenizerOptions: ProjectTokenizerOptions) => Promise<string>;
|
|
4
|
-
export declare const applyWorkspaceTokens: <TConfig extends BaseTokenizerOptions = BaseTokenizerOptions>(options: Record<string, any>, config: TConfig, tokenizerFn: (option: string, config: TConfig) => string | Promise<string>) => Promise<Record<string, any>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const correctPaths: (path?: string) => string;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ColorConfig, type StormConfig } from "@storm-software/config";
|
|
2
|
-
/**
|
|
3
|
-
* Storm theme config values used for styling various workspace elements
|
|
4
|
-
*/
|
|
5
|
-
export declare const DEFAULT_COLOR_CONFIG: ColorConfig;
|
|
6
|
-
/**
|
|
7
|
-
* Storm Workspace config values used during various dev-ops processes
|
|
8
|
-
*/
|
|
9
|
-
export declare const DEFAULT_STORM_CONFIG: any;
|
|
10
|
-
/**
|
|
11
|
-
* Get the default Storm config values used during various dev-ops processes
|
|
12
|
-
*
|
|
13
|
-
* @returns The default Storm config values
|
|
14
|
-
*/
|
|
15
|
-
export declare const getDefaultConfig: (config?: Partial<StormConfig>, root?: string) => StormConfig;
|
package/src/utilities/index.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export * from "./apply-workspace-tokens";
|
|
2
|
-
export * from "./chalk";
|
|
3
|
-
export * from "./correct-paths";
|
|
4
|
-
export * from "./file-path-utils";
|
|
5
|
-
export * from "./find-workspace-root";
|
|
6
|
-
export * from "./get-default-config";
|
|
7
|
-
export * from "./get-log-level";
|
|
8
|
-
export * from "./logger";
|
|
9
|
-
export * from "./process-handler";
|
|
10
|
-
export * from "./run";
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { StormConfig } from "@storm-software/config";
|
|
2
|
-
export declare const exitWithError: (config?: Partial<StormConfig>) => never;
|
|
3
|
-
export declare const exitWithSuccess: (config?: Partial<StormConfig>) => never;
|
|
4
|
-
export declare const handleProcess: (config?: Partial<StormConfig>) => void;
|
package/src/utilities/run.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { StormConfig } from "@storm-software/config";
|
|
2
|
-
export declare const LARGE_BUFFER: number;
|
|
3
|
-
export type IOType = "overlapped" | "pipe" | "ignore" | "inherit";
|
|
4
|
-
export type StdioOptions = IOType | Array<IOType | "ipc" | number | null | undefined>;
|
|
5
|
-
/**
|
|
6
|
-
* Run a command line process
|
|
7
|
-
*
|
|
8
|
-
* @remarks
|
|
9
|
-
* A wrapper around execSync to run our command line processes
|
|
10
|
-
*
|
|
11
|
-
* @param config - The Storm configuration object
|
|
12
|
-
* @param command - The command to run
|
|
13
|
-
* @param cwd - The current working directory
|
|
14
|
-
* @param stdio - The standard input/output options
|
|
15
|
-
* @param env - The environment variables
|
|
16
|
-
* @returns The result of the command
|
|
17
|
-
*/
|
|
18
|
-
export declare const run: (config: StormConfig, command: string, cwd?: string, stdio?: StdioOptions, env?: NodeJS.ProcessEnv) => Buffer<ArrayBufferLike>;
|