@powerlines/plugin-env 0.13.46 → 0.13.48
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.d.cts +1 -1
- package/dist/babel/index.d.ts +1 -1
- package/dist/babel/plugin.d.cts +1 -1
- package/dist/babel/plugin.d.ts +1 -1
- package/dist/helpers/index.d.cts +1 -1
- package/dist/helpers/index.d.ts +1 -1
- package/dist/helpers/load.d.cts +1 -1
- package/dist/helpers/load.d.ts +1 -1
- package/dist/helpers/persistence.d.cts +1 -1
- package/dist/helpers/persistence.d.ts +1 -1
- package/dist/helpers/reflect.cjs +1 -1
- package/dist/helpers/reflect.d.cts +1 -2
- package/dist/helpers/reflect.d.ts +1 -2
- package/dist/helpers/reflect.js +1 -1
- package/dist/helpers/template-helpers.d.cts +1 -1
- package/dist/helpers/template-helpers.d.ts +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/{runtime-DW3zgYlP.d.cts → runtime-C20Cabel.d.cts} +2 -10
- package/dist/{runtime-CeW6x_f6.d.ts → runtime-_iay29OS.d.ts} +2 -10
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/plugin.d.cts +1 -1
- package/dist/types/plugin.d.ts +1 -1
- package/dist/types/runtime.d.cts +1 -1
- package/dist/types/runtime.d.ts +1 -1
- package/package.json +7 -7
package/dist/babel/index.d.cts
CHANGED
package/dist/babel/index.d.ts
CHANGED
package/dist/babel/plugin.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as DeclareBabelTransformPluginReturn } from '../runtime-
|
|
1
|
+
import { D as DeclareBabelTransformPluginReturn } from '../runtime-C20Cabel.cjs';
|
|
2
2
|
import { EnvPluginContext, EnvPluginResolvedConfig } from '../types/plugin.cjs';
|
|
3
3
|
import '@stryke/env/get-env-paths';
|
|
4
4
|
import '@stryke/types/base';
|
package/dist/babel/plugin.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as DeclareBabelTransformPluginReturn } from '../runtime-
|
|
1
|
+
import { D as DeclareBabelTransformPluginReturn } from '../runtime-_iay29OS.js';
|
|
2
2
|
import { EnvPluginContext, EnvPluginResolvedConfig } from '../types/plugin.js';
|
|
3
3
|
import '@stryke/env/get-env-paths';
|
|
4
4
|
import '@stryke/types/base';
|
package/dist/helpers/index.d.cts
CHANGED
|
@@ -3,7 +3,7 @@ export { getEnvDefaultTypeDefinition, getEnvReflectionsPath, getEnvTypeReflectio
|
|
|
3
3
|
export { BaseEnv, BaseSecrets, CreateEnvReflectionOptions, __ΩCreateEnvReflectionOptions, createEnvReflection, createSecretsReflection, mergeEnvReflections, mergeSecretsReflections, reflectEnv, reflectSecrets } from './reflect.cjs';
|
|
4
4
|
export { formatEnvField, removeEnvPrefix } from './source-file-env.cjs';
|
|
5
5
|
export { createTemplateReflection } from './template-helpers.cjs';
|
|
6
|
-
import '../runtime-
|
|
6
|
+
import '../runtime-C20Cabel.cjs';
|
|
7
7
|
import '@stryke/env/get-env-paths';
|
|
8
8
|
import '@stryke/types/base';
|
|
9
9
|
import '@stryke/types/package-json';
|
package/dist/helpers/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export { getEnvDefaultTypeDefinition, getEnvReflectionsPath, getEnvTypeReflectio
|
|
|
3
3
|
export { BaseEnv, BaseSecrets, CreateEnvReflectionOptions, __ΩCreateEnvReflectionOptions, createEnvReflection, createSecretsReflection, mergeEnvReflections, mergeSecretsReflections, reflectEnv, reflectSecrets } from './reflect.js';
|
|
4
4
|
export { formatEnvField, removeEnvPrefix } from './source-file-env.js';
|
|
5
5
|
export { createTemplateReflection } from './template-helpers.js';
|
|
6
|
-
import '../runtime-
|
|
6
|
+
import '../runtime-_iay29OS.js';
|
|
7
7
|
import '@stryke/env/get-env-paths';
|
|
8
8
|
import '@stryke/types/base';
|
|
9
9
|
import '@stryke/types/package-json';
|
package/dist/helpers/load.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as EnvironmentResolvedConfig } from '../runtime-
|
|
1
|
+
import { a as EnvironmentResolvedConfig } from '../runtime-C20Cabel.cjs';
|
|
2
2
|
import { DotenvParseOutput } from '@stryke/env/types';
|
|
3
3
|
import { EnvPluginContext, EnvPluginOptions } from '../types/plugin.cjs';
|
|
4
4
|
import '@stryke/env/get-env-paths';
|
package/dist/helpers/load.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as EnvironmentResolvedConfig } from '../runtime-
|
|
1
|
+
import { a as EnvironmentResolvedConfig } from '../runtime-_iay29OS.js';
|
|
2
2
|
import { DotenvParseOutput } from '@stryke/env/types';
|
|
3
3
|
import { EnvPluginContext, EnvPluginOptions } from '../types/plugin.js';
|
|
4
4
|
import '@stryke/env/get-env-paths';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReflectionClass } from '@deepkit/type';
|
|
2
2
|
import { TypeDefinition } from '@stryke/types/configuration';
|
|
3
|
-
import { U as UnresolvedContext, C as Context } from '../runtime-
|
|
3
|
+
import { U as UnresolvedContext, C as Context } from '../runtime-C20Cabel.cjs';
|
|
4
4
|
import { EnvPluginResolvedConfig, EnvType, EnvPluginContext } from '../types/plugin.cjs';
|
|
5
5
|
import '@stryke/env/get-env-paths';
|
|
6
6
|
import '@stryke/types/base';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReflectionClass } from '@deepkit/type';
|
|
2
2
|
import { TypeDefinition } from '@stryke/types/configuration';
|
|
3
|
-
import { U as UnresolvedContext, C as Context } from '../runtime-
|
|
3
|
+
import { U as UnresolvedContext, C as Context } from '../runtime-_iay29OS.js';
|
|
4
4
|
import { EnvPluginResolvedConfig, EnvType, EnvPluginContext } from '../types/plugin.js';
|
|
5
5
|
import '@stryke/env/get-env-paths';
|
|
6
6
|
import '@stryke/types/base';
|
package/dist/helpers/reflect.cjs
CHANGED
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
*
|
|
5
5
|
*****************************************/
|
|
6
6
|
|
|
7
|
-
function T(e,n){return O(e,{type:type.merge(n.map(t=>t.type))})}chunkFBBMZ4NC_cjs.a(T,"mergeEnvReflections");function v(e,n){return
|
|
7
|
+
function T(e,n){return O(e,{type:type.merge(n.map(t=>t.type))})}chunkFBBMZ4NC_cjs.a(T,"mergeEnvReflections");function v(e,n){return L(e,{type:type.merge(n.map(t=>t.type))})}chunkFBBMZ4NC_cjs.a(v,"mergeSecretsReflections");class b{static{chunkFBBMZ4NC_cjs.a(this,"BaseEnv");}APP_NAME;APP_VERSION;BUILD_ID;BUILD_TIMESTAMP;BUILD_CHECKSUM;RELEASE_ID;RELEASE_TAG;ORGANIZATION;PLATFORM="neutral";MODE="production";ENVIRONMENT;DEBUG=false;TEST=false;MINIMAL=false;NO_COLOR=false;FORCE_COLOR=false;FORCE_HYPERLINK=false;STACKTRACE=false;INCLUDE_ERROR_DATA=false;ERROR_URL;DEFAULT_TIMEZONE;DEFAULT_LOCALE;CI=false}class I{static{chunkFBBMZ4NC_cjs.a(this,"BaseSecrets");}ENCRYPTION_KEY}function O(e,n={}){const i=n.superReflection??new type.ReflectionClass({kind:type.ReflectionKind.class,description:`The base environment configuration definition for the ${titleCase.titleCase(e.config.name)} project.`,classType:b,types:[],implements:[{kind:type.ReflectionKind.objectLiteral,typeName:"EnvInterface",description:`The environment configuration interface definition for the ${titleCase.titleCase(e.config.name)} project.`,types:[]}]});i.name="Env";const t=new type.ReflectionClass(n.type??{kind:type.ReflectionKind.objectLiteral,typeName:"Env",description:`A schema describing the list of available environment variables that can be used by the ${e.config.name?`${titleCase.titleCase(e.config.name)} application`:"application"}.`,types:[]},i);return t.name="Env",t}chunkFBBMZ4NC_cjs.a(O,"createEnvReflection");function L(e,n={}){const i=n.superReflection??new type.ReflectionClass({kind:type.ReflectionKind.class,description:`The base secrets configuration definition for the ${titleCase.titleCase(e.config.name)} project.`,classType:I,types:[],implements:[{kind:type.ReflectionKind.objectLiteral,typeName:"SecretsInterface",description:`The secrets configuration interface definition for the ${titleCase.titleCase(e.config.name)} project.`,types:[]}]});i.name="Secrets";const t=new type.ReflectionClass(n.type??{kind:type.ReflectionKind.objectLiteral,typeName:"Secrets",description:`A schema describing the list of available environment secrets that can be used by the ${e.config.name?`${titleCase.titleCase(e.config.name)} application`:"application"}.`,types:[]},i);return t.name="Secrets",t}chunkFBBMZ4NC_cjs.a(L,"createSecretsReflection");async function F(e,n,i){let t;if(n){const m=await reflectType.reflectType(e,{file:isParentPath.isParentPath(n,e.workspaceConfig.workspaceRoot)?n:joinPaths.joinPaths(e.workspaceConfig.workspaceRoot,n),name:i},{skipNodeModulesBundle:true});t=type.resolveClassType(m);}const f=await reflectType.reflectType(e,await persistence.getEnvDefaultTypeDefinition(e)),p=await persistence.readEnvTypeReflection(e,"env");return T(e,[p,t,type.resolveClassType(f)].filter(Boolean))}chunkFBBMZ4NC_cjs.a(F,"reflectEnv");async function K(e,n,i){let t;if(n){const m=await reflectType.reflectType(e,{file:isParentPath.isParentPath(n,e.workspaceConfig.workspaceRoot)?n:joinPaths.joinPaths(e.workspaceConfig.workspaceRoot,n),name:i},{skipNodeModulesBundle:true});t=type.resolveClassType(m);}const f=await reflectType.reflectType(e,await persistence.getSecretsDefaultTypeDefinition(e)),p=await persistence.readSecretsReflection(e);return v(e,[p,t,type.resolveClassType(f)].filter(Boolean))}chunkFBBMZ4NC_cjs.a(K,"reflectSecrets");exports.BaseEnv=b;exports.BaseSecrets=I;exports.createEnvReflection=O;exports.createSecretsReflection=L;exports.mergeEnvReflections=T;exports.mergeSecretsReflections=v;exports.reflectEnv=F;exports.reflectSecrets=K;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReflectionClass, TypeObjectLiteral, TypeClass } from '@deepkit/type';
|
|
2
2
|
import { EnvPluginContext } from '../types/plugin.cjs';
|
|
3
|
-
import { E as EnvInterface, S as SecretsInterface } from '../runtime-
|
|
3
|
+
import { E as EnvInterface, S as SecretsInterface } from '../runtime-C20Cabel.cjs';
|
|
4
4
|
import '@alloy-js/core/jsx-runtime';
|
|
5
5
|
import '@stryke/capnp';
|
|
6
6
|
import '@stryke/env/types';
|
|
@@ -33,7 +33,6 @@ interface CreateEnvReflectionOptions {
|
|
|
33
33
|
superReflection?: ReflectionClass<any>;
|
|
34
34
|
}
|
|
35
35
|
declare class BaseEnv implements EnvInterface {
|
|
36
|
-
POWERLINES_LOCAL: boolean;
|
|
37
36
|
APP_NAME: string;
|
|
38
37
|
APP_VERSION: string;
|
|
39
38
|
BUILD_ID: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReflectionClass, TypeObjectLiteral, TypeClass } from '@deepkit/type';
|
|
2
2
|
import { EnvPluginContext } from '../types/plugin.js';
|
|
3
|
-
import { E as EnvInterface, S as SecretsInterface } from '../runtime-
|
|
3
|
+
import { E as EnvInterface, S as SecretsInterface } from '../runtime-_iay29OS.js';
|
|
4
4
|
import '@alloy-js/core/jsx-runtime';
|
|
5
5
|
import '@stryke/capnp';
|
|
6
6
|
import '@stryke/env/types';
|
|
@@ -33,7 +33,6 @@ interface CreateEnvReflectionOptions {
|
|
|
33
33
|
superReflection?: ReflectionClass<any>;
|
|
34
34
|
}
|
|
35
35
|
declare class BaseEnv implements EnvInterface {
|
|
36
|
-
POWERLINES_LOCAL: boolean;
|
|
37
36
|
APP_NAME: string;
|
|
38
37
|
APP_VERSION: string;
|
|
39
38
|
BUILD_ID: string;
|
package/dist/helpers/reflect.js
CHANGED
|
@@ -4,4 +4,4 @@ import {a}from'../chunk-UCUR73HG.js';import {reflectType}from'@powerlines/deepki
|
|
|
4
4
|
*
|
|
5
5
|
*****************************************/
|
|
6
6
|
|
|
7
|
-
function T(e,n){return O(e,{type:merge(n.map(t=>t.type))})}a(T,"mergeEnvReflections");function v(e,n){return
|
|
7
|
+
function T(e,n){return O(e,{type:merge(n.map(t=>t.type))})}a(T,"mergeEnvReflections");function v(e,n){return L(e,{type:merge(n.map(t=>t.type))})}a(v,"mergeSecretsReflections");class b{static{a(this,"BaseEnv");}APP_NAME;APP_VERSION;BUILD_ID;BUILD_TIMESTAMP;BUILD_CHECKSUM;RELEASE_ID;RELEASE_TAG;ORGANIZATION;PLATFORM="neutral";MODE="production";ENVIRONMENT;DEBUG=false;TEST=false;MINIMAL=false;NO_COLOR=false;FORCE_COLOR=false;FORCE_HYPERLINK=false;STACKTRACE=false;INCLUDE_ERROR_DATA=false;ERROR_URL;DEFAULT_TIMEZONE;DEFAULT_LOCALE;CI=false}class I{static{a(this,"BaseSecrets");}ENCRYPTION_KEY}function O(e,n={}){const i=n.superReflection??new ReflectionClass({kind:ReflectionKind.class,description:`The base environment configuration definition for the ${titleCase(e.config.name)} project.`,classType:b,types:[],implements:[{kind:ReflectionKind.objectLiteral,typeName:"EnvInterface",description:`The environment configuration interface definition for the ${titleCase(e.config.name)} project.`,types:[]}]});i.name="Env";const t=new ReflectionClass(n.type??{kind:ReflectionKind.objectLiteral,typeName:"Env",description:`A schema describing the list of available environment variables that can be used by the ${e.config.name?`${titleCase(e.config.name)} application`:"application"}.`,types:[]},i);return t.name="Env",t}a(O,"createEnvReflection");function L(e,n={}){const i=n.superReflection??new ReflectionClass({kind:ReflectionKind.class,description:`The base secrets configuration definition for the ${titleCase(e.config.name)} project.`,classType:I,types:[],implements:[{kind:ReflectionKind.objectLiteral,typeName:"SecretsInterface",description:`The secrets configuration interface definition for the ${titleCase(e.config.name)} project.`,types:[]}]});i.name="Secrets";const t=new ReflectionClass(n.type??{kind:ReflectionKind.objectLiteral,typeName:"Secrets",description:`A schema describing the list of available environment secrets that can be used by the ${e.config.name?`${titleCase(e.config.name)} application`:"application"}.`,types:[]},i);return t.name="Secrets",t}a(L,"createSecretsReflection");async function K(e,n,i){let t;if(n){const m=await reflectType(e,{file:isParentPath(n,e.workspaceConfig.workspaceRoot)?n:joinPaths(e.workspaceConfig.workspaceRoot,n),name:i},{skipNodeModulesBundle:true});t=resolveClassType(m);}const f=await reflectType(e,await getEnvDefaultTypeDefinition(e)),p=await readEnvTypeReflection(e,"env");return T(e,[p,t,resolveClassType(f)].filter(Boolean))}a(K,"reflectEnv");async function G(e,n,i){let t;if(n){const m=await reflectType(e,{file:isParentPath(n,e.workspaceConfig.workspaceRoot)?n:joinPaths(e.workspaceConfig.workspaceRoot,n),name:i},{skipNodeModulesBundle:true});t=resolveClassType(m);}const f=await reflectType(e,await getSecretsDefaultTypeDefinition(e)),p=await readSecretsReflection(e);return v(e,[p,t,resolveClassType(f)].filter(Boolean))}a(G,"reflectSecrets");export{b as BaseEnv,I as BaseSecrets,O as createEnvReflection,L as createSecretsReflection,T as mergeEnvReflections,v as mergeSecretsReflections,K as reflectEnv,G as reflectSecrets};
|
|
@@ -2,7 +2,7 @@ import { ReflectionClass } from '@deepkit/type';
|
|
|
2
2
|
import { EnvPluginContext, EnvType } from '../types/plugin.cjs';
|
|
3
3
|
import '@alloy-js/core/jsx-runtime';
|
|
4
4
|
import '@stryke/capnp';
|
|
5
|
-
import '../runtime-
|
|
5
|
+
import '../runtime-C20Cabel.cjs';
|
|
6
6
|
import '@stryke/env/get-env-paths';
|
|
7
7
|
import '@stryke/types/base';
|
|
8
8
|
import '@stryke/types/package-json';
|
|
@@ -2,7 +2,7 @@ import { ReflectionClass } from '@deepkit/type';
|
|
|
2
2
|
import { EnvPluginContext, EnvType } from '../types/plugin.js';
|
|
3
3
|
import '@alloy-js/core/jsx-runtime';
|
|
4
4
|
import '@stryke/capnp';
|
|
5
|
-
import '../runtime-
|
|
5
|
+
import '../runtime-_iay29OS.js';
|
|
6
6
|
import '@stryke/env/get-env-paths';
|
|
7
7
|
import '@stryke/types/base';
|
|
8
8
|
import '@stryke/types/package-json';
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as PluginContext, b as Plugin } from './runtime-
|
|
2
|
-
export { E as EnvInterface, S as SecretsInterface, _ as __ΩEnvInterface, c as __ΩSecretsInterface } from './runtime-
|
|
1
|
+
import { P as PluginContext, b as Plugin } from './runtime-C20Cabel.cjs';
|
|
2
|
+
export { E as EnvInterface, S as SecretsInterface, _ as __ΩEnvInterface, c as __ΩSecretsInterface } from './runtime-C20Cabel.cjs';
|
|
3
3
|
import { Children } from '@alloy-js/core/jsx-runtime';
|
|
4
4
|
import { PrintTreeOptions } from '@alloy-js/core';
|
|
5
5
|
import { EnvPluginContext, EnvPluginResolvedConfig } from './types/plugin.cjs';
|
|
@@ -58,11 +58,11 @@ interface AlloyPluginOptions {
|
|
|
58
58
|
type AlloyPluginBuilderResult<TContext extends PluginContext = PluginContext> = Plugin<TContext> & {
|
|
59
59
|
render: (this: TContext) => Children;
|
|
60
60
|
};
|
|
61
|
-
type AlloyPluginBuilder<TContext extends PluginContext = PluginContext, TOptions = any> = (options: TOptions) => AlloyPluginBuilderResult<
|
|
61
|
+
type AlloyPluginBuilder<TContext extends PluginContext = PluginContext, TOptions = any> = <T extends TContext>(options: TOptions) => AlloyPluginBuilderResult<T>;
|
|
62
62
|
|
|
63
63
|
/**
|
|
64
64
|
* A Powerlines plugin to inject environment variables into the source code.
|
|
65
65
|
*/
|
|
66
|
-
declare const plugin: (options: Parameters<AlloyPluginBuilder<EnvPluginContext<EnvPluginResolvedConfig>>>[0] & AlloyPluginOptions) => Plugin<
|
|
66
|
+
declare const plugin: <T extends EnvPluginContext<EnvPluginResolvedConfig>>(options: Parameters<AlloyPluginBuilder<EnvPluginContext<EnvPluginResolvedConfig>>>[0] & AlloyPluginOptions) => Plugin<T>;
|
|
67
67
|
|
|
68
68
|
export { EnvPluginContext, EnvPluginResolvedConfig, plugin as default, plugin };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as PluginContext, b as Plugin } from './runtime-
|
|
2
|
-
export { E as EnvInterface, S as SecretsInterface, _ as __ΩEnvInterface, c as __ΩSecretsInterface } from './runtime-
|
|
1
|
+
import { P as PluginContext, b as Plugin } from './runtime-_iay29OS.js';
|
|
2
|
+
export { E as EnvInterface, S as SecretsInterface, _ as __ΩEnvInterface, c as __ΩSecretsInterface } from './runtime-_iay29OS.js';
|
|
3
3
|
import { Children } from '@alloy-js/core/jsx-runtime';
|
|
4
4
|
import { PrintTreeOptions } from '@alloy-js/core';
|
|
5
5
|
import { EnvPluginContext, EnvPluginResolvedConfig } from './types/plugin.js';
|
|
@@ -58,11 +58,11 @@ interface AlloyPluginOptions {
|
|
|
58
58
|
type AlloyPluginBuilderResult<TContext extends PluginContext = PluginContext> = Plugin<TContext> & {
|
|
59
59
|
render: (this: TContext) => Children;
|
|
60
60
|
};
|
|
61
|
-
type AlloyPluginBuilder<TContext extends PluginContext = PluginContext, TOptions = any> = (options: TOptions) => AlloyPluginBuilderResult<
|
|
61
|
+
type AlloyPluginBuilder<TContext extends PluginContext = PluginContext, TOptions = any> = <T extends TContext>(options: TOptions) => AlloyPluginBuilderResult<T>;
|
|
62
62
|
|
|
63
63
|
/**
|
|
64
64
|
* A Powerlines plugin to inject environment variables into the source code.
|
|
65
65
|
*/
|
|
66
|
-
declare const plugin: (options: Parameters<AlloyPluginBuilder<EnvPluginContext<EnvPluginResolvedConfig>>>[0] & AlloyPluginOptions) => Plugin<
|
|
66
|
+
declare const plugin: <T extends EnvPluginContext<EnvPluginResolvedConfig>>(options: Parameters<AlloyPluginBuilder<EnvPluginContext<EnvPluginResolvedConfig>>>[0] & AlloyPluginOptions) => Plugin<T>;
|
|
67
67
|
|
|
68
68
|
export { EnvPluginContext, EnvPluginResolvedConfig, plugin as default, plugin };
|
|
@@ -435,7 +435,7 @@ type PluginHooks<TContext extends PluginContext = PluginContext> = {
|
|
|
435
435
|
type PluginBuildPlugins<TContext extends PluginContext = PluginContext> = {
|
|
436
436
|
[TBuildVariant in UnpluginBuildVariant]?: BuildPlugin<TContext, TBuildVariant>;
|
|
437
437
|
};
|
|
438
|
-
interface Plugin<TContext extends PluginContext<ResolvedConfig> = PluginContext<ResolvedConfig>> extends Partial<PluginHooks<TContext>>, PluginBuildPlugins<TContext> {
|
|
438
|
+
interface Plugin<in out TContext extends PluginContext<ResolvedConfig> = PluginContext<ResolvedConfig>> extends Partial<PluginHooks<TContext>>, PluginBuildPlugins<TContext> {
|
|
439
439
|
/**
|
|
440
440
|
* The name of the plugin, for use in deduplication, error messages and logs.
|
|
441
441
|
*/
|
|
@@ -466,7 +466,7 @@ interface Plugin<TContext extends PluginContext<ResolvedConfig> = PluginContext<
|
|
|
466
466
|
* @param other - The other plugin to compare against.
|
|
467
467
|
* @returns `true` if the two plugins are the same, `false` otherwise.
|
|
468
468
|
*/
|
|
469
|
-
dedupe?: false | ((other: Plugin<
|
|
469
|
+
dedupe?: false | ((other: Plugin<any>) => boolean);
|
|
470
470
|
/**
|
|
471
471
|
* A list of pre-requisite plugins that must be loaded before this plugin can be used.
|
|
472
472
|
*/
|
|
@@ -1160,14 +1160,6 @@ type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig>
|
|
|
1160
1160
|
* @showCategories
|
|
1161
1161
|
*/
|
|
1162
1162
|
interface EnvInterface {
|
|
1163
|
-
/**
|
|
1164
|
-
* An indicator that specifies the application is running in the local development environment.
|
|
1165
|
-
*
|
|
1166
|
-
* @hidden
|
|
1167
|
-
* @readonly
|
|
1168
|
-
* @category node
|
|
1169
|
-
*/
|
|
1170
|
-
readonly POWERLINES_LOCAL: boolean;
|
|
1171
1163
|
/**
|
|
1172
1164
|
* The name of the application.
|
|
1173
1165
|
*
|
|
@@ -435,7 +435,7 @@ type PluginHooks<TContext extends PluginContext = PluginContext> = {
|
|
|
435
435
|
type PluginBuildPlugins<TContext extends PluginContext = PluginContext> = {
|
|
436
436
|
[TBuildVariant in UnpluginBuildVariant]?: BuildPlugin<TContext, TBuildVariant>;
|
|
437
437
|
};
|
|
438
|
-
interface Plugin<TContext extends PluginContext<ResolvedConfig> = PluginContext<ResolvedConfig>> extends Partial<PluginHooks<TContext>>, PluginBuildPlugins<TContext> {
|
|
438
|
+
interface Plugin<in out TContext extends PluginContext<ResolvedConfig> = PluginContext<ResolvedConfig>> extends Partial<PluginHooks<TContext>>, PluginBuildPlugins<TContext> {
|
|
439
439
|
/**
|
|
440
440
|
* The name of the plugin, for use in deduplication, error messages and logs.
|
|
441
441
|
*/
|
|
@@ -466,7 +466,7 @@ interface Plugin<TContext extends PluginContext<ResolvedConfig> = PluginContext<
|
|
|
466
466
|
* @param other - The other plugin to compare against.
|
|
467
467
|
* @returns `true` if the two plugins are the same, `false` otherwise.
|
|
468
468
|
*/
|
|
469
|
-
dedupe?: false | ((other: Plugin<
|
|
469
|
+
dedupe?: false | ((other: Plugin<any>) => boolean);
|
|
470
470
|
/**
|
|
471
471
|
* A list of pre-requisite plugins that must be loaded before this plugin can be used.
|
|
472
472
|
*/
|
|
@@ -1160,14 +1160,6 @@ type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig>
|
|
|
1160
1160
|
* @showCategories
|
|
1161
1161
|
*/
|
|
1162
1162
|
interface EnvInterface {
|
|
1163
|
-
/**
|
|
1164
|
-
* An indicator that specifies the application is running in the local development environment.
|
|
1165
|
-
*
|
|
1166
|
-
* @hidden
|
|
1167
|
-
* @readonly
|
|
1168
|
-
* @category node
|
|
1169
|
-
*/
|
|
1170
|
-
readonly POWERLINES_LOCAL: boolean;
|
|
1171
1163
|
/**
|
|
1172
1164
|
* The name of the application.
|
|
1173
1165
|
*
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig, EnvType, __ΩEnvPluginContext, __ΩEnvPluginOptions, __ΩEnvPluginResolvedConfig, __ΩEnvPluginUserConfig, __ΩEnvType } from './plugin.cjs';
|
|
2
|
-
export { E as EnvInterface, S as SecretsInterface, _ as __ΩEnvInterface, c as __ΩSecretsInterface } from '../runtime-
|
|
2
|
+
export { E as EnvInterface, S as SecretsInterface, _ as __ΩEnvInterface, c as __ΩSecretsInterface } from '../runtime-C20Cabel.cjs';
|
|
3
3
|
import '@alloy-js/core/jsx-runtime';
|
|
4
4
|
import '@deepkit/type';
|
|
5
5
|
import '@stryke/capnp';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig, EnvType, __ΩEnvPluginContext, __ΩEnvPluginOptions, __ΩEnvPluginResolvedConfig, __ΩEnvPluginUserConfig, __ΩEnvType } from './plugin.js';
|
|
2
|
-
export { E as EnvInterface, S as SecretsInterface, _ as __ΩEnvInterface, c as __ΩSecretsInterface } from '../runtime-
|
|
2
|
+
export { E as EnvInterface, S as SecretsInterface, _ as __ΩEnvInterface, c as __ΩSecretsInterface } from '../runtime-_iay29OS.js';
|
|
3
3
|
import '@alloy-js/core/jsx-runtime';
|
|
4
4
|
import '@deepkit/type';
|
|
5
5
|
import '@stryke/capnp';
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Children } from '@alloy-js/core/jsx-runtime';
|
|
2
2
|
import { ReflectionClass } from '@deepkit/type';
|
|
3
3
|
import * as $ from '@stryke/capnp';
|
|
4
|
-
import { B as BabelUserConfig, d as UserConfig, R as ResolvedConfig, e as BabelResolvedConfig, P as PluginContext, E as EnvInterface, S as SecretsInterface } from '../runtime-
|
|
4
|
+
import { B as BabelUserConfig, d as UserConfig, R as ResolvedConfig, e as BabelResolvedConfig, P as PluginContext, E as EnvInterface, S as SecretsInterface } from '../runtime-C20Cabel.cjs';
|
|
5
5
|
import { DotenvParseOutput } from '@stryke/env/types';
|
|
6
6
|
import { DotenvConfiguration, TypeDefinitionParameter, TypeDefinition } from '@stryke/types/configuration';
|
|
7
7
|
import '@stryke/env/get-env-paths';
|
package/dist/types/plugin.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Children } from '@alloy-js/core/jsx-runtime';
|
|
2
2
|
import { ReflectionClass } from '@deepkit/type';
|
|
3
3
|
import * as $ from '@stryke/capnp';
|
|
4
|
-
import { B as BabelUserConfig, d as UserConfig, R as ResolvedConfig, e as BabelResolvedConfig, P as PluginContext, E as EnvInterface, S as SecretsInterface } from '../runtime-
|
|
4
|
+
import { B as BabelUserConfig, d as UserConfig, R as ResolvedConfig, e as BabelResolvedConfig, P as PluginContext, E as EnvInterface, S as SecretsInterface } from '../runtime-_iay29OS.js';
|
|
5
5
|
import { DotenvParseOutput } from '@stryke/env/types';
|
|
6
6
|
import { DotenvConfiguration, TypeDefinitionParameter, TypeDefinition } from '@stryke/types/configuration';
|
|
7
7
|
import '@stryke/env/get-env-paths';
|
package/dist/types/runtime.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { E as EnvInterface, S as SecretsInterface, _ as __ΩEnvInterface, c as __ΩSecretsInterface } from '../runtime-
|
|
1
|
+
export { E as EnvInterface, S as SecretsInterface, _ as __ΩEnvInterface, c as __ΩSecretsInterface } from '../runtime-C20Cabel.cjs';
|
|
2
2
|
import '@stryke/env/get-env-paths';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/types/package-json';
|
package/dist/types/runtime.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { E as EnvInterface, S as SecretsInterface, _ as __ΩEnvInterface, c as __ΩSecretsInterface } from '../runtime-
|
|
1
|
+
export { E as EnvInterface, S as SecretsInterface, _ as __ΩEnvInterface, c as __ΩSecretsInterface } from '../runtime-_iay29OS.js';
|
|
2
2
|
import '@stryke/env/get-env-paths';
|
|
3
3
|
import '@stryke/types/base';
|
|
4
4
|
import '@stryke/types/package-json';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-env",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.48",
|
|
4
4
|
"type": "module",
|
|
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
|
"repository": {
|
|
@@ -179,9 +179,9 @@
|
|
|
179
179
|
"@alloy-js/typescript": "^0.20.0",
|
|
180
180
|
"@babel/core": "^7.28.5",
|
|
181
181
|
"@babel/types": "^7.28.5",
|
|
182
|
-
"@powerlines/alloy": "^0.11.
|
|
183
|
-
"@powerlines/plugin-babel": "^0.12.
|
|
184
|
-
"@powerlines/plugin-plugin": "^0.11.
|
|
182
|
+
"@powerlines/alloy": "^0.11.51",
|
|
183
|
+
"@powerlines/plugin-babel": "^0.12.51",
|
|
184
|
+
"@powerlines/plugin-plugin": "^0.11.50",
|
|
185
185
|
"@storm-software/config-tools": "^1.188.49",
|
|
186
186
|
"@stryke/capnp": "^0.12.28",
|
|
187
187
|
"@stryke/env": "^0.20.21",
|
|
@@ -190,12 +190,12 @@
|
|
|
190
190
|
"@stryke/string-format": "^0.12.8",
|
|
191
191
|
"@stryke/type-checks": "^0.3.18",
|
|
192
192
|
"@stryke/types": "^0.10.8",
|
|
193
|
-
"powerlines": "^0.25.
|
|
193
|
+
"powerlines": "^0.25.4"
|
|
194
194
|
},
|
|
195
195
|
"devDependencies": {
|
|
196
196
|
"@alloy-js/babel-preset": "^0.2.1",
|
|
197
197
|
"@babel/preset-typescript": "^7.28.5",
|
|
198
|
-
"@powerlines/nx": "^0.10.
|
|
198
|
+
"@powerlines/nx": "^0.10.42",
|
|
199
199
|
"@storm-software/tsup": "^0.2.47",
|
|
200
200
|
"@types/node": "^24.10.1",
|
|
201
201
|
"tsup": "8.4.0",
|
|
@@ -203,5 +203,5 @@
|
|
|
203
203
|
"vite": "^7.2.4"
|
|
204
204
|
},
|
|
205
205
|
"publishConfig": { "access": "public" },
|
|
206
|
-
"gitHead": "
|
|
206
|
+
"gitHead": "1b998051f406f2465d5fbfd11594a41e170c0467"
|
|
207
207
|
}
|