@powerlines/plugin-env 0.14.26 → 0.15.0
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/components/docs.cjs +6 -6
- package/dist/components/docs.mjs +3 -3
- package/dist/components/env.cjs +153 -40
- package/dist/components/env.d.cts +2 -2
- package/dist/components/env.d.mts +2 -2
- package/dist/components/env.mjs +128 -15
- package/dist/helpers/create-reflection-resource.d.cts +2 -2
- package/dist/helpers/create-reflection-resource.d.mts +2 -2
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/plugin-alloy/src/core/components/single-line-comment.cjs +22 -0
- package/dist/plugin-alloy/src/core/components/single-line-comment.mjs +21 -0
- package/dist/plugin-alloy/src/core/components/source-file.cjs +64 -0
- package/dist/plugin-alloy/src/core/components/source-file.d.cts +23 -0
- package/dist/plugin-alloy/src/core/components/source-file.d.mts +23 -0
- package/dist/plugin-alloy/src/core/components/source-file.mjs +62 -0
- package/dist/plugin-alloy/src/core/contexts/context.cjs +50 -1
- package/dist/plugin-alloy/src/core/contexts/context.mjs +46 -2
- package/dist/plugin-alloy/src/core/contexts/index.cjs +2 -0
- package/dist/plugin-alloy/src/core/contexts/index.mjs +4 -0
- package/dist/plugin-alloy/src/core/contexts/reflection.cjs +46 -0
- package/dist/plugin-alloy/src/core/contexts/reflection.mjs +42 -0
- package/dist/plugin-alloy/src/helpers/refkey.cjs +16 -0
- package/dist/plugin-alloy/src/helpers/refkey.mjs +15 -0
- package/dist/plugin-alloy/src/markdown/components/markdown-file.cjs +115 -0
- package/dist/plugin-alloy/src/markdown/components/markdown-file.mjs +114 -0
- package/dist/plugin-alloy/src/markdown/components/markdown-table.cjs +39 -0
- package/dist/plugin-alloy/src/markdown/components/markdown-table.mjs +38 -0
- package/dist/plugin-alloy/src/markdown/contexts/markdown-table.cjs +18 -0
- package/dist/plugin-alloy/src/markdown/contexts/markdown-table.mjs +17 -0
- package/dist/plugin-alloy/src/types/components.d.cts +19 -0
- package/dist/plugin-alloy/src/types/components.d.mts +19 -1
- package/dist/plugin-alloy/src/types/index.d.mts +1 -1
- package/dist/plugin-alloy/src/types/plugin.d.cts +2 -2
- package/dist/plugin-alloy/src/types/plugin.d.mts +2 -2
- package/dist/plugin-alloy/src/typescript/components/builtin-file.cjs +57 -0
- package/dist/plugin-alloy/src/typescript/components/builtin-file.d.cts +25 -0
- package/dist/plugin-alloy/src/typescript/components/builtin-file.d.mts +26 -0
- package/dist/plugin-alloy/src/typescript/components/builtin-file.mjs +56 -0
- package/dist/plugin-alloy/src/typescript/components/tsdoc-reflection.cjs +126 -0
- package/dist/plugin-alloy/src/typescript/components/tsdoc-reflection.mjs +124 -0
- package/dist/plugin-alloy/src/typescript/components/tsdoc.cjs +442 -0
- package/dist/plugin-alloy/src/typescript/components/tsdoc.d.cts +27 -0
- package/dist/plugin-alloy/src/typescript/components/tsdoc.d.mts +28 -0
- package/dist/plugin-alloy/src/typescript/components/tsdoc.mjs +433 -0
- package/dist/plugin-alloy/src/typescript/components/typescript-file.cjs +193 -0
- package/dist/plugin-alloy/src/typescript/components/typescript-file.d.cts +14 -0
- package/dist/plugin-alloy/src/typescript/components/typescript-file.d.mts +15 -0
- package/dist/plugin-alloy/src/typescript/components/typescript-file.mjs +190 -0
- package/dist/plugin-alloy/src/typescript/components/typescript-interface.cjs +68 -0
- package/dist/plugin-alloy/src/typescript/components/typescript-interface.d.cts +11 -0
- package/dist/plugin-alloy/src/typescript/components/typescript-interface.d.mts +12 -0
- package/dist/plugin-alloy/src/typescript/components/typescript-interface.mjs +67 -0
- package/dist/plugin-alloy/src/typescript/components/typescript-object.cjs +124 -0
- package/dist/plugin-alloy/src/typescript/components/typescript-object.mjs +123 -0
- package/dist/plugin-automd/src/types/plugin.d.mts +2 -2
- 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/src/api.d.mts +2 -2
- package/dist/powerlines/src/index.d.mts +4 -4
- package/dist/powerlines/src/internal/helpers/hooks.d.mts +3 -3
- package/dist/powerlines/src/lib/build/esbuild.mjs +1 -1
- package/dist/powerlines/src/lib/entry.mjs +1 -1
- package/dist/powerlines/src/types/api.d.mts +2 -2
- package/dist/powerlines/src/types/babel.d.cts +1 -1
- package/dist/powerlines/src/types/babel.d.mts +1 -1
- package/dist/powerlines/src/types/commands.d.cts +1 -1
- package/dist/powerlines/src/types/commands.d.mts +1 -1
- package/dist/powerlines/src/types/config.d.cts +5 -5
- package/dist/powerlines/src/types/config.d.mts +5 -5
- package/dist/powerlines/src/types/context.d.cts +1 -1
- package/dist/powerlines/src/types/context.d.mts +2 -2
- package/dist/powerlines/src/types/fs.d.cts +1 -1
- package/dist/powerlines/src/types/index.d.mts +5 -5
- package/dist/powerlines/src/types/plugin.d.cts +3 -3
- package/dist/powerlines/src/types/plugin.d.mts +3 -3
- package/dist/powerlines/src/types/resolved.d.cts +1 -1
- package/dist/powerlines/src/types/resolved.d.mts +1 -1
- package/dist/powerlines/src/types/unplugin.d.mts +2 -2
- package/package.json +8 -8
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../entry.mjs";
|
|
2
|
-
import { replacePath } from "@stryke/path/replace";
|
|
2
|
+
import { replaceExtension, replacePath } from "@stryke/path/replace";
|
|
3
3
|
import { joinPaths } from "@stryke/path/join-paths";
|
|
4
4
|
import defu from "defu";
|
|
5
5
|
import { isString } from "@stryke/type-checks/is-string";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../plugin-utils/paths.mjs";
|
|
2
|
-
import { replacePath } from "@stryke/path/replace";
|
|
2
|
+
import { replaceExtension, replacePath } from "@stryke/path/replace";
|
|
3
3
|
import { toArray } from "@stryke/convert/to-array";
|
|
4
4
|
import "@stryke/fs/is-file";
|
|
5
5
|
import { listFiles } from "@stryke/fs/list-files";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ArrayValues } from "@stryke/types/array";
|
|
2
1
|
import { MaybePromise } from "@stryke/types/base";
|
|
2
|
+
import { ArrayValues } from "@stryke/types/array";
|
|
3
3
|
|
|
4
4
|
//#region ../powerlines/src/types/commands.d.ts
|
|
5
5
|
declare const SUPPORTED_COMMANDS: readonly ["new", "clean", "prepare", "lint", "test", "build", "docs", "deploy", "finalize"];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./context.mjs";
|
|
2
|
-
import { ArrayValues } from "@stryke/types/array";
|
|
3
2
|
import { MaybePromise } from "@stryke/types/base";
|
|
3
|
+
import { ArrayValues } from "@stryke/types/array";
|
|
4
4
|
|
|
5
5
|
//#region ../powerlines/src/types/commands.d.ts
|
|
6
6
|
declare const SUPPORTED_COMMANDS: readonly ["new", "clean", "prepare", "lint", "test", "build", "docs", "deploy", "finalize"];
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { BabelTransformPluginOptions } from "./babel.cjs";
|
|
2
|
-
import { BuildConfig, BuildResolvedConfig } from "./build.cjs";
|
|
3
1
|
import { StoragePort, StoragePreset } from "./fs.cjs";
|
|
2
|
+
import { BuildConfig, BuildResolvedConfig } from "./build.cjs";
|
|
4
3
|
import { Plugin } from "./plugin.cjs";
|
|
5
4
|
import { TSConfig } from "./tsconfig.cjs";
|
|
6
5
|
import { PluginContext } from "./context.cjs";
|
|
6
|
+
import { BabelTransformPluginOptions } from "./babel.cjs";
|
|
7
7
|
import { MaybePromise } from "@stryke/types/base";
|
|
8
|
+
import { AssetGlob } from "@stryke/types/file";
|
|
9
|
+
import { TypeDefinitionParameter } from "@stryke/types/configuration";
|
|
10
|
+
import { PreviewOptions } from "vite";
|
|
8
11
|
import { transformAsync } from "@babel/core";
|
|
9
12
|
import { Format } from "@storm-software/build-tools/types";
|
|
10
13
|
import { LogLevelLabel } from "@storm-software/config-tools/types";
|
|
11
14
|
import { StormWorkspaceConfig } from "@storm-software/config/types";
|
|
12
|
-
import { TypeDefinitionParameter } from "@stryke/types/configuration";
|
|
13
|
-
import { AssetGlob } from "@stryke/types/file";
|
|
14
15
|
import { DateString } from "compatx";
|
|
15
|
-
import { PreviewOptions } from "vite";
|
|
16
16
|
|
|
17
17
|
//#region ../powerlines/src/types/config.d.ts
|
|
18
18
|
type LogFn = (type: LogLevelLabel, ...args: string[]) => void;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { BabelTransformPluginOptions } from "./babel.mjs";
|
|
2
|
-
import { BuildConfig, BuildResolvedConfig } from "./build.mjs";
|
|
3
1
|
import { StoragePort, StoragePreset } from "./fs.mjs";
|
|
2
|
+
import { BuildConfig, BuildResolvedConfig } from "./build.mjs";
|
|
4
3
|
import { Plugin } from "./plugin.mjs";
|
|
5
4
|
import { TSConfig } from "./tsconfig.mjs";
|
|
6
5
|
import { PluginContext } from "./context.mjs";
|
|
6
|
+
import { BabelTransformPluginOptions } from "./babel.mjs";
|
|
7
7
|
import "c12";
|
|
8
8
|
import { transformAsync } from "@babel/core";
|
|
9
9
|
import { LogLevelLabel } from "@storm-software/config-tools/types";
|
|
10
10
|
import { MaybePromise } from "@stryke/types/base";
|
|
11
|
+
import { AssetGlob } from "@stryke/types/file";
|
|
12
|
+
import { TypeDefinitionParameter } from "@stryke/types/configuration";
|
|
13
|
+
import { PreviewOptions } from "vite";
|
|
11
14
|
import { Format } from "@storm-software/build-tools/types";
|
|
12
15
|
import { StormWorkspaceConfig } from "@storm-software/config/types";
|
|
13
|
-
import { TypeDefinitionParameter } from "@stryke/types/configuration";
|
|
14
|
-
import { AssetGlob } from "@stryke/types/file";
|
|
15
16
|
import { DateString } from "compatx";
|
|
16
|
-
import { PreviewOptions } from "vite";
|
|
17
17
|
|
|
18
18
|
//#region ../powerlines/src/types/config.d.ts
|
|
19
19
|
type LogFn = (type: LogLevelLabel, ...args: string[]) => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ResolveOptions, VirtualFile, VirtualFileSystemInterface, WriteOptions } from "./fs.cjs";
|
|
2
|
-
import { EnvironmentResolvedConfig, ResolvedConfig, ResolvedEntryTypeDefinition } from "./resolved.cjs";
|
|
3
2
|
import { ParsedTypeScriptConfig } from "./tsconfig.cjs";
|
|
4
3
|
import { InlineConfig, LogFn, UserConfig, WorkspaceConfig } from "./config.cjs";
|
|
4
|
+
import { EnvironmentResolvedConfig, ResolvedConfig, ResolvedEntryTypeDefinition } from "./resolved.cjs";
|
|
5
5
|
import { NonUndefined } from "@stryke/types/base";
|
|
6
6
|
import { EnvPaths } from "@stryke/env/get-env-paths";
|
|
7
7
|
import { FetchRequestOptions } from "@stryke/http/fetch";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ResolveOptions, VirtualFile, VirtualFileSystemInterface, WriteOptions } from "./fs.mjs";
|
|
2
|
-
import { EnvironmentResolvedConfig, ResolvedConfig, ResolvedEntryTypeDefinition } from "./resolved.mjs";
|
|
3
2
|
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 { EnvironmentResolvedConfig, ResolvedConfig, ResolvedEntryTypeDefinition } from "./resolved.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";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { BabelPluginPass, BabelTransformPlugin, BabelTransformPluginFilter, BabelTransformPluginOptions, DeclareBabelTransformPluginReturn } from "./babel.mjs";
|
|
2
|
-
import { BuildConfig, BuildResolvedConfig, UnpluginBuildVariant } from "./build.mjs";
|
|
3
1
|
import { ResolveOptions, StorageAdapter, StoragePort, StoragePreset, VirtualFile, VirtualFileData, VirtualFileMetadata, VirtualFileSystemInterface, WriteOptions } from "./fs.mjs";
|
|
2
|
+
import { BuildConfig, BuildResolvedConfig, UnpluginBuildVariant } from "./build.mjs";
|
|
4
3
|
import { CommandType, SUPPORTED_COMMANDS } from "./commands.mjs";
|
|
5
|
-
import { BabelResolvedConfig, EnvironmentResolvedConfig, OutputResolvedConfig, ResolvedAssetGlob, ResolvedConfig, ResolvedEntryTypeDefinition } from "./resolved.mjs";
|
|
6
4
|
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
5
|
import "./hooks.mjs";
|
|
6
|
+
import { DeepkitOptions, ParsedTypeScriptConfig, RawReflectionMode, ReflectionLevel, ReflectionMode, TSCompilerOptions, TSConfig } from "./tsconfig.mjs";
|
|
10
7
|
import { BuildPluginContext, Context, EmitEntryOptions, EmitOptions, FetchOptions, InitContextOptions, LogLevel, MetaInfo, ParseOptions, PluginContext, Resolver, TransformResult, UnresolvedContext } from "./context.mjs";
|
|
8
|
+
import { BabelPluginPass, BabelTransformPlugin, BabelTransformPluginFilter, BabelTransformPluginOptions, DeclareBabelTransformPluginReturn } from "./babel.mjs";
|
|
9
|
+
import { BabelUserConfig, BaseConfig, CommonUserConfig, DeployConfig, EnvironmentConfig, InlineConfig, LogFn, OutputConfig, PluginConfig, PluginConfigObject, PluginConfigTuple, PluginFactory, PowerlinesCommand, ProjectType, UserConfig, WorkspaceConfig } from "./config.mjs";
|
|
10
|
+
import { BabelResolvedConfig, EnvironmentResolvedConfig, OutputResolvedConfig, ResolvedAssetGlob, ResolvedConfig, ResolvedEntryTypeDefinition } from "./resolved.mjs";
|
|
11
11
|
import "./api.mjs";
|
|
12
12
|
import "./unplugin.mjs";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { UnpluginBuildVariant } from "./build.cjs";
|
|
2
2
|
import { CommandType } from "./commands.cjs";
|
|
3
|
-
import { EnvironmentResolvedConfig, ResolvedConfig } from "./resolved.cjs";
|
|
4
|
-
import { EnvironmentConfig, PluginConfig } from "./config.cjs";
|
|
5
3
|
import { BuildPluginContext, PluginContext, UnresolvedContext } from "./context.cjs";
|
|
6
|
-
import {
|
|
4
|
+
import { EnvironmentConfig, PluginConfig } from "./config.cjs";
|
|
5
|
+
import { EnvironmentResolvedConfig, ResolvedConfig } from "./resolved.cjs";
|
|
7
6
|
import { FunctionLike, MaybePromise } from "@stryke/types/base";
|
|
8
7
|
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 { EnvironmentResolvedConfig, ResolvedConfig } from "./resolved.mjs";
|
|
4
|
-
import { EnvironmentConfig, PluginConfig } from "./config.mjs";
|
|
5
3
|
import { BuildPluginContext, PluginContext, UnresolvedContext } from "./context.mjs";
|
|
6
|
-
import {
|
|
4
|
+
import { EnvironmentConfig, PluginConfig } from "./config.mjs";
|
|
5
|
+
import { EnvironmentResolvedConfig, ResolvedConfig } from "./resolved.mjs";
|
|
7
6
|
import { FunctionLike, MaybePromise } from "@stryke/types/base";
|
|
8
7
|
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,7 +1,7 @@
|
|
|
1
1
|
import { BabelUserConfig, EnvironmentConfig, InlineConfig, OutputConfig, UserConfig } from "./config.cjs";
|
|
2
2
|
import { NonUndefined } from "@stryke/types/base";
|
|
3
|
-
import { TypeDefinition } from "@stryke/types/configuration";
|
|
4
3
|
import { AssetGlob } from "@stryke/types/file";
|
|
4
|
+
import { TypeDefinition } from "@stryke/types/configuration";
|
|
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 { TypeDefinition } from "@stryke/types/configuration";
|
|
5
4
|
import { AssetGlob } from "@stryke/types/file";
|
|
5
|
+
import { TypeDefinition } from "@stryke/types/configuration";
|
|
6
6
|
import { ResolvedPreviewOptions } from "vite";
|
|
7
7
|
|
|
8
8
|
//#region ../powerlines/src/types/resolved.d.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-env",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
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,11 +193,11 @@
|
|
|
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.17.
|
|
198
|
-
"@powerlines/plugin-automd": "^0.1.
|
|
199
|
-
"@powerlines/plugin-babel": "^0.12.
|
|
200
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
196
|
+
"@powerlines/deepkit": "^0.5.36",
|
|
197
|
+
"@powerlines/plugin-alloy": "^0.17.6",
|
|
198
|
+
"@powerlines/plugin-automd": "^0.1.121",
|
|
199
|
+
"@powerlines/plugin-babel": "^0.12.130",
|
|
200
|
+
"@powerlines/plugin-plugin": "^0.12.73",
|
|
201
201
|
"@storm-software/config-tools": "^1.188.75",
|
|
202
202
|
"@stryke/capnp": "^0.12.52",
|
|
203
203
|
"@stryke/env": "^0.20.44",
|
|
@@ -207,9 +207,9 @@
|
|
|
207
207
|
"@stryke/type-checks": "^0.5.15",
|
|
208
208
|
"@stryke/types": "^0.10.29",
|
|
209
209
|
"automd": "^0.4.2",
|
|
210
|
-
"powerlines": "^0.36.
|
|
210
|
+
"powerlines": "^0.36.26"
|
|
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": "41988f81e266a609148fcac22a535e5f12bbeb5f"
|
|
215
215
|
}
|