@powerlines/plugin-env 0.15.135 → 0.15.137
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/plugin.cjs +3 -3
- package/dist/babel/plugin.d.cts +2 -2
- package/dist/babel/plugin.d.mts +2 -3
- package/dist/babel/plugin.mjs +1 -1
- package/dist/helpers/automd-generator.cjs +2 -2
- package/dist/helpers/automd-generator.d.cts +1 -1
- package/dist/helpers/automd-generator.d.mts +1 -1
- package/dist/helpers/automd-generator.mjs +1 -1
- package/dist/helpers/load.cjs +4 -4
- package/dist/helpers/load.mjs +2 -2
- package/dist/helpers/persistence.cjs +5 -5
- package/dist/helpers/persistence.d.cts +1 -1
- package/dist/helpers/persistence.d.mts +1 -1
- package/dist/helpers/persistence.mjs +1 -1
- package/dist/index.cjs +3 -2
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +2 -2
- package/dist/types/plugin.d.cts +1 -1
- package/package.json +288 -49
- package/dist/plugin-alloy/src/core/components/output.cjs +0 -33
- package/dist/plugin-alloy/src/core/components/output.mjs +0 -32
- package/dist/plugin-alloy/src/core/contexts/context.cjs +0 -116
- package/dist/plugin-alloy/src/core/contexts/context.mjs +0 -116
- package/dist/plugin-alloy/src/index.cjs +0 -98
- package/dist/plugin-alloy/src/index.mjs +0 -96
- package/dist/plugin-alloy/src/internal/unctx.cjs +0 -9
- package/dist/plugin-alloy/src/internal/unctx.mjs +0 -8
- package/dist/powerlines/src/internal/helpers/hooks.d.cts +0 -47
- package/dist/powerlines/src/internal/helpers/hooks.d.mts +0 -49
- package/dist/powerlines/src/lib/constants/environments.cjs +0 -6
- package/dist/powerlines/src/lib/constants/environments.mjs +0 -5
- package/dist/powerlines/src/types/api.d.cts +0 -104
- package/dist/powerlines/src/types/api.d.mts +0 -104
- package/dist/powerlines/src/types/babel.cjs +0 -11
- package/dist/powerlines/src/types/babel.d.cts +0 -21
- package/dist/powerlines/src/types/babel.d.mts +0 -21
- package/dist/powerlines/src/types/babel.mjs +0 -10
- package/dist/powerlines/src/types/build.d.cts +0 -185
- package/dist/powerlines/src/types/build.d.mts +0 -185
- package/dist/powerlines/src/types/commands.d.cts +0 -8
- package/dist/powerlines/src/types/commands.d.mts +0 -9
- package/dist/powerlines/src/types/config.cjs +0 -30
- package/dist/powerlines/src/types/config.d.cts +0 -424
- package/dist/powerlines/src/types/config.d.mts +0 -426
- package/dist/powerlines/src/types/config.mjs +0 -29
- package/dist/powerlines/src/types/context.cjs +0 -285
- package/dist/powerlines/src/types/context.d.cts +0 -514
- package/dist/powerlines/src/types/context.d.mts +0 -514
- package/dist/powerlines/src/types/context.mjs +0 -283
- package/dist/powerlines/src/types/fs.d.cts +0 -486
- package/dist/powerlines/src/types/fs.d.mts +0 -486
- package/dist/powerlines/src/types/hooks.d.cts +0 -32
- package/dist/powerlines/src/types/hooks.d.mts +0 -32
- package/dist/powerlines/src/types/index.d.mts +0 -12
- package/dist/powerlines/src/types/plugin.d.cts +0 -205
- package/dist/powerlines/src/types/plugin.d.mts +0 -205
- package/dist/powerlines/src/types/resolved.d.cts +0 -93
- package/dist/powerlines/src/types/resolved.d.mts +0 -93
- package/dist/powerlines/src/types/tsconfig.d.cts +0 -69
- package/dist/powerlines/src/types/tsconfig.d.mts +0 -69
- package/dist/powerlines/src/types/unplugin.d.cts +0 -22
- package/dist/powerlines/src/types/unplugin.d.mts +0 -23
package/dist/babel/plugin.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_types_plugin = require('../types/plugin.cjs');
|
|
3
|
-
|
|
3
|
+
let powerlines_types_babel = require("powerlines/types/babel");
|
|
4
4
|
let __babel_core = require("@babel/core");
|
|
5
5
|
let __powerlines_deepkit_utilities = require("@powerlines/deepkit/utilities");
|
|
6
6
|
let __powerlines_plugin_babel_helpers_create_plugin = require("@powerlines/plugin-babel/helpers/create-plugin");
|
|
@@ -91,7 +91,7 @@ const envBabelPlugin = (__powerlines_plugin_babel_helpers_create_plugin.createBa
|
|
|
91
91
|
}
|
|
92
92
|
extractEnv.__type = [
|
|
93
93
|
"node",
|
|
94
|
-
() =>
|
|
94
|
+
() => powerlines_types_babel.__ΩBabelPluginPass,
|
|
95
95
|
"pass",
|
|
96
96
|
"isInjectable",
|
|
97
97
|
"extractEnv",
|
|
@@ -126,7 +126,7 @@ const envBabelPlugin = (__powerlines_plugin_babel_helpers_create_plugin.createBa
|
|
|
126
126
|
}, [
|
|
127
127
|
() => __babel_core.NodePath,
|
|
128
128
|
"path",
|
|
129
|
-
() =>
|
|
129
|
+
() => powerlines_types_babel.__ΩBabelPluginPass,
|
|
130
130
|
"pass",
|
|
131
131
|
"MemberExpression",
|
|
132
132
|
"PP!7!2\"n#2$\"/%"
|
package/dist/babel/plugin.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { DeclareBabelTransformPluginReturn } from "../powerlines/src/types/babel.cjs";
|
|
2
1
|
import { EnvPluginContext, EnvPluginResolvedConfig } from "../types/plugin.cjs";
|
|
3
2
|
import "../index.cjs";
|
|
3
|
+
import * as powerlines_types0 from "powerlines/types";
|
|
4
4
|
|
|
5
5
|
//#region src/babel/plugin.d.ts
|
|
6
|
-
declare const envBabelPlugin: DeclareBabelTransformPluginReturn<EnvPluginContext<EnvPluginResolvedConfig>, Record<string, any>>;
|
|
6
|
+
declare const envBabelPlugin: powerlines_types0.DeclareBabelTransformPluginReturn<EnvPluginContext<EnvPluginResolvedConfig>, Record<string, any>>;
|
|
7
7
|
//#endregion
|
|
8
8
|
export { envBabelPlugin };
|
package/dist/babel/plugin.d.mts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { DeclareBabelTransformPluginReturn } from "../powerlines/src/types/babel.mjs";
|
|
2
1
|
import { EnvPluginContext, EnvPluginResolvedConfig } from "../types/plugin.mjs";
|
|
3
2
|
import "../index.mjs";
|
|
4
|
-
import "
|
|
3
|
+
import * as powerlines_types0 from "powerlines/types";
|
|
5
4
|
|
|
6
5
|
//#region src/babel/plugin.d.ts
|
|
7
|
-
declare const envBabelPlugin: DeclareBabelTransformPluginReturn<EnvPluginContext<EnvPluginResolvedConfig>, Record<string, any>>;
|
|
6
|
+
declare const envBabelPlugin: powerlines_types0.DeclareBabelTransformPluginReturn<EnvPluginContext<EnvPluginResolvedConfig>, Record<string, any>>;
|
|
8
7
|
//#endregion
|
|
9
8
|
export { envBabelPlugin };
|
package/dist/babel/plugin.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __ΩEnvPluginContext } from "../types/plugin.mjs";
|
|
2
|
-
import { __ΩBabelPluginPass } from "
|
|
2
|
+
import { __ΩBabelPluginPass } from "powerlines/types/babel";
|
|
3
3
|
import { NodePath } from "@babel/core";
|
|
4
4
|
import { stringifyDefaultValue } from "@powerlines/deepkit/utilities";
|
|
5
5
|
import { createBabelPlugin } from "@powerlines/plugin-babel/helpers/create-plugin";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
|
|
2
|
+
let powerlines_types_context = require("powerlines/types/context");
|
|
3
3
|
let __stryke_path_join_paths = require("@stryke/path/join-paths");
|
|
4
4
|
let automd = require("automd");
|
|
5
5
|
|
|
@@ -22,7 +22,7 @@ const env = __assignType((context) => (0, automd.defineGenerator)({
|
|
|
22
22
|
return { contents: await context.fs.read(envDocFile) || "" };
|
|
23
23
|
}, ["generate", "P\"/!"])
|
|
24
24
|
}), [
|
|
25
|
-
() =>
|
|
25
|
+
() => powerlines_types_context.__ΩUnresolvedContext,
|
|
26
26
|
"context",
|
|
27
27
|
"",
|
|
28
28
|
"Pn!2\"\"/#"
|
package/dist/helpers/load.cjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_types_plugin = require('../types/plugin.cjs');
|
|
3
3
|
const require_helpers_source_file_env = require('./source-file-env.cjs');
|
|
4
|
-
const require_config = require('../powerlines/src/types/config.cjs');
|
|
5
|
-
const require_environments = require('../powerlines/src/lib/constants/environments.cjs');
|
|
6
4
|
let __stryke_path_join_paths = require("@stryke/path/join-paths");
|
|
5
|
+
let powerlines_types_config = require("powerlines/types/config");
|
|
7
6
|
let __stryke_env_load_env = require("@stryke/env/load-env");
|
|
8
7
|
let __stryke_string_format_kebab_case = require("@stryke/string-format/kebab-case");
|
|
9
8
|
let __stryke_type_checks_is_set_object = require("@stryke/type-checks/is-set-object");
|
|
10
9
|
let c12 = require("c12");
|
|
11
10
|
let defu = require("defu");
|
|
12
11
|
defu = require_rolldown_runtime.__toESM(defu);
|
|
12
|
+
let powerlines_lib_constants_environments = require("powerlines/lib/constants/environments");
|
|
13
13
|
|
|
14
14
|
//#region src/helpers/load.ts
|
|
15
15
|
function __assignType(fn, args) {
|
|
@@ -63,7 +63,7 @@ loadEnvDirectory.__type = [
|
|
|
63
63
|
"mode",
|
|
64
64
|
"cacheDir",
|
|
65
65
|
"packageJson",
|
|
66
|
-
() =>
|
|
66
|
+
() => powerlines_types_config.__ΩWorkspaceConfig,
|
|
67
67
|
"workspaceConfig",
|
|
68
68
|
"loadEnvDirectory",
|
|
69
69
|
"Pn!2\"&2#&2$&2%!2&n'2(\"`/)"
|
|
@@ -94,7 +94,7 @@ function loadEnvFromContext(context, parsed) {
|
|
|
94
94
|
TEST: context.config.mode === "test",
|
|
95
95
|
DEBUG: context.config.mode === "development",
|
|
96
96
|
STACKTRACE: context.config.mode !== "production",
|
|
97
|
-
ENVIRONMENT: !context.environment.name || context.environment.name ===
|
|
97
|
+
ENVIRONMENT: !context.environment.name || context.environment.name === powerlines_lib_constants_environments.DEFAULT_ENVIRONMENT ? context.config.mode : context.environment.name
|
|
98
98
|
}, (0, __stryke_type_checks_is_set_object.isSetObject)(context?.env?.types?.env) ? context.env.types.env?.getProperties().reduce(__assignType((ret, prop) => {
|
|
99
99
|
ret[prop.name] = parsed[prop.name] ?? prop.getDefaultValue();
|
|
100
100
|
return ret;
|
package/dist/helpers/load.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { __ΩEnvPluginContext, __ΩEnvPluginOptions } from "../types/plugin.mjs";
|
|
2
2
|
import { removeEnvPrefix } from "./source-file-env.mjs";
|
|
3
|
-
import { __ΩWorkspaceConfig } from "../powerlines/src/types/config.mjs";
|
|
4
|
-
import { DEFAULT_ENVIRONMENT } from "../powerlines/src/lib/constants/environments.mjs";
|
|
5
3
|
import { joinPaths } from "@stryke/path/join-paths";
|
|
4
|
+
import { __ΩWorkspaceConfig } from "powerlines/types/config";
|
|
6
5
|
import { loadEnv as loadEnv$1, loadEnvFile } from "@stryke/env/load-env";
|
|
7
6
|
import { kebabCase } from "@stryke/string-format/kebab-case";
|
|
8
7
|
import { isSetObject } from "@stryke/type-checks/is-set-object";
|
|
9
8
|
import { loadConfig } from "c12";
|
|
10
9
|
import defu from "defu";
|
|
10
|
+
import { DEFAULT_ENVIRONMENT } from "powerlines/lib/constants/environments";
|
|
11
11
|
|
|
12
12
|
//#region src/helpers/load.ts
|
|
13
13
|
function __assignType(fn, args) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_types_plugin = require('../types/plugin.cjs');
|
|
3
|
-
const require_context = require('../powerlines/src/types/context.cjs');
|
|
4
3
|
const require_helpers_reflect = require('./reflect.cjs');
|
|
5
4
|
let __powerlines_deepkit_vendor_type = require("@powerlines/deepkit/vendor/type");
|
|
5
|
+
let powerlines_types_context = require("powerlines/types/context");
|
|
6
6
|
let __powerlines_deepkit_capnp = require("@powerlines/deepkit/capnp");
|
|
7
7
|
let __powerlines_deepkit_resolve_reflections = require("@powerlines/deepkit/resolve-reflections");
|
|
8
8
|
let __powerlines_deepkit_schemas_reflection = require("@powerlines/deepkit/schemas/reflection");
|
|
@@ -26,7 +26,7 @@ async function resolveRuntimeTypeFile(context) {
|
|
|
26
26
|
return resolved;
|
|
27
27
|
}
|
|
28
28
|
resolveRuntimeTypeFile.__type = [
|
|
29
|
-
() =>
|
|
29
|
+
() => powerlines_types_context.__ΩUnresolvedContext,
|
|
30
30
|
() => require_types_plugin.__ΩEnvPluginResolvedConfig,
|
|
31
31
|
"context",
|
|
32
32
|
"resolveRuntimeTypeFile",
|
|
@@ -46,7 +46,7 @@ async function getEnvDefaultTypeDefinition(context) {
|
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
48
|
getEnvDefaultTypeDefinition.__type = [
|
|
49
|
-
() =>
|
|
49
|
+
() => powerlines_types_context.__ΩUnresolvedContext,
|
|
50
50
|
() => require_types_plugin.__ΩEnvPluginResolvedConfig,
|
|
51
51
|
"context",
|
|
52
52
|
"getEnvDefaultTypeDefinition",
|
|
@@ -65,7 +65,7 @@ async function getSecretsDefaultTypeDefinition(context) {
|
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
67
|
getSecretsDefaultTypeDefinition.__type = [
|
|
68
|
-
() =>
|
|
68
|
+
() => powerlines_types_context.__ΩUnresolvedContext,
|
|
69
69
|
() => require_types_plugin.__ΩEnvPluginResolvedConfig,
|
|
70
70
|
"context",
|
|
71
71
|
"getSecretsDefaultTypeDefinition",
|
|
@@ -82,7 +82,7 @@ function getEnvTypeReflectionsPath(context, name = "env") {
|
|
|
82
82
|
return (0, __stryke_path_join_paths.joinPaths)((0, __powerlines_deepkit_resolve_reflections.getReflectionsPath)(context), "env", `${name}-types.bin`);
|
|
83
83
|
}
|
|
84
84
|
getEnvTypeReflectionsPath.__type = [
|
|
85
|
-
() =>
|
|
85
|
+
() => powerlines_types_context.__ΩContext,
|
|
86
86
|
() => require_types_plugin.__ΩEnvPluginResolvedConfig,
|
|
87
87
|
"context",
|
|
88
88
|
() => require_types_plugin.__ΩEnvType,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Context, UnresolvedContext } from "../powerlines/src/types/context.cjs";
|
|
2
1
|
import { EnvPluginContext, EnvPluginResolvedConfig, EnvType } from "../types/plugin.cjs";
|
|
3
2
|
import { TypeDefinition } from "@stryke/types/configuration";
|
|
4
3
|
import { ReflectionClass } from "@powerlines/deepkit/vendor/type";
|
|
4
|
+
import { Context, UnresolvedContext } from "powerlines/types/context";
|
|
5
5
|
|
|
6
6
|
//#region src/helpers/persistence.d.ts
|
|
7
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Context, UnresolvedContext } from "../powerlines/src/types/context.mjs";
|
|
2
1
|
import { EnvPluginContext, EnvPluginResolvedConfig, EnvType } from "../types/plugin.mjs";
|
|
3
2
|
import { ReflectionClass } from "@powerlines/deepkit/vendor/type";
|
|
3
|
+
import { Context, UnresolvedContext } from "powerlines/types/context";
|
|
4
4
|
import { TypeDefinition } from "@stryke/types/configuration";
|
|
5
5
|
|
|
6
6
|
//#region src/helpers/persistence.d.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __ΩEnvPluginContext, __ΩEnvPluginResolvedConfig, __ΩEnvType } from "../types/plugin.mjs";
|
|
2
|
-
import { __ΩContext, __ΩUnresolvedContext } from "../powerlines/src/types/context.mjs";
|
|
3
2
|
import { createEnvReflection } from "./reflect.mjs";
|
|
4
3
|
import { ReflectionClass, ReflectionKind, deserializeType, resolveClassType } from "@powerlines/deepkit/vendor/type";
|
|
4
|
+
import { __ΩContext, __ΩUnresolvedContext } from "powerlines/types/context";
|
|
5
5
|
import { convertFromCapnp, convertToCapnp } from "@powerlines/deepkit/capnp";
|
|
6
6
|
import { getReflectionsPath } from "@powerlines/deepkit/resolve-reflections";
|
|
7
7
|
import { SerializedTypes } from "@powerlines/deepkit/schemas/reflection";
|
package/dist/index.cjs
CHANGED
|
@@ -17,7 +17,6 @@ const require_components_env = require('./components/env.cjs');
|
|
|
17
17
|
require('./components/index.cjs');
|
|
18
18
|
const require_babel_plugin = require('./babel/plugin.cjs');
|
|
19
19
|
require('./babel/index.cjs');
|
|
20
|
-
const require_index = require('./plugin-alloy/src/index.cjs');
|
|
21
20
|
let __powerlines_deepkit_vendor_type = require("@powerlines/deepkit/vendor/type");
|
|
22
21
|
let __stryke_path_is_parent_path = require("@stryke/path/is-parent-path");
|
|
23
22
|
let __stryke_env_types = require("@stryke/env/types");
|
|
@@ -25,6 +24,8 @@ let defu = require("defu");
|
|
|
25
24
|
defu = require_rolldown_runtime.__toESM(defu);
|
|
26
25
|
let __stryke_path_join = require("@stryke/path/join");
|
|
27
26
|
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
27
|
+
let __powerlines_plugin_alloy = require("@powerlines/plugin-alloy");
|
|
28
|
+
__powerlines_plugin_alloy = require_rolldown_runtime.__toESM(__powerlines_plugin_alloy);
|
|
28
29
|
let __powerlines_plugin_automd = require("@powerlines/plugin-automd");
|
|
29
30
|
__powerlines_plugin_automd = require_rolldown_runtime.__toESM(__powerlines_plugin_automd);
|
|
30
31
|
let __powerlines_plugin_babel = require("@powerlines/plugin-babel");
|
|
@@ -40,7 +41,7 @@ let __stryke_string_format_constant_case = require("@stryke/string-format/consta
|
|
|
40
41
|
*/
|
|
41
42
|
const plugin = (options = {}) => {
|
|
42
43
|
return [
|
|
43
|
-
|
|
44
|
+
(0, __powerlines_plugin_alloy.default)(options.alloy),
|
|
44
45
|
(0, __powerlines_plugin_babel.default)(options.babel),
|
|
45
46
|
{
|
|
46
47
|
name: "env",
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Plugin } from "./powerlines/src/types/plugin.cjs";
|
|
2
1
|
import { EnvInterface, SecretsInterface, __ΩEnvInterface, __ΩSecretsInterface } from "./types/runtime.cjs";
|
|
3
2
|
import { EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig, EnvType, __ΩEnvPluginContext, __ΩEnvPluginOptions, __ΩEnvPluginResolvedConfig, __ΩEnvPluginUserConfig, __ΩEnvType } from "./types/plugin.cjs";
|
|
4
3
|
import { EnvDocsFile, EnvDocsFileProps, __ΩEnvDocsFileProps } from "./components/docs.cjs";
|
|
@@ -14,6 +13,7 @@ import "./helpers/index.cjs";
|
|
|
14
13
|
import "./types/index.cjs";
|
|
15
14
|
import { envBabelPlugin } from "./babel/plugin.cjs";
|
|
16
15
|
import "./babel/index.cjs";
|
|
16
|
+
import { Plugin } from "powerlines/types/plugin";
|
|
17
17
|
|
|
18
18
|
//#region src/index.d.ts
|
|
19
19
|
/**
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Plugin } from "./powerlines/src/types/plugin.mjs";
|
|
2
1
|
import { EnvInterface, SecretsInterface, __ΩEnvInterface, __ΩSecretsInterface } from "./types/runtime.mjs";
|
|
3
2
|
import { EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig, EnvType, __ΩEnvPluginContext, __ΩEnvPluginOptions, __ΩEnvPluginResolvedConfig, __ΩEnvPluginUserConfig, __ΩEnvType } from "./types/plugin.mjs";
|
|
4
3
|
import { EnvDocsFile, EnvDocsFileProps, __ΩEnvDocsFileProps } from "./components/docs.mjs";
|
|
@@ -14,6 +13,7 @@ import "./helpers/index.mjs";
|
|
|
14
13
|
import "./types/index.mjs";
|
|
15
14
|
import { envBabelPlugin } from "./babel/plugin.mjs";
|
|
16
15
|
import "./babel/index.mjs";
|
|
16
|
+
import { Plugin } from "powerlines/types/plugin";
|
|
17
17
|
|
|
18
18
|
//#region src/index.d.ts
|
|
19
19
|
/**
|
package/dist/index.mjs
CHANGED
|
@@ -15,13 +15,13 @@ import { EnvBuiltin, EnvTypeDefinition } from "./components/env.mjs";
|
|
|
15
15
|
import "./components/index.mjs";
|
|
16
16
|
import { envBabelPlugin } from "./babel/plugin.mjs";
|
|
17
17
|
import "./babel/index.mjs";
|
|
18
|
-
import src_default$1 from "./plugin-alloy/src/index.mjs";
|
|
19
18
|
import { ReflectionClass, ReflectionKind } from "@powerlines/deepkit/vendor/type";
|
|
20
19
|
import { isParentPath } from "@stryke/path/is-parent-path";
|
|
21
20
|
import { ENV_PREFIXES } from "@stryke/env/types";
|
|
22
21
|
import defu from "defu";
|
|
23
22
|
import { joinPaths } from "@stryke/path/join";
|
|
24
23
|
import { createComponent } from "@alloy-js/core/jsx-runtime";
|
|
24
|
+
import alloy from "@powerlines/plugin-alloy";
|
|
25
25
|
import automd from "@powerlines/plugin-automd";
|
|
26
26
|
import babel from "@powerlines/plugin-babel";
|
|
27
27
|
import { parseTypeDefinition } from "@stryke/convert/parse-type-definition";
|
|
@@ -35,7 +35,7 @@ import { constantCase } from "@stryke/string-format/constant-case";
|
|
|
35
35
|
*/
|
|
36
36
|
const plugin = (options = {}) => {
|
|
37
37
|
return [
|
|
38
|
-
|
|
38
|
+
alloy(options.alloy),
|
|
39
39
|
babel(options.babel),
|
|
40
40
|
{
|
|
41
41
|
name: "env",
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { EnvInterface, SecretsInterface } from "./runtime.cjs";
|
|
2
|
-
import { DotenvConfiguration, TypeDefinition, TypeDefinitionParameter } from "@stryke/types/configuration";
|
|
3
2
|
import { Children } from "@alloy-js/core";
|
|
4
3
|
import { Reflection } from "@powerlines/deepkit/types";
|
|
5
4
|
import { AlloyPluginContext, AlloyPluginOptions, AlloyPluginResolvedConfig, AlloyPluginUserConfig } from "@powerlines/plugin-alloy/types";
|
|
6
5
|
import { AutoMDPluginOptions } from "@powerlines/plugin-automd/types/plugin";
|
|
7
6
|
import { BabelPluginContext, BabelPluginOptions, BabelPluginResolvedConfig, BabelPluginUserConfig } from "@powerlines/plugin-babel/types";
|
|
8
7
|
import { DotenvParseOutput } from "@stryke/env/types";
|
|
8
|
+
import { DotenvConfiguration, TypeDefinition, TypeDefinitionParameter } from "@stryke/types/configuration";
|
|
9
9
|
|
|
10
10
|
//#region src/types/plugin.d.ts
|
|
11
11
|
type EnvType = "env" | "secrets";
|