@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.
- package/dist/_virtual/rolldown_runtime.cjs +37 -1
- package/dist/_virtual/rolldown_runtime.mjs +29 -1
- package/dist/babel/index.cjs +1 -1
- package/dist/babel/index.mjs +3 -1
- package/dist/babel/plugin.cjs +120 -4
- package/dist/babel/plugin.d.cts +2 -3
- package/dist/babel/plugin.d.mts +3 -2
- package/dist/babel/plugin.mjs +118 -4
- package/dist/components/docs.cjs +71 -1
- package/dist/components/docs.d.cts +3 -1
- package/dist/components/docs.mjs +70 -1
- package/dist/components/env.cjs +432 -11
- package/dist/components/env.d.cts +1 -0
- package/dist/components/env.mjs +430 -9
- package/dist/components/index.cjs +6 -1
- package/dist/components/index.mjs +4 -1
- package/dist/deepkit/schemas/reflection.cjs +3940 -1
- package/dist/deepkit/schemas/reflection.mjs +3938 -1
- package/dist/deepkit/schemas/reflection2.cjs +4112 -1
- package/dist/deepkit/schemas/reflection2.mjs +4110 -1
- package/dist/deepkit/src/capnp.cjs +913 -1
- package/dist/deepkit/src/capnp.mjs +911 -1
- package/dist/deepkit/src/esbuild-plugin.cjs +47 -4
- package/dist/deepkit/src/esbuild-plugin.mjs +46 -4
- package/dist/deepkit/src/reflect-type.cjs +22 -1
- package/dist/deepkit/src/reflect-type.mjs +20 -1
- package/dist/deepkit/src/resolve-reflections.cjs +16 -1
- package/dist/deepkit/src/resolve-reflections.mjs +15 -1
- package/dist/deepkit/src/transformer.cjs +52 -1
- package/dist/deepkit/src/transformer.mjs +49 -1
- package/dist/deepkit/src/transpile.cjs +29 -1
- package/dist/deepkit/src/transpile.mjs +27 -1
- package/dist/deepkit/src/utilities.cjs +66 -1
- package/dist/deepkit/src/utilities.mjs +65 -1
- package/dist/deepkit/src/vendor/type-compiler/index.cjs +38 -1
- package/dist/deepkit/src/vendor/type-compiler/index.mjs +19 -1
- package/dist/deepkit/src/vendor/type.cjs +20 -1
- package/dist/deepkit/src/vendor/type.mjs +11 -1
- package/dist/helpers/automd-generator.cjs +22 -1
- package/dist/helpers/automd-generator.mjs +21 -1
- package/dist/helpers/create-reflection-resource.cjs +55 -1
- package/dist/helpers/create-reflection-resource.d.cts +2 -1
- package/dist/helpers/create-reflection-resource.mjs +54 -1
- package/dist/helpers/index.cjs +6 -1
- package/dist/helpers/index.mjs +8 -1
- package/dist/helpers/load.cjs +83 -1
- package/dist/helpers/load.d.cts +2 -2
- package/dist/helpers/load.d.mts +3 -2
- package/dist/helpers/load.mjs +80 -1
- package/dist/helpers/persistence.cjs +214 -1
- package/dist/helpers/persistence.d.cts +1 -1
- package/dist/helpers/persistence.d.mts +1 -1
- package/dist/helpers/persistence.mjs +202 -1
- package/dist/helpers/reflect.cjs +111 -1
- package/dist/helpers/reflect.mjs +103 -1
- package/dist/helpers/source-file-env.cjs +28 -1
- package/dist/helpers/source-file-env.mjs +26 -1
- package/dist/helpers/template-helpers.cjs +42 -1
- package/dist/helpers/template-helpers.mjs +41 -1
- package/dist/index.cjs +203 -5
- package/dist/index.d.cts +1 -3
- package/dist/index.d.mts +2 -1
- package/dist/index.mjs +170 -5
- package/dist/plugin-alloy/src/core/components/output.cjs +45 -1
- package/dist/plugin-alloy/src/core/components/output.mjs +44 -1
- package/dist/plugin-alloy/src/core/contexts/context.cjs +11 -1
- package/dist/plugin-alloy/src/core/contexts/context.mjs +10 -1
- package/dist/plugin-alloy/src/index.cjs +93 -2
- package/dist/plugin-alloy/src/index.mjs +91 -2
- package/dist/plugin-alloy/src/types/components.d.mts +1 -1
- package/dist/plugin-alloy/src/types/plugin.d.cts +3 -2
- package/dist/plugin-alloy/src/types/plugin.d.mts +5 -5
- package/dist/plugin-automd/src/index.cjs +101 -1
- package/dist/plugin-automd/src/index.mjs +98 -1
- package/dist/plugin-automd/src/types/plugin.d.mts +2 -2
- package/dist/plugin-babel/src/helpers/ast-utils.cjs +10 -1
- package/dist/plugin-babel/src/helpers/ast-utils.mjs +9 -1
- package/dist/plugin-babel/src/helpers/create-plugin.cjs +41 -1
- package/dist/plugin-babel/src/helpers/create-plugin.mjs +39 -1
- package/dist/plugin-babel/src/helpers/filters.cjs +23 -1
- package/dist/plugin-babel/src/helpers/filters.mjs +21 -1
- package/dist/plugin-babel/src/helpers/index.cjs +5 -1
- package/dist/plugin-babel/src/helpers/index.mjs +7 -1
- package/dist/plugin-babel/src/helpers/module-helpers.cjs +38 -1
- package/dist/plugin-babel/src/helpers/module-helpers.mjs +35 -1
- package/dist/plugin-babel/src/helpers/options.cjs +50 -1
- package/dist/plugin-babel/src/helpers/options.mjs +47 -1
- package/dist/plugin-babel/src/index.cjs +91 -1
- package/dist/plugin-babel/src/index.mjs +89 -1
- package/dist/plugin-babel/src/types/plugin.d.cts +2 -2
- package/dist/plugin-babel/src/types/plugin.d.mts +2 -2
- package/dist/powerlines/schemas/fs.d.mts +1 -0
- package/dist/powerlines/src/api.d.mts +7 -0
- package/dist/powerlines/src/index.d.mts +12 -0
- package/dist/powerlines/src/internal/helpers/hooks.d.mts +5 -0
- package/dist/powerlines/src/lib/build/esbuild.cjs +102 -14
- package/dist/powerlines/src/lib/build/esbuild.mjs +100 -14
- package/dist/powerlines/src/lib/entry.cjs +12 -1
- package/dist/powerlines/src/lib/entry.mjs +14 -1
- package/dist/powerlines/src/lib/logger.cjs +41 -1
- package/dist/powerlines/src/lib/logger.mjs +39 -1
- package/dist/powerlines/src/lib/utilities/bundle.cjs +35 -1
- package/dist/powerlines/src/lib/utilities/bundle.mjs +34 -1
- package/dist/powerlines/src/lib/utilities/resolve.cjs +30 -1
- package/dist/powerlines/src/lib/utilities/resolve.mjs +29 -1
- package/dist/powerlines/src/plugin-utils/paths.cjs +1 -1
- package/dist/powerlines/src/plugin-utils/paths.mjs +3 -1
- package/dist/powerlines/src/types/api.d.mts +5 -0
- package/dist/powerlines/src/types/babel.d.cts +3 -2
- package/dist/powerlines/src/types/babel.d.mts +3 -2
- package/dist/powerlines/src/types/commands.d.cts +1 -1
- package/dist/powerlines/src/types/commands.d.mts +2 -2
- package/dist/powerlines/src/types/config.d.cts +5 -5
- package/dist/powerlines/src/types/config.d.mts +7 -7
- package/dist/powerlines/src/types/context.d.cts +44 -3
- package/dist/powerlines/src/types/context.d.mts +46 -5
- package/dist/powerlines/src/types/fs.d.cts +15 -1
- package/dist/powerlines/src/types/fs.d.mts +15 -1
- package/dist/powerlines/src/types/index.d.mts +12 -0
- package/dist/powerlines/src/types/plugin.d.cts +3 -3
- package/dist/powerlines/src/types/plugin.d.mts +4 -4
- package/dist/powerlines/src/types/resolved.d.cts +1 -1
- package/dist/powerlines/src/types/resolved.d.mts +2 -2
- package/dist/powerlines/src/types/tsconfig.d.mts +1 -1
- package/dist/powerlines/src/types/unplugin.d.mts +7 -0
- package/dist/types/index.mjs +1 -1
- package/dist/types/plugin.d.cts +1 -0
- package/dist/types/plugin.mjs +1 -1
- package/dist/types/runtime.mjs +1 -1
- package/package.json +15 -15
- package/dist/babel/index.d.cts +0 -1
- package/dist/helpers/index.d.cts +0 -6
- package/dist/plugin-alloy/src/vendor/index.cjs +0 -1
- package/dist/plugin-alloy/src/vendor/index.d.mts +0 -7
- 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
|
|
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 =
|
|
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?:
|
|
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 };
|
package/dist/types/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{};
|
|
1
|
+
export { };
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -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
|
package/dist/types/plugin.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{};
|
|
1
|
+
export { };
|
package/dist/types/runtime.mjs
CHANGED
|
@@ -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.
|
|
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.
|
|
197
|
-
"@powerlines/plugin-alloy": "^0.
|
|
198
|
-
"@powerlines/plugin-automd": "^0.1.
|
|
199
|
-
"@powerlines/plugin-babel": "^0.12.
|
|
200
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
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.
|
|
203
|
-
"@stryke/env": "^0.20.
|
|
204
|
-
"@stryke/fs": "^0.33.
|
|
205
|
-
"@stryke/json": "^0.9.
|
|
206
|
-
"@stryke/string-format": "^0.12.
|
|
207
|
-
"@stryke/type-checks": "^0.5.
|
|
208
|
-
"@stryke/types": "^0.10.
|
|
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.
|
|
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": "
|
|
214
|
+
"gitHead": "be47e546b48b9a82e460b5c5d4f02fb66e821f18"
|
|
215
215
|
}
|
package/dist/babel/index.d.cts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import { envBabelPlugin } from "./plugin.cjs";
|
package/dist/helpers/index.d.cts
DELETED
|
@@ -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 +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};
|