@powerlines/plugin-env 0.16.347 → 0.16.349
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 +11 -11
- package/dist/components/docs.d.cts +1 -1
- package/dist/components/docs.d.mts +1 -1
- package/dist/components/docs.mjs +4 -4
- package/dist/components/env-builtin.cjs +31 -30
- package/dist/components/env-builtin.d.cts +1 -1
- package/dist/components/env-builtin.d.cts.map +1 -1
- package/dist/components/env-builtin.d.mts +1 -1
- package/dist/components/env-builtin.mjs +4 -3
- package/package.json +22 -21
package/dist/components/docs.cjs
CHANGED
|
@@ -5,11 +5,11 @@ let _stryke_path_join = require("@stryke/path/join");
|
|
|
5
5
|
let powerlines_plugin_utils = require("powerlines/plugin-utils");
|
|
6
6
|
let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
7
7
|
let _alloy_js_core = require("@alloy-js/core");
|
|
8
|
-
let
|
|
8
|
+
let _power_plant_alloy_js_core_components_spacing = require("@power-plant/alloy-js/core/components/spacing");
|
|
9
|
+
let _power_plant_alloy_js_markdown_components_heading = require("@power-plant/alloy-js/markdown/components/heading");
|
|
10
|
+
let _power_plant_alloy_js_markdown_components_markdown_file = require("@power-plant/alloy-js/markdown/components/markdown-file");
|
|
11
|
+
let _power_plant_alloy_js_markdown_components_markdown_table = require("@power-plant/alloy-js/markdown/components/markdown-table");
|
|
9
12
|
let _powerlines_plugin_alloy_core_contexts_context = require("@powerlines/plugin-alloy/core/contexts/context");
|
|
10
|
-
let _powerlines_plugin_alloy_markdown_components_heading = require("@powerlines/plugin-alloy/markdown/components/heading");
|
|
11
|
-
let _powerlines_plugin_alloy_markdown_components_markdown_file = require("@powerlines/plugin-alloy/markdown/components/markdown-file");
|
|
12
|
-
let _powerlines_plugin_alloy_markdown_components_markdown_table = require("@powerlines/plugin-alloy/markdown/components/markdown-table");
|
|
13
13
|
|
|
14
14
|
//#region src/components/docs.tsx
|
|
15
15
|
const __ΩPartial = [
|
|
@@ -35,24 +35,24 @@ const __ΩEnvDocsFileProps = [
|
|
|
35
35
|
function EnvDocsFile(props) {
|
|
36
36
|
const { levelOffset = 0, ...rest } = props;
|
|
37
37
|
const context = (_powerlines_plugin_alloy_core_contexts_context.usePowerlines.Ω = [[() => require_types_plugin.__ΩEnvPluginContext, "n!"]], (0, _powerlines_plugin_alloy_core_contexts_context.usePowerlines)());
|
|
38
|
-
return (0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
38
|
+
return (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_markdown_components_markdown_file.MarkdownFile, (0, _alloy_js_core_jsx_runtime.mergeProps)({ get path() {
|
|
39
39
|
return (0, _stryke_path_join.joinPaths)((0, powerlines_plugin_utils.getDocsOutputPath)(context.config.root), "env.md");
|
|
40
40
|
} }, rest, { get children() {
|
|
41
41
|
return [
|
|
42
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
42
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_markdown_components_heading.Heading, {
|
|
43
43
|
level: 1 + levelOffset,
|
|
44
44
|
children: "Environment"
|
|
45
45
|
}),
|
|
46
46
|
(0, _alloy_js_core_jsx_runtime.memo)(() => _alloy_js_core.code`The ${context.config.name} package uses various configuration parameters to control the behavior of the application. These parameters can be provided as environment variables when the application is run, or they can be defined in a \`config.json\` file in the application configuration directory.`),
|
|
47
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
48
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
47
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core_components_spacing.Spacing, {}),
|
|
48
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_markdown_components_heading.Heading, {
|
|
49
49
|
level: 2 + levelOffset,
|
|
50
50
|
children: "Configuration"
|
|
51
51
|
}),
|
|
52
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
52
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core_components_spacing.Spacing, {}),
|
|
53
53
|
_alloy_js_core.code`The below list of configuration parameters are **not** considered sensitive or confidential. Any values provided in these variables will be available in plain text locally.`,
|
|
54
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
55
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
54
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core_components_spacing.Spacing, {}),
|
|
55
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_markdown_components_markdown_table.MarkdownTable, { get data() {
|
|
56
56
|
return (0, _powerlines_schema.getPropertiesList)(context.env.config).filter(__assignType((property) => (0, _powerlines_schema.getPropertiesList)(context.env.config).some(__assignType((p) => p.name === property.name && context.env.config.active.includes(property.name), [
|
|
57
57
|
"p",
|
|
58
58
|
"",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MarkdownFileProps } from "@
|
|
1
|
+
import { MarkdownFileProps } from "@power-plant/alloy-js/markdown/components/markdown-file";
|
|
2
2
|
//#region src/components/docs.d.ts
|
|
3
3
|
interface EnvDocsFileProps extends Partial<MarkdownFileProps> {
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MarkdownFileProps } from "@
|
|
1
|
+
import { MarkdownFileProps } from "@power-plant/alloy-js/markdown/components/markdown-file";
|
|
2
2
|
//#region src/components/docs.d.ts
|
|
3
3
|
interface EnvDocsFileProps extends Partial<MarkdownFileProps> {
|
|
4
4
|
/**
|
package/dist/components/docs.mjs
CHANGED
|
@@ -4,11 +4,11 @@ import { joinPaths } from "@stryke/path/join";
|
|
|
4
4
|
import { getDocsOutputPath } from "powerlines/plugin-utils";
|
|
5
5
|
import { createComponent, memo, mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
6
6
|
import { code } from "@alloy-js/core";
|
|
7
|
-
import { Spacing } from "@
|
|
7
|
+
import { Spacing } from "@power-plant/alloy-js/core/components/spacing";
|
|
8
|
+
import { Heading } from "@power-plant/alloy-js/markdown/components/heading";
|
|
9
|
+
import { MarkdownFile } from "@power-plant/alloy-js/markdown/components/markdown-file";
|
|
10
|
+
import { MarkdownTable } from "@power-plant/alloy-js/markdown/components/markdown-table";
|
|
8
11
|
import { usePowerlines } from "@powerlines/plugin-alloy/core/contexts/context";
|
|
9
|
-
import { Heading } from "@powerlines/plugin-alloy/markdown/components/heading";
|
|
10
|
-
import { MarkdownFile } from "@powerlines/plugin-alloy/markdown/components/markdown-file";
|
|
11
|
-
import { MarkdownTable } from "@powerlines/plugin-alloy/markdown/components/markdown-table";
|
|
12
12
|
|
|
13
13
|
//#region src/components/docs.tsx
|
|
14
14
|
const __ΩPartial = [
|
|
@@ -4,12 +4,13 @@ let _powerlines_schema = require("@powerlines/schema");
|
|
|
4
4
|
let _stryke_type_checks_is_set_object = require("@stryke/type-checks/is-set-object");
|
|
5
5
|
let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
6
6
|
let _alloy_js_core = require("@alloy-js/core");
|
|
7
|
-
let
|
|
7
|
+
let _power_plant_alloy_js_core_components_spacing = require("@power-plant/alloy-js/core/components/spacing");
|
|
8
8
|
let _powerlines_plugin_alloy_core_contexts_context = require("@powerlines/plugin-alloy/core/contexts/context");
|
|
9
9
|
let _alloy_js_typescript = require("@alloy-js/typescript");
|
|
10
|
+
let _power_plant_alloy_js_typescript_components = require("@power-plant/alloy-js/typescript/components");
|
|
11
|
+
let _power_plant_alloy_js_typescript_components_tsdoc = require("@power-plant/alloy-js/typescript/components/tsdoc");
|
|
10
12
|
let _powerlines_plugin_alloy_helpers_refkey = require("@powerlines/plugin-alloy/helpers/refkey");
|
|
11
13
|
let _powerlines_plugin_alloy_typescript_components = require("@powerlines/plugin-alloy/typescript/components");
|
|
12
|
-
let _powerlines_plugin_alloy_typescript_components_tsdoc = require("@powerlines/plugin-alloy/typescript/components/tsdoc");
|
|
13
14
|
let _stryke_convert_to_array = require("@stryke/convert/to-array");
|
|
14
15
|
let _stryke_helpers_deep_clone = require("@stryke/helpers/deep-clone");
|
|
15
16
|
let _stryke_helpers_get_unique = require("@stryke/helpers/get-unique");
|
|
@@ -51,16 +52,16 @@ function EnvTypeDefinition(props) {
|
|
|
51
52
|
const context = (_powerlines_plugin_alloy_core_contexts_context.usePowerlines.Ω = [["EnvPluginContext", "\"w!"]], (0, _powerlines_plugin_alloy_core_contexts_context.usePowerlines)());
|
|
52
53
|
const { schema } = props;
|
|
53
54
|
return [
|
|
54
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
55
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components.InterfaceDeclaration, {
|
|
55
56
|
name: "UnprefixedEnv",
|
|
56
57
|
schema,
|
|
57
58
|
"export": true
|
|
58
59
|
}),
|
|
59
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
60
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
60
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core_components_spacing.Spacing, {}),
|
|
61
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDoc, {
|
|
61
62
|
heading: "The environment configuration object with prefixed keys.",
|
|
62
63
|
get children() {
|
|
63
|
-
return (0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
64
|
+
return (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDocRemarks, { children: `The \`Env\` type extends the \`UnprefixedEnv\` interface by including additional keys that are prefixed according to the project's configuration. This allows for flexibility in accessing environment variables with different naming conventions.` });
|
|
64
65
|
}
|
|
65
66
|
}),
|
|
66
67
|
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.InterfaceDeclaration, {
|
|
@@ -88,7 +89,7 @@ function EnvTypeDefinition(props) {
|
|
|
88
89
|
},
|
|
89
90
|
doubleHardline: true,
|
|
90
91
|
get children() {
|
|
91
|
-
return __assignType((property) => [(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
92
|
+
return __assignType((property) => [(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components.TSDocSchemaProperty, {
|
|
92
93
|
get schema() {
|
|
93
94
|
return {
|
|
94
95
|
...property,
|
|
@@ -102,7 +103,7 @@ function EnvTypeDefinition(props) {
|
|
|
102
103
|
get defaultValue() {
|
|
103
104
|
return property?.default;
|
|
104
105
|
}
|
|
105
|
-
}), (0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
106
|
+
}), (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components.InterfaceMember, {
|
|
106
107
|
get name() {
|
|
107
108
|
return `${prefix}_${property.name}`;
|
|
108
109
|
},
|
|
@@ -131,7 +132,7 @@ function EnvTypeDefinition(props) {
|
|
|
131
132
|
});
|
|
132
133
|
}
|
|
133
134
|
}),
|
|
134
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
135
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core_components_spacing.Spacing, {})
|
|
135
136
|
];
|
|
136
137
|
}
|
|
137
138
|
EnvTypeDefinition.__type = [
|
|
@@ -398,10 +399,10 @@ function EnvBuiltin(props) {
|
|
|
398
399
|
get children() {
|
|
399
400
|
return [(0, _alloy_js_core_jsx_runtime.createComponent)(EnvTypeDefinition, { get schema() {
|
|
400
401
|
return schema.value;
|
|
401
|
-
} }), (0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
402
|
+
} }), (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core_components_spacing.Spacing, {})];
|
|
402
403
|
}
|
|
403
404
|
}),
|
|
404
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
405
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components.ObjectDeclaration, {
|
|
405
406
|
name: "initialEnv",
|
|
406
407
|
type: "Partial<Env>",
|
|
407
408
|
get schema() {
|
|
@@ -411,28 +412,28 @@ function EnvBuiltin(props) {
|
|
|
411
412
|
"const": true,
|
|
412
413
|
doc: "The initial environment configuration object values for the runtime."
|
|
413
414
|
}),
|
|
414
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
415
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core_components_spacing.Spacing, {}),
|
|
415
416
|
parserCode,
|
|
416
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
417
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core_components_spacing.Spacing, {}),
|
|
417
418
|
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
|
|
418
419
|
get when() {
|
|
419
420
|
return Boolean(context?.entryPath);
|
|
420
421
|
},
|
|
421
422
|
get children() {
|
|
422
|
-
return [(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
423
|
+
return [(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDoc, {
|
|
423
424
|
get heading() {
|
|
424
425
|
return `Initializes the ${context?.config?.framework?.name || "Powerlines"} environment configuration module.`;
|
|
425
426
|
},
|
|
426
427
|
get children() {
|
|
427
428
|
return [
|
|
428
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
429
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDocRemarks, { get children() {
|
|
429
430
|
return `This function initializes the ${context?.config?.framework?.name || "Powerlines"} environment configuration object.`;
|
|
430
431
|
} }),
|
|
431
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
432
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDocParam, {
|
|
432
433
|
name: "environmentConfig",
|
|
433
434
|
children: `The dynamic/runtime configuration - this could include the current environment variables or any other environment-specific settings provided by the runtime.`
|
|
434
435
|
}),
|
|
435
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
436
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDocReturns, { get children() {
|
|
436
437
|
return `The initialized ${context?.config?.framework?.name || "Powerlines"} configuration object.`;
|
|
437
438
|
} })
|
|
438
439
|
];
|
|
@@ -483,7 +484,7 @@ function EnvBuiltin(props) {
|
|
|
483
484
|
_alloy_js_core.code`
|
|
484
485
|
return undefined;
|
|
485
486
|
}, `,
|
|
486
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
487
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core_components_spacing.Spacing, {}),
|
|
487
488
|
_alloy_js_core.code` set: (target: UnprefixedEnv, propertyName: string, newValue: any) => { `,
|
|
488
489
|
(0, _alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
|
|
489
490
|
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.For, {
|
|
@@ -518,13 +519,13 @@ function EnvBuiltin(props) {
|
|
|
518
519
|
})];
|
|
519
520
|
}
|
|
520
521
|
}),
|
|
521
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
522
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
522
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core_components_spacing.Spacing, {}),
|
|
523
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDoc, {
|
|
523
524
|
get heading() {
|
|
524
525
|
return `The ${context?.config?.framework?.name || "Powerlines"} environment configuration object.`;
|
|
525
526
|
},
|
|
526
527
|
get children() {
|
|
527
|
-
return (0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
528
|
+
return (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDocRemarks, { get children() {
|
|
528
529
|
return `This object provides access to the ${context?.config?.framework?.name || "Powerlines"} environment configuration parameters in the application runtime.`;
|
|
529
530
|
} });
|
|
530
531
|
}
|
|
@@ -539,7 +540,7 @@ function EnvBuiltin(props) {
|
|
|
539
540
|
return [_alloy_js_core.code`createEnv(${defaultConfig || "{}"} as Partial<Env>);`];
|
|
540
541
|
}
|
|
541
542
|
}),
|
|
542
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
543
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core_components_spacing.Spacing, {}),
|
|
543
544
|
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.VarDeclaration, {
|
|
544
545
|
"export": true,
|
|
545
546
|
"const": true,
|
|
@@ -599,11 +600,11 @@ function EnvBuiltin(props) {
|
|
|
599
600
|
env.XCS || false
|
|
600
601
|
); `
|
|
601
602
|
}),
|
|
602
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
603
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
603
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core_components_spacing.Spacing, {}),
|
|
604
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDoc, {
|
|
604
605
|
heading: "Detect the \\`mode\\` of the current runtime environment.",
|
|
605
606
|
get children() {
|
|
606
|
-
return (0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
607
|
+
return (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDocRemarks, { children: _alloy_js_core.code`The \`mode\` is determined by the \`MODE\` environment variable, or falls back to the \`NEXT_PUBLIC_VERCEL_ENV\`, \`NODE_ENV\`, or defaults to \`production\`. While the value can potentially be any string, it is generally recommended to only allow a value in the following list:
|
|
607
608
|
- \`production\`
|
|
608
609
|
- \`test\`
|
|
609
610
|
- \`development\`
|
|
@@ -616,7 +617,7 @@ function EnvBuiltin(props) {
|
|
|
616
617
|
name: "mode",
|
|
617
618
|
initializer: _alloy_js_core.code`String(env.MODE) || "production"; `
|
|
618
619
|
}),
|
|
619
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
620
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core_components_spacing.Spacing, {}),
|
|
620
621
|
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.VarDeclaration, {
|
|
621
622
|
"export": true,
|
|
622
623
|
"const": true,
|
|
@@ -624,7 +625,7 @@ function EnvBuiltin(props) {
|
|
|
624
625
|
doc: "Detect if the application is running in `\"production\"` mode",
|
|
625
626
|
initializer: _alloy_js_core.code`["prd", "prod", "production"].includes(mode.toLowerCase()); `
|
|
626
627
|
}),
|
|
627
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
628
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core_components_spacing.Spacing, {}),
|
|
628
629
|
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.VarDeclaration, {
|
|
629
630
|
"export": true,
|
|
630
631
|
"const": true,
|
|
@@ -632,7 +633,7 @@ function EnvBuiltin(props) {
|
|
|
632
633
|
doc: "Detect if the application is running in `\"test\"` mode",
|
|
633
634
|
initializer: _alloy_js_core.code`["tst", "test", "testing", "stg", "stage", "staging"].includes(mode.toLowerCase()) || env.TEST; `
|
|
634
635
|
}),
|
|
635
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
636
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core_components_spacing.Spacing, {}),
|
|
636
637
|
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.VarDeclaration, {
|
|
637
638
|
"export": true,
|
|
638
639
|
"const": true,
|
|
@@ -640,7 +641,7 @@ function EnvBuiltin(props) {
|
|
|
640
641
|
doc: "Detect if the application is running in `\"development\"` mode",
|
|
641
642
|
initializer: _alloy_js_core.code`["dev", "development"].includes(mode.toLowerCase()); `
|
|
642
643
|
}),
|
|
643
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
644
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core_components_spacing.Spacing, {}),
|
|
644
645
|
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.VarDeclaration, {
|
|
645
646
|
"export": true,
|
|
646
647
|
"const": true,
|
|
@@ -648,7 +649,7 @@ function EnvBuiltin(props) {
|
|
|
648
649
|
doc: "Detect if the application is currently being debugged",
|
|
649
650
|
initializer: _alloy_js_core.code`Boolean(isDevelopment && env.DEBUG); `
|
|
650
651
|
}),
|
|
651
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(
|
|
652
|
+
(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core_components_spacing.Spacing, {}),
|
|
652
653
|
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
|
|
653
654
|
get when() {
|
|
654
655
|
return Boolean(children);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Children } from "@alloy-js/core";
|
|
2
2
|
import { JsonSchemaObject } from "@powerlines/schema";
|
|
3
|
-
import { ComponentProps } from "@
|
|
3
|
+
import { ComponentProps } from "@power-plant/alloy-js/core/types/components";
|
|
4
4
|
import { BuiltinFileProps } from "@powerlines/plugin-alloy/typescript/components";
|
|
5
5
|
//#region src/components/env-builtin.d.ts
|
|
6
6
|
interface EnvTypeDefinitionProps extends ComponentProps {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env-builtin.d.cts","names":[],"sources":["../../src/components/env-builtin.tsx"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"env-builtin.d.cts","names":[],"sources":["../../src/components/env-builtin.tsx"],"mappings":";;;;;UAmEiB,+BAA+B;EAC9C,QAAQ;;;;;iBAMM,kBAAkB,OAAO,yBAAsB;UA6L9C,wBAAwB,KAAK;EAC5C,gBAAgB;;;;;iBASF,WAAW,OAAO,kBAAe"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { JsonSchemaObject } from "@powerlines/schema";
|
|
2
2
|
import { Children } from "@alloy-js/core";
|
|
3
3
|
import { BuiltinFileProps } from "@powerlines/plugin-alloy/typescript/components";
|
|
4
|
-
import { ComponentProps } from "@
|
|
4
|
+
import { ComponentProps } from "@power-plant/alloy-js/core/types/components";
|
|
5
5
|
//#region src/components/env-builtin.d.ts
|
|
6
6
|
interface EnvTypeDefinitionProps extends ComponentProps {
|
|
7
7
|
schema: JsonSchemaObject;
|
|
@@ -3,12 +3,13 @@ import { generateParserCode, getPropertiesList } from "@powerlines/schema";
|
|
|
3
3
|
import { isSetObject } from "@stryke/type-checks/is-set-object";
|
|
4
4
|
import { createComponent, createIntrinsic, mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
5
5
|
import { For, Show, code, computed, splitProps } from "@alloy-js/core";
|
|
6
|
-
import { Spacing } from "@
|
|
6
|
+
import { Spacing } from "@power-plant/alloy-js/core/components/spacing";
|
|
7
7
|
import { usePowerlines } from "@powerlines/plugin-alloy/core/contexts/context";
|
|
8
8
|
import { ElseIfClause, FunctionDeclaration, IfStatement, InterfaceDeclaration, VarDeclaration } from "@alloy-js/typescript";
|
|
9
|
+
import { InterfaceDeclaration as InterfaceDeclaration$1, InterfaceMember, ObjectDeclaration, TSDocSchemaProperty } from "@power-plant/alloy-js/typescript/components";
|
|
10
|
+
import { TSDoc, TSDocParam, TSDocRemarks, TSDocReturns } from "@power-plant/alloy-js/typescript/components/tsdoc";
|
|
9
11
|
import { refkey } from "@powerlines/plugin-alloy/helpers/refkey";
|
|
10
|
-
import { BuiltinFile
|
|
11
|
-
import { TSDoc, TSDocParam, TSDocRemarks, TSDocReturns } from "@powerlines/plugin-alloy/typescript/components/tsdoc";
|
|
12
|
+
import { BuiltinFile } from "@powerlines/plugin-alloy/typescript/components";
|
|
12
13
|
import { toArray } from "@stryke/convert/to-array";
|
|
13
14
|
import { deepClone } from "@stryke/helpers/deep-clone";
|
|
14
15
|
import { getUnique } from "@stryke/helpers/get-unique";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-env",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.349",
|
|
4
4
|
"private": false,
|
|
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
|
"keywords": ["dotenv", "powerlines", "storm-software", "powerlines-plugin"],
|
|
@@ -250,29 +250,30 @@
|
|
|
250
250
|
"@alloy-js/typescript": "^0.23.0",
|
|
251
251
|
"@babel/core": "^8.0.1",
|
|
252
252
|
"@babel/types": "^8.0.4",
|
|
253
|
-
"@
|
|
254
|
-
"@powerlines/
|
|
255
|
-
"@powerlines/plugin-
|
|
256
|
-
"@powerlines/plugin-
|
|
257
|
-
"@powerlines/plugin-
|
|
258
|
-
"@powerlines/
|
|
259
|
-
"@
|
|
260
|
-
"@
|
|
261
|
-
"@stryke/
|
|
262
|
-
"@stryke/
|
|
263
|
-
"@stryke/
|
|
264
|
-
"@stryke/
|
|
265
|
-
"@stryke/
|
|
266
|
-
"@stryke/
|
|
267
|
-
"@stryke/
|
|
268
|
-
"@stryke/
|
|
269
|
-
"@stryke/
|
|
253
|
+
"@power-plant/alloy-js": "^0.0.20",
|
|
254
|
+
"@powerlines/core": "^0.48.66",
|
|
255
|
+
"@powerlines/plugin-alloy": "^0.26.238",
|
|
256
|
+
"@powerlines/plugin-automd": "^0.1.606",
|
|
257
|
+
"@powerlines/plugin-babel": "^0.13.141",
|
|
258
|
+
"@powerlines/plugin-plugin": "^0.12.557",
|
|
259
|
+
"@powerlines/schema": "^0.11.127",
|
|
260
|
+
"@storm-software/config-tools": "^1.190.109",
|
|
261
|
+
"@stryke/capnp": "^0.12.123",
|
|
262
|
+
"@stryke/convert": "^0.7.27",
|
|
263
|
+
"@stryke/env": "^0.20.114",
|
|
264
|
+
"@stryke/fs": "^0.33.97",
|
|
265
|
+
"@stryke/helpers": "^0.10.36",
|
|
266
|
+
"@stryke/json": "^0.15.20",
|
|
267
|
+
"@stryke/path": "^0.29.23",
|
|
268
|
+
"@stryke/string-format": "^0.17.38",
|
|
269
|
+
"@stryke/type-checks": "^0.6.29",
|
|
270
|
+
"@stryke/types": "^0.12.24",
|
|
270
271
|
"automd": "^0.4.3",
|
|
271
272
|
"c12": "^3.3.4",
|
|
272
273
|
"defu": "^6.1.7",
|
|
273
|
-
"powerlines": "0.47.
|
|
274
|
+
"powerlines": "^0.47.145"
|
|
274
275
|
},
|
|
275
|
-
"devDependencies": { "@types/node": "^25.9.5", "vite": "^8.1.
|
|
276
|
+
"devDependencies": { "@types/node": "^25.9.5", "vite": "^8.1.5" },
|
|
276
277
|
"publishConfig": { "access": "public" },
|
|
277
|
-
"gitHead": "
|
|
278
|
+
"gitHead": "d81170b608c0b80e7726e129c3edd1b7b6ca2605"
|
|
278
279
|
}
|