@powerlines/plugin-env 0.16.422 → 0.16.424
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/dist/babel/index.cjs +1 -1
- package/dist/babel/plugin.cjs +1 -2
- package/dist/babel/plugin.d.cts +2 -4
- package/dist/babel/plugin.d.cts.map +1 -1
- package/dist/babel/plugin.d.mts +2 -4
- package/dist/babel/plugin.d.mts.map +1 -1
- package/dist/babel/plugin.mjs +1 -2
- package/dist/components/docs.cjs +1 -2
- package/dist/components/docs.d.cts +0 -2
- package/dist/components/docs.d.cts.map +1 -1
- package/dist/components/docs.d.mts +0 -2
- package/dist/components/docs.mjs +1 -2
- package/dist/components/docs.mjs.map +1 -1
- package/dist/components/env-builtin.cjs +3 -4
- package/dist/components/env-builtin.d.cts +0 -2
- package/dist/components/env-builtin.d.cts.map +1 -1
- package/dist/components/env-builtin.d.mts +0 -2
- package/dist/components/env-builtin.mjs +2 -3
- package/dist/components/env-builtin.mjs.map +1 -1
- package/dist/components/index.cjs +2 -2
- package/dist/{env-C6HnpNy5.d.cts → env-D_Rv1Ho3.d.cts} +1 -3
- package/dist/env-D_Rv1Ho3.d.cts.map +1 -0
- package/dist/{env-h9Z7px6n.d.cts → env-D_Rv1Ho3.d.mts} +9 -11
- package/dist/env-D_Rv1Ho3.d.mts.map +1 -0
- package/dist/helpers/automd-generator.cjs +1 -2
- package/dist/helpers/automd-generator.d.cts +0 -2
- package/dist/helpers/automd-generator.d.cts.map +1 -1
- package/dist/helpers/automd-generator.d.mts +0 -2
- package/dist/helpers/automd-generator.mjs +1 -2
- package/dist/helpers/index.cjs +4 -4
- package/dist/helpers/load.cjs +3 -4
- package/dist/helpers/load.d.cts +1 -3
- package/dist/helpers/load.d.cts.map +1 -1
- package/dist/helpers/load.d.mts +1 -3
- package/dist/helpers/load.mjs +1 -2
- package/dist/helpers/load.mjs.map +1 -1
- package/dist/helpers/schema.cjs +2 -3
- package/dist/helpers/schema.d.cts +1 -3
- package/dist/helpers/schema.d.cts.map +1 -1
- package/dist/helpers/schema.d.mts +1 -3
- package/dist/helpers/schema.mjs +1 -2
- package/dist/helpers/schema.mjs.map +1 -1
- package/dist/helpers/source-file-env.cjs +1 -2
- package/dist/helpers/source-file-env.d.cts +0 -2
- package/dist/helpers/source-file-env.d.cts.map +1 -1
- package/dist/helpers/source-file-env.d.mts +0 -2
- package/dist/helpers/source-file-env.mjs +1 -2
- package/dist/index-CxT8uhoD.d.cts +1 -0
- package/dist/index-DqeAaIgy.d.mts +1 -0
- package/dist/{index-8YB6sr3U.d.mts → index-XhWie1j9.d.mts} +4 -6
- package/dist/index-XhWie1j9.d.mts.map +1 -0
- package/dist/{index-Bb5TA4ct.d.cts → index-zrtnqMQn.d.cts} +4 -6
- package/dist/index-zrtnqMQn.d.cts.map +1 -0
- package/dist/index.cjs +9 -10
- package/dist/index.d.cts +3 -3
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +1 -2
- package/dist/index.mjs.map +1 -1
- package/dist/{plugin-BkPUgX5Z.d.cts → plugin-Du0dty2t.d.mts} +3 -5
- package/dist/plugin-Du0dty2t.d.mts.map +1 -0
- package/dist/{plugin-DaVohK06.d.mts → plugin-TonlAu72.d.cts} +3 -5
- package/dist/plugin-TonlAu72.d.cts.map +1 -0
- package/dist/{rolldown-runtime-C24Yb2bl.cjs → rolldown-runtime-xuxB8TGW.cjs} +2 -3
- package/dist/schemas/env.cjs +2 -3
- package/dist/schemas/env.d.cts +1 -1
- package/dist/schemas/env.d.mts +1 -1
- package/dist/schemas/env.mjs +1 -2
- package/dist/schemas/index.cjs +1 -1
- package/dist/schemas/index.d.cts +1 -1
- package/dist/schemas/index.d.mts +1 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.mts +2 -2
- package/dist/types/plugin.cjs +2 -3
- package/dist/types/plugin.d.cts +1 -1
- package/dist/types/plugin.d.mts +1 -1
- package/dist/types/plugin.mjs +1 -2
- package/package.json +27 -27
- package/dist/env-C6HnpNy5.d.cts.map +0 -1
- package/dist/env-C6HnpNy5.d.mts +0 -230
- package/dist/env-C6HnpNy5.d.mts.map +0 -1
- package/dist/env-h9Z7px6n.d.cts.map +0 -1
- package/dist/env-h9Z7px6n.d.mts +0 -230
- package/dist/env-h9Z7px6n.d.mts.map +0 -1
- package/dist/index-8YB6sr3U.d.mts.map +0 -1
- package/dist/index-BTF5i_WR.d.cts +0 -1
- package/dist/index-Bb5TA4ct.d.cts.map +0 -1
- package/dist/index-CqmZxgBO.d.mts +0 -17
- package/dist/index-CqmZxgBO.d.mts.map +0 -1
- package/dist/index-N_SMJR7p.d.cts +0 -17
- package/dist/index-N_SMJR7p.d.cts.map +0 -1
- package/dist/index-hhwceVTM.d.mts +0 -1
- package/dist/plugin-BkPUgX5Z.d.cts.map +0 -1
- package/dist/plugin-DaVohK06.d.mts.map +0 -1
package/dist/babel/index.cjs
CHANGED
package/dist/babel/plugin.cjs
CHANGED
|
@@ -6,7 +6,7 @@ let _powerlines_plugin_babel_helpers_module_helpers = require("@powerlines/plugi
|
|
|
6
6
|
let _stryke_path_replace = require("@stryke/path/replace");
|
|
7
7
|
let _stryke_type_checks_is_undefined = require("@stryke/type-checks/is-undefined");
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
// src/babel/plugin.ts
|
|
10
10
|
const envBabelPlugin = (0, _powerlines_plugin_babel_helpers_create_plugin.createBabelPlugin)("env", ({ logger, context }) => {
|
|
11
11
|
const config = (0, _power_plant_schema.getProperties)(context.env.config);
|
|
12
12
|
function extractEnv(node, pass, isInjectable = false) {
|
|
@@ -62,5 +62,4 @@ const envBabelPlugin = (0, _powerlines_plugin_babel_helpers_create_plugin.create
|
|
|
62
62
|
} } };
|
|
63
63
|
});
|
|
64
64
|
|
|
65
|
-
//#endregion
|
|
66
65
|
exports.envBabelPlugin = envBabelPlugin;
|
package/dist/babel/plugin.d.cts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { r as EnvPluginResolvedConfig, t as EnvPluginContext } from "../plugin-
|
|
2
|
-
import "../index-
|
|
3
|
-
//#region src/babel/plugin.d.ts
|
|
1
|
+
import { r as EnvPluginResolvedConfig, t as EnvPluginContext } from "../plugin-TonlAu72.cjs";
|
|
2
|
+
import "../index-zrtnqMQn.cjs";
|
|
4
3
|
declare const envBabelPlugin: import("@powerlines/plugin-babel").DeclareBabelTransformPluginReturn<EnvPluginContext<EnvPluginResolvedConfig>, object>;
|
|
5
|
-
//#endregion
|
|
6
4
|
export { envBabelPlugin };
|
|
7
5
|
//# sourceMappingURL=plugin.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/babel/plugin.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"plugin.d.cts","names":["_$__0.EnvPluginResolvedConfig"],"sources":["../../src/babel/plugin.ts"],"mappings":";;cAmCa,mDAAc,kCAAA,iBAAdA"}
|
package/dist/babel/plugin.d.mts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { r as EnvPluginResolvedConfig, t as EnvPluginContext } from "../plugin-
|
|
2
|
-
import "../index-
|
|
3
|
-
//#region src/babel/plugin.d.ts
|
|
1
|
+
import { r as EnvPluginResolvedConfig, t as EnvPluginContext } from "../plugin-Du0dty2t.mjs";
|
|
2
|
+
import "../index-XhWie1j9.mjs";
|
|
4
3
|
declare const envBabelPlugin: import("@powerlines/plugin-babel").DeclareBabelTransformPluginReturn<EnvPluginContext<EnvPluginResolvedConfig>, object>;
|
|
5
|
-
//#endregion
|
|
6
4
|
export { envBabelPlugin };
|
|
7
5
|
//# sourceMappingURL=plugin.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/babel/plugin.ts"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"plugin.d.mts","names":["_$__0.EnvPluginResolvedConfig"],"sources":["../../src/babel/plugin.ts"],"mappings":""}
|
package/dist/babel/plugin.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { addImport } from "@powerlines/plugin-babel/helpers/module-helpers";
|
|
|
5
5
|
import { replacePath } from "@stryke/path/replace";
|
|
6
6
|
import { isUndefined } from "@stryke/type-checks/is-undefined";
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
// src/babel/plugin.ts
|
|
9
9
|
const envBabelPlugin = createBabelPlugin("env", ({ logger, context }) => {
|
|
10
10
|
const config = getProperties(context.env.config);
|
|
11
11
|
function extractEnv(node, pass, isInjectable = false) {
|
|
@@ -61,6 +61,5 @@ const envBabelPlugin = createBabelPlugin("env", ({ logger, context }) => {
|
|
|
61
61
|
} } };
|
|
62
62
|
});
|
|
63
63
|
|
|
64
|
-
//#endregion
|
|
65
64
|
export { envBabelPlugin };
|
|
66
65
|
//# sourceMappingURL=plugin.mjs.map
|
package/dist/components/docs.cjs
CHANGED
|
@@ -11,7 +11,7 @@ let _power_plant_alloy_js_markdown_components_markdown_table = require("@power-p
|
|
|
11
11
|
let _power_plant_schema_codegen = require("@power-plant/schema/codegen");
|
|
12
12
|
let _powerlines_plugin_alloy_core_contexts_context = require("@powerlines/plugin-alloy/core/contexts/context");
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
// src/components/docs.tsx
|
|
15
15
|
/**
|
|
16
16
|
* Generates the environment configuration markdown documentation for the Powerlines project.
|
|
17
17
|
*/
|
|
@@ -50,5 +50,4 @@ function EnvDocsFile(props) {
|
|
|
50
50
|
} }));
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
//#endregion
|
|
54
53
|
exports.EnvDocsFile = EnvDocsFile;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { MarkdownFileProps } from "@power-plant/alloy-js/markdown/components/markdown-file";
|
|
2
|
-
//#region src/components/docs.d.ts
|
|
3
2
|
interface EnvDocsFileProps extends Partial<MarkdownFileProps> {
|
|
4
3
|
/**
|
|
5
4
|
* The heading level offset to apply to the generated documentation.
|
|
@@ -15,6 +14,5 @@ interface EnvDocsFileProps extends Partial<MarkdownFileProps> {
|
|
|
15
14
|
* Generates the environment configuration markdown documentation for the Powerlines project.
|
|
16
15
|
*/
|
|
17
16
|
declare function EnvDocsFile(props: EnvDocsFileProps): import("@alloy-js/core").Children;
|
|
18
|
-
//#endregion
|
|
19
17
|
export { EnvDocsFile, EnvDocsFileProps };
|
|
20
18
|
//# sourceMappingURL=docs.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docs.d.cts","names":[],"sources":["../../src/components/docs.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"docs.d.cts","names":[],"sources":["../../src/components/docs.tsx"],"mappings":";UAiCiB,yBAAyB,QAAQ;;;;;;;;;EAShD;;;;;iBAMc,YAAY,OAAO,4CAAgB"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { MarkdownFileProps } from "@power-plant/alloy-js/markdown/components/markdown-file";
|
|
2
|
-
//#region src/components/docs.d.ts
|
|
3
2
|
interface EnvDocsFileProps extends Partial<MarkdownFileProps> {
|
|
4
3
|
/**
|
|
5
4
|
* The heading level offset to apply to the generated documentation.
|
|
@@ -15,6 +14,5 @@ interface EnvDocsFileProps extends Partial<MarkdownFileProps> {
|
|
|
15
14
|
* Generates the environment configuration markdown documentation for the Powerlines project.
|
|
16
15
|
*/
|
|
17
16
|
declare function EnvDocsFile(props: EnvDocsFileProps): import("@alloy-js/core").Children;
|
|
18
|
-
//#endregion
|
|
19
17
|
export { EnvDocsFile, EnvDocsFileProps };
|
|
20
18
|
//# sourceMappingURL=docs.d.mts.map
|
package/dist/components/docs.mjs
CHANGED
|
@@ -10,7 +10,7 @@ import { MarkdownTable } from "@power-plant/alloy-js/markdown/components/markdow
|
|
|
10
10
|
import { stringifyType } from "@power-plant/schema/codegen";
|
|
11
11
|
import { usePowerlines } from "@powerlines/plugin-alloy/core/contexts/context";
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
// src/components/docs.tsx
|
|
14
14
|
/**
|
|
15
15
|
* Generates the environment configuration markdown documentation for the Powerlines project.
|
|
16
16
|
*/
|
|
@@ -49,6 +49,5 @@ function EnvDocsFile(props) {
|
|
|
49
49
|
} }));
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
//#endregion
|
|
53
52
|
export { EnvDocsFile };
|
|
54
53
|
//# sourceMappingURL=docs.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docs.mjs","names":[],"sources":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"docs.mjs","names":["_$createComponent","_$mergeProps","_$memo"],"sources":[],"mappings":""}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_helpers_load = require(
|
|
2
|
+
const require_helpers_load = require("../helpers/load.cjs");
|
|
3
3
|
let _power_plant_schema = require("@power-plant/schema");
|
|
4
4
|
let _stryke_type_checks_is_set_object = require("@stryke/type-checks/is-set-object");
|
|
5
5
|
let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
@@ -16,7 +16,7 @@ let _stryke_convert_to_array = require("@stryke/convert/to-array");
|
|
|
16
16
|
let _stryke_helpers_deep_clone = require("@stryke/helpers/deep-clone");
|
|
17
17
|
let _stryke_helpers_get_unique = require("@stryke/helpers/get-unique");
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
// src/components/env-builtin.tsx
|
|
20
20
|
/**
|
|
21
21
|
* Generates the environment configuration typescript definition for the Powerlines project.
|
|
22
22
|
*/
|
|
@@ -221,7 +221,7 @@ function EnvBuiltin(props) {
|
|
|
221
221
|
result.name = "Env";
|
|
222
222
|
Object.entries(defaultValue.value ?? {}).forEach(([key, value]) => {
|
|
223
223
|
const unprefixedKey = key.replace(new RegExp(`^(${context.config.env.prefix.join("|")})_`), "");
|
|
224
|
-
if (unprefixedKey in (result.properties ?? {}) && (0, _stryke_type_checks_is_set_object.isSetObject)(result.properties?.[unprefixedKey])) result.properties[unprefixedKey] = {
|
|
224
|
+
if (unprefixedKey in (result.properties ?? {}) && (0, _stryke_type_checks_is_set_object.isSetObject)(result.properties?.[unprefixedKey]) && !result.properties[unprefixedKey].runtime) result.properties[unprefixedKey] = {
|
|
225
225
|
...result.properties?.[unprefixedKey],
|
|
226
226
|
default: value
|
|
227
227
|
};
|
|
@@ -490,6 +490,5 @@ function EnvBuiltin(props) {
|
|
|
490
490
|
} }));
|
|
491
491
|
}
|
|
492
492
|
|
|
493
|
-
//#endregion
|
|
494
493
|
exports.EnvBuiltin = EnvBuiltin;
|
|
495
494
|
exports.EnvTypeDefinition = EnvTypeDefinition;
|
|
@@ -2,7 +2,6 @@ import { Children } from "@alloy-js/core";
|
|
|
2
2
|
import { JsonSchemaObject } from "@power-plant/schema";
|
|
3
3
|
import { ComponentProps } from "@power-plant/alloy-js/core/types/components";
|
|
4
4
|
import { BuiltinFileProps } from "@powerlines/plugin-alloy/typescript/components";
|
|
5
|
-
//#region src/components/env-builtin.d.ts
|
|
6
5
|
interface EnvTypeDefinitionProps extends ComponentProps {
|
|
7
6
|
schema: JsonSchemaObject;
|
|
8
7
|
}
|
|
@@ -17,6 +16,5 @@ interface EnvBuiltinProps extends Omit<BuiltinFileProps, "id"> {
|
|
|
17
16
|
* Generates the environment configuration module for the Powerlines project.
|
|
18
17
|
*/
|
|
19
18
|
declare function EnvBuiltin(props: EnvBuiltinProps): Children;
|
|
20
|
-
//#endregion
|
|
21
19
|
export { EnvBuiltin, EnvBuiltinProps, EnvTypeDefinition, EnvTypeDefinitionProps };
|
|
22
20
|
//# sourceMappingURL=env-builtin.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env-builtin.d.cts","names":[],"sources":["../../src/components/env-builtin.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"env-builtin.d.cts","names":[],"sources":["../../src/components/env-builtin.tsx"],"mappings":";;;;UAmEiB,+BAA+B;EAC9C,QAAQ;;;;;iBAMM,kBAAkB,OAAO,yBAAsB;UA6L9C,wBAAwB,KAAK;EAC5C,gBAAgB;;;;;iBASF,WAAW,OAAO,kBAAe"}
|
|
@@ -2,7 +2,6 @@ import { JsonSchemaObject } from "@power-plant/schema";
|
|
|
2
2
|
import { Children } from "@alloy-js/core";
|
|
3
3
|
import { BuiltinFileProps } from "@powerlines/plugin-alloy/typescript/components";
|
|
4
4
|
import { ComponentProps } from "@power-plant/alloy-js/core/types/components";
|
|
5
|
-
//#region src/components/env-builtin.d.ts
|
|
6
5
|
interface EnvTypeDefinitionProps extends ComponentProps {
|
|
7
6
|
schema: JsonSchemaObject;
|
|
8
7
|
}
|
|
@@ -17,6 +16,5 @@ interface EnvBuiltinProps extends Omit<BuiltinFileProps, "id"> {
|
|
|
17
16
|
* Generates the environment configuration module for the Powerlines project.
|
|
18
17
|
*/
|
|
19
18
|
declare function EnvBuiltin(props: EnvBuiltinProps): Children;
|
|
20
|
-
//#endregion
|
|
21
19
|
export { EnvBuiltin, EnvBuiltinProps, EnvTypeDefinition, EnvTypeDefinitionProps };
|
|
22
20
|
//# sourceMappingURL=env-builtin.d.mts.map
|
|
@@ -15,7 +15,7 @@ import { toArray } from "@stryke/convert/to-array";
|
|
|
15
15
|
import { deepClone } from "@stryke/helpers/deep-clone";
|
|
16
16
|
import { getUnique } from "@stryke/helpers/get-unique";
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
// src/components/env-builtin.tsx
|
|
19
19
|
/**
|
|
20
20
|
* Generates the environment configuration typescript definition for the Powerlines project.
|
|
21
21
|
*/
|
|
@@ -220,7 +220,7 @@ function EnvBuiltin(props) {
|
|
|
220
220
|
result.name = "Env";
|
|
221
221
|
Object.entries(defaultValue.value ?? {}).forEach(([key, value]) => {
|
|
222
222
|
const unprefixedKey = key.replace(new RegExp(`^(${context.config.env.prefix.join("|")})_`), "");
|
|
223
|
-
if (unprefixedKey in (result.properties ?? {}) && isSetObject(result.properties?.[unprefixedKey])) result.properties[unprefixedKey] = {
|
|
223
|
+
if (unprefixedKey in (result.properties ?? {}) && isSetObject(result.properties?.[unprefixedKey]) && !result.properties[unprefixedKey].runtime) result.properties[unprefixedKey] = {
|
|
224
224
|
...result.properties?.[unprefixedKey],
|
|
225
225
|
default: value
|
|
226
226
|
};
|
|
@@ -489,6 +489,5 @@ function EnvBuiltin(props) {
|
|
|
489
489
|
} }));
|
|
490
490
|
}
|
|
491
491
|
|
|
492
|
-
//#endregion
|
|
493
492
|
export { EnvBuiltin, EnvTypeDefinition };
|
|
494
493
|
//# sourceMappingURL=env-builtin.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env-builtin.mjs","names":[],"sources":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"env-builtin.mjs","names":["_$createComponent","InterfaceDeclaration","BaseInterfaceDeclaration","_$mergeProps","_$createIntrinsic"],"sources":[],"mappings":""}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_components_docs = require(
|
|
3
|
-
const require_components_env_builtin = require(
|
|
2
|
+
const require_components_docs = require("./docs.cjs");
|
|
3
|
+
const require_components_env_builtin = require("./env-builtin.cjs");
|
|
4
4
|
|
|
5
5
|
exports.EnvBuiltin = require_components_env_builtin.EnvBuiltin;
|
|
6
6
|
exports.EnvDocsFile = require_components_docs.EnvDocsFile;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
|
-
//#region src/schemas/env.d.ts
|
|
3
2
|
declare module "zod" {
|
|
4
3
|
interface GlobalMeta {
|
|
5
4
|
/**
|
|
@@ -225,6 +224,5 @@ type Secrets = z.infer<typeof secretsSchema>;
|
|
|
225
224
|
* Input type for {@link secretsSchema}.
|
|
226
225
|
*/
|
|
227
226
|
type SecretsInput = z.input<typeof secretsSchema>;
|
|
228
|
-
//#endregion
|
|
229
227
|
export { LogLevel as a, ModeSchema as c, Runtime as d, RuntimeSchema as f, secretsSchema as g, envSchema as h, EnvInput as i, Platform as l, SecretsInput as m, BooleanOrNumberSchema as n, LogLevelSchema as o, Secrets as p, Env as r, Mode as s, BooleanOrNumber as t, PlatformSchema as u };
|
|
230
|
-
//# sourceMappingURL=env-
|
|
228
|
+
//# sourceMappingURL=env-D_Rv1Ho3.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"env-D_Rv1Ho3.d.cts","names":[],"sources":["../src/schemas/env.ts"],"mappings":";;YAqBY;;;;IAIR;;;;IAKA;;;;IAKA;;;;IAKA;;;;IAKA;;;;IAKA;;;;IAKA;;;;;;cAOS,eAAa,EAAA;;;;;;KACd,UAAU,EAAE,aAAa;;;;cAKxB,gBAAc,EAAA;;;;;KACf,WAAW,EAAE,aAAa;;;;cAKzB,YAAU,EAAA;;;;;KACX,OAAO,EAAE,aAAa;;;;cAKrB,gBAAc,EAAA;;;;;;KACf,WAAW,EAAE,aAAa;;;;cAKzB,uBAAqB,EAAA,mBAAA,EAAA,YAAA,EAAA;KACtB,kBAAkB,EAAE,aAAa;;;;;;;cAQhC,WAAS,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiwBlB,EAAA,KAAA;;;;KAKQ,MAAM,EAAE,aAAa;;;;KAKrB,WAAW,EAAE,aAAa;;;;;;;cAQzB,eAAa,EAAA;;GAWtB,EAAA,KAAA;;;;KAKQ,UAAU,EAAE,aAAa;;;;KAKzB,eAAe,EAAE,aAAa"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
|
-
//#region src/schemas/env.d.ts
|
|
3
2
|
declare module "zod" {
|
|
4
3
|
interface GlobalMeta {
|
|
5
4
|
/**
|
|
@@ -36,10 +35,10 @@ declare module "zod" {
|
|
|
36
35
|
* Runtime environment the application may execute in.
|
|
37
36
|
*/
|
|
38
37
|
declare const RuntimeSchema: z.ZodEnum<{
|
|
39
|
-
nodejs: "nodejs";
|
|
40
38
|
deno: "deno";
|
|
41
|
-
workerd: "workerd";
|
|
42
39
|
browser: "browser";
|
|
40
|
+
nodejs: "nodejs";
|
|
41
|
+
workerd: "workerd";
|
|
43
42
|
}>;
|
|
44
43
|
type Runtime = z.infer<typeof RuntimeSchema>;
|
|
45
44
|
/**
|
|
@@ -56,18 +55,18 @@ type Platform = z.infer<typeof PlatformSchema>;
|
|
|
56
55
|
*/
|
|
57
56
|
declare const ModeSchema: z.ZodEnum<{
|
|
58
57
|
test: "test";
|
|
59
|
-
production: "production";
|
|
60
58
|
development: "development";
|
|
59
|
+
production: "production";
|
|
61
60
|
}>;
|
|
62
61
|
type Mode = z.infer<typeof ModeSchema>;
|
|
63
62
|
/**
|
|
64
63
|
* Lowest log level the logger will accept.
|
|
65
64
|
*/
|
|
66
65
|
declare const LogLevelSchema: z.ZodEnum<{
|
|
67
|
-
debug: "debug";
|
|
68
66
|
error: "error";
|
|
69
67
|
warn: "warn";
|
|
70
68
|
info: "info";
|
|
69
|
+
debug: "debug";
|
|
71
70
|
}>;
|
|
72
71
|
type LogLevel = z.infer<typeof LogLevelSchema>;
|
|
73
72
|
/**
|
|
@@ -91,10 +90,10 @@ declare const envSchema: z.ZodObject<{
|
|
|
91
90
|
RELEASE_TAG: z.ZodString;
|
|
92
91
|
ORGANIZATION: z.ZodString;
|
|
93
92
|
RUNTIME: z.ZodOptional<z.ZodEnum<{
|
|
94
|
-
nodejs: "nodejs";
|
|
95
93
|
deno: "deno";
|
|
96
|
-
workerd: "workerd";
|
|
97
94
|
browser: "browser";
|
|
95
|
+
nodejs: "nodejs";
|
|
96
|
+
workerd: "workerd";
|
|
98
97
|
}>>;
|
|
99
98
|
PLATFORM: z.ZodDefault<z.ZodEnum<{
|
|
100
99
|
node: "node";
|
|
@@ -103,8 +102,8 @@ declare const envSchema: z.ZodObject<{
|
|
|
103
102
|
}>>;
|
|
104
103
|
MODE: z.ZodDefault<z.ZodEnum<{
|
|
105
104
|
test: "test";
|
|
106
|
-
production: "production";
|
|
107
105
|
development: "development";
|
|
106
|
+
production: "production";
|
|
108
107
|
}>>;
|
|
109
108
|
ENVIRONMENT: z.ZodDefault<z.ZodString>;
|
|
110
109
|
DEBUG: z.ZodBoolean;
|
|
@@ -130,10 +129,10 @@ declare const envSchema: z.ZodObject<{
|
|
|
130
129
|
DEFAULT_TIMEZONE: z.ZodDefault<z.ZodString>;
|
|
131
130
|
DEFAULT_LOCALE: z.ZodDefault<z.ZodString>;
|
|
132
131
|
LOG_LEVEL: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
|
|
133
|
-
debug: "debug";
|
|
134
132
|
error: "error";
|
|
135
133
|
warn: "warn";
|
|
136
134
|
info: "info";
|
|
135
|
+
debug: "debug";
|
|
137
136
|
}>>>;
|
|
138
137
|
CI: z.ZodBoolean;
|
|
139
138
|
RUN_ID: z.ZodOptional<z.ZodString>;
|
|
@@ -225,6 +224,5 @@ type Secrets = z.infer<typeof secretsSchema>;
|
|
|
225
224
|
* Input type for {@link secretsSchema}.
|
|
226
225
|
*/
|
|
227
226
|
type SecretsInput = z.input<typeof secretsSchema>;
|
|
228
|
-
//#endregion
|
|
229
227
|
export { LogLevel as a, ModeSchema as c, Runtime as d, RuntimeSchema as f, secretsSchema as g, envSchema as h, EnvInput as i, Platform as l, SecretsInput as m, BooleanOrNumberSchema as n, LogLevelSchema as o, Secrets as p, Env as r, Mode as s, BooleanOrNumber as t, PlatformSchema as u };
|
|
230
|
-
//# sourceMappingURL=env-
|
|
228
|
+
//# sourceMappingURL=env-D_Rv1Ho3.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"env-D_Rv1Ho3.d.mts","names":[],"sources":["../src/schemas/env.ts"],"mappings":""}
|
|
@@ -3,7 +3,7 @@ let _stryke_path_join_paths = require("@stryke/path/join-paths");
|
|
|
3
3
|
let automd = require("automd");
|
|
4
4
|
let powerlines_plugin_utils = require("powerlines/plugin-utils");
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/helpers/automd-generator.ts
|
|
7
7
|
/**
|
|
8
8
|
* AutoMD generator to generate environment variable documentation
|
|
9
9
|
*
|
|
@@ -19,5 +19,4 @@ const env = (context) => (0, automd.defineGenerator)({
|
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
21
|
|
|
22
|
-
//#endregion
|
|
23
22
|
exports.env = env;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { UnresolvedContext } from "powerlines";
|
|
2
|
-
//#region src/helpers/automd-generator.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* AutoMD generator to generate environment variable documentation
|
|
5
4
|
*
|
|
@@ -7,6 +6,5 @@ import { UnresolvedContext } from "powerlines";
|
|
|
7
6
|
* @returns The generated documentation content.
|
|
8
7
|
*/
|
|
9
8
|
declare const env: (context: UnresolvedContext) => import("automd").Generator;
|
|
10
|
-
//#endregion
|
|
11
9
|
export { env };
|
|
12
10
|
//# sourceMappingURL=automd-generator.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"automd-generator.d.cts","names":[],"sources":["../../src/helpers/automd-generator.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"automd-generator.d.cts","names":[],"sources":["../../src/helpers/automd-generator.ts"],"mappings":";;;;;;;cA6Ba,MAAO,SAAS,uCAAiB"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { UnresolvedContext } from "powerlines";
|
|
2
|
-
//#region src/helpers/automd-generator.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* AutoMD generator to generate environment variable documentation
|
|
5
4
|
*
|
|
@@ -7,6 +6,5 @@ import { UnresolvedContext } from "powerlines";
|
|
|
7
6
|
* @returns The generated documentation content.
|
|
8
7
|
*/
|
|
9
8
|
declare const env: (context: UnresolvedContext) => import("automd").Generator;
|
|
10
|
-
//#endregion
|
|
11
9
|
export { env };
|
|
12
10
|
//# sourceMappingURL=automd-generator.d.mts.map
|
|
@@ -2,7 +2,7 @@ import { joinPaths } from "@stryke/path/join-paths";
|
|
|
2
2
|
import { defineGenerator } from "automd";
|
|
3
3
|
import { getDocsOutputPath } from "powerlines/plugin-utils";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/helpers/automd-generator.ts
|
|
6
6
|
/**
|
|
7
7
|
* AutoMD generator to generate environment variable documentation
|
|
8
8
|
*
|
|
@@ -18,6 +18,5 @@ const env = (context) => defineGenerator({
|
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
20
|
|
|
21
|
-
//#endregion
|
|
22
21
|
export { env };
|
|
23
22
|
//# sourceMappingURL=automd-generator.mjs.map
|
package/dist/helpers/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_helpers_source_file_env = require(
|
|
3
|
-
const require_helpers_load = require(
|
|
4
|
-
const require_helpers_schema = require(
|
|
5
|
-
const require_helpers_automd_generator = require(
|
|
2
|
+
const require_helpers_source_file_env = require("./source-file-env.cjs");
|
|
3
|
+
const require_helpers_load = require("./load.cjs");
|
|
4
|
+
const require_helpers_schema = require("./schema.cjs");
|
|
5
|
+
const require_helpers_automd_generator = require("./automd-generator.cjs");
|
|
6
6
|
|
|
7
7
|
exports.env = require_helpers_automd_generator.env;
|
|
8
8
|
exports.extractEnv = require_helpers_schema.extractEnv;
|
package/dist/helpers/load.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_rolldown_runtime = require(
|
|
3
|
-
const require_helpers_source_file_env = require(
|
|
2
|
+
const require_rolldown_runtime = require("../rolldown-runtime-xuxB8TGW.cjs");
|
|
3
|
+
const require_helpers_source_file_env = require("./source-file-env.cjs");
|
|
4
4
|
let _power_plant_schema = require("@power-plant/schema");
|
|
5
5
|
let _stryke_type_checks_is_set_object = require("@stryke/type-checks/is-set-object");
|
|
6
6
|
let _storm_software_config_tools_get_config = require("@storm-software/config-tools/get-config");
|
|
@@ -13,7 +13,7 @@ let defu = require("defu");
|
|
|
13
13
|
defu = require_rolldown_runtime.__toESM(defu, 1);
|
|
14
14
|
let powerlines_constants = require("powerlines/constants");
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
// src/helpers/load.ts
|
|
17
17
|
async function loadEnvFiles(options, mode, cwd) {
|
|
18
18
|
let env = await (0, _stryke_env_load_env.loadEnv)(cwd, mode);
|
|
19
19
|
if (options.additionalFiles && options.additionalFiles?.length > 0) {
|
|
@@ -91,6 +91,5 @@ async function loadEnv(context, options = context.config.env) {
|
|
|
91
91
|
return (0, defu.default)(loadEnvFromContext(context, process.env, workspaceConfig), project, workspace, config);
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
//#endregion
|
|
95
94
|
exports.loadEnv = loadEnv;
|
|
96
95
|
exports.loadEnvFromContext = loadEnvFromContext;
|
package/dist/helpers/load.d.cts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { n as EnvPluginOptions, t as EnvPluginContext } from "../plugin-
|
|
1
|
+
import { n as EnvPluginOptions, t as EnvPluginContext } from "../plugin-TonlAu72.cjs";
|
|
2
2
|
import { WorkspaceConfig } from "powerlines";
|
|
3
3
|
import { DotenvParseOutput } from "@stryke/env/types";
|
|
4
|
-
//#region src/helpers/load.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* Retrieves various dotenv configuration parameters from the context.
|
|
7
6
|
*
|
|
@@ -31,6 +30,5 @@ declare function loadEnvFromContext(context: EnvPluginContext, parsed: DotenvPar
|
|
|
31
30
|
ENVIRONMENT: string;
|
|
32
31
|
};
|
|
33
32
|
declare function loadEnv<TEnv extends DotenvParseOutput = DotenvParseOutput>(context: EnvPluginContext, options?: EnvPluginOptions): Promise<TEnv>;
|
|
34
|
-
//#endregion
|
|
35
33
|
export { loadEnv, loadEnvFromContext };
|
|
36
34
|
//# sourceMappingURL=load.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"load.d.cts","names":[],"sources":["../../src/helpers/load.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"load.d.cts","names":[],"sources":["../../src/helpers/load.ts"],"mappings":";;;;;;;;;;iBAiGgB,mBACd,SAAS,kBACT,QAAQ,mBACR,kBAAkB;;;;;;;;;;;;;;;;;;;;;iBA4DE,QACpB,aAAa,oBAAoB,mBAEjC,SAAS,kBACT,UAAS,mBACR,QAAQ"}
|
package/dist/helpers/load.d.mts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { n as EnvPluginOptions, t as EnvPluginContext } from "../plugin-
|
|
1
|
+
import { n as EnvPluginOptions, t as EnvPluginContext } from "../plugin-Du0dty2t.mjs";
|
|
2
2
|
import { DotenvParseOutput } from "@stryke/env/types";
|
|
3
3
|
import { WorkspaceConfig } from "powerlines";
|
|
4
|
-
//#region src/helpers/load.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* Retrieves various dotenv configuration parameters from the context.
|
|
7
6
|
*
|
|
@@ -31,6 +30,5 @@ declare function loadEnvFromContext(context: EnvPluginContext, parsed: DotenvPar
|
|
|
31
30
|
ENVIRONMENT: string;
|
|
32
31
|
};
|
|
33
32
|
declare function loadEnv<TEnv extends DotenvParseOutput = DotenvParseOutput>(context: EnvPluginContext, options?: EnvPluginOptions): Promise<TEnv>;
|
|
34
|
-
//#endregion
|
|
35
33
|
export { loadEnv, loadEnvFromContext };
|
|
36
34
|
//# sourceMappingURL=load.d.mts.map
|
package/dist/helpers/load.mjs
CHANGED
|
@@ -10,7 +10,7 @@ import { loadConfig } from "c12";
|
|
|
10
10
|
import defu from "defu";
|
|
11
11
|
import { DEFAULT_ENVIRONMENT } from "powerlines/constants";
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
// src/helpers/load.ts
|
|
14
14
|
async function loadEnvFiles(options, mode, cwd) {
|
|
15
15
|
let env = await loadEnv$1(cwd, mode);
|
|
16
16
|
if (options.additionalFiles && options.additionalFiles?.length > 0) {
|
|
@@ -88,6 +88,5 @@ async function loadEnv(context, options = context.config.env) {
|
|
|
88
88
|
return defu(loadEnvFromContext(context, process.env, workspaceConfig), project, workspace, config);
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
//#endregion
|
|
92
91
|
export { loadEnv, loadEnvFromContext };
|
|
93
92
|
//# sourceMappingURL=load.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"load.mjs","names":[],"sources":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"load.mjs","names":["loadEnvBase","loadEnvFileBase"],"sources":[],"mappings":""}
|
package/dist/helpers/schema.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_helpers_load = require(
|
|
2
|
+
const require_helpers_load = require("./load.cjs");
|
|
3
3
|
let _power_plant_schema = require("@power-plant/schema");
|
|
4
4
|
let _powerlines_plugin_power_plant_helpers = require("@powerlines/plugin-power-plant/helpers");
|
|
5
5
|
let _stryke_path_join = require("@stryke/path/join");
|
|
@@ -7,7 +7,7 @@ let _stryke_type_checks_is_set_array = require("@stryke/type-checks/is-set-array
|
|
|
7
7
|
let _stryke_type_checks_is_set_object = require("@stryke/type-checks/is-set-object");
|
|
8
8
|
let _stryke_type_checks_is_set_string = require("@stryke/type-checks/is-set-string");
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
// src/helpers/schema.ts
|
|
11
11
|
/**
|
|
12
12
|
* Resolves the runtime Zod schema file for the environment variables.
|
|
13
13
|
*
|
|
@@ -163,7 +163,6 @@ async function writeEnv(context) {
|
|
|
163
163
|
return Promise.all([writeActive(context, "config", context.env.config), writeActive(context, "secrets", context.env.secrets)]);
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
-
//#endregion
|
|
167
166
|
exports.extractEnv = extractEnv;
|
|
168
167
|
exports.getCacheDirectory = getCacheDirectory;
|
|
169
168
|
exports.getCacheFilePath = getCacheFilePath;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { t as EnvPluginContext } from "../plugin-
|
|
1
|
+
import { t as EnvPluginContext } from "../plugin-TonlAu72.cjs";
|
|
2
2
|
import { UnresolvedContext } from "powerlines";
|
|
3
3
|
import { FileReference } from "@stryke/types/configuration";
|
|
4
|
-
//#region src/helpers/schema.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* Resolves the runtime Zod schema file for the environment variables.
|
|
7
6
|
*
|
|
@@ -48,6 +47,5 @@ declare function extractEnv<TContext extends EnvPluginContext>(context: TContext
|
|
|
48
47
|
* @returns A promise that resolves when the schema has been successfully written to the cache directory.
|
|
49
48
|
*/
|
|
50
49
|
declare function writeEnv<TContext extends EnvPluginContext>(context: TContext): Promise<void[]>;
|
|
51
|
-
//#endregion
|
|
52
50
|
export { extractEnv, getCacheDirectory, getCacheFilePath, getDefaultConfig, getDefaultSecrets, resolveRuntimeSchemaFile, writeEnv };
|
|
53
51
|
//# sourceMappingURL=schema.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.cts","names":[],"sources":["../../src/helpers/schema.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"schema.d.cts","names":[],"sources":["../../src/helpers/schema.ts"],"mappings":";;;;;;;;;iBA0CsB,yBACpB,iBAAiB,mBACjB,SAAS,WAAW;;;;;;;iBAmBA,iBAAiB,iBAAiB,mBACtD,SAAS,WACR,QAAQ;;;;;;;iBAaW,kBAAkB,iBAAiB,mBACvD,SAAS,WACR,QAAQ;;;;;;;iBAaK,kBAAkB,iBAAiB,kBACjD,SAAS;iBAKK,iBAAiB,iBAAiB,kBAChD,SAAS,UACT;;;;;;;;;;iBA+CoB,WAAW,iBAAiB,kBAChD,SAAS,WACR;;;;;;;iBAqNmB,SAAS,iBAAiB,kBAC9C,SAAS,WACR"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { t as EnvPluginContext } from "../plugin-
|
|
1
|
+
import { t as EnvPluginContext } from "../plugin-Du0dty2t.mjs";
|
|
2
2
|
import { UnresolvedContext } from "powerlines";
|
|
3
3
|
import { FileReference } from "@stryke/types/configuration";
|
|
4
|
-
//#region src/helpers/schema.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* Resolves the runtime Zod schema file for the environment variables.
|
|
7
6
|
*
|
|
@@ -48,6 +47,5 @@ declare function extractEnv<TContext extends EnvPluginContext>(context: TContext
|
|
|
48
47
|
* @returns A promise that resolves when the schema has been successfully written to the cache directory.
|
|
49
48
|
*/
|
|
50
49
|
declare function writeEnv<TContext extends EnvPluginContext>(context: TContext): Promise<void[]>;
|
|
51
|
-
//#endregion
|
|
52
50
|
export { extractEnv, getCacheDirectory, getCacheFilePath, getDefaultConfig, getDefaultSecrets, resolveRuntimeSchemaFile, writeEnv };
|
|
53
51
|
//# sourceMappingURL=schema.d.mts.map
|
package/dist/helpers/schema.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import { isSetArray } from "@stryke/type-checks/is-set-array";
|
|
|
6
6
|
import { isSetObject } from "@stryke/type-checks/is-set-object";
|
|
7
7
|
import { isSetString } from "@stryke/type-checks/is-set-string";
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
// src/helpers/schema.ts
|
|
10
10
|
/**
|
|
11
11
|
* Resolves the runtime Zod schema file for the environment variables.
|
|
12
12
|
*
|
|
@@ -162,6 +162,5 @@ async function writeEnv(context) {
|
|
|
162
162
|
return Promise.all([writeActive(context, "config", context.env.config), writeActive(context, "secrets", context.env.secrets)]);
|
|
163
163
|
}
|
|
164
164
|
|
|
165
|
-
//#endregion
|
|
166
165
|
export { extractEnv, getCacheDirectory, getCacheFilePath, getDefaultConfig, getDefaultSecrets, resolveRuntimeSchemaFile, writeEnv };
|
|
167
166
|
//# sourceMappingURL=schema.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.mjs","names":[],"sources":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"schema.mjs","names":["_exhaustive"],"sources":[],"mappings":""}
|
|
@@ -3,7 +3,7 @@ let _stryke_env_types = require("@stryke/env/types");
|
|
|
3
3
|
let _stryke_string_format_camel_case = require("@stryke/string-format/camel-case");
|
|
4
4
|
let _stryke_type_checks_is_string = require("@stryke/type-checks/is-string");
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/helpers/source-file-env.ts
|
|
7
7
|
function removeEnvPrefix(env) {
|
|
8
8
|
if ((0, _stryke_type_checks_is_string.isString)(env)) {
|
|
9
9
|
let name = _stryke_env_types.ENV_PREFIXES.reduce((ret, prefix) => {
|
|
@@ -23,6 +23,5 @@ function formatEnvField(key) {
|
|
|
23
23
|
return (0, _stryke_string_format_camel_case.camelCase)(removeEnvPrefix(key));
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
//#endregion
|
|
27
26
|
exports.formatEnvField = formatEnvField;
|
|
28
27
|
exports.removeEnvPrefix = removeEnvPrefix;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { DotenvParseOutput } from "@stryke/env/types";
|
|
2
|
-
//#region src/helpers/source-file-env.d.ts
|
|
3
2
|
type TReturned<TEnv> = TEnv extends string ? string : DotenvParseOutput;
|
|
4
3
|
declare function removeEnvPrefix<TEnv extends DotenvParseOutput | string>(env: TEnv): TReturned<TEnv>;
|
|
5
4
|
declare function formatEnvField(key: string): string;
|
|
6
|
-
//#endregion
|
|
7
5
|
export { formatEnvField, removeEnvPrefix };
|
|
8
6
|
//# sourceMappingURL=source-file-env.d.cts.map
|