@powerlines/plugin-env 0.13.9 → 0.13.11

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.
@@ -1,5 +1,5 @@
1
1
  export { envBabelPlugin } from './plugin.cjs';
2
- import '../runtime-DEhb6gxi.cjs';
2
+ import '../runtime-Cgwwl_i7.cjs';
3
3
  import '@stryke/env/get-env-paths';
4
4
  import '@stryke/types/package-json';
5
5
  import 'jiti';
@@ -1,5 +1,5 @@
1
1
  export { envBabelPlugin } from './plugin.js';
2
- import '../runtime-CUeIsMV9.js';
2
+ import '../runtime-Cz7b0Zsv.js';
3
3
  import '@stryke/env/get-env-paths';
4
4
  import '@stryke/types/package-json';
5
5
  import 'jiti';
@@ -1,4 +1,4 @@
1
- import { D as DeclareBabelTransformPluginReturn } from '../runtime-DEhb6gxi.cjs';
1
+ import { D as DeclareBabelTransformPluginReturn } from '../runtime-Cgwwl_i7.cjs';
2
2
  import { EnvPluginContext, EnvPluginResolvedConfig } from '../types/plugin.cjs';
3
3
  import '@stryke/env/get-env-paths';
4
4
  import '@stryke/types/package-json';
@@ -1,4 +1,4 @@
1
- import { D as DeclareBabelTransformPluginReturn } from '../runtime-CUeIsMV9.js';
1
+ import { D as DeclareBabelTransformPluginReturn } from '../runtime-Cz7b0Zsv.js';
2
2
  import { EnvPluginContext, EnvPluginResolvedConfig } from '../types/plugin.js';
3
3
  import '@stryke/env/get-env-paths';
4
4
  import '@stryke/types/package-json';
@@ -3,7 +3,7 @@ export { getEnvDefaultTypeDefinition, getEnvReflectionsPath, getEnvTypeReflectio
3
3
  export { BaseEnv, BaseSecrets, 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-DEhb6gxi.cjs';
6
+ import '../runtime-Cgwwl_i7.cjs';
7
7
  import '@stryke/env/get-env-paths';
8
8
  import '@stryke/types/package-json';
9
9
  import 'jiti';
@@ -3,7 +3,7 @@ export { getEnvDefaultTypeDefinition, getEnvReflectionsPath, getEnvTypeReflectio
3
3
  export { BaseEnv, BaseSecrets, 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-CUeIsMV9.js';
6
+ import '../runtime-Cz7b0Zsv.js';
7
7
  import '@stryke/env/get-env-paths';
8
8
  import '@stryke/types/package-json';
9
9
  import 'jiti';
@@ -1,4 +1,4 @@
1
- import { a as EnvironmentResolvedConfig } from '../runtime-DEhb6gxi.cjs';
1
+ import { a as EnvironmentResolvedConfig } from '../runtime-Cgwwl_i7.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';
@@ -1,4 +1,4 @@
1
- import { a as EnvironmentResolvedConfig } from '../runtime-CUeIsMV9.js';
1
+ import { a as EnvironmentResolvedConfig } from '../runtime-Cz7b0Zsv.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 { C as Context } from '../runtime-DEhb6gxi.cjs';
3
+ import { C as Context } from '../runtime-Cgwwl_i7.cjs';
4
4
  import { EnvPluginResolvedConfig, EnvType, EnvPluginContext } from '../types/plugin.cjs';
5
5
  import '@stryke/env/get-env-paths';
6
6
  import '@stryke/types/package-json';
@@ -1,6 +1,6 @@
1
1
  import { ReflectionClass } from '@deepkit/type';
2
2
  import { TypeDefinition } from '@stryke/types/configuration';
3
- import { C as Context } from '../runtime-CUeIsMV9.js';
3
+ import { C as Context } from '../runtime-Cz7b0Zsv.js';
4
4
  import { EnvPluginResolvedConfig, EnvType, EnvPluginContext } from '../types/plugin.js';
5
5
  import '@stryke/env/get-env-paths';
6
6
  import '@stryke/types/package-json';
@@ -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-DEhb6gxi.cjs';
3
+ import { E as EnvInterface, S as SecretsInterface } from '../runtime-Cgwwl_i7.cjs';
4
4
  import '@alloy-js/core/jsx-runtime';
5
5
  import '@stryke/capnp';
6
6
  import '@stryke/env/types';
@@ -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-CUeIsMV9.js';
3
+ import { E as EnvInterface, S as SecretsInterface } from '../runtime-Cz7b0Zsv.js';
4
4
  import '@alloy-js/core/jsx-runtime';
5
5
  import '@stryke/capnp';
6
6
  import '@stryke/env/types';
@@ -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-DEhb6gxi.cjs';
5
+ import '../runtime-Cgwwl_i7.cjs';
6
6
  import '@stryke/env/get-env-paths';
7
7
  import '@stryke/types/package-json';
8
8
  import 'jiti';
@@ -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-CUeIsMV9.js';
5
+ import '../runtime-Cz7b0Zsv.js';
6
6
  import '@stryke/env/get-env-paths';
7
7
  import '@stryke/types/package-json';
8
8
  import 'jiti';
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { P as PluginContext, b as Plugin } from './runtime-DEhb6gxi.cjs';
2
- export { E as EnvInterface, S as SecretsInterface } from './runtime-DEhb6gxi.cjs';
1
+ import { P as PluginContext, b as Plugin } from './runtime-Cgwwl_i7.cjs';
2
+ export { E as EnvInterface, S as SecretsInterface } from './runtime-Cgwwl_i7.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';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { P as PluginContext, b as Plugin } from './runtime-CUeIsMV9.js';
2
- export { E as EnvInterface, S as SecretsInterface } from './runtime-CUeIsMV9.js';
1
+ import { P as PluginContext, b as Plugin } from './runtime-Cz7b0Zsv.js';
2
+ export { E as EnvInterface, S as SecretsInterface } from './runtime-Cz7b0Zsv.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';
@@ -3,7 +3,7 @@ import { PackageJson } from '@stryke/types/package-json';
3
3
  import { Jiti } from 'jiti';
4
4
  import { ParserOptions, ParseResult } from 'oxc-parser';
5
5
  import { Range } from 'semver';
6
- import { TransformResult, ExternalIdResult, HookFilter, UnpluginOptions, UnpluginContext, UnpluginBuildContext } from 'unplugin';
6
+ import { TransformResult, ExternalIdResult, HookFilter, UnpluginOptions, UnpluginContext, UnpluginBuildContext, UnpluginMessage } from 'unplugin';
7
7
  import { PluginItem, PluginObj, PluginPass, transformAsync } from '@babel/core';
8
8
  import { Format } from '@storm-software/build-tools/types';
9
9
  import { LogLevelLabel } from '@storm-software/config-tools/types';
@@ -811,6 +811,30 @@ interface Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
811
811
  * A logging function for the Powerlines engine
812
812
  */
813
813
  log: LogFn;
814
+ /**
815
+ * A logging function for fatal messages
816
+ */
817
+ fatal: (message: string | UnpluginMessage) => void;
818
+ /**
819
+ * A logging function for error messages
820
+ */
821
+ error: (message: string | UnpluginMessage) => void;
822
+ /**
823
+ * A logging function for warning messages
824
+ */
825
+ warn: (message: string | UnpluginMessage) => void;
826
+ /**
827
+ * A logging function for informational messages
828
+ */
829
+ info: (message: string | UnpluginMessage) => void;
830
+ /**
831
+ * A logging function for debug messages
832
+ */
833
+ debug: (message: string | UnpluginMessage) => void;
834
+ /**
835
+ * A logging function for trace messages
836
+ */
837
+ trace: (message: string | UnpluginMessage) => void;
814
838
  /**
815
839
  * The metadata information
816
840
  */
@@ -3,7 +3,7 @@ import { PackageJson } from '@stryke/types/package-json';
3
3
  import { Jiti } from 'jiti';
4
4
  import { ParserOptions, ParseResult } from 'oxc-parser';
5
5
  import { Range } from 'semver';
6
- import { TransformResult, ExternalIdResult, HookFilter, UnpluginOptions, UnpluginContext, UnpluginBuildContext } from 'unplugin';
6
+ import { TransformResult, ExternalIdResult, HookFilter, UnpluginOptions, UnpluginContext, UnpluginBuildContext, UnpluginMessage } from 'unplugin';
7
7
  import { PluginItem, PluginObj, PluginPass, transformAsync } from '@babel/core';
8
8
  import { Format } from '@storm-software/build-tools/types';
9
9
  import { LogLevelLabel } from '@storm-software/config-tools/types';
@@ -811,6 +811,30 @@ interface Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
811
811
  * A logging function for the Powerlines engine
812
812
  */
813
813
  log: LogFn;
814
+ /**
815
+ * A logging function for fatal messages
816
+ */
817
+ fatal: (message: string | UnpluginMessage) => void;
818
+ /**
819
+ * A logging function for error messages
820
+ */
821
+ error: (message: string | UnpluginMessage) => void;
822
+ /**
823
+ * A logging function for warning messages
824
+ */
825
+ warn: (message: string | UnpluginMessage) => void;
826
+ /**
827
+ * A logging function for informational messages
828
+ */
829
+ info: (message: string | UnpluginMessage) => void;
830
+ /**
831
+ * A logging function for debug messages
832
+ */
833
+ debug: (message: string | UnpluginMessage) => void;
834
+ /**
835
+ * A logging function for trace messages
836
+ */
837
+ trace: (message: string | UnpluginMessage) => void;
814
838
  /**
815
839
  * The metadata information
816
840
  */
@@ -1,5 +1,5 @@
1
1
  export { EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig, EnvType } from './plugin.cjs';
2
- export { E as EnvInterface, S as SecretsInterface } from '../runtime-DEhb6gxi.cjs';
2
+ export { E as EnvInterface, S as SecretsInterface } from '../runtime-Cgwwl_i7.cjs';
3
3
  import '@alloy-js/core/jsx-runtime';
4
4
  import '@deepkit/type';
5
5
  import '@stryke/capnp';
@@ -1,5 +1,5 @@
1
1
  export { EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig, EnvType } from './plugin.js';
2
- export { E as EnvInterface, S as SecretsInterface } from '../runtime-CUeIsMV9.js';
2
+ export { E as EnvInterface, S as SecretsInterface } from '../runtime-Cz7b0Zsv.js';
3
3
  import '@alloy-js/core/jsx-runtime';
4
4
  import '@deepkit/type';
5
5
  import '@stryke/capnp';
@@ -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, U as UserConfig, R as ResolvedConfig, c as BabelResolvedConfig, P as PluginContext, E as EnvInterface, S as SecretsInterface } from '../runtime-DEhb6gxi.cjs';
4
+ import { B as BabelUserConfig, U as UserConfig, R as ResolvedConfig, c as BabelResolvedConfig, P as PluginContext, E as EnvInterface, S as SecretsInterface } from '../runtime-Cgwwl_i7.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';
@@ -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, U as UserConfig, R as ResolvedConfig, c as BabelResolvedConfig, P as PluginContext, E as EnvInterface, S as SecretsInterface } from '../runtime-CUeIsMV9.js';
4
+ import { B as BabelUserConfig, U as UserConfig, R as ResolvedConfig, c as BabelResolvedConfig, P as PluginContext, E as EnvInterface, S as SecretsInterface } from '../runtime-Cz7b0Zsv.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';
@@ -1,4 +1,4 @@
1
- export { E as EnvInterface, S as SecretsInterface } from '../runtime-DEhb6gxi.cjs';
1
+ export { E as EnvInterface, S as SecretsInterface } from '../runtime-Cgwwl_i7.cjs';
2
2
  import '@stryke/env/get-env-paths';
3
3
  import '@stryke/types/package-json';
4
4
  import 'jiti';
@@ -1,4 +1,4 @@
1
- export { E as EnvInterface, S as SecretsInterface } from '../runtime-CUeIsMV9.js';
1
+ export { E as EnvInterface, S as SecretsInterface } from '../runtime-Cz7b0Zsv.js';
2
2
  import '@stryke/env/get-env-paths';
3
3
  import '@stryke/types/package-json';
4
4
  import 'jiti';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-env",
3
- "version": "0.13.9",
3
+ "version": "0.13.11",
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,29 +179,29 @@
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.12",
183
- "@powerlines/plugin-babel": "^0.12.12",
184
- "@powerlines/plugin-plugin": "^0.11.11",
182
+ "@powerlines/alloy": "^0.11.14",
183
+ "@powerlines/plugin-babel": "^0.12.14",
184
+ "@powerlines/plugin-plugin": "^0.11.13",
185
185
  "@storm-software/config-tools": "^1.188.19",
186
- "@stryke/capnp": "^0.12.18",
187
- "@stryke/env": "^0.20.11",
188
- "@stryke/fs": "^0.32.10",
189
- "@stryke/json": "^0.9.3",
190
- "@stryke/string-format": "^0.12.0",
191
- "@stryke/type-checks": "^0.3.10",
192
- "@stryke/types": "^0.10.0",
193
- "powerlines": "^0.18.0"
186
+ "@stryke/capnp": "^0.12.19",
187
+ "@stryke/env": "^0.20.12",
188
+ "@stryke/fs": "^0.32.11",
189
+ "@stryke/json": "^0.9.4",
190
+ "@stryke/string-format": "^0.12.1",
191
+ "@stryke/type-checks": "^0.3.11",
192
+ "@stryke/types": "^0.10.1",
193
+ "powerlines": "^0.19.1"
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.3",
198
+ "@powerlines/nx": "^0.10.5",
199
199
  "@storm-software/tsup": "^0.2.17",
200
200
  "@types/node": "^22.19.0",
201
201
  "tsup": "8.4.0",
202
202
  "typescript": "^5.9.3",
203
- "vite": "^7.2.1"
203
+ "vite": "^7.2.2"
204
204
  },
205
205
  "publishConfig": { "access": "public" },
206
- "gitHead": "4af65138db7b5c7ccdbe493661f60c2a09ee1354"
206
+ "gitHead": "d25499feacd0143784f3cd426488909134bffab2"
207
207
  }