Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@storm-software/config-tools

Package Overview
Dependencies
Maintainers
2
Versions
341
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@storm-software/config-tools - npm Package Compare versions

Comparing version 1.8.2 to 1.9.0

7

CHANGELOG.md

@@ -0,1 +1,8 @@

## [1.8.2](https://github.com/storm-software/storm-ops/compare/config-tools-v1.8.1...config-tools-v1.8.2) (2023-12-22)
### Bug Fixes
* **config-tools:** Resolved issue in configuration defaulter function ([92e10c1](https://github.com/storm-software/storm-ops/commit/92e10c1fa0283eaf341f4bc9338628cbdb546eb9))
## [1.8.1](https://github.com/storm-software/storm-ops/compare/config-tools-v1.8.0...config-tools-v1.8.1) (2023-12-22)

@@ -2,0 +9,0 @@

@@ -20,2 +20,5 @@ import * as z from "zod";

declare type StormConfigInput = z.input<typeof StormConfigSchema>;
export { StormConfigInput };
/**

@@ -49,2 +52,14 @@ * Find the root of the current monorepo

/**
* Get the config file values for the current Storm workspace
*/
declare function getConfigFile(): Promise<Partial<StormConfigInput>>;
export { getConfigFile };
/**
* Load the config file values for the current Storm workspace into environment variables
*/
declare function loadStormConfig(workspaceRoot?: string): Promise<void>;
export { loadStormConfig };
/**
* Type-check to determine if `obj` is a `StormError` object

@@ -51,0 +66,0 @@ *

185

index.js
// packages/config-tools/src/config-file/get-config-file.ts
import { cosmiconfig } from "cosmiconfig";
var _static_cache = void 0;
var getConfigFileName = (fileName) => cosmiconfig(fileName, { cache: true }).search();
var getConfigFile = async () => {
var getConfigFileName = (fileName, filePath) => cosmiconfig(fileName, { cache: true }).search(filePath);
var getConfigFile = async (filePath) => {
if (_static_cache) {
return _static_cache;
}
let cosmiconfigResult = await getConfigFileName("storm");
let cosmiconfigResult = await getConfigFileName("storm", filePath);
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
cosmiconfigResult = await getConfigFileName("storm-software");
cosmiconfigResult = await getConfigFileName("storm-software", filePath);
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
cosmiconfigResult = await getConfigFileName("storm-stack");
cosmiconfigResult = await getConfigFileName("storm-stack", filePath);
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
cosmiconfigResult = await getConfigFileName("storm-cloud");
cosmiconfigResult = await getConfigFileName("storm-cloud", filePath);
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
cosmiconfigResult = await getConfigFileName("acidic");
cosmiconfigResult = await getConfigFileName("acidic", filePath);
if (!cosmiconfigResult || cosmiconfigResult.isEmpty) {
cosmiconfigResult = await getConfigFileName("acid");
cosmiconfigResult = await getConfigFileName("acid", filePath);
}

@@ -136,4 +136,4 @@ }

var StormConfigSchema = z.object({
name: z.string().trim().toLowerCase().default("storm").describe("The name of the package"),
namespace: z.string().trim().toLowerCase().default("storm-software").describe("The namespace of the package"),
name: z.string().trim().toLowerCase().optional().describe("The name of the package"),
namespace: z.string().trim().toLowerCase().optional().describe("The namespace of the package"),
organization: z.string().trim().default("storm-software").describe("The organization of the workspace"),

@@ -155,3 +155,3 @@ repository: z.string().trim().url().optional().describe("The repo URL of the workspace (i.e. GitHub)"),

),
workspaceRoot: z.string().trim().describe("The root directory of the workspace"),
workspaceRoot: z.string().trim().optional().describe("The root directory of the workspace"),
packageDirectory: z.string().trim().optional().describe("The root directory of the package"),

@@ -166,3 +166,3 @@ buildDirectory: z.string().trim().default("dist").describe("The build directory for the workspace"),

locale: z.string().trim().default("en-US").describe("The default locale of the workspace"),
logLevel: z.enum(["silent", "fatal", "error", "warn", "info", "debug", "trace"]).optional().describe(
logLevel: z.enum(["silent", "fatal", "error", "warn", "info", "debug", "trace"]).default("debug").describe(
"The log level used to filter out lower priority log messages. If not provided, this is defaulted using the `environment` config value (if `environment` is set to `production` then `level` is `error`, else `level` is `debug`)."

@@ -306,2 +306,3 @@ ),

organization: process.env[`${prefix}ORGANIZATION`],
packageManager: process.env[`${prefix}PACKAGE_MANAGER`],
license: process.env[`${prefix}LICENSE`],

@@ -352,2 +353,77 @@ homepage: process.env[`${prefix}HOMEPAGE`],

// packages/config-tools/src/env/set-env.ts
var setExtensionEnv = (extensionName, extension) => {
Object.keys(extension ?? {}).forEach((key) => {
if (extension[key]) {
let result = key?.replace(
/([A-Z])+/g,
(input) => input ? input[0].toUpperCase() + input.slice(1) : ""
).split(/(?=[A-Z])|[\.\-\s_]/).map((x) => x.toLowerCase()) ?? [];
let extensionKey;
if (result.length === 0) {
return;
} else if (result.length === 1) {
extensionKey = result[0].toUpperCase();
} else {
extensionKey = result.reduce((ret, part) => {
return `${ret}_${part.toLowerCase()}`;
});
}
process.env[`STORM_EXTENSION_${extensionName.toUpperCase()}_${extensionKey.toUpperCase()}`] = extension[key];
}
});
};
var setConfigEnv = (config) => {
const prefix = `STORM_`;
config.name && (process.env[`${prefix}NAME`] = config.name);
config.namespace && (process.env[`${prefix}NAMESPACE`] = config.namespace);
config.owner && (process.env[`${prefix}OWNER`] = config.owner);
config.worker && (process.env[`${prefix}WORKER`] = config.worker);
config.organization && (process.env[`${prefix}ORGANIZATION`] = config.organization);
config.packageManager && (process.env[`${prefix}PACKAGE_MANAGER`] = config.packageManager);
config.license && (process.env[`${prefix}LICENSE`] = config.license);
config.homepage && (process.env[`${prefix}HOMEPAGE`] = config.homepage);
config.timezone && (process.env[`${prefix}TIMEZONE`] = config.timezone);
config.timezone && (process.env.TZ = config.timezone);
config.timezone && (process.env.DEFAULT_TIMEZONE = config.timezone);
config.locale && (process.env[`${prefix}LOCALE`] = config.locale);
config.locale && (process.env.LOCALE = config.locale);
config.locale && (process.env.DEFAULT_LOCALE = config.locale);
config.locale && (process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8");
config.configFile && (process.env[`${prefix}CONFIG_FILE`] = config.configFile);
config.workspaceRoot && (process.env[`${prefix}WORKSPACE_ROOT`] = config.workspaceRoot);
config.workspaceRoot && (process.env.NX_WORKSPACE_ROOT = config.workspaceRoot);
config.workspaceRoot && (process.env.NX_WORKSPACE_ROOT_PATH = config.workspaceRoot);
config.packageDirectory && (process.env[`${prefix}PACKAGE_DIRECTORY`] = config.packageDirectory);
config.buildDirectory && (process.env[`${prefix}BUILD_DIRECTORY`] = config.buildDirectory);
config.runtimeVersion && (process.env[`${prefix}RUNTIME_VERSION`] = config.runtimeVersion);
config.runtimeDirectory && (process.env[`${prefix}RUNTIME_DIRECTORY`] = config.runtimeDirectory);
config.env && (process.env[`${prefix}ENV`] = config.env);
config.env && (process.env.NODE_ENV = config.env);
config.env && (process.env.ENVIRONMENT = config.env);
config.ci && (process.env[`${prefix}CI`] = String(config.ci));
config.ci && (process.env.CI = String(config.ci));
config.ci && (process.env.CONTINUOUS_INTEGRATION = String(config.ci));
config.colors.primary && (process.env[`${prefix}COLOR_PRIMARY`] = config.colors.primary);
config.colors.background && (process.env[`${prefix}COLOR_BACKGROUND`] = config.colors.background);
config.colors.success && (process.env[`${prefix}COLOR_SUCCESS`] = config.colors.success);
config.colors.info && (process.env[`${prefix}COLOR_INFO`] = config.colors.info);
config.colors.warning && (process.env[`${prefix}COLOR_WARNING`] = config.colors.warning);
config.colors.error && (process.env[`${prefix}COLOR_ERROR`] = config.colors.error);
config.colors.fatal && (process.env[`${prefix}COLOR_FATAL`] = config.colors.fatal);
config.repository && (process.env[`${prefix}REPOSITORY`] = config.repository);
config.branch && (process.env[`${prefix}BRANCH`] = config.branch);
config.preMajor && (process.env[`${prefix}PRE_MAJOR`] = String(config.preMajor));
config.logLevel && (process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel));
config.logLevel && (process.env.LOG_LEVEL = String(config.logLevel));
config.logLevel && (process.env.NX_VERBOSE_LOGGING = String(
getLogLevel(config.logLevel) >= LogLevel.DEBUG ? true : false
));
config.logLevel && (process.env.RUST_BACKTRACE = getLogLevel(config.logLevel) >= LogLevel.DEBUG ? "full" : "none");
config && (process.env[`${prefix}CONFIG`] = JSON.stringify(config));
Object.keys(config.extensions ?? {}).forEach((key) => {
config.extensions[key] && Object.keys(config.extensions[key]) && setExtensionEnv(key, config.extensions[key]);
});
};
// packages/config-tools/src/create-storm-config.ts

@@ -396,76 +472,14 @@ var _extension_cache = /* @__PURE__ */ new WeakMap();

};
// packages/config-tools/src/env/set-env.ts
var setExtensionEnv = (extensionName, extension) => {
Object.keys(extension ?? {}).forEach((key) => {
if (extension[key]) {
let result = key?.replace(
/([A-Z])+/g,
(input) => input ? input[0].toUpperCase() + input.slice(1) : ""
).split(/(?=[A-Z])|[\.\-\s_]/).map((x) => x.toLowerCase()) ?? [];
let extensionKey;
if (result.length === 0) {
return;
} else if (result.length === 1) {
extensionKey = result[0].toUpperCase();
} else {
extensionKey = result.reduce((ret, part) => {
return `${ret}_${part.toLowerCase()}`;
});
}
process.env[`STORM_EXTENSION_${extensionName.toUpperCase()}_${extensionKey.toUpperCase()}`] = extension[key];
}
});
var loadStormConfig = async (workspaceRoot) => {
try {
setConfigEnv(
StormConfigSchema.parse(await getConfigFile(workspaceRoot))
);
} catch (e) {
console.warn(
"No Storm config file found in the current workspace. Please ensure this is the expected behavior - you can add a `storm.config.js` file to the root of your workspace if it is not."
);
console.error(e);
}
};
var setConfigEnv = (config) => {
const prefix = `STORM_`;
process.env[`${prefix}NAME`] = config.name;
process.env[`${prefix}NAMESPACE`] = config.namespace;
process.env[`${prefix}OWNER`] = config.owner;
process.env[`${prefix}WORKER`] = config.worker;
process.env[`${prefix}ORGANIZATION`] = config.organization;
process.env[`${prefix}LICENSE`] = config.license;
process.env[`${prefix}HOMEPAGE`] = config.homepage;
process.env[`${prefix}TIMEZONE`] = config.timezone;
process.env.TZ = config.timezone;
process.env.DEFAULT_TIMEZONE = config.timezone;
process.env[`${prefix}LOCALE`] = config.locale;
process.env.LOCALE = config.locale;
process.env.DEFAULT_LOCALE = config.locale;
process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
process.env[`${prefix}CONFIG_FILE`] = config.configFile;
process.env[`${prefix}WORKSPACE_ROOT`] = config.workspaceRoot;
process.env.NX_WORKSPACE_ROOT = config.workspaceRoot;
process.env.NX_WORKSPACE_ROOT_PATH = config.workspaceRoot;
process.env[`${prefix}PACKAGE_DIRECTORY`] = config.packageDirectory;
process.env[`${prefix}BUILD_DIRECTORY`] = config.buildDirectory;
process.env[`${prefix}RUNTIME_VERSION`] = config.runtimeVersion;
process.env[`${prefix}RUNTIME_DIRECTORY`] = config.runtimeDirectory;
process.env[`${prefix}ENV`] = config.env;
process.env.NODE_ENV = config.env;
process.env.ENVIRONMENT = config.env;
process.env[`${prefix}CI`] = String(config.ci);
process.env.CI = String(config.ci);
process.env.CONTINUOUS_INTEGRATION = String(config.ci);
process.env[`${prefix}COLOR_PRIMARY`] = config.colors.primary;
process.env[`${prefix}COLOR_BACKGROUND`] = config.colors.background;
process.env[`${prefix}COLOR_SUCCESS`] = config.colors.success;
process.env[`${prefix}COLOR_INFO`] = config.colors.info;
process.env[`${prefix}COLOR_WARNING`] = config.colors.warning;
process.env[`${prefix}COLOR_ERROR`] = config.colors.error;
process.env[`${prefix}COLOR_FATAL`] = config.colors.fatal;
process.env[`${prefix}REPOSITORY`] = config.repository;
process.env[`${prefix}BRANCH`] = config.branch;
process.env[`${prefix}PRE_MAJOR`] = String(config.preMajor);
process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
process.env.LOG_LEVEL = String(config.logLevel);
process.env.NX_VERBOSE_LOGGING = String(
getLogLevel(config.logLevel) >= LogLevel.DEBUG ? true : false
);
process.env.RUST_BACKTRACE = getLogLevel(config.logLevel) >= LogLevel.DEBUG ? "full" : "none";
process.env[`${prefix}CONFIG`] = JSON.stringify(config);
Object.keys(config.extensions ?? {}).forEach((key) => {
config.extensions[key] && Object.keys(config.extensions[key]) && setExtensionEnv(key, config.extensions[key]);
});
};
export {

@@ -489,4 +503,5 @@ ColorConfigSchema,

getLogLevelLabel,
loadStormConfig,
setConfigEnv,
setExtensionEnv
};

@@ -1,1 +0,1 @@

{"inputs":{"packages/config-tools/src/config-file/get-config-file.ts":{"bytes":1987,"imports":[{"path":"cosmiconfig","kind":"import-statement","external":true},{"path":"../types","kind":"import-statement","external":true}],"format":"esm"},"packages/config-tools/src/config-file/index.ts":{"bytes":35,"imports":[{"path":"packages/config-tools/src/config-file/get-config-file.ts","kind":"import-statement","original":"./get-config-file"}],"format":"esm"},"packages/config-tools/src/types.ts":{"bytes":1405,"imports":[{"path":"zod","kind":"import-statement","external":true},{"path":"./schema","kind":"import-statement","external":true}],"format":"esm"},"packages/config-tools/src/utilities/find-up.ts":{"bytes":648,"imports":[{"path":"fs","kind":"import-statement","external":true},{"path":"path","kind":"import-statement","external":true}],"format":"esm"},"packages/config-tools/src/utilities/find-workspace-root.ts":{"bytes":1755,"imports":[{"path":"packages/config-tools/src/utilities/find-up.ts","kind":"import-statement","original":"./find-up"}],"format":"esm"},"packages/config-tools/src/schema.ts":{"bytes":5939,"imports":[{"path":"zod","kind":"import-statement","external":true}],"format":"esm"},"packages/config-tools/src/utilities/get-default-config.ts":{"bytes":2608,"imports":[{"path":"fs","kind":"import-statement","external":true},{"path":"path","kind":"import-statement","external":true},{"path":"packages/config-tools/src/schema.ts","kind":"import-statement","original":"../schema"},{"path":"../types","kind":"import-statement","external":true},{"path":"packages/config-tools/src/utilities/find-workspace-root.ts","kind":"import-statement","original":"./find-workspace-root"}],"format":"esm"},"packages/config-tools/src/utilities/get-log-level.ts":{"bytes":1409,"imports":[{"path":"packages/config-tools/src/types.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/config-tools/src/utilities/index.ts":{"bytes":110,"imports":[{"path":"packages/config-tools/src/utilities/find-workspace-root.ts","kind":"import-statement","original":"./find-workspace-root"},{"path":"packages/config-tools/src/utilities/get-default-config.ts","kind":"import-statement","original":"./get-default-config"},{"path":"packages/config-tools/src/utilities/get-log-level.ts","kind":"import-statement","original":"./get-log-level"}],"format":"esm"},"packages/config-tools/src/env/get-env.ts":{"bytes":4137,"imports":[{"path":"packages/config-tools/src/types.ts","kind":"import-statement","original":"../types"},{"path":"packages/config-tools/src/utilities/index.ts","kind":"import-statement","original":"../utilities"}],"format":"esm"},"packages/config-tools/src/create-storm-config.ts":{"bytes":3006,"imports":[{"path":"zod","kind":"import-statement","external":true},{"path":"packages/config-tools/src/env/get-env.ts","kind":"import-statement","original":"./env/get-env"},{"path":"packages/config-tools/src/schema.ts","kind":"import-statement","original":"./schema"},{"path":"./types","kind":"import-statement","external":true},{"path":"packages/config-tools/src/utilities/get-default-config.ts","kind":"import-statement","original":"./utilities/get-default-config"}],"format":"esm"},"packages/config-tools/src/env/set-env.ts":{"bytes":4309,"imports":[{"path":"packages/config-tools/src/types.ts","kind":"import-statement","original":"../types"},{"path":"packages/config-tools/src/utilities/get-log-level.ts","kind":"import-statement","original":"../utilities/get-log-level"}],"format":"esm"},"packages/config-tools/src/env/index.ts":{"bytes":54,"imports":[{"path":"packages/config-tools/src/env/get-env.ts","kind":"import-statement","original":"./get-env"},{"path":"packages/config-tools/src/env/set-env.ts","kind":"import-statement","original":"./set-env"}],"format":"esm"},"packages/config-tools/src/index.ts":{"bytes":399,"imports":[{"path":"packages/config-tools/src/config-file/index.ts","kind":"import-statement","original":"./config-file"},{"path":"packages/config-tools/src/create-storm-config.ts","kind":"import-statement","original":"./create-storm-config"},{"path":"packages/config-tools/src/env/index.ts","kind":"import-statement","original":"./env"},{"path":"packages/config-tools/src/schema.ts","kind":"import-statement","original":"./schema"},{"path":"packages/config-tools/src/types.ts","kind":"import-statement","original":"./types"},{"path":"packages/config-tools/src/utilities/index.ts","kind":"import-statement","original":"./utilities"}],"format":"esm"}},"outputs":{"dist/packages/config-tools/index.cjs":{"imports":[{"path":"cosmiconfig","kind":"require-call","external":true},{"path":"fs","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"fs","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"zod","kind":"require-call","external":true}],"exports":[],"entryPoint":"packages/config-tools/src/index.ts","inputs":{"packages/config-tools/src/index.ts":{"bytesInOutput":899},"packages/config-tools/src/config-file/get-config-file.ts":{"bytesInOutput":1594},"packages/config-tools/src/config-file/index.ts":{"bytesInOutput":0},"packages/config-tools/src/types.ts":{"bytesInOutput":256},"packages/config-tools/src/utilities/find-up.ts":{"bytesInOutput":555},"packages/config-tools/src/utilities/find-workspace-root.ts":{"bytesInOutput":1137},"packages/config-tools/src/utilities/index.ts":{"bytesInOutput":0},"packages/config-tools/src/utilities/get-default-config.ts":{"bytesInOutput":2063},"packages/config-tools/src/schema.ts":{"bytesInOutput":4599},"packages/config-tools/src/utilities/get-log-level.ts":{"bytesInOutput":1029},"packages/config-tools/src/env/get-env.ts":{"bytesInOutput":3060},"packages/config-tools/src/create-storm-config.ts":{"bytesInOutput":1225},"packages/config-tools/src/env/index.ts":{"bytesInOutput":0},"packages/config-tools/src/env/set-env.ts":{"bytesInOutput":3528}},"bytes":22399},"dist/packages/config-tools/utilities/find-workspace-root.cjs":{"imports":[{"path":"fs","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true}],"exports":[],"entryPoint":"packages/config-tools/src/utilities/find-workspace-root.ts","inputs":{"packages/config-tools/src/utilities/find-workspace-root.ts":{"bytesInOutput":1378},"packages/config-tools/src/utilities/find-up.ts":{"bytesInOutput":555}},"bytes":3031}}}
{"inputs":{"packages/config-tools/src/config-file/get-config-file.ts":{"bytes":2097,"imports":[{"path":"cosmiconfig","kind":"import-statement","external":true},{"path":"../types","kind":"import-statement","external":true}],"format":"esm"},"packages/config-tools/src/config-file/index.ts":{"bytes":35,"imports":[{"path":"packages/config-tools/src/config-file/get-config-file.ts","kind":"import-statement","original":"./get-config-file"}],"format":"esm"},"packages/config-tools/src/types.ts":{"bytes":1405,"imports":[{"path":"zod","kind":"import-statement","external":true},{"path":"./schema","kind":"import-statement","external":true}],"format":"esm"},"packages/config-tools/src/utilities/find-up.ts":{"bytes":648,"imports":[{"path":"fs","kind":"import-statement","external":true},{"path":"path","kind":"import-statement","external":true}],"format":"esm"},"packages/config-tools/src/utilities/find-workspace-root.ts":{"bytes":1755,"imports":[{"path":"packages/config-tools/src/utilities/find-up.ts","kind":"import-statement","original":"./find-up"}],"format":"esm"},"packages/config-tools/src/schema.ts":{"bytes":5942,"imports":[{"path":"zod","kind":"import-statement","external":true}],"format":"esm"},"packages/config-tools/src/utilities/get-default-config.ts":{"bytes":2608,"imports":[{"path":"fs","kind":"import-statement","external":true},{"path":"path","kind":"import-statement","external":true},{"path":"packages/config-tools/src/schema.ts","kind":"import-statement","original":"../schema"},{"path":"../types","kind":"import-statement","external":true},{"path":"packages/config-tools/src/utilities/find-workspace-root.ts","kind":"import-statement","original":"./find-workspace-root"}],"format":"esm"},"packages/config-tools/src/utilities/get-log-level.ts":{"bytes":1409,"imports":[{"path":"packages/config-tools/src/types.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/config-tools/src/utilities/index.ts":{"bytes":110,"imports":[{"path":"packages/config-tools/src/utilities/find-workspace-root.ts","kind":"import-statement","original":"./find-workspace-root"},{"path":"packages/config-tools/src/utilities/get-default-config.ts","kind":"import-statement","original":"./get-default-config"},{"path":"packages/config-tools/src/utilities/get-log-level.ts","kind":"import-statement","original":"./get-log-level"}],"format":"esm"},"packages/config-tools/src/env/get-env.ts":{"bytes":4221,"imports":[{"path":"packages/config-tools/src/types.ts","kind":"import-statement","original":"../types"},{"path":"packages/config-tools/src/utilities/index.ts","kind":"import-statement","original":"../utilities"}],"format":"esm"},"packages/config-tools/src/env/set-env.ts":{"bytes":5433,"imports":[{"path":"packages/config-tools/src/types.ts","kind":"import-statement","original":"../types"},{"path":"packages/config-tools/src/utilities/get-log-level.ts","kind":"import-statement","original":"../utilities/get-log-level"}],"format":"esm"},"packages/config-tools/src/create-storm-config.ts":{"bytes":3653,"imports":[{"path":"zod","kind":"import-statement","external":true},{"path":"packages/config-tools/src/config-file/get-config-file.ts","kind":"import-statement","original":"./config-file/get-config-file"},{"path":"packages/config-tools/src/env/get-env.ts","kind":"import-statement","original":"./env/get-env"},{"path":"packages/config-tools/src/env/set-env.ts","kind":"import-statement","original":"./env/set-env"},{"path":"packages/config-tools/src/schema.ts","kind":"import-statement","original":"./schema"},{"path":"./types","kind":"import-statement","external":true},{"path":"packages/config-tools/src/utilities/get-default-config.ts","kind":"import-statement","original":"./utilities/get-default-config"}],"format":"esm"},"packages/config-tools/src/env/index.ts":{"bytes":54,"imports":[{"path":"packages/config-tools/src/env/get-env.ts","kind":"import-statement","original":"./get-env"},{"path":"packages/config-tools/src/env/set-env.ts","kind":"import-statement","original":"./set-env"}],"format":"esm"},"packages/config-tools/src/index.ts":{"bytes":399,"imports":[{"path":"packages/config-tools/src/config-file/index.ts","kind":"import-statement","original":"./config-file"},{"path":"packages/config-tools/src/create-storm-config.ts","kind":"import-statement","original":"./create-storm-config"},{"path":"packages/config-tools/src/env/index.ts","kind":"import-statement","original":"./env"},{"path":"packages/config-tools/src/schema.ts","kind":"import-statement","original":"./schema"},{"path":"packages/config-tools/src/types.ts","kind":"import-statement","original":"./types"},{"path":"packages/config-tools/src/utilities/index.ts","kind":"import-statement","original":"./utilities"}],"format":"esm"}},"outputs":{"dist/packages/config-tools/index.cjs":{"imports":[{"path":"cosmiconfig","kind":"require-call","external":true},{"path":"fs","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"fs","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true},{"path":"zod","kind":"require-call","external":true}],"exports":[],"entryPoint":"packages/config-tools/src/index.ts","inputs":{"packages/config-tools/src/index.ts":{"bytesInOutput":941},"packages/config-tools/src/config-file/get-config-file.ts":{"bytesInOutput":1680},"packages/config-tools/src/config-file/index.ts":{"bytesInOutput":0},"packages/config-tools/src/types.ts":{"bytesInOutput":256},"packages/config-tools/src/utilities/find-up.ts":{"bytesInOutput":555},"packages/config-tools/src/utilities/find-workspace-root.ts":{"bytesInOutput":1137},"packages/config-tools/src/utilities/index.ts":{"bytesInOutput":0},"packages/config-tools/src/utilities/get-default-config.ts":{"bytesInOutput":2063},"packages/config-tools/src/schema.ts":{"bytesInOutput":4595},"packages/config-tools/src/utilities/get-log-level.ts":{"bytesInOutput":1029},"packages/config-tools/src/env/get-env.ts":{"bytesInOutput":3121},"packages/config-tools/src/env/set-env.ts":{"bytesInOutput":4553},"packages/config-tools/src/create-storm-config.ts":{"bytesInOutput":1631},"packages/config-tools/src/env/index.ts":{"bytesInOutput":0}},"bytes":24034},"dist/packages/config-tools/utilities/find-workspace-root.cjs":{"imports":[{"path":"fs","kind":"require-call","external":true},{"path":"path","kind":"require-call","external":true}],"exports":[],"entryPoint":"packages/config-tools/src/utilities/find-workspace-root.ts","inputs":{"packages/config-tools/src/utilities/find-workspace-root.ts":{"bytesInOutput":1378},"packages/config-tools/src/utilities/find-up.ts":{"bytesInOutput":555}},"bytes":3031}}}

@@ -1,1 +0,1 @@

{"inputs":{"packages/config-tools/src/config-file/get-config-file.ts":{"bytes":1987,"imports":[{"path":"cosmiconfig","kind":"import-statement","external":true},{"path":"../types","kind":"import-statement","external":true}],"format":"esm"},"packages/config-tools/src/config-file/index.ts":{"bytes":35,"imports":[{"path":"packages/config-tools/src/config-file/get-config-file.ts","kind":"import-statement","original":"./get-config-file"}],"format":"esm"},"packages/config-tools/src/types.ts":{"bytes":1405,"imports":[{"path":"zod","kind":"import-statement","external":true},{"path":"./schema","kind":"import-statement","external":true}],"format":"esm"},"packages/config-tools/src/utilities/find-up.ts":{"bytes":648,"imports":[{"path":"fs","kind":"import-statement","external":true},{"path":"path","kind":"import-statement","external":true}],"format":"esm"},"packages/config-tools/src/utilities/find-workspace-root.ts":{"bytes":1755,"imports":[{"path":"packages/config-tools/src/utilities/find-up.ts","kind":"import-statement","original":"./find-up"}],"format":"esm"},"packages/config-tools/src/schema.ts":{"bytes":5939,"imports":[{"path":"zod","kind":"import-statement","external":true}],"format":"esm"},"packages/config-tools/src/utilities/get-default-config.ts":{"bytes":2608,"imports":[{"path":"fs","kind":"import-statement","external":true},{"path":"path","kind":"import-statement","external":true},{"path":"packages/config-tools/src/schema.ts","kind":"import-statement","original":"../schema"},{"path":"../types","kind":"import-statement","external":true},{"path":"packages/config-tools/src/utilities/find-workspace-root.ts","kind":"import-statement","original":"./find-workspace-root"}],"format":"esm"},"packages/config-tools/src/utilities/get-log-level.ts":{"bytes":1409,"imports":[{"path":"packages/config-tools/src/types.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/config-tools/src/utilities/index.ts":{"bytes":110,"imports":[{"path":"packages/config-tools/src/utilities/find-workspace-root.ts","kind":"import-statement","original":"./find-workspace-root"},{"path":"packages/config-tools/src/utilities/get-default-config.ts","kind":"import-statement","original":"./get-default-config"},{"path":"packages/config-tools/src/utilities/get-log-level.ts","kind":"import-statement","original":"./get-log-level"}],"format":"esm"},"packages/config-tools/src/env/get-env.ts":{"bytes":4137,"imports":[{"path":"packages/config-tools/src/types.ts","kind":"import-statement","original":"../types"},{"path":"packages/config-tools/src/utilities/index.ts","kind":"import-statement","original":"../utilities"}],"format":"esm"},"packages/config-tools/src/create-storm-config.ts":{"bytes":3006,"imports":[{"path":"zod","kind":"import-statement","external":true},{"path":"packages/config-tools/src/env/get-env.ts","kind":"import-statement","original":"./env/get-env"},{"path":"packages/config-tools/src/schema.ts","kind":"import-statement","original":"./schema"},{"path":"./types","kind":"import-statement","external":true},{"path":"packages/config-tools/src/utilities/get-default-config.ts","kind":"import-statement","original":"./utilities/get-default-config"}],"format":"esm"},"packages/config-tools/src/env/set-env.ts":{"bytes":4309,"imports":[{"path":"packages/config-tools/src/types.ts","kind":"import-statement","original":"../types"},{"path":"packages/config-tools/src/utilities/get-log-level.ts","kind":"import-statement","original":"../utilities/get-log-level"}],"format":"esm"},"packages/config-tools/src/env/index.ts":{"bytes":54,"imports":[{"path":"packages/config-tools/src/env/get-env.ts","kind":"import-statement","original":"./get-env"},{"path":"packages/config-tools/src/env/set-env.ts","kind":"import-statement","original":"./set-env"}],"format":"esm"},"packages/config-tools/src/index.ts":{"bytes":399,"imports":[{"path":"packages/config-tools/src/config-file/index.ts","kind":"import-statement","original":"./config-file"},{"path":"packages/config-tools/src/create-storm-config.ts","kind":"import-statement","original":"./create-storm-config"},{"path":"packages/config-tools/src/env/index.ts","kind":"import-statement","original":"./env"},{"path":"packages/config-tools/src/schema.ts","kind":"import-statement","original":"./schema"},{"path":"packages/config-tools/src/types.ts","kind":"import-statement","original":"./types"},{"path":"packages/config-tools/src/utilities/index.ts","kind":"import-statement","original":"./utilities"}],"format":"esm"}},"outputs":{"dist/packages/config-tools/index.js":{"imports":[{"path":"cosmiconfig","kind":"import-statement","external":true},{"path":"fs","kind":"import-statement","external":true},{"path":"path","kind":"import-statement","external":true},{"path":"fs","kind":"import-statement","external":true},{"path":"path","kind":"import-statement","external":true},{"path":"zod","kind":"import-statement","external":true}],"exports":["ColorConfigSchema","DefaultColorConfig","DefaultStormConfig","LogLevel","LogLevelLabel","StormConfigSchema","createConfig","createConfigExtension","createStormConfig","findWorkspaceRoot","findWorkspaceRootSafe","getConfigEnv","getConfigFile","getDefaultConfig","getExtensionEnv","getLogLevel","getLogLevelLabel","setConfigEnv","setExtensionEnv"],"entryPoint":"packages/config-tools/src/index.ts","inputs":{"packages/config-tools/src/config-file/get-config-file.ts":{"bytesInOutput":1564},"packages/config-tools/src/config-file/index.ts":{"bytesInOutput":0},"packages/config-tools/src/index.ts":{"bytesInOutput":0},"packages/config-tools/src/types.ts":{"bytesInOutput":256},"packages/config-tools/src/utilities/find-up.ts":{"bytesInOutput":502},"packages/config-tools/src/utilities/find-workspace-root.ts":{"bytesInOutput":1137},"packages/config-tools/src/utilities/index.ts":{"bytesInOutput":0},"packages/config-tools/src/utilities/get-default-config.ts":{"bytesInOutput":2030},"packages/config-tools/src/schema.ts":{"bytesInOutput":4589},"packages/config-tools/src/utilities/get-log-level.ts":{"bytesInOutput":1029},"packages/config-tools/src/env/get-env.ts":{"bytesInOutput":3060},"packages/config-tools/src/create-storm-config.ts":{"bytesInOutput":1225},"packages/config-tools/src/env/index.ts":{"bytesInOutput":0},"packages/config-tools/src/env/set-env.ts":{"bytesInOutput":3528}},"bytes":19873},"dist/packages/config-tools/utilities/find-workspace-root.js":{"imports":[{"path":"fs","kind":"import-statement","external":true},{"path":"path","kind":"import-statement","external":true}],"exports":["findWorkspaceRoot","findWorkspaceRootSafe"],"entryPoint":"packages/config-tools/src/utilities/find-workspace-root.ts","inputs":{"packages/config-tools/src/utilities/find-up.ts":{"bytesInOutput":502},"packages/config-tools/src/utilities/find-workspace-root.ts":{"bytesInOutput":1137}},"bytes":1809}}}
{"inputs":{"packages/config-tools/src/config-file/get-config-file.ts":{"bytes":2097,"imports":[{"path":"cosmiconfig","kind":"import-statement","external":true},{"path":"../types","kind":"import-statement","external":true}],"format":"esm"},"packages/config-tools/src/config-file/index.ts":{"bytes":35,"imports":[{"path":"packages/config-tools/src/config-file/get-config-file.ts","kind":"import-statement","original":"./get-config-file"}],"format":"esm"},"packages/config-tools/src/types.ts":{"bytes":1405,"imports":[{"path":"zod","kind":"import-statement","external":true},{"path":"./schema","kind":"import-statement","external":true}],"format":"esm"},"packages/config-tools/src/utilities/find-up.ts":{"bytes":648,"imports":[{"path":"fs","kind":"import-statement","external":true},{"path":"path","kind":"import-statement","external":true}],"format":"esm"},"packages/config-tools/src/utilities/find-workspace-root.ts":{"bytes":1755,"imports":[{"path":"packages/config-tools/src/utilities/find-up.ts","kind":"import-statement","original":"./find-up"}],"format":"esm"},"packages/config-tools/src/schema.ts":{"bytes":5942,"imports":[{"path":"zod","kind":"import-statement","external":true}],"format":"esm"},"packages/config-tools/src/utilities/get-default-config.ts":{"bytes":2608,"imports":[{"path":"fs","kind":"import-statement","external":true},{"path":"path","kind":"import-statement","external":true},{"path":"packages/config-tools/src/schema.ts","kind":"import-statement","original":"../schema"},{"path":"../types","kind":"import-statement","external":true},{"path":"packages/config-tools/src/utilities/find-workspace-root.ts","kind":"import-statement","original":"./find-workspace-root"}],"format":"esm"},"packages/config-tools/src/utilities/get-log-level.ts":{"bytes":1409,"imports":[{"path":"packages/config-tools/src/types.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/config-tools/src/utilities/index.ts":{"bytes":110,"imports":[{"path":"packages/config-tools/src/utilities/find-workspace-root.ts","kind":"import-statement","original":"./find-workspace-root"},{"path":"packages/config-tools/src/utilities/get-default-config.ts","kind":"import-statement","original":"./get-default-config"},{"path":"packages/config-tools/src/utilities/get-log-level.ts","kind":"import-statement","original":"./get-log-level"}],"format":"esm"},"packages/config-tools/src/env/get-env.ts":{"bytes":4221,"imports":[{"path":"packages/config-tools/src/types.ts","kind":"import-statement","original":"../types"},{"path":"packages/config-tools/src/utilities/index.ts","kind":"import-statement","original":"../utilities"}],"format":"esm"},"packages/config-tools/src/env/set-env.ts":{"bytes":5433,"imports":[{"path":"packages/config-tools/src/types.ts","kind":"import-statement","original":"../types"},{"path":"packages/config-tools/src/utilities/get-log-level.ts","kind":"import-statement","original":"../utilities/get-log-level"}],"format":"esm"},"packages/config-tools/src/create-storm-config.ts":{"bytes":3653,"imports":[{"path":"zod","kind":"import-statement","external":true},{"path":"packages/config-tools/src/config-file/get-config-file.ts","kind":"import-statement","original":"./config-file/get-config-file"},{"path":"packages/config-tools/src/env/get-env.ts","kind":"import-statement","original":"./env/get-env"},{"path":"packages/config-tools/src/env/set-env.ts","kind":"import-statement","original":"./env/set-env"},{"path":"packages/config-tools/src/schema.ts","kind":"import-statement","original":"./schema"},{"path":"./types","kind":"import-statement","external":true},{"path":"packages/config-tools/src/utilities/get-default-config.ts","kind":"import-statement","original":"./utilities/get-default-config"}],"format":"esm"},"packages/config-tools/src/env/index.ts":{"bytes":54,"imports":[{"path":"packages/config-tools/src/env/get-env.ts","kind":"import-statement","original":"./get-env"},{"path":"packages/config-tools/src/env/set-env.ts","kind":"import-statement","original":"./set-env"}],"format":"esm"},"packages/config-tools/src/index.ts":{"bytes":399,"imports":[{"path":"packages/config-tools/src/config-file/index.ts","kind":"import-statement","original":"./config-file"},{"path":"packages/config-tools/src/create-storm-config.ts","kind":"import-statement","original":"./create-storm-config"},{"path":"packages/config-tools/src/env/index.ts","kind":"import-statement","original":"./env"},{"path":"packages/config-tools/src/schema.ts","kind":"import-statement","original":"./schema"},{"path":"packages/config-tools/src/types.ts","kind":"import-statement","original":"./types"},{"path":"packages/config-tools/src/utilities/index.ts","kind":"import-statement","original":"./utilities"}],"format":"esm"}},"outputs":{"dist/packages/config-tools/index.js":{"imports":[{"path":"cosmiconfig","kind":"import-statement","external":true},{"path":"fs","kind":"import-statement","external":true},{"path":"path","kind":"import-statement","external":true},{"path":"fs","kind":"import-statement","external":true},{"path":"path","kind":"import-statement","external":true},{"path":"zod","kind":"import-statement","external":true}],"exports":["ColorConfigSchema","DefaultColorConfig","DefaultStormConfig","LogLevel","LogLevelLabel","StormConfigSchema","createConfig","createConfigExtension","createStormConfig","findWorkspaceRoot","findWorkspaceRootSafe","getConfigEnv","getConfigFile","getDefaultConfig","getExtensionEnv","getLogLevel","getLogLevelLabel","loadStormConfig","setConfigEnv","setExtensionEnv"],"entryPoint":"packages/config-tools/src/index.ts","inputs":{"packages/config-tools/src/config-file/get-config-file.ts":{"bytesInOutput":1650},"packages/config-tools/src/config-file/index.ts":{"bytesInOutput":0},"packages/config-tools/src/index.ts":{"bytesInOutput":0},"packages/config-tools/src/types.ts":{"bytesInOutput":256},"packages/config-tools/src/utilities/find-up.ts":{"bytesInOutput":502},"packages/config-tools/src/utilities/find-workspace-root.ts":{"bytesInOutput":1137},"packages/config-tools/src/utilities/index.ts":{"bytesInOutput":0},"packages/config-tools/src/utilities/get-default-config.ts":{"bytesInOutput":2030},"packages/config-tools/src/schema.ts":{"bytesInOutput":4585},"packages/config-tools/src/utilities/get-log-level.ts":{"bytesInOutput":1029},"packages/config-tools/src/env/get-env.ts":{"bytesInOutput":3121},"packages/config-tools/src/env/set-env.ts":{"bytesInOutput":4553},"packages/config-tools/src/create-storm-config.ts":{"bytesInOutput":1631},"packages/config-tools/src/env/index.ts":{"bytesInOutput":0}},"bytes":21466},"dist/packages/config-tools/utilities/find-workspace-root.js":{"imports":[{"path":"fs","kind":"import-statement","external":true},{"path":"path","kind":"import-statement","external":true}],"exports":["findWorkspaceRoot","findWorkspaceRootSafe"],"entryPoint":"packages/config-tools/src/utilities/find-workspace-root.ts","inputs":{"packages/config-tools/src/utilities/find-up.ts":{"bytesInOutput":502},"packages/config-tools/src/utilities/find-workspace-root.ts":{"bytesInOutput":1137}},"bytes":1809}}}
{
"name": "@storm-software/config-tools",
"version": "1.8.2",
"version": "1.9.0",
"private": false,

@@ -5,0 +5,0 @@ "description": "⚡The Storm-Ops monorepo contains utility applications, tools, and various libraries to create modern and scalable web applications.",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc