@powerlines/plugin-env 0.14.20 → 0.14.22

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.
Files changed (135) hide show
  1. package/dist/_virtual/rolldown_runtime.cjs +37 -1
  2. package/dist/_virtual/rolldown_runtime.mjs +29 -1
  3. package/dist/babel/index.cjs +1 -1
  4. package/dist/babel/index.mjs +3 -1
  5. package/dist/babel/plugin.cjs +120 -4
  6. package/dist/babel/plugin.d.cts +2 -3
  7. package/dist/babel/plugin.d.mts +3 -2
  8. package/dist/babel/plugin.mjs +118 -4
  9. package/dist/components/docs.cjs +71 -1
  10. package/dist/components/docs.d.cts +3 -1
  11. package/dist/components/docs.mjs +70 -1
  12. package/dist/components/env.cjs +432 -11
  13. package/dist/components/env.d.cts +1 -0
  14. package/dist/components/env.mjs +430 -9
  15. package/dist/components/index.cjs +6 -1
  16. package/dist/components/index.mjs +4 -1
  17. package/dist/deepkit/schemas/reflection.cjs +3940 -1
  18. package/dist/deepkit/schemas/reflection.mjs +3938 -1
  19. package/dist/deepkit/schemas/reflection2.cjs +4112 -1
  20. package/dist/deepkit/schemas/reflection2.mjs +4110 -1
  21. package/dist/deepkit/src/capnp.cjs +913 -1
  22. package/dist/deepkit/src/capnp.mjs +911 -1
  23. package/dist/deepkit/src/esbuild-plugin.cjs +47 -4
  24. package/dist/deepkit/src/esbuild-plugin.mjs +46 -4
  25. package/dist/deepkit/src/reflect-type.cjs +22 -1
  26. package/dist/deepkit/src/reflect-type.mjs +20 -1
  27. package/dist/deepkit/src/resolve-reflections.cjs +16 -1
  28. package/dist/deepkit/src/resolve-reflections.mjs +15 -1
  29. package/dist/deepkit/src/transformer.cjs +52 -1
  30. package/dist/deepkit/src/transformer.mjs +49 -1
  31. package/dist/deepkit/src/transpile.cjs +29 -1
  32. package/dist/deepkit/src/transpile.mjs +27 -1
  33. package/dist/deepkit/src/utilities.cjs +66 -1
  34. package/dist/deepkit/src/utilities.mjs +65 -1
  35. package/dist/deepkit/src/vendor/type-compiler/index.cjs +38 -1
  36. package/dist/deepkit/src/vendor/type-compiler/index.mjs +19 -1
  37. package/dist/deepkit/src/vendor/type.cjs +20 -1
  38. package/dist/deepkit/src/vendor/type.mjs +11 -1
  39. package/dist/helpers/automd-generator.cjs +22 -1
  40. package/dist/helpers/automd-generator.mjs +21 -1
  41. package/dist/helpers/create-reflection-resource.cjs +55 -1
  42. package/dist/helpers/create-reflection-resource.d.cts +2 -1
  43. package/dist/helpers/create-reflection-resource.mjs +54 -1
  44. package/dist/helpers/index.cjs +6 -1
  45. package/dist/helpers/index.mjs +8 -1
  46. package/dist/helpers/load.cjs +83 -1
  47. package/dist/helpers/load.d.cts +2 -2
  48. package/dist/helpers/load.d.mts +3 -2
  49. package/dist/helpers/load.mjs +80 -1
  50. package/dist/helpers/persistence.cjs +214 -1
  51. package/dist/helpers/persistence.d.cts +1 -1
  52. package/dist/helpers/persistence.d.mts +1 -1
  53. package/dist/helpers/persistence.mjs +202 -1
  54. package/dist/helpers/reflect.cjs +111 -1
  55. package/dist/helpers/reflect.mjs +103 -1
  56. package/dist/helpers/source-file-env.cjs +28 -1
  57. package/dist/helpers/source-file-env.mjs +26 -1
  58. package/dist/helpers/template-helpers.cjs +42 -1
  59. package/dist/helpers/template-helpers.mjs +41 -1
  60. package/dist/index.cjs +203 -5
  61. package/dist/index.d.cts +1 -3
  62. package/dist/index.d.mts +2 -1
  63. package/dist/index.mjs +170 -5
  64. package/dist/plugin-alloy/src/core/components/output.cjs +45 -1
  65. package/dist/plugin-alloy/src/core/components/output.mjs +44 -1
  66. package/dist/plugin-alloy/src/core/contexts/context.cjs +11 -1
  67. package/dist/plugin-alloy/src/core/contexts/context.mjs +10 -1
  68. package/dist/plugin-alloy/src/index.cjs +93 -2
  69. package/dist/plugin-alloy/src/index.mjs +91 -2
  70. package/dist/plugin-alloy/src/types/components.d.mts +1 -1
  71. package/dist/plugin-alloy/src/types/plugin.d.cts +3 -2
  72. package/dist/plugin-alloy/src/types/plugin.d.mts +5 -5
  73. package/dist/plugin-automd/src/index.cjs +101 -1
  74. package/dist/plugin-automd/src/index.mjs +98 -1
  75. package/dist/plugin-automd/src/types/plugin.d.mts +2 -2
  76. package/dist/plugin-babel/src/helpers/ast-utils.cjs +10 -1
  77. package/dist/plugin-babel/src/helpers/ast-utils.mjs +9 -1
  78. package/dist/plugin-babel/src/helpers/create-plugin.cjs +41 -1
  79. package/dist/plugin-babel/src/helpers/create-plugin.mjs +39 -1
  80. package/dist/plugin-babel/src/helpers/filters.cjs +23 -1
  81. package/dist/plugin-babel/src/helpers/filters.mjs +21 -1
  82. package/dist/plugin-babel/src/helpers/index.cjs +5 -1
  83. package/dist/plugin-babel/src/helpers/index.mjs +7 -1
  84. package/dist/plugin-babel/src/helpers/module-helpers.cjs +38 -1
  85. package/dist/plugin-babel/src/helpers/module-helpers.mjs +35 -1
  86. package/dist/plugin-babel/src/helpers/options.cjs +50 -1
  87. package/dist/plugin-babel/src/helpers/options.mjs +47 -1
  88. package/dist/plugin-babel/src/index.cjs +91 -1
  89. package/dist/plugin-babel/src/index.mjs +89 -1
  90. package/dist/plugin-babel/src/types/plugin.d.cts +2 -2
  91. package/dist/plugin-babel/src/types/plugin.d.mts +2 -2
  92. package/dist/powerlines/schemas/fs.d.mts +1 -0
  93. package/dist/powerlines/src/api.d.mts +7 -0
  94. package/dist/powerlines/src/index.d.mts +12 -0
  95. package/dist/powerlines/src/internal/helpers/hooks.d.mts +5 -0
  96. package/dist/powerlines/src/lib/build/esbuild.cjs +102 -14
  97. package/dist/powerlines/src/lib/build/esbuild.mjs +100 -14
  98. package/dist/powerlines/src/lib/entry.cjs +12 -1
  99. package/dist/powerlines/src/lib/entry.mjs +14 -1
  100. package/dist/powerlines/src/lib/logger.cjs +41 -1
  101. package/dist/powerlines/src/lib/logger.mjs +39 -1
  102. package/dist/powerlines/src/lib/utilities/bundle.cjs +35 -1
  103. package/dist/powerlines/src/lib/utilities/bundle.mjs +34 -1
  104. package/dist/powerlines/src/lib/utilities/resolve.cjs +30 -1
  105. package/dist/powerlines/src/lib/utilities/resolve.mjs +29 -1
  106. package/dist/powerlines/src/plugin-utils/paths.cjs +1 -1
  107. package/dist/powerlines/src/plugin-utils/paths.mjs +3 -1
  108. package/dist/powerlines/src/types/api.d.mts +5 -0
  109. package/dist/powerlines/src/types/babel.d.cts +3 -2
  110. package/dist/powerlines/src/types/babel.d.mts +3 -2
  111. package/dist/powerlines/src/types/commands.d.cts +1 -1
  112. package/dist/powerlines/src/types/commands.d.mts +2 -2
  113. package/dist/powerlines/src/types/config.d.cts +5 -5
  114. package/dist/powerlines/src/types/config.d.mts +7 -7
  115. package/dist/powerlines/src/types/context.d.cts +44 -3
  116. package/dist/powerlines/src/types/context.d.mts +46 -5
  117. package/dist/powerlines/src/types/fs.d.cts +15 -1
  118. package/dist/powerlines/src/types/fs.d.mts +15 -1
  119. package/dist/powerlines/src/types/index.d.mts +12 -0
  120. package/dist/powerlines/src/types/plugin.d.cts +3 -3
  121. package/dist/powerlines/src/types/plugin.d.mts +4 -4
  122. package/dist/powerlines/src/types/resolved.d.cts +1 -1
  123. package/dist/powerlines/src/types/resolved.d.mts +2 -2
  124. package/dist/powerlines/src/types/tsconfig.d.mts +1 -1
  125. package/dist/powerlines/src/types/unplugin.d.mts +7 -0
  126. package/dist/types/index.mjs +1 -1
  127. package/dist/types/plugin.d.cts +1 -0
  128. package/dist/types/plugin.mjs +1 -1
  129. package/dist/types/runtime.mjs +1 -1
  130. package/package.json +15 -15
  131. package/dist/babel/index.d.cts +0 -1
  132. package/dist/helpers/index.d.cts +0 -6
  133. package/dist/plugin-alloy/src/vendor/index.cjs +0 -1
  134. package/dist/plugin-alloy/src/vendor/index.d.mts +0 -7
  135. package/dist/plugin-alloy/src/vendor/index.mjs +0 -1
@@ -1,9 +1,9 @@
1
1
  import { ResolveOptions, VirtualFile, VirtualFileSystemInterface, WriteOptions } from "./fs.mjs";
2
+ import { EnvironmentResolvedConfig, ResolvedConfig, ResolvedEntryTypeDefinition } from "./resolved.mjs";
2
3
  import "./plugin.mjs";
3
- import "./hooks.mjs";
4
4
  import { ParsedTypeScriptConfig } from "./tsconfig.mjs";
5
5
  import { InlineConfig, LogFn, UserConfig, WorkspaceConfig } from "./config.mjs";
6
- import { EnvironmentResolvedConfig, ResolvedConfig, ResolvedEntryTypeDefinition } from "./resolved.mjs";
6
+ import "./hooks.mjs";
7
7
  import { NonUndefined } from "@stryke/types/base";
8
8
  import { EnvPaths } from "@stryke/env/get-env-paths";
9
9
  import { FetchRequestOptions } from "@stryke/http/fetch";
@@ -91,10 +91,18 @@ interface ParseOptions extends ParserOptions {
91
91
  */
92
92
  allowReturnOutsideFunction?: boolean;
93
93
  }
94
+ interface EmitOptions extends WriteOptions {
95
+ /**
96
+ * If true, will emit the file using {@link UnpluginBuildContext.emitFile | the bundler's emit function}.
97
+ */
98
+ emitWithBundler?: boolean;
99
+ needsCodeReference?: Parameters<UnpluginBuildContext["emitFile"]>[0]["needsCodeReference"];
100
+ originalFileName?: Parameters<UnpluginBuildContext["emitFile"]>[0]["originalFileName"];
101
+ }
94
102
  /**
95
103
  * Options for emitting entry virtual files
96
104
  */
97
- type EmitEntryOptions = WriteOptions & Omit<ResolvedEntryTypeDefinition, "file">;
105
+ type EmitEntryOptions = EmitOptions & Omit<ResolvedEntryTypeDefinition, "file">;
98
106
  /**
99
107
  * The unresolved Powerlines context.
100
108
  *
@@ -305,6 +313,22 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
305
313
  * The Powerlines builtin virtual files
306
314
  */
307
315
  getBuiltins: () => Promise<VirtualFile[]>;
316
+ /**
317
+ * Resolves a file and writes it to the VFS if it does not already exist
318
+ *
319
+ * @param code - The source code of the file
320
+ * @param path - The path to write the file to
321
+ * @param options - Additional options for writing the file
322
+ */
323
+ emit: (code: string, path: string, options?: EmitOptions) => Promise<void>;
324
+ /**
325
+ * Synchronously resolves a file and writes it to the VFS if it does not already exist
326
+ *
327
+ * @param code - The source code of the file
328
+ * @param path - The path to write the file to
329
+ * @param options - Additional options for writing the file
330
+ */
331
+ emitSync: (code: string, path: string, options?: EmitOptions) => void;
308
332
  /**
309
333
  * Resolves a builtin virtual file and writes it to the VFS if it does not already exist
310
334
  *
@@ -313,7 +337,16 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
313
337
  * @param path - An optional path to write the builtin file to
314
338
  * @param options - Additional options for writing the builtin file
315
339
  */
316
- emitBuiltin: (code: string, id: string, path?: string, options?: WriteOptions) => Promise<void>;
340
+ emitBuiltin: (code: string, id: string, path?: string, options?: EmitOptions) => Promise<void>;
341
+ /**
342
+ * Synchronously resolves a builtin virtual file and writes it to the VFS if it does not already exist
343
+ *
344
+ * @param code - The source code of the builtin file
345
+ * @param id - The unique identifier of the builtin file
346
+ * @param path - An optional path to write the builtin file to
347
+ * @param options - Additional options for writing the builtin file
348
+ */
349
+ emitBuiltinSync: (code: string, id: string, path?: string, options?: EmitOptions) => void;
317
350
  /**
318
351
  * Resolves a entry virtual file and writes it to the VFS if it does not already exist
319
352
  *
@@ -322,6 +355,14 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
322
355
  * @param options - Additional options for writing the entry file
323
356
  */
324
357
  emitEntry: (code: string, path: string, options?: EmitEntryOptions) => Promise<void>;
358
+ /**
359
+ * Synchronously resolves a entry virtual file and writes it to the VFS if it does not already exist
360
+ *
361
+ * @param code - The source code of the entry file
362
+ * @param path - An optional path to write the entry file to
363
+ * @param options - Additional options for writing the entry file
364
+ */
365
+ emitEntrySync: (code: string, path: string, options?: EmitEntryOptions) => void;
325
366
  /**
326
367
  * A function to update the context fields using a new user configuration options
327
368
  */
@@ -372,4 +413,4 @@ interface PluginContext<out TResolvedConfig extends ResolvedConfig = ResolvedCon
372
413
  }
373
414
  type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = UnpluginBuildContext & PluginContext<TResolvedConfig>;
374
415
  //#endregion
375
- export { BuildPluginContext, Context, LogLevel, PluginContext, UnresolvedContext };
416
+ export { BuildPluginContext, Context, EmitEntryOptions, EmitOptions, FetchOptions, InitContextOptions, LogLevel, MetaInfo, ParseOptions, PluginContext, Resolver, TransformResult$1 as TransformResult, UnresolvedContext };
@@ -1,6 +1,6 @@
1
- import { ResolveOptions } from "@stryke/fs/resolve";
2
1
  import { MaybePromise } from "@stryke/types/base";
3
2
  import { AssetGlob } from "@stryke/types/file";
3
+ import { ResolveOptions } from "@stryke/fs/resolve";
4
4
 
5
5
  //#region ../powerlines/src/types/fs.d.ts
6
6
 
@@ -13,6 +13,13 @@ interface StorageAdapter {
13
13
  * A name identifying the storage adapter type.
14
14
  */
15
15
  name: string;
16
+ /**
17
+ * The storage preset for the adapter.
18
+ *
19
+ * @remarks
20
+ * This can be used as an alternate way to identify the type of storage being used.
21
+ */
22
+ preset?: StoragePreset | null;
16
23
  /**
17
24
  * Checks if a key exists in the storage.
18
25
  *
@@ -207,6 +214,13 @@ interface WriteOptions {
207
214
  * @defaultValue false
208
215
  */
209
216
  skipFormat?: boolean;
217
+ /**
218
+ * The storage preset or adapter name for the output file.
219
+ *
220
+ * @remarks
221
+ * If not specified, the output mode will be determined by the provided `output.mode` value.
222
+ */
223
+ storage?: StoragePreset | string;
210
224
  /**
211
225
  * Additional metadata for the file.
212
226
  */
@@ -13,6 +13,13 @@ interface StorageAdapter {
13
13
  * A name identifying the storage adapter type.
14
14
  */
15
15
  name: string;
16
+ /**
17
+ * The storage preset for the adapter.
18
+ *
19
+ * @remarks
20
+ * This can be used as an alternate way to identify the type of storage being used.
21
+ */
22
+ preset?: StoragePreset | null;
16
23
  /**
17
24
  * Checks if a key exists in the storage.
18
25
  *
@@ -207,6 +214,13 @@ interface WriteOptions {
207
214
  * @defaultValue false
208
215
  */
209
216
  skipFormat?: boolean;
217
+ /**
218
+ * The storage preset or adapter name for the output file.
219
+ *
220
+ * @remarks
221
+ * If not specified, the output mode will be determined by the provided `output.mode` value.
222
+ */
223
+ storage?: StoragePreset | string;
210
224
  /**
211
225
  * Additional metadata for the file.
212
226
  */
@@ -469,4 +483,4 @@ interface VirtualFileSystemInterface {
469
483
  dispose: () => Promise<void>;
470
484
  }
471
485
  //#endregion
472
- export { ResolveOptions$1 as ResolveOptions, StoragePort, StoragePreset, VirtualFile, VirtualFileSystemInterface, WriteOptions };
486
+ export { ResolveOptions$1 as ResolveOptions, StorageAdapter, StoragePort, StoragePreset, VirtualFile, VirtualFileData, VirtualFileMetadata, VirtualFileSystemInterface, WriteOptions };
@@ -0,0 +1,12 @@
1
+ import { BabelPluginPass, BabelTransformPlugin, BabelTransformPluginFilter, BabelTransformPluginOptions, DeclareBabelTransformPluginReturn } from "./babel.mjs";
2
+ import { BuildConfig, BuildResolvedConfig, UnpluginBuildVariant } from "./build.mjs";
3
+ import { ResolveOptions, StorageAdapter, StoragePort, StoragePreset, VirtualFile, VirtualFileData, VirtualFileMetadata, VirtualFileSystemInterface, WriteOptions } from "./fs.mjs";
4
+ import { CommandType, SUPPORTED_COMMANDS } from "./commands.mjs";
5
+ import { BabelResolvedConfig, EnvironmentResolvedConfig, OutputResolvedConfig, ResolvedAssetGlob, ResolvedConfig, ResolvedEntryTypeDefinition } from "./resolved.mjs";
6
+ import { BasePluginHookFunctions, BuildPlugin, ConfigResult, Plugin, PluginBuildPlugins, PluginHook, PluginHookObject, PluginHooks, TypesResult } from "./plugin.mjs";
7
+ import { DeepkitOptions, ParsedTypeScriptConfig, RawReflectionMode, ReflectionLevel, ReflectionMode, TSCompilerOptions, TSConfig } from "./tsconfig.mjs";
8
+ import { BabelUserConfig, BaseConfig, CommonUserConfig, DeployConfig, EnvironmentConfig, InlineConfig, LogFn, OutputConfig, PluginConfig, PluginConfigObject, PluginConfigTuple, PluginFactory, PowerlinesCommand, ProjectType, UserConfig, WorkspaceConfig } from "./config.mjs";
9
+ import "./hooks.mjs";
10
+ import { BuildPluginContext, Context, EmitEntryOptions, EmitOptions, FetchOptions, InitContextOptions, LogLevel, MetaInfo, ParseOptions, PluginContext, Resolver, TransformResult, UnresolvedContext } from "./context.mjs";
11
+ import "./api.mjs";
12
+ import "./unplugin.mjs";
@@ -1,11 +1,11 @@
1
1
  import { UnpluginBuildVariant } from "./build.cjs";
2
2
  import { CommandType } from "./commands.cjs";
3
- import { BuildPluginContext, PluginContext, UnresolvedContext } from "./context.cjs";
4
- import { EnvironmentConfig, PluginConfig } from "./config.cjs";
5
3
  import { EnvironmentResolvedConfig, ResolvedConfig } from "./resolved.cjs";
4
+ import { EnvironmentConfig, PluginConfig } from "./config.cjs";
5
+ import { BuildPluginContext, PluginContext, UnresolvedContext } from "./context.cjs";
6
+ import { ArrayValues } from "@stryke/types/array";
6
7
  import { FunctionLike, MaybePromise } from "@stryke/types/base";
7
8
  import { ExternalIdResult, HookFilter, TransformResult, UnpluginOptions } from "unplugin";
8
- import { ArrayValues } from "@stryke/types/array";
9
9
 
10
10
  //#region ../powerlines/src/types/plugin.d.ts
11
11
  interface PluginHookObject<THookFunction extends FunctionLike, TFilter extends keyof HookFilter = never> {
@@ -1,11 +1,11 @@
1
1
  import { UnpluginBuildVariant } from "./build.mjs";
2
2
  import { CommandType } from "./commands.mjs";
3
- import { BuildPluginContext, PluginContext, UnresolvedContext } from "./context.mjs";
4
- import { EnvironmentConfig, PluginConfig } from "./config.mjs";
5
3
  import { EnvironmentResolvedConfig, ResolvedConfig } from "./resolved.mjs";
4
+ import { EnvironmentConfig, PluginConfig } from "./config.mjs";
5
+ import { BuildPluginContext, PluginContext, UnresolvedContext } from "./context.mjs";
6
+ import { ArrayValues } from "@stryke/types/array";
6
7
  import { FunctionLike, MaybePromise } from "@stryke/types/base";
7
8
  import { ExternalIdResult, HookFilter, TransformResult, UnpluginOptions } from "unplugin";
8
- import { ArrayValues } from "@stryke/types/array";
9
9
 
10
10
  //#region ../powerlines/src/types/plugin.d.ts
11
11
  interface PluginHookObject<THookFunction extends FunctionLike, TFilter extends keyof HookFilter = never> {
@@ -228,4 +228,4 @@ interface Plugin<TContext extends PluginContext<ResolvedConfig> = PluginContext<
228
228
  applyToEnvironment?: (environment: EnvironmentResolvedConfig) => boolean | PluginConfig<TContext>;
229
229
  }
230
230
  //#endregion
231
- export { Plugin };
231
+ export { BasePluginHookFunctions, BuildPlugin, ConfigResult, Plugin, PluginBuildPlugins, PluginHook, PluginHookObject, PluginHooks, TypesResult };
@@ -1,7 +1,7 @@
1
1
  import { BabelUserConfig, EnvironmentConfig, InlineConfig, OutputConfig, UserConfig } from "./config.cjs";
2
2
  import { NonUndefined } from "@stryke/types/base";
3
- import { AssetGlob } from "@stryke/types/file";
4
3
  import { TypeDefinition } from "@stryke/types/configuration";
4
+ import { AssetGlob } from "@stryke/types/file";
5
5
  import { ResolvedPreviewOptions } from "vite";
6
6
 
7
7
  //#region ../powerlines/src/types/resolved.d.ts
@@ -1,8 +1,8 @@
1
1
  import "./build.mjs";
2
2
  import { BabelUserConfig, EnvironmentConfig, InlineConfig, OutputConfig, UserConfig } from "./config.mjs";
3
3
  import { NonUndefined } from "@stryke/types/base";
4
- import { AssetGlob } from "@stryke/types/file";
5
4
  import { TypeDefinition } from "@stryke/types/configuration";
5
+ import { AssetGlob } from "@stryke/types/file";
6
6
  import { ResolvedPreviewOptions } from "vite";
7
7
 
8
8
  //#region ../powerlines/src/types/resolved.d.ts
@@ -80,4 +80,4 @@ type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserCon
80
80
  logLevel: "error" | "warn" | "info" | "debug" | "trace" | null;
81
81
  };
82
82
  //#endregion
83
- export { BabelResolvedConfig, EnvironmentResolvedConfig, ResolvedConfig, ResolvedEntryTypeDefinition };
83
+ export { BabelResolvedConfig, EnvironmentResolvedConfig, OutputResolvedConfig, ResolvedAssetGlob, ResolvedConfig, ResolvedEntryTypeDefinition };
@@ -66,4 +66,4 @@ type ParsedTypeScriptConfig = ts.ParsedCommandLine & {
66
66
  tsconfigFilePath: string;
67
67
  };
68
68
  //#endregion
69
- export { ParsedTypeScriptConfig, TSConfig };
69
+ export { DeepkitOptions, ParsedTypeScriptConfig, RawReflectionMode, ReflectionLevel, ReflectionMode, TSCompilerOptions, TSConfig };
@@ -0,0 +1,7 @@
1
+ import "./build.mjs";
2
+ import "./resolved.mjs";
3
+ import "./plugin.mjs";
4
+ import "./config.mjs";
5
+ import "./context.mjs";
6
+ import "./api.mjs";
7
+ import { UnpluginOptions } from "unplugin";
@@ -1 +1 @@
1
- export{};
1
+ export { };
@@ -4,6 +4,7 @@ import { AutoMDPluginOptions } from "../plugin-automd/src/types/plugin.cjs";
4
4
  import { BabelPluginContext, BabelPluginOptions, BabelPluginResolvedConfig, BabelPluginUserConfig } from "../plugin-babel/src/types/plugin.cjs";
5
5
  import { EnvInterface, SecretsInterface } from "./runtime.cjs";
6
6
  import { DotenvConfiguration, TypeDefinition, TypeDefinitionParameter } from "@stryke/types/configuration";
7
+ import { Children } from "@alloy-js/core/jsx-runtime";
7
8
  import { DotenvParseOutput } from "@stryke/env/types";
8
9
 
9
10
  //#region src/types/plugin.d.ts
@@ -1 +1 @@
1
- export{};
1
+ export { };
@@ -1 +1 @@
1
- export{};
1
+ export { };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-env",
3
- "version": "0.14.20",
3
+ "version": "0.14.22",
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": {
@@ -193,23 +193,23 @@
193
193
  "@alloy-js/json": "^0.22.0",
194
194
  "@babel/core": "^7.28.5",
195
195
  "@babel/types": "^7.28.5",
196
- "@powerlines/deepkit": "^0.5.31",
197
- "@powerlines/plugin-alloy": "^0.16.3",
198
- "@powerlines/plugin-automd": "^0.1.116",
199
- "@powerlines/plugin-babel": "^0.12.125",
200
- "@powerlines/plugin-plugin": "^0.12.68",
196
+ "@powerlines/deepkit": "^0.5.33",
197
+ "@powerlines/plugin-alloy": "^0.17.1",
198
+ "@powerlines/plugin-automd": "^0.1.118",
199
+ "@powerlines/plugin-babel": "^0.12.127",
200
+ "@powerlines/plugin-plugin": "^0.12.70",
201
201
  "@storm-software/config-tools": "^1.188.74",
202
- "@stryke/capnp": "^0.12.51",
203
- "@stryke/env": "^0.20.43",
204
- "@stryke/fs": "^0.33.26",
205
- "@stryke/json": "^0.9.32",
206
- "@stryke/string-format": "^0.12.29",
207
- "@stryke/type-checks": "^0.5.14",
208
- "@stryke/types": "^0.10.28",
202
+ "@stryke/capnp": "^0.12.52",
203
+ "@stryke/env": "^0.20.44",
204
+ "@stryke/fs": "^0.33.27",
205
+ "@stryke/json": "^0.9.33",
206
+ "@stryke/string-format": "^0.12.30",
207
+ "@stryke/type-checks": "^0.5.15",
208
+ "@stryke/types": "^0.10.29",
209
209
  "automd": "^0.4.2",
210
- "powerlines": "^0.36.21"
210
+ "powerlines": "^0.36.23"
211
211
  },
212
212
  "devDependencies": { "@types/node": "^24.10.4", "vite": "8.0.0-beta.2" },
213
213
  "publishConfig": { "access": "public" },
214
- "gitHead": "b16324cf857ea5743fd7ad06e18607b1ba32abe0"
214
+ "gitHead": "be47e546b48b9a82e460b5c5d4f02fb66e821f18"
215
215
  }
@@ -1 +0,0 @@
1
- import { envBabelPlugin } from "./plugin.cjs";
@@ -1,6 +0,0 @@
1
- import { createReflectionResource } from "./create-reflection-resource.cjs";
2
- import { loadEnv, loadEnvFromContext } from "./load.cjs";
3
- import { getEnvDefaultTypeDefinition, getEnvReflectionsPath, getEnvTypeReflectionsPath, getSecretsDefaultTypeDefinition, readEnvReflection, readEnvTypeReflection, readSecretsReflection, resolveRuntimeTypeFile, writeEnvReflection, writeEnvReflectionSync, writeEnvTypeReflection } from "./persistence.cjs";
4
- import { BaseEnv, BaseSecrets, CreateEnvReflectionOptions, __ΩCreateEnvReflectionOptions, createEnvReflection, createSecretsReflection, mergeEnvReflections, mergeSecretsReflections, reflectEnv, reflectSecrets } from "./reflect.cjs";
5
- import { formatEnvField, removeEnvPrefix } from "./source-file-env.cjs";
6
- import { createTemplateReflection } from "./template-helpers.cjs";
@@ -1 +0,0 @@
1
- const e=require(`../../../_virtual/rolldown_runtime.cjs`);var t={};e.__reExport(t,require(`@alloy-js/core`)),Object.defineProperty(exports,`vendor_exports`,{enumerable:!0,get:function(){return t}});var n=require(`@alloy-js/core`);Object.keys(n).forEach(function(e){e!==`default`&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return n[e]}})});
@@ -1,7 +0,0 @@
1
- export * from "@alloy-js/core";
2
-
3
- //#region ../plugin-alloy/src/vendor/index.d.ts
4
-
5
- import * as import___alloy_js_core from "@alloy-js/core";
6
- //#endregion
7
- export { import___alloy_js_core as index_d_exports };
@@ -1 +0,0 @@
1
- import{__reExport as e}from"../../../_virtual/rolldown_runtime.mjs";export*from"@alloy-js/core";var t={};import*as n from"@alloy-js/core";e(t,n);export{t as vendor_exports};