@powerlines/plugin-env 0.15.121 → 0.15.123
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 +0 -4
- package/dist/babel/plugin.d.cts +2 -2
- package/dist/babel/plugin.d.mts +2 -3
- package/dist/components/docs.cjs +2 -2
- package/dist/components/docs.d.cts +1 -1
- package/dist/components/docs.d.mts +1 -1
- package/dist/components/docs.mjs +1 -1
- package/dist/components/env.cjs +3 -2
- package/dist/components/env.d.cts +2 -2
- package/dist/components/env.d.mts +2 -2
- package/dist/components/env.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/docs-helper.cjs +3 -2
- package/dist/helpers/docs-helper.mjs +1 -1
- package/dist/helpers/load.cjs +10 -9
- package/dist/helpers/load.mjs +3 -3
- package/dist/helpers/persistence.cjs +3 -3
- 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/helpers/reflect.cjs +4 -4
- package/dist/helpers/reflect.mjs +2 -2
- package/dist/index.cjs +18 -17
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +5 -5
- package/dist/types/plugin.d.cts +5 -6
- package/dist/types/plugin.d.mts +4 -6
- package/package.json +7 -7
- package/dist/_virtual/rolldown_runtime.mjs +0 -33
- package/dist/deepkit/schemas/reflection.d.cts +0 -1560
- package/dist/deepkit/src/types.d.cts +0 -10
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/parse-type-definition.cjs +0 -37
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/parse-type-definition.mjs +0 -37
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/to-array.cjs +0 -15
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/to-array.mjs +0 -14
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/get-object-tag.cjs +0 -15
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/get-object-tag.mjs +0 -14
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/index.cjs +0 -3
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/index.mjs +0 -5
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/is-buffer.cjs +0 -6
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/is-buffer.mjs +0 -6
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/is-collection.cjs +0 -1
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/is-collection.mjs +0 -3
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/is-object.cjs +0 -19
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/is-object.mjs +0 -19
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/is-plain-object.cjs +0 -63
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/is-plain-object.mjs +0 -63
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/is-string.cjs +0 -12
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/is-string.mjs +0 -11
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/type-detect.cjs +0 -15
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/type-detect.mjs +0 -16
- package/dist/node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/is-parent-path.cjs +0 -32
- package/dist/node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/is-parent-path.mjs +0 -32
- package/dist/node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/is-type.cjs +0 -28
- package/dist/node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/is-type.mjs +0 -28
- package/dist/node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/join-paths.cjs +0 -106
- package/dist/node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/join-paths.mjs +0 -106
- package/dist/node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/regex.cjs +0 -12
- package/dist/node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/regex.mjs +0 -8
- package/dist/node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/slash.cjs +0 -15
- package/dist/node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/slash.mjs +0 -14
- package/dist/node_modules/.pnpm/c12@3.3.3_magicast@0.5.1/node_modules/c12/dist/index.cjs +0 -346
- package/dist/node_modules/.pnpm/c12@3.3.3_magicast@0.5.1/node_modules/c12/dist/index.mjs +0 -346
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/json5.cjs +0 -786
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/json5.mjs +0 -786
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/jsonc.cjs +0 -3
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/jsonc.mjs +0 -3
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DA7CpUDY.cjs +0 -23
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DA7CpUDY.mjs +0 -22
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DnMsyigM.cjs +0 -405
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DnMsyigM.mjs +0 -404
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/toml.cjs +0 -657
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/toml.mjs +0 -657
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/yaml.cjs +0 -1054
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/yaml.mjs +0 -1054
- package/dist/node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.cjs +0 -43
- package/dist/node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs +0 -42
- package/dist/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.cjs +0 -46
- package/dist/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.mjs +0 -45
- package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/lib/main.cjs +0 -288
- package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/lib/main.mjs +0 -285
- package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/package.cjs +0 -71
- package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/package.mjs +0 -68
- package/dist/node_modules/.pnpm/exsolve@1.0.8/node_modules/exsolve/dist/index.cjs +0 -1013
- package/dist/node_modules/.pnpm/exsolve@1.0.8/node_modules/exsolve/dist/index.mjs +0 -1007
- package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/index.cjs +0 -23
- package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/index.mjs +0 -13
- package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.cjs +0 -2698
- package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.mjs +0 -2685
- package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/dist/jiti.cjs +0 -4457
- package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/dist/jiti.mjs +0 -4454
- package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti.cjs +0 -29
- package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti.mjs +0 -29
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.cjs +0 -181
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.mjs +0 -176
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.cjs +0 -22
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.mjs +0 -17
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.cjs +0 -3967
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.mjs +0 -3962
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/proxy.cjs +0 -11768
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/proxy.mjs +0 -11763
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.cjs +0 -25
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.mjs +0 -20
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/lib/index.cjs +0 -20
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/lib/index.mjs +0 -17
- package/dist/node_modules/.pnpm/nypm@0.6.4/node_modules/nypm/dist/index.cjs +0 -194
- package/dist/node_modules/.pnpm/nypm@0.6.4/node_modules/nypm/dist/index.mjs +0 -191
- package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.cjs +0 -13
- package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.mjs +0 -12
- package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/index.cjs +0 -3
- package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/index.mjs +0 -3
- package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.cjs +0 -145
- package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs +0 -138
- package/dist/node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.cjs +0 -127
- package/dist/node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.mjs +0 -125
- package/dist/node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.cjs +0 -138
- package/dist/node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.mjs +0 -136
- package/dist/node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.cjs +0 -629
- package/dist/node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.mjs +0 -627
- package/dist/packages/deepkit/schemas/reflection.d.mts +0 -1560
- package/dist/packages/deepkit/src/types.d.mts +0 -10
- package/dist/packages/plugin-alloy/src/core/components/source-file.d.mts +0 -23
- package/dist/packages/plugin-alloy/src/markdown/components/markdown-file.d.mts +0 -8
- package/dist/packages/plugin-alloy/src/types/components.d.mts +0 -21
- package/dist/packages/plugin-alloy/src/types/index.d.mts +0 -2
- package/dist/packages/plugin-alloy/src/types/plugin.d.mts +0 -36
- package/dist/packages/plugin-alloy/src/typescript/components/builtin-file.d.mts +0 -26
- package/dist/packages/plugin-alloy/src/typescript/components/tsdoc.d.mts +0 -37
- package/dist/packages/plugin-alloy/src/typescript/components/typescript-file.d.mts +0 -16
- package/dist/packages/plugin-alloy/src/typescript/components/typescript-interface.d.mts +0 -12
- package/dist/packages/plugin-automd/src/types/plugin.d.mts +0 -40
- package/dist/packages/plugin-automd/src/types/toc.d.mts +0 -33
- package/dist/packages/plugin-babel/src/types/index.d.mts +0 -1
- package/dist/packages/plugin-babel/src/types/plugin.d.mts +0 -15
- package/dist/packages/powerlines/src/internal/helpers/hooks.d.mts +0 -49
- package/dist/packages/powerlines/src/types/api.d.mts +0 -104
- package/dist/packages/powerlines/src/types/babel.d.mts +0 -23
- package/dist/packages/powerlines/src/types/build.d.mts +0 -185
- package/dist/packages/powerlines/src/types/commands.d.mts +0 -9
- package/dist/packages/powerlines/src/types/config.d.mts +0 -435
- package/dist/packages/powerlines/src/types/context.d.mts +0 -514
- package/dist/packages/powerlines/src/types/fs.d.mts +0 -486
- package/dist/packages/powerlines/src/types/hooks.d.mts +0 -32
- package/dist/packages/powerlines/src/types/index.d.mts +0 -12
- package/dist/packages/powerlines/src/types/plugin.d.mts +0 -205
- package/dist/packages/powerlines/src/types/resolved.d.mts +0 -94
- package/dist/packages/powerlines/src/types/tsconfig.d.mts +0 -69
- package/dist/packages/powerlines/src/types/unplugin.d.mts +0 -23
- package/dist/plugin-alloy/src/core/components/source-file.d.cts +0 -23
- package/dist/plugin-alloy/src/markdown/components/markdown-file.d.cts +0 -8
- package/dist/plugin-alloy/src/types/components.d.cts +0 -20
- package/dist/plugin-alloy/src/types/index.d.cts +0 -2
- package/dist/plugin-alloy/src/types/plugin.d.cts +0 -36
- package/dist/plugin-alloy/src/typescript/components/builtin-file.d.cts +0 -26
- package/dist/plugin-alloy/src/typescript/components/tsdoc.d.cts +0 -37
- package/dist/plugin-alloy/src/typescript/components/typescript-file.d.cts +0 -16
- package/dist/plugin-alloy/src/typescript/components/typescript-interface.d.cts +0 -12
- package/dist/plugin-automd/src/types/plugin.d.cts +0 -38
- package/dist/plugin-automd/src/types/toc.d.cts +0 -33
- package/dist/plugin-babel/src/types/plugin.d.cts +0 -15
- package/dist/powerlines/src/internal/helpers/hooks.d.cts +0 -47
- package/dist/powerlines/src/types/api.d.cts +0 -104
- package/dist/powerlines/src/types/babel.d.cts +0 -23
- package/dist/powerlines/src/types/build.d.cts +0 -185
- package/dist/powerlines/src/types/commands.d.cts +0 -8
- package/dist/powerlines/src/types/config.d.cts +0 -435
- package/dist/powerlines/src/types/context.d.cts +0 -514
- package/dist/powerlines/src/types/fs.d.cts +0 -486
- package/dist/powerlines/src/types/hooks.d.cts +0 -32
- package/dist/powerlines/src/types/plugin.d.cts +0 -205
- package/dist/powerlines/src/types/resolved.d.cts +0 -94
- package/dist/powerlines/src/types/tsconfig.d.cts +0 -69
- package/dist/powerlines/src/types/unplugin.d.cts +0 -22
|
@@ -5,7 +5,6 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
9
8
|
var __copyProps = (to, from, except, desc) => {
|
|
10
9
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
10
|
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
@@ -24,10 +23,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
24
23
|
value: mod,
|
|
25
24
|
enumerable: true
|
|
26
25
|
}) : target, mod));
|
|
27
|
-
var __toDynamicImportESM = (isNodeMode) => (mod) => __toESM(mod.default, isNodeMode);
|
|
28
26
|
|
|
29
27
|
//#endregion
|
|
30
28
|
|
|
31
|
-
exports.__commonJSMin = __commonJSMin;
|
|
32
|
-
exports.__toDynamicImportESM = __toDynamicImportESM;
|
|
33
29
|
exports.__toESM = __toESM;
|
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 "../packages/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/components/docs.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_join_paths = require('../node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/join-paths.cjs');
|
|
3
2
|
const require_helpers_create_reflection_resource = require('../helpers/create-reflection-resource.cjs');
|
|
4
3
|
const require_helpers_docs_helper = require('../helpers/docs-helper.cjs');
|
|
5
4
|
let __powerlines_deepkit_vendor_type = require("@powerlines/deepkit/vendor/type");
|
|
6
5
|
let __alloy_js_core = require("@alloy-js/core");
|
|
6
|
+
let __stryke_path_join = require("@stryke/path/join");
|
|
7
7
|
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
8
8
|
let __alloy_js_markdown = require("@alloy-js/markdown");
|
|
9
9
|
let __powerlines_plugin_alloy_core_contexts_context = require("@powerlines/plugin-alloy/core/contexts/context");
|
|
@@ -20,7 +20,7 @@ function EnvDocsFile(props) {
|
|
|
20
20
|
if (!context) return null;
|
|
21
21
|
const reflection = require_helpers_create_reflection_resource.createReflectionResource(context);
|
|
22
22
|
return (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_markdown_components_markdown_file.MarkdownFile, (0, __alloy_js_core_jsx_runtime.mergeProps)({ get path() {
|
|
23
|
-
return
|
|
23
|
+
return (0, __stryke_path_join.joinPaths)(require_helpers_docs_helper.getDocsOutputPath(context), "env.md");
|
|
24
24
|
} }, rest, { get children() {
|
|
25
25
|
return [
|
|
26
26
|
(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_markdown.Heading, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MarkdownFileProps } from "../plugin-alloy/src/markdown/components/markdown-file.cjs";
|
|
2
1
|
import * as _alloy_js_core0 from "@alloy-js/core";
|
|
2
|
+
import { MarkdownFileProps } from "@powerlines/plugin-alloy/markdown/components/markdown-file";
|
|
3
3
|
|
|
4
4
|
//#region src/components/docs.d.ts
|
|
5
5
|
interface EnvDocsFileProps extends Partial<MarkdownFileProps> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MarkdownFileProps } from "../packages/plugin-alloy/src/markdown/components/markdown-file.mjs";
|
|
2
1
|
import * as _alloy_js_core0 from "@alloy-js/core";
|
|
2
|
+
import { MarkdownFileProps } from "@powerlines/plugin-alloy/markdown/components/markdown-file";
|
|
3
3
|
|
|
4
4
|
//#region src/components/docs.d.ts
|
|
5
5
|
interface EnvDocsFileProps extends Partial<MarkdownFileProps> {
|
package/dist/components/docs.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { joinPaths } from "../node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/join-paths.mjs";
|
|
2
1
|
import { createReflectionResource } from "../helpers/create-reflection-resource.mjs";
|
|
3
2
|
import { getDocsOutputPath } from "../helpers/docs-helper.mjs";
|
|
4
3
|
import { stringifyType } from "@powerlines/deepkit/vendor/type";
|
|
5
4
|
import { Show, code } from "@alloy-js/core";
|
|
5
|
+
import { joinPaths } from "@stryke/path/join";
|
|
6
6
|
import { createComponent, createIntrinsic, mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
7
7
|
import { Heading, Link } from "@alloy-js/markdown";
|
|
8
8
|
import { usePowerlinesSafe } from "@powerlines/plugin-alloy/core/contexts/context";
|
package/dist/components/env.cjs
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_defu = require('../node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.cjs');
|
|
3
2
|
const require_helpers_load = require('../helpers/load.cjs');
|
|
4
3
|
const require_helpers_create_reflection_resource = require('../helpers/create-reflection-resource.cjs');
|
|
5
4
|
let __powerlines_deepkit_vendor_type = require("@powerlines/deepkit/vendor/type");
|
|
6
5
|
let __stryke_string_format_title_case = require("@stryke/string-format/title-case");
|
|
6
|
+
let defu = require("defu");
|
|
7
|
+
defu = require_rolldown_runtime.__toESM(defu);
|
|
7
8
|
let __alloy_js_core = require("@alloy-js/core");
|
|
8
9
|
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
9
10
|
let __powerlines_plugin_alloy_core_contexts_context = require("@powerlines/plugin-alloy/core/contexts/context");
|
|
@@ -218,7 +219,7 @@ function EnvBuiltin(props) {
|
|
|
218
219
|
description: "The environment configuration module provides an interface to define environment configuration parameters."
|
|
219
220
|
}, rest, {
|
|
220
221
|
get imports() {
|
|
221
|
-
return
|
|
222
|
+
return (0, defu.default)({ "@powerlines/deepkit/vendor/type": [
|
|
222
223
|
"stringify",
|
|
223
224
|
"serializer",
|
|
224
225
|
"serializeFunction",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BuiltinFileProps } from "../plugin-alloy/src/typescript/components/builtin-file.cjs";
|
|
2
|
-
import { TypeScriptInterfaceProps } from "../plugin-alloy/src/typescript/components/typescript-interface.cjs";
|
|
3
1
|
import { Children } from "@alloy-js/core";
|
|
2
|
+
import { BuiltinFileProps } from "@powerlines/plugin-alloy/typescript/components/builtin-file";
|
|
3
|
+
import { TypeScriptInterfaceProps } from "@powerlines/plugin-alloy/typescript/components/typescript-interface";
|
|
4
4
|
|
|
5
5
|
//#region src/components/env.d.ts
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BuiltinFileProps } from "../packages/plugin-alloy/src/typescript/components/builtin-file.mjs";
|
|
2
|
-
import { TypeScriptInterfaceProps } from "../packages/plugin-alloy/src/typescript/components/typescript-interface.mjs";
|
|
3
1
|
import { Children } from "@alloy-js/core";
|
|
2
|
+
import { BuiltinFileProps } from "@powerlines/plugin-alloy/typescript/components/builtin-file";
|
|
3
|
+
import { TypeScriptInterfaceProps } from "@powerlines/plugin-alloy/typescript/components/typescript-interface";
|
|
4
4
|
|
|
5
5
|
//#region src/components/env.d.ts
|
|
6
6
|
|
package/dist/components/env.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defu } from "../node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs";
|
|
2
1
|
import { loadEnvFromContext } from "../helpers/load.mjs";
|
|
3
2
|
import { createReflectionResource } from "../helpers/create-reflection-resource.mjs";
|
|
4
3
|
import { ReflectionClass, ReflectionKind } from "@powerlines/deepkit/vendor/type";
|
|
5
4
|
import { titleCase } from "@stryke/string-format/title-case";
|
|
5
|
+
import defu from "defu";
|
|
6
6
|
import { For, Show, code, computed, splitProps } from "@alloy-js/core";
|
|
7
7
|
import { createComponent, createIntrinsic, memo, mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
8
8
|
import { usePowerlinesSafe } from "@powerlines/plugin-alloy/core/contexts/context";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_join_paths = require('../node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/join-paths.cjs');
|
|
3
2
|
let powerlines_types_context = require("powerlines/types/context");
|
|
3
|
+
let __stryke_path_join_paths = require("@stryke/path/join-paths");
|
|
4
4
|
let automd = require("automd");
|
|
5
5
|
|
|
6
6
|
//#region src/helpers/automd-generator.ts
|
|
@@ -17,7 +17,7 @@ function __assignType(fn, args) {
|
|
|
17
17
|
const env = __assignType((context) => (0, automd.defineGenerator)({
|
|
18
18
|
name: "env",
|
|
19
19
|
generate: __assignType(async function generate() {
|
|
20
|
-
const envDocFile =
|
|
20
|
+
const envDocFile = (0, __stryke_path_join_paths.joinPaths)(context.config.projectRoot, "docs", "generated", "env.md");
|
|
21
21
|
if (!context.fs.existsSync(envDocFile)) return { contents: "" };
|
|
22
22
|
return { contents: await context.fs.read(envDocFile) || "" };
|
|
23
23
|
}, ["generate", "P\"/!"])
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { joinPaths } from "../node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/join-paths.mjs";
|
|
2
1
|
import { __ΩUnresolvedContext } from "powerlines/types/context";
|
|
2
|
+
import { joinPaths } from "@stryke/path/join-paths";
|
|
3
3
|
import { defineGenerator } from "automd";
|
|
4
4
|
|
|
5
5
|
//#region src/helpers/automd-generator.ts
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
1
2
|
const require_types_plugin = require('../types/plugin.cjs');
|
|
2
|
-
|
|
3
|
+
let __stryke_path_join = require("@stryke/path/join");
|
|
3
4
|
|
|
4
5
|
//#region src/helpers/docs-helper.ts
|
|
5
6
|
/**
|
|
@@ -9,7 +10,7 @@ const require_join_paths = require('../node_modules/.pnpm/@stryke_path@0.26.0/no
|
|
|
9
10
|
* @returns The output path for the generated environment documentation.
|
|
10
11
|
*/
|
|
11
12
|
function getDocsOutputPath(context) {
|
|
12
|
-
return
|
|
13
|
+
return (0, __stryke_path_join.joinPaths)(context.config.projectRoot, "docs", "generated");
|
|
13
14
|
}
|
|
14
15
|
getDocsOutputPath.__type = [
|
|
15
16
|
() => require_types_plugin.__ΩEnvPluginContext,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __ΩEnvPluginContext } from "../types/plugin.mjs";
|
|
2
|
-
import { joinPaths } from "
|
|
2
|
+
import { joinPaths } from "@stryke/path/join";
|
|
3
3
|
|
|
4
4
|
//#region src/helpers/docs-helper.ts
|
|
5
5
|
/**
|
package/dist/helpers/load.cjs
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_types_plugin = require('../types/plugin.cjs');
|
|
3
|
-
const require_join_paths = require('../node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/join-paths.cjs');
|
|
4
3
|
const require_helpers_source_file_env = require('./source-file-env.cjs');
|
|
5
|
-
|
|
6
|
-
const require_index = require('../node_modules/.pnpm/c12@3.3.3_magicast@0.5.1/node_modules/c12/dist/index.cjs');
|
|
4
|
+
let __stryke_path_join_paths = require("@stryke/path/join-paths");
|
|
7
5
|
let powerlines_types_config = require("powerlines/types/config");
|
|
8
6
|
let __stryke_env_load_env = require("@stryke/env/load-env");
|
|
9
7
|
let __stryke_string_format_kebab_case = require("@stryke/string-format/kebab-case");
|
|
10
8
|
let __stryke_type_checks_is_set_object = require("@stryke/type-checks/is-set-object");
|
|
9
|
+
let c12 = require("c12");
|
|
10
|
+
let defu = require("defu");
|
|
11
|
+
defu = require_rolldown_runtime.__toESM(defu);
|
|
11
12
|
let powerlines_lib_constants_environments = require("powerlines/lib/constants/environments");
|
|
12
13
|
|
|
13
14
|
//#region src/helpers/load.ts
|
|
@@ -23,7 +24,7 @@ async function loadEnvFiles(options, mode, cwd) {
|
|
|
23
24
|
"",
|
|
24
25
|
"P\"2!\"/\""
|
|
25
26
|
])));
|
|
26
|
-
for (const additionalEnvFile of additionalEnvFiles) env =
|
|
27
|
+
for (const additionalEnvFile of additionalEnvFiles) env = (0, defu.default)(additionalEnvFile, env);
|
|
27
28
|
}
|
|
28
29
|
return require_helpers_source_file_env.removeEnvPrefix(env);
|
|
29
30
|
}
|
|
@@ -36,7 +37,7 @@ loadEnvFiles.__type = [
|
|
|
36
37
|
"Pn!2\"&2#&2$\"`/%"
|
|
37
38
|
];
|
|
38
39
|
async function loadEnvDirectory(options, directory, mode, cacheDir, packageJson, workspaceConfig) {
|
|
39
|
-
const [envResult, c12Result] = await Promise.all([(loadEnvFiles.Ω = [["!"]], loadEnvFiles(options, mode, directory)),
|
|
40
|
+
const [envResult, c12Result] = await Promise.all([(loadEnvFiles.Ω = [["!"]], loadEnvFiles(options, mode, directory)), (0, c12.loadConfig)({
|
|
40
41
|
cwd: directory,
|
|
41
42
|
name: "storm",
|
|
42
43
|
envName: mode,
|
|
@@ -49,11 +50,11 @@ async function loadEnvDirectory(options, directory, mode, cacheDir, packageJson,
|
|
|
49
50
|
packageJson: true,
|
|
50
51
|
dotenv: true,
|
|
51
52
|
jitiOptions: {
|
|
52
|
-
fsCache:
|
|
53
|
+
fsCache: (0, __stryke_path_join_paths.joinPaths)(cacheDir, "jiti"),
|
|
53
54
|
moduleCache: true
|
|
54
55
|
}
|
|
55
56
|
})]);
|
|
56
|
-
return
|
|
57
|
+
return (0, defu.default)(envResult, c12Result.config, workspaceConfig);
|
|
57
58
|
}
|
|
58
59
|
loadEnvDirectory.__type = [
|
|
59
60
|
() => require_types_plugin.__ΩEnvPluginOptions,
|
|
@@ -75,7 +76,7 @@ loadEnvDirectory.__type = [
|
|
|
75
76
|
* @returns An object containing the dotenv configuration.
|
|
76
77
|
*/
|
|
77
78
|
function loadEnvFromContext(context, parsed) {
|
|
78
|
-
return
|
|
79
|
+
return (0, defu.default)({
|
|
79
80
|
APP_NAME: (0, __stryke_string_format_kebab_case.kebabCase)(context.config.name || context.packageJson.name?.replace(`/${context.workspaceConfig.namespace}`, "")),
|
|
80
81
|
APP_VERSION: context.packageJson.version,
|
|
81
82
|
BUILD_ID: context.meta.buildId,
|
|
@@ -118,7 +119,7 @@ async function loadEnv(context, options) {
|
|
|
118
119
|
(loadEnvDirectory.Ω = [["!"]], loadEnvDirectory(options, context.workspaceConfig.workspaceRoot, context.config.mode, context.cachePath, context.packageJson, context.workspaceConfig)),
|
|
119
120
|
(loadEnvDirectory.Ω = [["!"]], loadEnvDirectory(options, context.envPaths.config, context.config.mode, context.cachePath, context.packageJson, context.workspaceConfig))
|
|
120
121
|
]);
|
|
121
|
-
return
|
|
122
|
+
return (0, defu.default)(loadEnvFromContext(context, process.env), project, workspace, config);
|
|
122
123
|
}
|
|
123
124
|
loadEnv.__type = [
|
|
124
125
|
() => require_types_plugin.__ΩEnvPluginContext,
|
package/dist/helpers/load.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { __ΩEnvPluginContext, __ΩEnvPluginOptions } from "../types/plugin.mjs";
|
|
2
|
-
import { joinPaths } from "../node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/join-paths.mjs";
|
|
3
2
|
import { removeEnvPrefix } from "./source-file-env.mjs";
|
|
4
|
-
import {
|
|
5
|
-
import { loadConfig } from "../node_modules/.pnpm/c12@3.3.3_magicast@0.5.1/node_modules/c12/dist/index.mjs";
|
|
3
|
+
import { joinPaths } from "@stryke/path/join-paths";
|
|
6
4
|
import { __ΩWorkspaceConfig } from "powerlines/types/config";
|
|
7
5
|
import { loadEnv as loadEnv$1, loadEnvFile } from "@stryke/env/load-env";
|
|
8
6
|
import { kebabCase } from "@stryke/string-format/kebab-case";
|
|
9
7
|
import { isSetObject } from "@stryke/type-checks/is-set-object";
|
|
8
|
+
import { loadConfig } from "c12";
|
|
9
|
+
import defu from "defu";
|
|
10
10
|
import { DEFAULT_ENVIRONMENT } from "powerlines/lib/constants/environments";
|
|
11
11
|
|
|
12
12
|
//#region src/helpers/load.ts
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_types_plugin = require('../types/plugin.cjs');
|
|
3
|
-
const require_join_paths = require('../node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/join-paths.cjs');
|
|
4
3
|
const require_helpers_reflect = require('./reflect.cjs');
|
|
5
4
|
let __powerlines_deepkit_vendor_type = require("@powerlines/deepkit/vendor/type");
|
|
6
5
|
let powerlines_types_context = require("powerlines/types/context");
|
|
@@ -10,6 +9,7 @@ let __powerlines_deepkit_schemas_reflection = require("@powerlines/deepkit/schem
|
|
|
10
9
|
let __stryke_capnp = require("@stryke/capnp");
|
|
11
10
|
__stryke_capnp = require_rolldown_runtime.__toESM(__stryke_capnp);
|
|
12
11
|
let __stryke_fs_buffer = require("@stryke/fs/buffer");
|
|
12
|
+
let __stryke_path_join_paths = require("@stryke/path/join-paths");
|
|
13
13
|
let __stryke_type_checks_is_empty_object = require("@stryke/type-checks/is-empty-object");
|
|
14
14
|
let node_fs = require("node:fs");
|
|
15
15
|
|
|
@@ -79,7 +79,7 @@ getSecretsDefaultTypeDefinition.__type = [
|
|
|
79
79
|
* @returns The path to the environment type reflections.
|
|
80
80
|
*/
|
|
81
81
|
function getEnvTypeReflectionsPath(context, name = "env") {
|
|
82
|
-
return
|
|
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,
|
|
@@ -157,7 +157,7 @@ writeEnvTypeReflection.__type = [
|
|
|
157
157
|
"Pn!2\"P\"7#2$n%2&>'\"/(?)"
|
|
158
158
|
];
|
|
159
159
|
function getEnvReflectionsPath(context, name) {
|
|
160
|
-
return
|
|
160
|
+
return (0, __stryke_path_join_paths.joinPaths)((0, __powerlines_deepkit_resolve_reflections.getReflectionsPath)(context), "env", `${name}.bin`);
|
|
161
161
|
}
|
|
162
162
|
getEnvReflectionsPath.__type = [
|
|
163
163
|
() => require_types_plugin.__ΩEnvPluginContext,
|
|
@@ -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 "../packages/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,5 +1,4 @@
|
|
|
1
1
|
import { __ΩEnvPluginContext, __ΩEnvPluginResolvedConfig, __ΩEnvType } from "../types/plugin.mjs";
|
|
2
|
-
import { joinPaths } from "../node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/join-paths.mjs";
|
|
3
2
|
import { createEnvReflection } from "./reflect.mjs";
|
|
4
3
|
import { ReflectionClass, ReflectionKind, deserializeType, resolveClassType } from "@powerlines/deepkit/vendor/type";
|
|
5
4
|
import { __ΩContext, __ΩUnresolvedContext } from "powerlines/types/context";
|
|
@@ -8,6 +7,7 @@ import { getReflectionsPath } from "@powerlines/deepkit/resolve-reflections";
|
|
|
8
7
|
import { SerializedTypes } from "@powerlines/deepkit/schemas/reflection";
|
|
9
8
|
import * as capnp from "@stryke/capnp";
|
|
10
9
|
import { readFileBuffer, writeFileBuffer, writeFileBufferSync } from "@stryke/fs/buffer";
|
|
10
|
+
import { joinPaths } from "@stryke/path/join-paths";
|
|
11
11
|
import { isEmptyObject } from "@stryke/type-checks/is-empty-object";
|
|
12
12
|
import { existsSync } from "node:fs";
|
|
13
13
|
|
package/dist/helpers/reflect.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_types_runtime = require('../types/runtime.cjs');
|
|
3
3
|
const require_types_plugin = require('../types/plugin.cjs');
|
|
4
|
-
const require_join_paths = require('../node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/join-paths.cjs');
|
|
5
|
-
const require_is_parent_path = require('../node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/is-parent-path.cjs');
|
|
6
4
|
const require_helpers_persistence = require('./persistence.cjs');
|
|
7
5
|
let __powerlines_deepkit_vendor_type = require("@powerlines/deepkit/vendor/type");
|
|
8
6
|
let __stryke_string_format_title_case = require("@stryke/string-format/title-case");
|
|
7
|
+
let __stryke_path_join_paths = require("@stryke/path/join-paths");
|
|
9
8
|
let __powerlines_deepkit_reflect_type = require("@powerlines/deepkit/reflect-type");
|
|
9
|
+
let __stryke_path_is_parent_path = require("@stryke/path/is-parent-path");
|
|
10
10
|
|
|
11
11
|
//#region src/helpers/reflect.ts
|
|
12
12
|
function __assignType(fn, args) {
|
|
@@ -224,7 +224,7 @@ createSecretsReflection.__type = [
|
|
|
224
224
|
async function reflectEnv(context, file, name) {
|
|
225
225
|
let config;
|
|
226
226
|
if (file) config = (0, __powerlines_deepkit_vendor_type.resolveClassType)(await (0, __powerlines_deepkit_reflect_type.reflectType)(context, {
|
|
227
|
-
file: !
|
|
227
|
+
file: !(0, __stryke_path_is_parent_path.isParentPath)(file, context.workspaceConfig.workspaceRoot) ? (0, __stryke_path_join_paths.joinPaths)(context.workspaceConfig.workspaceRoot, file) : file,
|
|
228
228
|
name
|
|
229
229
|
}));
|
|
230
230
|
const defaultConfigType = await (0, __powerlines_deepkit_reflect_type.reflectType)(context, await require_helpers_persistence.getEnvDefaultTypeDefinition(context));
|
|
@@ -245,7 +245,7 @@ reflectEnv.__type = [
|
|
|
245
245
|
async function reflectSecrets(context, file, name) {
|
|
246
246
|
let config;
|
|
247
247
|
if (file) config = (0, __powerlines_deepkit_vendor_type.resolveClassType)(await (0, __powerlines_deepkit_reflect_type.reflectType)(context, {
|
|
248
|
-
file: !
|
|
248
|
+
file: !(0, __stryke_path_is_parent_path.isParentPath)(file, context.workspaceConfig.workspaceRoot) ? (0, __stryke_path_join_paths.joinPaths)(context.workspaceConfig.workspaceRoot, file) : file,
|
|
249
249
|
name
|
|
250
250
|
}));
|
|
251
251
|
const defaultSecretsType = await (0, __powerlines_deepkit_reflect_type.reflectType)(context, await require_helpers_persistence.getSecretsDefaultTypeDefinition(context));
|
package/dist/helpers/reflect.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { __ΩEnvInterface, __ΩSecretsInterface } from "../types/runtime.mjs";
|
|
2
2
|
import { __ΩEnvPluginContext } from "../types/plugin.mjs";
|
|
3
|
-
import { joinPaths } from "../node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/join-paths.mjs";
|
|
4
|
-
import { isParentPath } from "../node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/is-parent-path.mjs";
|
|
5
3
|
import { getEnvDefaultTypeDefinition, getSecretsDefaultTypeDefinition, readEnvTypeReflection, readSecretsReflection } from "./persistence.mjs";
|
|
6
4
|
import { ReflectionClass, ReflectionKind, __ΩTypeClass, __ΩTypeObjectLiteral, merge, resolveClassType } from "@powerlines/deepkit/vendor/type";
|
|
7
5
|
import { titleCase } from "@stryke/string-format/title-case";
|
|
6
|
+
import { joinPaths } from "@stryke/path/join-paths";
|
|
8
7
|
import { reflectType } from "@powerlines/deepkit/reflect-type";
|
|
8
|
+
import { isParentPath } from "@stryke/path/is-parent-path";
|
|
9
9
|
|
|
10
10
|
//#region src/helpers/reflect.ts
|
|
11
11
|
function __assignType(fn, args) {
|
package/dist/index.cjs
CHANGED
|
@@ -3,13 +3,10 @@ const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
|
|
|
3
3
|
const require_types_runtime = require('./types/runtime.cjs');
|
|
4
4
|
const require_types_plugin = require('./types/plugin.cjs');
|
|
5
5
|
require('./types/index.cjs');
|
|
6
|
-
const require_join_paths = require('./node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/join-paths.cjs');
|
|
7
|
-
const require_is_parent_path = require('./node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/is-parent-path.cjs');
|
|
8
6
|
const require_helpers_reflect = require('./helpers/reflect.cjs');
|
|
9
7
|
const require_helpers_persistence = require('./helpers/persistence.cjs');
|
|
10
8
|
const require_helpers_template_helpers = require('./helpers/template-helpers.cjs');
|
|
11
9
|
const require_helpers_source_file_env = require('./helpers/source-file-env.cjs');
|
|
12
|
-
const require_defu = require('./node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.cjs');
|
|
13
10
|
const require_helpers_load = require('./helpers/load.cjs');
|
|
14
11
|
const require_helpers_create_reflection_resource = require('./helpers/create-reflection-resource.cjs');
|
|
15
12
|
require('./helpers/index.cjs');
|
|
@@ -20,10 +17,12 @@ const require_components_env = require('./components/env.cjs');
|
|
|
20
17
|
require('./components/index.cjs');
|
|
21
18
|
const require_babel_plugin = require('./babel/plugin.cjs');
|
|
22
19
|
require('./babel/index.cjs');
|
|
23
|
-
const require_parse_type_definition = require('./node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/parse-type-definition.cjs');
|
|
24
|
-
const require_to_array = require('./node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/to-array.cjs');
|
|
25
20
|
let __powerlines_deepkit_vendor_type = require("@powerlines/deepkit/vendor/type");
|
|
21
|
+
let __stryke_path_is_parent_path = require("@stryke/path/is-parent-path");
|
|
26
22
|
let __stryke_env_types = require("@stryke/env/types");
|
|
23
|
+
let defu = require("defu");
|
|
24
|
+
defu = require_rolldown_runtime.__toESM(defu);
|
|
25
|
+
let __stryke_path_join = require("@stryke/path/join");
|
|
27
26
|
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
28
27
|
let __powerlines_plugin_alloy = require("@powerlines/plugin-alloy");
|
|
29
28
|
__powerlines_plugin_alloy = require_rolldown_runtime.__toESM(__powerlines_plugin_alloy);
|
|
@@ -31,6 +30,8 @@ let __powerlines_plugin_automd = require("@powerlines/plugin-automd");
|
|
|
31
30
|
__powerlines_plugin_automd = require_rolldown_runtime.__toESM(__powerlines_plugin_automd);
|
|
32
31
|
let __powerlines_plugin_babel = require("@powerlines/plugin-babel");
|
|
33
32
|
__powerlines_plugin_babel = require_rolldown_runtime.__toESM(__powerlines_plugin_babel);
|
|
33
|
+
let __stryke_convert_parse_type_definition = require("@stryke/convert/parse-type-definition");
|
|
34
|
+
let __stryke_convert_to_array = require("@stryke/convert/to-array");
|
|
34
35
|
let __stryke_fs_exists = require("@stryke/fs/exists");
|
|
35
36
|
let __stryke_string_format_constant_case = require("@stryke/string-format/constant-case");
|
|
36
37
|
|
|
@@ -47,24 +48,24 @@ const plugin = (options = {}) => {
|
|
|
47
48
|
async config() {
|
|
48
49
|
this.debug("Providing default configuration for the Powerlines `env` build plugin.");
|
|
49
50
|
const config = {
|
|
50
|
-
env:
|
|
51
|
+
env: (0, defu.default)(options, {
|
|
51
52
|
types: {},
|
|
52
53
|
prefix: []
|
|
53
54
|
}),
|
|
54
55
|
transform: { babel: { plugins: [require_babel_plugin.envBabelPlugin] } }
|
|
55
56
|
};
|
|
56
|
-
if (config.env.types) config.env.types =
|
|
57
|
+
if (config.env.types) config.env.types = (0, __stryke_convert_parse_type_definition.parseTypeDefinition)(config.env.types);
|
|
57
58
|
else {
|
|
58
59
|
this.warn("The `env.types` configuration parameter was not provided. Please ensure this is expected.");
|
|
59
60
|
const envDefaultTypeDefinition = await require_helpers_persistence.getEnvDefaultTypeDefinition(this);
|
|
60
|
-
config.env.types =
|
|
61
|
+
config.env.types = (0, __stryke_convert_parse_type_definition.parseTypeDefinition)(`${envDefaultTypeDefinition.file}#${envDefaultTypeDefinition.name}`);
|
|
61
62
|
}
|
|
62
|
-
if (config.env.secrets) config.env.secrets =
|
|
63
|
+
if (config.env.secrets) config.env.secrets = (0, __stryke_convert_parse_type_definition.parseTypeDefinition)(config.env.secrets);
|
|
63
64
|
else {
|
|
64
65
|
const secretsDefaultTypeDefinition = await require_helpers_persistence.getSecretsDefaultTypeDefinition(this);
|
|
65
|
-
config.env.secrets =
|
|
66
|
+
config.env.secrets = (0, __stryke_convert_parse_type_definition.parseTypeDefinition)(`${secretsDefaultTypeDefinition.file}#${secretsDefaultTypeDefinition.name}`);
|
|
66
67
|
}
|
|
67
|
-
config.env.prefix =
|
|
68
|
+
config.env.prefix = (0, __stryke_convert_to_array.toArray)(config.env.prefix ?? []).reduce((ret, prefix) => {
|
|
68
69
|
const formattedPrefix = (0, __stryke_string_format_constant_case.constantCase)(prefix);
|
|
69
70
|
if (!ret.includes(formattedPrefix)) ret.push(formattedPrefix);
|
|
70
71
|
return ret;
|
|
@@ -73,7 +74,7 @@ const plugin = (options = {}) => {
|
|
|
73
74
|
"POWERLINES_",
|
|
74
75
|
this.config.framework && this.config.framework !== "powerlines" && `${(0, __stryke_string_format_constant_case.constantCase)(this.config.framework)}_`
|
|
75
76
|
].filter(Boolean));
|
|
76
|
-
config.env.prefix =
|
|
77
|
+
config.env.prefix = (0, __stryke_convert_to_array.toArray)(config.env.prefix).reduce((ret, prefix) => {
|
|
77
78
|
if (!ret.includes(prefix.replace(/_$/g, ""))) ret.push(prefix.replace(/_$/g, ""));
|
|
78
79
|
return ret;
|
|
79
80
|
}, []);
|
|
@@ -81,7 +82,7 @@ const plugin = (options = {}) => {
|
|
|
81
82
|
},
|
|
82
83
|
async configResolved() {
|
|
83
84
|
this.debug(`Environment plugin configuration has been resolved for the Powerlines project.`);
|
|
84
|
-
this.env =
|
|
85
|
+
this.env = (0, defu.default)({ parsed: await require_helpers_load.loadEnv(this, this.config.env) }, this.env ?? {}, {
|
|
85
86
|
types: { env: {} },
|
|
86
87
|
used: {
|
|
87
88
|
env: {},
|
|
@@ -98,10 +99,10 @@ const plugin = (options = {}) => {
|
|
|
98
99
|
if ((0, __stryke_fs_exists.existsSync)(require_helpers_persistence.getEnvReflectionsPath(this, "secrets"))) this.env.used.secrets = await require_helpers_persistence.readSecretsReflection(this);
|
|
99
100
|
} else {
|
|
100
101
|
this.debug(`Starting environment configuration reflection initialization.`);
|
|
101
|
-
this.env.types.env = await require_helpers_reflect.reflectEnv(this, this.config.env.types?.file ?
|
|
102
|
+
this.env.types.env = await require_helpers_reflect.reflectEnv(this, this.config.env.types?.file ? (0, __stryke_path_is_parent_path.isParentPath)(this.config.env.types?.file, this.workspaceConfig.workspaceRoot) ? this.config.env.types?.file : (0, __stryke_path_join.joinPaths)(this.config.projectRoot, this.config.env.types?.file) : void 0, this.config.env.types?.name);
|
|
102
103
|
if (!this.env.types.env) throw new Error("Failed to find the environment configuration type reflection in the context.");
|
|
103
104
|
await require_helpers_persistence.writeEnvTypeReflection(this, this.env.types.env, "env");
|
|
104
|
-
this.env.types.secrets = await require_helpers_reflect.reflectSecrets(this, this.config.env.secrets?.file ?
|
|
105
|
+
this.env.types.secrets = await require_helpers_reflect.reflectSecrets(this, this.config.env.secrets?.file ? (0, __stryke_path_is_parent_path.isParentPath)(this.config.env.secrets?.file, this.workspaceConfig.workspaceRoot) ? this.config.env.secrets?.file : (0, __stryke_path_join.joinPaths)(this.config.projectRoot, this.config.env.secrets?.file) : void 0, this.config.env.secrets?.name);
|
|
105
106
|
if (!this.env.types.secrets) throw new Error("Failed to find the secrets configuration type reflection in the context.");
|
|
106
107
|
await require_helpers_persistence.writeEnvTypeReflection(this, this.env.types.secrets, "secrets");
|
|
107
108
|
this.debug(`Resolved ${this.env.types.env.getProperties().length ?? 0} environment configuration parameters and ${this.env.types.secrets?.getProperties().length ?? 0} secret configuration parameters`);
|
|
@@ -154,7 +155,7 @@ const plugin = (options = {}) => {
|
|
|
154
155
|
}
|
|
155
156
|
},
|
|
156
157
|
async docs() {
|
|
157
|
-
this.debug(`Documenting environment variables configuration values in "${
|
|
158
|
+
this.debug(`Documenting environment variables configuration values in "${(0, __stryke_path_join.joinPaths)(require_helpers_docs_helper.getDocsOutputPath(this), "env.md")}"`);
|
|
158
159
|
return this.render((0, __alloy_js_core_jsx_runtime.createComponent)(require_components_docs.EnvDocsFile, { levelOffset: 0 }));
|
|
159
160
|
},
|
|
160
161
|
async buildEnd() {
|
|
@@ -166,7 +167,7 @@ const plugin = (options = {}) => {
|
|
|
166
167
|
{
|
|
167
168
|
name: "env:automd-generator",
|
|
168
169
|
config() {
|
|
169
|
-
return { automd:
|
|
170
|
+
return { automd: (0, defu.default)(options.automd ?? {}, { generators: { "env": require_helpers_automd_generator.env(this) } }) };
|
|
170
171
|
}
|
|
171
172
|
},
|
|
172
173
|
{
|
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 "./packages/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
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import { __ΩEnvInterface, __ΩSecretsInterface } from "./types/runtime.mjs";
|
|
2
2
|
import { __ΩEnvPluginContext, __ΩEnvPluginOptions, __ΩEnvPluginResolvedConfig, __ΩEnvPluginUserConfig, __ΩEnvType } from "./types/plugin.mjs";
|
|
3
3
|
import "./types/index.mjs";
|
|
4
|
-
import { joinPaths } from "./node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/join-paths.mjs";
|
|
5
|
-
import { isParentPath } from "./node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/is-parent-path.mjs";
|
|
6
4
|
import { BaseEnv, BaseSecrets, __ΩCreateEnvReflectionOptions, createEnvReflection, createSecretsReflection, mergeEnvReflections, mergeSecretsReflections, reflectEnv, reflectSecrets } from "./helpers/reflect.mjs";
|
|
7
5
|
import { getEnvDefaultTypeDefinition, getEnvReflectionsPath, getEnvTypeReflectionsPath, getSecretsDefaultTypeDefinition, readEnvReflection, readEnvTypeReflection, readSecretsReflection, resolveRuntimeTypeFile, writeEnvReflection, writeEnvReflectionSync, writeEnvTypeReflection } from "./helpers/persistence.mjs";
|
|
8
6
|
import { createTemplateReflection } from "./helpers/template-helpers.mjs";
|
|
9
7
|
import { formatEnvField, removeEnvPrefix } from "./helpers/source-file-env.mjs";
|
|
10
|
-
import { defu } from "./node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs";
|
|
11
8
|
import { loadEnv, loadEnvFromContext } from "./helpers/load.mjs";
|
|
12
9
|
import { createReflectionResource } from "./helpers/create-reflection-resource.mjs";
|
|
13
10
|
import "./helpers/index.mjs";
|
|
@@ -18,14 +15,17 @@ import { EnvBuiltin, EnvTypeDefinition } from "./components/env.mjs";
|
|
|
18
15
|
import "./components/index.mjs";
|
|
19
16
|
import { envBabelPlugin } from "./babel/plugin.mjs";
|
|
20
17
|
import "./babel/index.mjs";
|
|
21
|
-
import { parseTypeDefinition } from "./node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/parse-type-definition.mjs";
|
|
22
|
-
import { toArray } from "./node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/to-array.mjs";
|
|
23
18
|
import { ReflectionClass, ReflectionKind } from "@powerlines/deepkit/vendor/type";
|
|
19
|
+
import { isParentPath } from "@stryke/path/is-parent-path";
|
|
24
20
|
import { ENV_PREFIXES } from "@stryke/env/types";
|
|
21
|
+
import defu from "defu";
|
|
22
|
+
import { joinPaths } from "@stryke/path/join";
|
|
25
23
|
import { createComponent } from "@alloy-js/core/jsx-runtime";
|
|
26
24
|
import alloy from "@powerlines/plugin-alloy";
|
|
27
25
|
import automd from "@powerlines/plugin-automd";
|
|
28
26
|
import babel from "@powerlines/plugin-babel";
|
|
27
|
+
import { parseTypeDefinition } from "@stryke/convert/parse-type-definition";
|
|
28
|
+
import { toArray } from "@stryke/convert/to-array";
|
|
29
29
|
import { existsSync } from "@stryke/fs/exists";
|
|
30
30
|
import { constantCase } from "@stryke/string-format/constant-case";
|
|
31
31
|
|