@powerlines/plugin-env 0.16.327 → 0.16.328
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/plugin.d.mts.map +1 -1
- package/dist/babel/plugin.mjs.map +1 -1
- package/dist/components/docs.d.mts.map +1 -1
- package/dist/components/docs.mjs.map +1 -1
- package/dist/components/env-builtin.d.mts.map +1 -1
- package/dist/components/env-builtin.mjs.map +1 -1
- package/dist/helpers/automd-generator.d.mts.map +1 -1
- package/dist/helpers/automd-generator.mjs.map +1 -1
- package/dist/helpers/load.d.cts +1 -1
- package/dist/helpers/load.d.mts +1 -1
- package/dist/helpers/load.d.mts.map +1 -1
- package/dist/helpers/load.mjs.map +1 -1
- package/dist/helpers/schema.d.mts.map +1 -1
- package/dist/helpers/schema.mjs.map +1 -1
- package/dist/helpers/source-file-env.d.mts.map +1 -1
- package/dist/helpers/source-file-env.mjs.map +1 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/types/env.d.mts.map +1 -1
- package/dist/types/env.mjs.map +1 -1
- package/dist/types/plugin.d.mts.map +1 -1
- package/dist/types/plugin.mjs.map +1 -1
- package/package.json +9 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/babel/plugin.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/babel/plugin.ts"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.mjs","names":[],"sources":[
|
|
1
|
+
{"version":3,"file":"plugin.mjs","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docs.d.mts","names":[],"sources":["../../src/components/docs.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"docs.d.mts","names":[],"sources":["../../src/components/docs.tsx"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docs.mjs","names":[],"sources":[
|
|
1
|
+
{"version":3,"file":"docs.mjs","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env-builtin.d.mts","names":[],"sources":["../../src/components/env-builtin.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"env-builtin.d.mts","names":[],"sources":["../../src/components/env-builtin.tsx"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env-builtin.mjs","names":[],"sources":["../../src/components/env-builtin.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport {\n Children,\n code,\n computed,\n For,\n Show,\n splitProps\n} from \"@alloy-js/core\";\nimport {\n InterfaceDeclaration as BaseInterfaceDeclaration,\n ElseIfClause,\n FunctionDeclaration,\n IfStatement,\n VarDeclaration\n} from \"@alloy-js/typescript\";\nimport { Spacing } from \"@powerlines/plugin-alloy/core/components/spacing\";\nimport { usePowerlines } from \"@powerlines/plugin-alloy/core/contexts/context\";\nimport { refkey } from \"@powerlines/plugin-alloy/helpers/refkey\";\nimport type { ComponentProps } from \"@powerlines/plugin-alloy/types/components\";\nimport {\n BuiltinFile,\n BuiltinFileProps,\n InterfaceDeclaration,\n InterfaceMember,\n ObjectDeclaration,\n TSDocSchemaProperty\n} from \"@powerlines/plugin-alloy/typescript/components\";\nimport {\n TSDoc,\n TSDocParam,\n TSDocRemarks,\n TSDocReturns\n} from \"@powerlines/plugin-alloy/typescript/components/tsdoc\";\nimport {\n generateParserCode,\n getPropertiesList,\n GetPropertiesResult,\n JsonSchema,\n JsonSchemaObject\n} from \"@powerlines/schema\";\nimport { deepClone } from \"@stryke/helpers/deep-clone\";\nimport { getUnique } from \"@stryke/helpers/get-unique\";\nimport { isSetObject } from \"@stryke/type-checks/is-set-object\";\nimport { loadEnvFromContext } from \"../helpers/load\";\nimport type { EnvPluginContext } from \"../types/plugin\";\n\nexport interface EnvTypeDefinitionProps extends ComponentProps {\n schema: JsonSchemaObject;\n}\n\n/**\n * Generates the environment configuration typescript definition for the Powerlines project.\n */\nexport function EnvTypeDefinition(props: EnvTypeDefinitionProps) {\n const context = usePowerlines<EnvPluginContext>();\n const { schema } = props;\n\n return (\n <>\n <InterfaceDeclaration name=\"UnprefixedEnv\" schema={schema} export />\n <Spacing />\n <TSDoc heading=\"The environment configuration object with prefixed keys.\">\n <TSDocRemarks>\n {`The \\`Env\\` type extends the \\`UnprefixedEnv\\` interface by including additional keys that are prefixed according to the project's configuration. This allows for flexibility in accessing environment variables with different naming conventions.`}\n </TSDocRemarks>\n </TSDoc>\n <BaseInterfaceDeclaration name=\"Env\" export extends=\"UnprefixedEnv\">\n <For\n each={getUnique(context.config.env.prefix).map(prefix =>\n prefix.replace(/_$/, \"\")\n )}\n doubleHardline>\n {prefix => (\n <For\n each={\n getPropertiesList(schema).filter(\n property => !property.ignore\n ) ?? []\n }\n doubleHardline>\n {property => (\n <>\n <TSDocSchemaProperty\n schema={property}\n defaultValue={property?.default}\n />\n <InterfaceMember\n name={`${prefix}_${property.name}`}\n type={`UnprefixedEnv[\"${property.name}\"]`}\n schema={property}\n required={property.required}\n readOnly={property.readOnly}\n />\n </>\n )}\n </For>\n )}\n </For>\n </BaseInterfaceDeclaration>\n <Spacing />\n </>\n );\n}\n\ninterface ConfigPropertyConditionalProps extends ComponentProps {\n context: EnvPluginContext;\n name: string;\n}\n\nfunction ConfigPropertyConditional(props: ConfigPropertyConditionalProps) {\n const [{ context, name }] = splitProps(props, [\"context\", \"name\"]);\n\n return code`propertyName === \"${name}\" || propertyName.replace(/^(${getUnique(\n context.config.env.prefix\n .sort((a, b) =>\n a.startsWith(b) ? -1 : b.startsWith(a) ? 1 : a.localeCompare(b)\n )\n .map(prefix => `${prefix.replace(/_$/, \"\")}_`)\n ).join(\"|\")})/g, \"\").toLowerCase().replace(/[\\\\s\\\\-_]+/g, \"\") === \"${name\n .toLowerCase()\n .replace(/[\\s\\-_]+/g, \"\")}\"`;\n}\n\ninterface ConfigPropertyProps extends ComponentProps {\n index: number;\n context: EnvPluginContext;\n name: string;\n property: JsonSchema;\n}\n\nfunction ConfigPropertyGet(props: ConfigPropertyProps) {\n const [{ context, name, property, index }] = splitProps(props, [\n \"context\",\n \"name\",\n \"property\",\n \"index\"\n ]);\n\n return (\n <>\n {index === 0 ? (\n <IfStatement\n condition={\n <>\n <ConfigPropertyConditional name={name} context={context} />\n <Show when={property?.alias && property?.alias.length > 0}>\n {code` || `}\n <For each={property?.alias ?? []} joiner={code` || `}>\n {alias => (\n <ConfigPropertyConditional name={alias} context={context} />\n )}\n </For>\n </Show>\n </>\n }>\n {code`return target[\"${name}\"];`}\n </IfStatement>\n ) : (\n <ElseIfClause\n condition={\n <>\n <ConfigPropertyConditional name={name} context={context} />\n <Show when={property?.alias && property?.alias.length > 0}>\n {code` || `}\n <For each={property?.alias ?? []} joiner={code` || `}>\n {alias => (\n <ConfigPropertyConditional name={alias} context={context} />\n )}\n </For>\n </Show>\n </>\n }>\n {code`return target[\"${name}\"];`}\n </ElseIfClause>\n )}\n </>\n );\n}\n\nfunction ConfigPropertySet(props: ConfigPropertyProps) {\n const [{ context, name, property, index }] = splitProps(props, [\n \"context\",\n \"name\",\n \"property\",\n \"index\"\n ]);\n\n return (\n <>\n {index === 0 ? (\n <IfStatement\n condition={\n <>\n <ConfigPropertyConditional name={name} context={context} />\n <Show when={property?.alias && property?.alias.length > 0}>\n {code` || `}\n <For each={property?.alias ?? []} joiner={code` || `}>\n {alias => (\n <ConfigPropertyConditional name={alias} context={context} />\n )}\n </For>\n </Show>\n </>\n }>\n {code`\n target[\"${name}\"] = newValue;\n return true;\n`}\n </IfStatement>\n ) : (\n <ElseIfClause\n condition={\n <>\n <ConfigPropertyConditional name={name} context={context} />\n <Show when={property?.alias && property?.alias.length > 0}>\n {code` || `}\n <For each={property?.alias ?? []} joiner={code` || `}>\n {alias => (\n <ConfigPropertyConditional name={alias} context={context} />\n )}\n </For>\n </Show>\n </>\n }>\n {code`\n target[\"${name}\"] = newValue;\n return true;\n`}\n </ElseIfClause>\n )}\n </>\n );\n}\n\nexport interface EnvBuiltinProps extends Omit<BuiltinFileProps, \"id\"> {\n defaultConfig?: Children;\n}\n\nconst createEnvRefkey = refkey(\"createEnv\");\nconst envRefkey = refkey(\"env\");\n\n/**\n * Generates the environment configuration module for the Powerlines project.\n */\nexport function EnvBuiltin(props: EnvBuiltinProps) {\n const [{ defaultConfig, children }, rest] = splitProps(props, [\n \"defaultConfig\",\n \"children\"\n ]);\n\n const context = usePowerlines<EnvPluginContext>();\n const defaultValue = computed(\n () => context && loadEnvFromContext(context, process.env)\n );\n\n const schema = computed(() => {\n const result = deepClone(context.env.config.schema);\n result.name = \"Env\";\n\n Object.entries(defaultValue.value ?? {}).forEach(([key, value]) => {\n const unprefixedKey = key.replace(\n new RegExp(`^(${context.config.env.prefix.join(\"|\")})_`),\n \"\"\n );\n if (\n unprefixedKey in (result.properties ?? {}) &&\n isSetObject(result.properties?.[unprefixedKey])\n ) {\n result.properties[unprefixedKey] = {\n ...result.properties?.[unprefixedKey],\n default: value\n } as JsonSchema;\n }\n });\n\n return result;\n });\n\n const schemaGetProperties = computed(\n () =>\n (getPropertiesList(schema.value)\n .filter(property => !property?.ignore && !property?.writeOnly)\n .sort((a, b) =>\n !a?.name && !b?.name\n ? 0\n : !a?.name\n ? 1\n : !b?.name\n ? -1\n : a?.name.localeCompare(b?.name)\n ) ?? []) as GetPropertiesResult[]\n );\n const schemaSetProperties = computed(\n () =>\n (getPropertiesList(schema.value)\n .filter(property => !property?.ignore && !property?.readOnly)\n .sort((a, b) =>\n !a?.name && !b?.name\n ? 0\n : !a?.name\n ? 1\n : !b?.name\n ? -1\n : a?.name.localeCompare(b?.name)\n ) ?? []) as GetPropertiesResult[]\n );\n\n const parserCode = generateParserCode(schema.value);\n\n return (\n <BuiltinFile\n id=\"env\"\n description=\"The environment configuration module provides an interface to define environment configuration parameters.\"\n {...rest}>\n <Show when={Boolean(schema.value)}>\n <EnvTypeDefinition schema={schema.value} />\n <Spacing />\n </Show>\n <ObjectDeclaration\n name=\"initialEnv\"\n type=\"Partial<Env>\"\n schema={schema.value}\n export\n const\n doc=\"The initial environment configuration object values for the runtime.\"\n />\n <Spacing />\n {parserCode}\n <Spacing />\n <Show when={Boolean(context?.entryPath)}>\n <TSDoc heading=\"Initializes the Powerlines environment configuration module.\">\n <TSDocRemarks>\n {`This function initializes the Powerlines environment configuration object.`}\n </TSDocRemarks>\n <TSDocParam name=\"environmentConfig\">\n {`The dynamic/runtime configuration - this could include the current environment variables or any other environment-specific settings provided by the runtime.`}\n </TSDocParam>\n <TSDocReturns>\n {`The initialized Powerlines configuration object.`}\n </TSDocReturns>\n </TSDoc>\n <FunctionDeclaration\n refkey={createEnvRefkey}\n async={false}\n export\n name=\"createEnv\"\n parameters={[\n {\n name: \"environmentConfig\",\n type: `Partial<Env>`,\n optional: false,\n default: \"{}\"\n }\n ]}\n returnType=\"Env\">\n {code`\n return new Proxy<Env>(\n parse({\n ...initialEnv,\n ...environmentConfig\n }),\n {\n get: (target: UnprefixedEnv, propertyName: string) => { `}\n <hbr />\n <For each={schemaGetProperties.value}>\n {(property: GetPropertiesResult, index: number) => (\n <ConfigPropertyGet\n index={index}\n context={context}\n name={property.name}\n property={property}\n />\n )}\n </For>\n {code`\n return undefined;\n }, `}\n\n <Spacing />\n {code` set: (target: UnprefixedEnv, propertyName: string, newValue: any) => { `}\n <hbr />\n <For each={schemaSetProperties.value} ender={code` else `}>\n {(property: GetPropertiesResult, index: number) => (\n <ConfigPropertySet\n index={index}\n context={context}\n name={property.name}\n property={property}\n />\n )}\n </For>\n\n <hbr />\n {code`return false;\n }\n }\n );\n`}\n </FunctionDeclaration>\n </Show>\n <Spacing />\n <TSDoc heading=\"The environment configuration object.\">\n <TSDocRemarks>\n {`This object provides access to the environment configuration parameters in the application runtime.`}\n </TSDocRemarks>\n </TSDoc>\n <VarDeclaration\n refkey={envRefkey}\n name=\"env\"\n type=\"Env\"\n export\n const\n initializer={\n <>{code`createEnv(${defaultConfig || \"{}\"} as Partial<Env>);`}</>\n }\n />\n <Spacing />\n\n <VarDeclaration\n export\n const\n name=\"isCI\"\n doc=\"Detect if the application is running in a continuous integration (CI) environment.\"\n initializer={code`Boolean(\n env.CI ||\n env.RUN_ID ||\n env.AGOLA_GIT_REF ||\n env.AC_APPCIRCLE ||\n env.APPVEYOR ||\n env.CODEBUILD ||\n env.TF_BUILD ||\n env.bamboo_planKey ||\n env.BITBUCKET_COMMIT ||\n env.BITRISE_IO ||\n env.BUDDY_WORKSPACE_ID ||\n env.BUILDKITE ||\n env.CIRCLECI ||\n env.CIRRUS_CI ||\n env.CF_BUILD_ID ||\n env.CM_BUILD_ID ||\n env.CI_NAME ||\n env.DRONE ||\n env.DSARI ||\n env.EARTHLY_CI ||\n env.EAS_BUILD ||\n env.GERRIT_PROJECT ||\n env.GITEA_ACTIONS ||\n env.GITHUB_ACTIONS ||\n env.GITLAB_CI ||\n env.GOCD ||\n env.BUILDER_OUTPUT ||\n env.HARNESS_BUILD_ID ||\n env.JENKINS_URL ||\n env.LAYERCI ||\n env.MAGNUM ||\n env.NETLIFY ||\n env.NEVERCODE ||\n env.PROW_JOB_ID ||\n env.RELEASE_BUILD_ID ||\n env.RENDER ||\n env.SAILCI ||\n env.HUDSON ||\n env.SCREWDRIVER ||\n env.SEMAPHORE ||\n env.SOURCEHUT ||\n env.STRIDER ||\n env.TASK_ID ||\n env.RUN_ID ||\n env.TEAMCITY_VERSION ||\n env.TRAVIS ||\n env.VELA ||\n env.NOW_BUILDER ||\n env.APPCENTER_BUILD_ID ||\n env.CI_XCODE_PROJECT ||\n env.XCS || false\n ); `}\n />\n <Spacing />\n\n <TSDoc heading=\"Detect the \\`mode\\` of the current runtime environment.\">\n <TSDocRemarks>\n {code`The \\`mode\\` is determined by the \\`MODE\\` environment variable, or falls back to the \\`NEXT_PUBLIC_VERCEL_ENV\\`, \\`NODE_ENV\\`, or defaults to \\`production\\`. While the value can potentially be any string, it is generally recommended to only allow a value in the following list:\n - \\`production\\`\n - \\`test\\`\n - \\`development\\`\n `}\n </TSDocRemarks>\n </TSDoc>\n <VarDeclaration\n export\n const\n name=\"mode\"\n initializer={code`String(env.MODE) || \"production\"; `}\n />\n <Spacing />\n\n <VarDeclaration\n export\n const\n name=\"isProduction\"\n doc='Detect if the application is running in `\"production\"` mode'\n initializer={code`[\"prd\", \"prod\", \"production\"].includes(mode.toLowerCase()); `}\n />\n <Spacing />\n\n <VarDeclaration\n export\n const\n name=\"isTest\"\n doc='Detect if the application is running in `\"test\"` mode'\n initializer={code`[\"tst\", \"test\", \"testing\", \"stg\", \"stage\", \"staging\"].includes(mode.toLowerCase()) || env.TEST; `}\n />\n <Spacing />\n\n <VarDeclaration\n export\n const\n name=\"isDevelopment\"\n doc='Detect if the application is running in `\"development\"` mode'\n initializer={code`[\"dev\", \"development\"].includes(mode.toLowerCase()); `}\n />\n <Spacing />\n\n <VarDeclaration\n export\n const\n name=\"isDebug\"\n doc=\"Detect if the application is currently being debugged\"\n initializer={code`Boolean(isDevelopment && env.DEBUG); `}\n />\n <Spacing />\n <Show when={Boolean(children)}>{children}</Show>\n </BuiltinFile>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAEA,MAAM,UAAU;CAAC;CAAI;CAAM;CAAQ;AAAG;;;;;;;AAEtC,SAAM,aAAS,IAAW,MAAM;CAC/B,GAAG,SAAU;CACb,OAAQ;AACT;AA8BA,MAAM,4BAAC;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AAEJ;AACA,WAAS,SAAA;OAAY;CAAA;CAAA;CAAA;CAAA;AAAA"}
|
|
1
|
+
{"version":3,"file":"env-builtin.mjs","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"automd-generator.d.mts","names":[],"sources":["../../src/helpers/automd-generator.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"automd-generator.d.mts","names":[],"sources":["../../src/helpers/automd-generator.ts"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"automd-generator.mjs","names":[],"sources":[
|
|
1
|
+
{"version":3,"file":"automd-generator.mjs","names":[],"sources":[],"mappings":""}
|
package/dist/helpers/load.d.cts
CHANGED
|
@@ -24,7 +24,7 @@ declare function loadEnvFromContext(context: EnvPluginContext, parsed: DotenvPar
|
|
|
24
24
|
ERROR_URL: string | undefined;
|
|
25
25
|
ORGANIZATION: string | undefined;
|
|
26
26
|
PLATFORM: "node" | "browser" | "neutral";
|
|
27
|
-
MODE: "
|
|
27
|
+
MODE: "development" | "test" | "production";
|
|
28
28
|
TEST: boolean;
|
|
29
29
|
DEBUG: boolean;
|
|
30
30
|
STACKTRACE: boolean;
|
package/dist/helpers/load.d.mts
CHANGED
|
@@ -24,7 +24,7 @@ declare function loadEnvFromContext(context: EnvPluginContext, parsed: DotenvPar
|
|
|
24
24
|
ERROR_URL: string | undefined;
|
|
25
25
|
ORGANIZATION: string | undefined;
|
|
26
26
|
PLATFORM: "node" | "browser" | "neutral";
|
|
27
|
-
MODE: "
|
|
27
|
+
MODE: "development" | "test" | "production";
|
|
28
28
|
TEST: boolean;
|
|
29
29
|
DEBUG: boolean;
|
|
30
30
|
STACKTRACE: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"load.d.mts","names":[],"sources":["../../src/helpers/load.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"load.d.mts","names":[],"sources":["../../src/helpers/load.ts"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"load.mjs","names":[],"sources":[
|
|
1
|
+
{"version":3,"file":"load.mjs","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.mts","names":[],"sources":["../../src/helpers/schema.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"schema.d.mts","names":[],"sources":["../../src/helpers/schema.ts"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.mjs","names":[],"sources":["../../src/helpers/schema.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport {\n extract,\n getProperties,\n getPropertiesList,\n isSchema,\n isSchemaObject,\n JsonSchemaObject,\n merge,\n Schema,\n writeSchema\n} from \"@powerlines/schema\";\nimport { omit } from \"@stryke/helpers/omit\";\nimport { joinPaths } from \"@stryke/path/join\";\nimport { isSetArray } from \"@stryke/type-checks/is-set-array\";\nimport { isSetObject } from \"@stryke/type-checks/is-set-object\";\nimport { isSetString } from \"@stryke/type-checks/is-set-string\";\nimport type { FileReference } from \"@stryke/types/configuration\";\nimport { UnresolvedContext } from \"powerlines\";\nimport { EnvPluginContext, EnvSchema } from \"../types/plugin\";\nimport { loadEnv } from \"./load\";\n\n/**\n * Resolves the runtime type definition file for the environment variables.\n *\n * @param context - The plugin context.\n * @returns The runtime type definition file for the environment variables.\n */\nexport async function resolveRuntimeTypeFile<\n TContext extends UnresolvedContext\n>(context: TContext): Promise<string> {\n const resolved = await context.fs.resolve(\"@powerlines/plugin-env/types/env\");\n if (!resolved) {\n throw new Error(\n `Failed to resolve the runtime type definition file for the environment variables. Please ensure that the \"@powerlines/plugin-env\" package is installed.`\n );\n }\n\n return resolved;\n}\n\n/**\n * Gets the default type definition for the environment variables.\n *\n * @param context - The plugin context.\n * @returns The default type definition for the environment variables.\n */\nexport async function getDefaultConfig<TContext extends UnresolvedContext>(\n context: TContext\n): Promise<FileReference> {\n return {\n file: await resolveRuntimeTypeFile(context),\n export: \"EnvInterface\"\n };\n}\n\n/** Gets the default type definition for the environment secrets.\n *\n * @param context - The plugin context.\n * @returns The default type definition for the environment secrets.\n */\nexport async function getDefaultSecrets<TContext extends UnresolvedContext>(\n context: TContext\n): Promise<FileReference> {\n return {\n file: await resolveRuntimeTypeFile(context),\n export: \"SecretsInterface\"\n };\n}\n\n/**\n * A helper function to get the cache directory path for storing schemas. This function takes a context object as input and returns the path to the cache directory where schemas are stored. The cache directory is constructed by joining the `cachePath` property from the context with a subdirectory named \"schemas\". This function is useful for centralizing the logic for determining where schema files should be cached, ensuring that all schema-related file operations use a consistent location for storing and retrieving cached schemas.\n *\n * @param context - The context object providing access to the cache path.\n * @returns The path to the cache directory for storing schemas, constructed by joining the context's `cachePath` with the \"schemas\" subdirectory.\n */\nexport function getCacheDirectory<TContext extends EnvPluginContext>(\n context: TContext\n): string {\n return joinPaths(context.cachePath, \"env\");\n}\n\nexport function getCacheFilePath<TContext extends EnvPluginContext>(\n context: TContext,\n variant: \"config\" | \"secrets\"\n): string {\n return joinPaths(getCacheDirectory(context), `${variant}.json`);\n}\n\nasync function writeActive<TContext extends EnvPluginContext>(\n context: TContext,\n variant: \"config\" | \"secrets\",\n schema: EnvSchema\n) {\n if (!isSchema(schema)) {\n throw new Error(\n `The provided input is not a valid env schema. A valid schema must have a \"variant\" property indicating the type of the input and a \"schema\" property containing the parsed JSON Schema object.`\n );\n }\n\n await context.fs.write(\n getCacheFilePath(context, variant),\n JSON.stringify(schema.schema)\n );\n}\n\nasync function readActive<TContext extends EnvPluginContext>(\n context: TContext,\n variant: \"config\" | \"secrets\"\n): Promise<string[]> {\n if (!context.fs.existsSync(getCacheFilePath(context, variant))) {\n return [];\n }\n\n const data = await context.fs.read(getCacheFilePath(context, variant));\n if (!data) {\n return [];\n }\n\n return JSON.parse(data);\n}\n\n/**\n * Extracts the environment variables and secrets schema from the provided type definitions in the plugin options, merges them with the default environment variables and secrets schema, and stores the resulting schema in the plugin context for later use during the build process.\n *\n * @remarks\n * This function should be called during the plugin's `config` hook to ensure that the environment variables and secrets schema is available in the plugin context before the build process begins. The resulting schema will be used to validate the loaded environment variables and secrets, as well as to provide type information for the injected environment variables and secrets during the build process.\n *\n * @param context - The plugin context\n * @returns A promise that resolves when the schema has been extracted and stored in the plugin context.\n */\nexport async function extractEnv<TContext extends EnvPluginContext>(\n context: TContext\n): Promise<void> {\n const defaultConfig = await getDefaultConfig(context);\n const defaultSecrets = await getDefaultSecrets(context);\n\n context.debug({\n meta: {\n category: \"env\"\n },\n message: `Environment Variables configuration: ${\n context.config.env.config\n ? JSON.stringify(context.config.env.config, null, 2)\n : \"None\"\n }\\nEnvironment Secret configuration: ${\n context.config.env.secrets\n ? JSON.stringify(context.config.env.secrets, null, 2)\n : \"None\"\n }`\n });\n\n context.env ??= {} as EnvPluginContext[\"env\"];\n context.env.parsed ??= {};\n context.env.injected ??= [];\n\n context.env.config = (await extract(\n context,\n context.config.env.config\n )) as EnvSchema;\n context.env.config.active = await readActive(context, \"config\");\n\n if (\n (isSetString(context.config.env.config) &&\n new RegExp(`${defaultConfig.file}[:#;@]?${defaultConfig.export}`).test(\n context.config.env.config\n ) === false) ||\n (isSetObject(context.config.env.config) &&\n ((context.config.env.config as FileReference).file !==\n defaultConfig.file ||\n (context.config.env.config as FileReference).export !==\n defaultConfig.export))\n ) {\n context.env.config.schema = merge(\n await extract(context, defaultConfig),\n context.env.config\n ) as JsonSchemaObject;\n }\n\n context.env.secrets = (await extract(\n context,\n context.config.env.secrets\n )) as EnvSchema;\n context.env.secrets.active = await readActive(context, \"secrets\");\n\n if (\n (isSetString(context.config.env.secrets) &&\n new RegExp(`${defaultSecrets.file}[:#;@]?${defaultSecrets.export}`).test(\n context.config.env.secrets\n ) === false) ||\n (isSetObject(context.config.env.secrets) &&\n ((context.config.env.secrets as FileReference).file !==\n defaultSecrets.file ||\n (context.config.env.secrets as FileReference).export !==\n defaultSecrets.export))\n ) {\n context.env.secrets.schema = merge(\n await extract(context, defaultSecrets),\n context.env.secrets\n ) as JsonSchemaObject;\n }\n\n const properties = getProperties(context.env.config);\n context.info({\n meta: {\n category: \"env\"\n },\n message: `Environment Variables configuration: ${\n context.config.env.config ? \"\" : \"Defaulted \"\n }${\n context.env.config.variant === \"reflection\"\n ? \"Deepkit type definition\"\n : context.env.config.variant === \"json-schema\"\n ? \"JSON Schema\"\n : context.env.config.variant === \"standard-schema\"\n ? \"Standard Schema\"\n : context.env.config.variant === \"zod3\"\n ? \"Zod v3 schema\"\n : context.env.config.variant === \"valibot\"\n ? \"Valibot schema\"\n : context.env.config.variant === \"untyped\"\n ? \"Untyped configuration\"\n : \"Typescript exported type\"\n }${context.config.env.config ? \" from plugin options\" : \"\"} provided ${\n Object.keys(properties).length\n } parameters\\nEnvironment Secret configuration: ${\n context.config.env.secrets ? \"\" : \"Defaulted \"\n }${\n context.env.secrets.variant === \"reflection\"\n ? \"Deepkit type definition\"\n : context.env.secrets.variant === \"json-schema\"\n ? \"JSON Schema\"\n : context.env.secrets.variant === \"standard-schema\"\n ? \"Standard Schema\"\n : context.env.secrets.variant === \"zod3\"\n ? \"Zod v3 schema\"\n : context.env.secrets.variant === \"valibot\"\n ? \"Valibot schema\"\n : context.env.secrets.variant === \"untyped\"\n ? \"Untyped configuration\"\n : \"Typescript exported type\"\n }${context.config.env.secrets ? \" from plugin options\" : \"\"} provided ${\n context.env.secrets?.schema\n ? getPropertiesList(context.env.secrets).length\n : \"0\"\n } parameters\\nEnvironment variable Prefixes: ${context.config.env.prefix.join(\n \", \"\n )}\\nShould inject values: ${\n context.config.env.inject ? \"Yes\" : \"No\"\n }\\nShould validate configuration: ${\n context.config.env.validate ? \"Yes\" : \"No\"\n }`\n });\n\n const aliases = Object.fromEntries(\n Object.entries(properties).flatMap(\n ([key, prop]) =>\n (isSetArray(prop.alias)\n ? prop.alias?.map(alias => [\n alias,\n {\n ...prop,\n name: alias,\n alias: [...(prop.alias?.filter(a => a !== alias) ?? []), key]\n }\n ])\n : []) as [string, typeof prop][]\n )\n );\n\n context.env.parsed = await loadEnv(context);\n for (const [key, value] of Object.entries(context.env.parsed)) {\n const unprefixedKey = context.config.env.prefix.reduce((ret, prefix) => {\n if (key.startsWith(prefix)) {\n return key.slice(prefix.length + 1); // + 1 to account for the underscore after the prefix\n }\n return ret;\n }, key);\n if (properties[unprefixedKey]) {\n if (!properties[unprefixedKey]?.runtime) {\n const propertySchema = getProperties(context.env.config.schema)?.[\n unprefixedKey\n ];\n if (propertySchema) {\n propertySchema.default = value;\n }\n }\n } else if (aliases[unprefixedKey]) {\n if (!aliases[unprefixedKey]?.runtime) {\n const alias = aliases[unprefixedKey]?.alias?.[0] ?? unprefixedKey;\n const aliasSchema = getProperties(context.env.config.schema)?.[alias];\n if (aliasSchema) {\n aliasSchema.default = value;\n }\n }\n }\n }\n\n if (!isSchemaObject(context.env.config)) {\n throw new Error(\n \"Invalid environment variable schema extracted. Please ensure the `env.types` option points to a valid TypeScript type definition file that exports an interface representing the environment variable schema.\"\n );\n }\n\n getPropertiesList(context.env.config).forEach(property => {\n property.alias ??= [];\n const aliases = [...property.alias];\n context.config.env.prefix.forEach(prefix => {\n if (!property.alias!.includes(`${prefix}_${property.name}`)) {\n property.alias!.push(`${prefix}_${property.name}`);\n }\n\n aliases\n .map(alias => `${prefix}_${alias}`)\n .forEach(prefixedAlias => {\n if (!property.alias!.includes(prefixedAlias)) {\n property.alias!.push(prefixedAlias);\n }\n });\n });\n });\n\n getPropertiesList(context.env.secrets).forEach(property => {\n property.alias ??= [];\n const aliases = [...property.alias];\n context.config.env.prefix.forEach(prefix => {\n if (!property.alias!.includes(`${prefix}_${property.name}`)) {\n property.alias!.push(`${prefix}_${property.name}`);\n }\n\n aliases\n .map(alias => `${prefix}_${alias}`)\n .forEach(prefixedAlias => {\n if (!property.alias!.includes(prefixedAlias)) {\n property.alias!.push(prefixedAlias);\n }\n });\n });\n });\n}\n\n/**\n * Writes the environment variables and secrets schema stored in the plugin context to the cache directory for later retrieval during the build process. This function should be called during the plugin's `build` hook after the schema has been extracted and stored in the plugin context to ensure that the active environment variables and secrets are persisted across builds and can be accessed during the build process for validation and injection purposes.\n *\n * @param context - The plugin context containing the environment variables and secrets schema to be written to the cache directory.\n * @returns A promise that resolves when the schema has been successfully written to the cache directory.\n */\nexport async function writeEnv<TContext extends EnvPluginContext>(\n context: TContext\n): Promise<void[]> {\n return Promise.all([\n writeSchema(context, omit(context.env.config, [\"active\"]) as Schema),\n writeSchema(context, omit(context.env.secrets, [\"active\"]) as Schema),\n writeActive(context, \"config\", context.env.config),\n writeActive(context, \"secrets\", context.env.secrets)\n ]);\n}\n"],"mappings":";;;;;;;;;;AAEA,SAAS,aAAY,IAAK,MAAC;;CAE1B,OAAK;AACN;;;;;;;AA+BA,eAAS,uBAAoC,SAAS;CACtD,MAAQ,WAAW,MAAM,QAAO,GAAA,QAAA,kCAAA;gBAE9B,MAAA,IAAA,MAAA,yJAAA;CAED,OAAA;AACD;AACA,uBAAuB,SAAM;CAAA;CAAe;CAAqB;CAAS;AAAA;;;;;;;AAO1E,eAAmB,iBAAA,SAAA;CACjB,OAAK;EACH,MAAC,MAAA,uBAAA,OAAA;EACH,QAAA;;AAEF;AACA,iBAAA,SAAA;CAAA;CAAA;CAAA;CAAA;AAAA;;;;;;AAMA,eAAgB,kBAAwB,SAAQ;CAC9C,OAAA;EACF,MAAO,MAAM,uBAA0B,OAAA;EACrC,QAAS;CACT;AACF;AACA,kBAAgB,SAAA;CAAA;CAAuB;CAAQ;A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,OAAA,GAAA,SAAA,MAAA,GAC/B,SAAM,MAAQ,KAAQ,GAAC,OAAA,GAAA,SAAc,MAAA;GAErC,QAAG,IAAA,cAAgB,UAAA,GAAA,OAAA,GAAA,SAAA;IAAA;IAAA;IAAA;GAAA,CAAA,CAAA,EAAA,QAAA,cAAA,kBAAA;IACvB,IAAA,CAAA,SAAA,MAAA,SAAA,aAAA;GAGE,GAAA;IAAA;IAAO;IAAA;GAAA,CAAA,CAAA;EACP,GAAA;GAAA;GAAc;GAAI;EAAC,CAAA,CAAA;CACrB,GAAG;EAAA;EAAY;EAAA;CAAA,CAAA,CAAA;AACjB;;;;;;;;;;;;;AAQA,eAAsB,SAAK,SAAW;CACpC,OAAM,QAAA,IAAA;EAAc,YAAO,SAAA,KAAA,QAAA,IAAA,QAAA,CAAA,QAAA,CAAA,CAAA;EAAA,YAAA,SAAA,KAAA,QAAA,IAAA,SAAA,CAAA,QAAA,CAAA,CAAA;EAAA,YAAA,SAAA,UAAA,QAAA,IAAA,MAAA;EAAA,YAAA,SAAA,WAAA,QAAA,IAAA,OAAA;CAAA,CAAA;AAC7B;AACA,SAAS,SAAC;CAAA;CAAe;CAAO;CAAA;AAAA"}
|
|
1
|
+
{"version":3,"file":"schema.mjs","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source-file-env.d.mts","names":[],"sources":["../../src/helpers/source-file-env.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"source-file-env.d.mts","names":[],"sources":["../../src/helpers/source-file-env.ts"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source-file-env.mjs","names":[],"sources":[
|
|
1
|
+
{"version":3,"file":"source-file-env.mjs","names":[],"sources":[],"mappings":""}
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.tsx"],"mappings":""}
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":[
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":[],"mappings":""}
|
package/dist/types/env.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env.d.mts","names":[],"sources":["../../src/types/env.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"env.d.mts","names":[],"sources":["../../src/types/env.ts"],"mappings":""}
|
package/dist/types/env.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env.mjs","names":[],"sources":["../../src/types/env.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\n/**\n * The base environment configuration used by Powerlines applications\n *\n * @remarks\n * This interface is used to define the environment variables, configuration options, and runtime settings used by applications. It is used to provide type safety, autocompletion, and default values for the environment variables. The comments of each variable are used to provide documentation descriptions when running the \\`powerlines docs\\` command.\n *\n * @categoryDescription Platform\n * The name of the platform the configuration parameter is intended for use in.\n *\n * @showCategories\n */\nexport interface EnvInterface {\n /**\n * The name of the application.\n *\n * @readonly\n * @category neutral\n */\n readonly APP_NAME: string;\n\n /**\n * The version of the application.\n *\n * @defaultValue \"1.0.0\"\n *\n * @readonly\n * @category neutral\n */\n readonly APP_VERSION: string;\n\n /**\n * The unique identifier for the build.\n *\n * @readonly\n * @category neutral\n */\n readonly BUILD_ID: string;\n\n /**\n * The timestamp the build was ran at.\n *\n * @readonly\n * @category neutral\n */\n readonly BUILD_TIMESTAMP: string;\n\n /**\n * A checksum hash created during the build.\n *\n * @readonly\n * @category neutral\n */\n readonly BUILD_CHECKSUM: string;\n\n /**\n * The unique identifier for the release.\n *\n * @readonly\n * @category neutral\n */\n readonly RELEASE_ID: string;\n\n /**\n * The tag for the release. This is generally in the format of \"\\<APP_NAME\\>\\@\\<APP_VERSION\\>\".\n *\n * @readonly\n * @category neutral\n */\n readonly RELEASE_TAG: string;\n\n /**\n * The name of the organization that maintains the application.\n *\n * @remarks\n * This variable is used to specify the name of the organization that maintains the application. If not provided in an environment, it will try to use the value in {@link @storm-software/config-tools/StormWorkspaceConfig#organization}.\n *\n * @alias ORG\n * @alias ORG_ID\n * @category neutral\n */\n ORGANIZATION: string;\n\n /**\n * The runtime that the application is running in.\n */\n RUNTIME?: \"nodejs\" | \"deno\" | \"workerd\" | \"browser\";\n\n /**\n * The platform for which the application was built.\n *\n * @defaultValue \"neutral\"\n *\n * @category neutral\n */\n PLATFORM: \"node\" | \"neutral\" | \"browser\";\n\n /**\n * The mode in which the application is running.\n *\n * @defaultValue \"production\"\n *\n * @alias NODE_ENV\n * @alias ENV\n * @alias VERCEL_ENV\n *\n * @category neutral\n */\n MODE: \"development\" | \"test\" | \"production\";\n\n /**\n * The environment the application is running in. This value will be populated with the value of `MODE` if not provided.\n *\n * @defaultValue \"production\"\n *\n * @category neutral\n */\n ENVIRONMENT: string;\n\n /**\n * Indicates if the application is running in debug mode.\n *\n * @category neutral\n */\n DEBUG: boolean;\n\n /**\n * An indicator that specifies the current runtime is a test environment.\n *\n * @category neutral\n */\n TEST: boolean;\n\n /**\n * An indicator that specifies the current runtime is a minimal environment.\n *\n * @category node\n */\n MINIMAL: boolean;\n\n /**\n * An indicator that specifies the current runtime is a no color environment.\n *\n * @category node\n */\n NO_COLOR: boolean;\n\n /**\n * An indicator that specifies the current runtime is a force color environment.\n *\n * @category node\n */\n FORCE_COLOR: boolean | number;\n\n /**\n * An indicator that specifies the current runtime should force hyperlinks in terminal output.\n *\n * @remarks\n * This variable is used to force hyperlinks in terminal output, even if the terminal does not support them. This is useful for debugging and development purposes.\n\n * @category node\n */\n FORCE_HYPERLINK: boolean | number;\n\n /**\n * The name of the agent running the application. This variable is set by certain CI/CD systems.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category neutral\n */\n readonly AGENT_NAME?: string;\n\n /**\n * The color terminal type. This variable is set by certain terminal emulators.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly COLORTERM?: string;\n\n /**\n * The terminal type. This variable is set by certain CI/CD systems.\n *\n * @remarks\n * This variable is used to specify the terminal type that the application is running in. It can be used to determine how to format output for the terminal.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly TERM?: string;\n\n /**\n * The terminal program name. This variable is set by certain terminal emulators.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly TERM_PROGRAM?: string;\n\n /**\n * The terminal program version. This variable is set by certain terminal emulators.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly TERM_PROGRAM_VERSION?: string;\n\n /**\n * The terminal emulator name. This variable is set by certain terminal emulators.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly TERMINAL_EMULATOR?: string;\n\n /**\n * The terminal emulator session ID. This variable is set by certain terminal emulators.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly WT_SESSION?: string;\n\n /**\n * An indicator that specifies the current terminal is running Terminus Sublime. This variable is set by certain terminal emulators.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly TERMINUS_SUBLIME?: boolean;\n\n /**\n * The ConEmu task name. This variable is set by certain terminal emulators.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly ConEmuTask?: string;\n\n /**\n * The cursor trace ID. This variable is set by certain terminal emulators.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly CURSOR_TRACE_ID?: string;\n\n /**\n * The VTE version. This variable is set by certain terminal emulators.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly VTE_VERSION?: string;\n\n /**\n * Indicates if error stack traces should be captured.\n *\n * @category neutral\n */\n STACKTRACE: boolean;\n\n /**\n * Indicates if error data should be included.\n *\n * @category neutral\n */\n INCLUDE_ERROR_DATA: boolean;\n\n /**\n * A web page to lookup error messages and display additional information given an error code.\n *\n * @remarks\n * This variable is used to provide a URL to a page that can be used to look up error messages given an error code. This is used to provide a more user-friendly error message to the user.\n *\n * @title Error Details URL\n * @category neutral\n */\n ERROR_URL?: string;\n\n /**\n * The default timezone for the application.\n *\n * @defaultValue \"America/New_York\"\n * @category neutral\n */\n DEFAULT_TIMEZONE: string;\n\n /**\n * The default locale to be used in the application.\n *\n * @defaultValue \"en_US\"\n * @category neutral\n */\n DEFAULT_LOCALE: string;\n\n /**\n * The default lowest log level to accept. If `null`, the logger will reject all records.\n *\n * @defaultValue \"info\"\n *\n * @category neutral\n */\n LOG_LEVEL?: \"error\" | \"warn\" | \"info\" | \"debug\" | null;\n\n /**\n * An indicator that specifies the current runtime is a continuous integration environment.\n *\n * @title Continuous Integration\n * @alias CONTINUOUS_INTEGRATION\n * @category neutral\n */\n CI: boolean;\n\n /**\n * The unique identifier for the current run. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly RUN_ID?: string;\n\n /**\n * The agola git reference. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly AGOLA_GIT_REF?: string;\n\n /**\n * The appcircle build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly AC_APPCIRCLE?: string;\n\n /**\n * The appveyor build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly APPVEYOR?: string;\n\n /**\n * The codebuild build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly CODEBUILD?: string;\n\n /**\n * The task force build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly TF_BUILD?: string;\n\n /**\n * The bamboo plan key. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly bamboo_planKey?: string;\n\n /**\n * The bitbucket commit. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly BITBUCKET_COMMIT?: string;\n\n /**\n * The bitrise build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly BITRISE_IO?: string;\n\n /**\n * The buddy workspace ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly BUDDY_WORKSPACE_ID?: string;\n\n /**\n * The buildkite build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly BUILDKITE?: string;\n\n /**\n * The circleci build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly CIRCLECI?: string;\n\n /**\n * The cirrus-ci build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly CIRRUS_CI?: string;\n\n /**\n * The cf build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly CF_BUILD_ID?: string;\n\n /**\n * The cm build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly CM_BUILD_ID?: string;\n\n /**\n * The ci name. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly CI_NAME?: string;\n\n /**\n * The drone build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly DRONE?: string;\n\n /**\n * The dsari build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly DSARI?: string;\n\n /**\n * The earthly build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly EARTHLY_CI?: string;\n\n /**\n * The eas build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly EAS_BUILD?: string;\n\n /**\n * The gerrit project. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly GERRIT_PROJECT?: string;\n\n /**\n * The gitea actions build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly GITEA_ACTIONS?: string;\n\n /**\n * The github actions build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly GITHUB_ACTIONS?: string;\n\n /**\n * The gitlab ci build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly GITLAB_CI?: string;\n\n /**\n * The go cd build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly GOCD?: string;\n\n /**\n * The builder output build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly BUILDER_OUTPUT?: string;\n\n /**\n * The harness build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly HARNESS_BUILD_ID?: string;\n\n /**\n * The jenkins url. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly JENKINS_URL?: string;\n\n /**\n * The layerci build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly LAYERCI?: string;\n\n /**\n * The magnum build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly MAGNUM?: string;\n\n /**\n * The netlify build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly NETLIFY?: string;\n\n /**\n * The nevercode build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly NEVERCODE?: string;\n\n /**\n * The prow job ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly PROW_JOB_ID?: string;\n\n /**\n * The release build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly RELEASE_BUILD_ID?: string;\n\n /**\n * The render build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly RENDER?: string;\n\n /**\n * The sailci build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly SAILCI?: string;\n\n /**\n * The hudson build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly HUDSON?: string;\n\n /**\n * The screwdriver build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly SCREWDRIVER?: string;\n\n /**\n * The semaphore build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly SEMAPHORE?: string;\n\n /**\n * The sourcehut build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly SOURCEHUT?: string;\n /**\n * The spaceship build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly SPACESHIP_CI?: string;\n\n /**\n * The strider build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly STRIDER?: string;\n\n /**\n * The task ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly TASK_ID?: string;\n\n /**\n * The teamcity version. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly TEAMCITY_VERSION?: string;\n\n /**\n * The travis build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly TRAVIS?: string;\n\n /**\n * The vela build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly VELA?: string;\n\n /**\n * The now builder build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly NOW_BUILDER?: string;\n\n /**\n * The appcenter build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly APPCENTER_BUILD_ID?: string;\n\n /**\n * The xcode project build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly CI_XCODE_PROJECT?: string;\n\n /**\n * The xcode server build ID. This value is set by certain CI/CD systems.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly XCS?: string;\n\n /**\n * The application's runtime data directory.\n *\n * @remarks\n * This variable is used to override the base path of the system's local application data directory. This variable is used to set the \\`$storm.paths.data\\` property.\n *\n * @title Data Directory\n * @runtime\n * @category node\n */\n DATA_DIR?: string;\n\n /**\n * The application's configuration data directory.\n *\n * @remarks\n * This variable is used to override the base path of the system's local application configuration directory. This variable is used to set the \\`$storm.paths.config\\` property.\n *\n * @title Configuration Directory\n * @runtime\n * @category node\n */\n CONFIG_DIR?: string;\n\n /**\n * The application's cached data directory.\n *\n * @remarks\n * This variable is used to override the base path of the system's local cache data directory. This variable is used to set the \\`$storm.paths.cache\\` property.\n *\n * @title Cache Directory\n * @runtime\n * @category node\n */\n CACHE_DIR?: string;\n\n /**\n * The application's logging directory.\n *\n * @remarks\n * This variable is used to override the base path of the system's local application log directory. This variable is used to set the \\`$storm.paths.log\\` property.\n *\n * @title Log Directory\n * @runtime\n * @category node\n */\n LOG_DIR?: string;\n\n /**\n * The application's temporary data directory.\n *\n * @remarks\n * This variable is used to override the base path of the system's local temporary data directory. This variable is used to set the \\`$storm.paths.temp\\` property.\n *\n * @title Temporary Directory\n * @runtime\n * @category node\n */\n TEMP_DIR?: string;\n\n /**\n * A variable that specifies the current user's local application data directory on Windows.\n *\n * @see https://www.advancedinstaller.com/appdata-localappdata-programdata.html\n *\n * @remarks\n * This variable is used to specify a path to application data that is specific to the current user. This variable can be used to set the \\`$storm.paths.data\\`, \\`$storm.paths.cache\\`, and \\`$storm.paths.log\\` properties.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly LOCALAPPDATA?: string;\n\n /**\n * A variable that specifies the application data directory on Windows.\n *\n * @see https://www.advancedinstaller.com/appdata-localappdata-programdata.html\n *\n * @remarks\n * This variable is used to specify a path to application data that is specific to the current user. This variable can be used to set the \\`$storm.paths.config\\` property.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly APPDATA?: string;\n\n /**\n * A variable that specifies the data path in the home directory on Linux systems using the XDG base directory specification.\n *\n * @see https://gist.github.com/roalcantara/107ba66dfa3b9d023ac9329e639bc58c\n *\n * @remarks\n * This variable is used to specify a path to application data that is specific to the current user. This variable can be used to set the \\`$storm.paths.data\\` property.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly XDG_DATA_HOME?: string;\n\n /**\n * A variable that specifies the configuration path in the home directory on Linux systems using the XDG base directory specification.\n *\n * @see https://gist.github.com/roalcantara/107ba66dfa3b9d023ac9329e639bc58c\n *\n * @remarks\n * This variable is used to specify a path to configuration data that is specific to the current user. This variable can be used to set the \\`$storm.paths.config\\` property.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly XDG_CONFIG_HOME?: string;\n\n /**\n * A variable that specifies the cache path in the home directory on Linux systems using the XDG base directory specification.\n *\n * @see https://gist.github.com/roalcantara/107ba66dfa3b9d023ac9329e639bc58c\n *\n * @remarks\n * This variable is used to specify a path to cache data that is specific to the current user. This variable can be used to set the \\`$storm.paths.cache\\` property.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly XDG_CACHE_HOME?: string;\n\n /**\n * A variable that specifies the state directory on Linux systems using the XDG base directory specification.\n *\n * @see https://gist.github.com/roalcantara/107ba66dfa3b9d023ac9329e639bc58c\n *\n * @remarks\n * This variable is used to specify a path to application state data that is specific to the current user. This variable can be used to set the \\`$storm.paths.state\\` property.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly XDG_STATE_HOME?: string;\n\n /**\n * A variable that specifies the runtime directory on Linux systems using the XDG base directory specification.\n *\n * @see https://gist.github.com/roalcantara/107ba66dfa3b9d023ac9329e639bc58c\n *\n * @remarks\n * This variable is used to specify a path to runtime data that is specific to the current user. This variable can be used to set the \\`$storm.paths.temp\\` property.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n readonly XDG_RUNTIME_DIR?: string;\n\n /**\n * A variable that specifies the [Devenv](https://devenv.sh/) runtime directory.\n *\n * @see https://devenv.sh/files-and-variables/#devenv_dotfile\n * @see https://nixos.org/\n *\n * @remarks\n * This variable is used to specify a path to application data that is specific to the current [Nix](https://nixos.org/) environment. This variable can be used to set the \\`$storm.paths.temp\\` property.\n *\n * @readonly\n * @runtime\n * @hidden\n * @category node\n */\n DEVENV_RUNTIME?: string;\n}\n\n/**\n * The base secrets configuration used by Powerlines applications\n *\n * @remarks\n * This interface is used to define the secret configuration options used by Powerlines applications. It is used to provide type safety, autocompletion, and default values for the environment variables. The comments of each variable are used to provide documentation descriptions when running the \\`storm docs\\` command. Since these are secrets, no default values should be provided and the values should be kept confidential (excluded from the client).\n */\nexport interface SecretsInterface {\n /**\n * The secret key used for encryption and decryption.\n *\n * @remarks\n * This variable is used to provide a secret key for encryption and decryption of sensitive data. It is important that this value is kept confidential and not exposed in client-side code or public repositories.\n *\n * @title Encryption Key\n */\n ENCRYPTION_KEY: string;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;GAkBE,OAAA,CAAA,KAAA,EACF;CAAG;CAAS;CAAA;CAAY;CAAmB;CAAG;CAAW;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA,EACxD,OAAA,CAAA,YAAA,YAAA,EACD;CAAG;CAAC;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA;EACF,QAAM;EACP,SAAA;CACD;CAAG;CAAC;CAAoB;EACtB,QAAK;EACN,SAAA;CACD;CAAG;CAAC;CAAA;EACF,QAAA;EACF,SAAO;CACP;CAAG;CAAC;CAAA;EACF,QAAO;EACP,SAAC;CACH;CAAG;CAAG;CAAA;EACJ,QAAI;EACJ,SAAE;CACJ;CAAE;CAAmB;CAAM;;EAEzB,SAAE;CACJ;CAAG;CAAc;CAAkB;EACjC,QAAC;EACD,SAAI;CACN;CAAG;CAAA;CAAA;EACD,QAAI;EACJ,SAAI;CACN;CAAG;CAAC;CAAA;EACF,QAAQ;;CAEV;CAAG;CAAC;CAAA;EACF,QAAO;EACP,SAAC;CACH;CAAG;CAAG;CAAA;EACJ,QAAI;EACJ,SAAE;CACJ;CAAE;CAAS;CAAgB;CAAA;CAAA;CAAA;CAAA,6BAE3B;CAAG;CAAC;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA;EACF,OAAO,CAAA,wBAAwB;EAC/B,OAAC;CACH;CAAG;CAAG;CAAA;EACJ,QAAI;EACJ,SAAE;CACJ;CAAE;CAAS;CAAuB;;EAEhC,SAAE;CACJ;CAAG;C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SAAE;CACJ;CAAE;CAAS;CAA0B;;EAEnC,SAAE;CACJ;CAAG;CAAe;CAAuE;EACvF,QAAC;EACD,SAAI;CACN;CAAG;CAAG;CAAA;AAAA;AAEN,MAAM,sBAAS;CAAA;CAAA;CAAA,EACb,OAAE,iBACJ;CAAE;CAA4B;CAAA;AAAA"}
|
|
1
|
+
{"version":3,"file":"env.mjs","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.mjs","names":[],"sources":[
|
|
1
|
+
{"version":3,"file":"plugin.mjs","names":[],"sources":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-env",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.328",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A package containing a Powerlines plugin for injecting static .env configuration values to the code so that they're accessible at runtime.",
|
|
6
6
|
"keywords": ["dotenv", "powerlines", "storm-software", "powerlines-plugin"],
|
|
@@ -250,12 +250,12 @@
|
|
|
250
250
|
"@alloy-js/typescript": "^0.23.0",
|
|
251
251
|
"@babel/core": "8.0.0-rc.6",
|
|
252
252
|
"@babel/types": "8.0.0-rc.6",
|
|
253
|
-
"@powerlines/core": "
|
|
254
|
-
"@powerlines/plugin-alloy": "0.26.
|
|
255
|
-
"@powerlines/plugin-automd": "0.1.
|
|
256
|
-
"@powerlines/plugin-babel": "0.13.
|
|
257
|
-
"@powerlines/plugin-plugin": "0.12.
|
|
258
|
-
"@powerlines/schema": "0.11.
|
|
253
|
+
"@powerlines/core": "0.48.46",
|
|
254
|
+
"@powerlines/plugin-alloy": "0.26.217",
|
|
255
|
+
"@powerlines/plugin-automd": "0.1.585",
|
|
256
|
+
"@powerlines/plugin-babel": "0.13.120",
|
|
257
|
+
"@powerlines/plugin-plugin": "0.12.536",
|
|
258
|
+
"@powerlines/schema": "0.11.106",
|
|
259
259
|
"@storm-software/config-tools": "^1.190.40",
|
|
260
260
|
"@stryke/capnp": "^0.12.111",
|
|
261
261
|
"@stryke/convert": "^0.7.15",
|
|
@@ -270,9 +270,9 @@
|
|
|
270
270
|
"automd": "^0.4.3",
|
|
271
271
|
"c12": "^3.3.4",
|
|
272
272
|
"defu": "^6.1.7",
|
|
273
|
-
"powerlines": "0.47.
|
|
273
|
+
"powerlines": "0.47.124"
|
|
274
274
|
},
|
|
275
275
|
"devDependencies": { "@types/node": "^25.9.1", "vite": "^8.0.16" },
|
|
276
276
|
"publishConfig": { "access": "public" },
|
|
277
|
-
"gitHead": "
|
|
277
|
+
"gitHead": "1530c8cbb090f1f728d112475074eb3a86070557"
|
|
278
278
|
}
|