@powerlines/plugin-env 0.13.53 → 0.13.54
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/index.cjs +1 -1
- package/dist/babel/index.d.cts +17 -31
- package/dist/babel/index.d.mts +17 -0
- package/dist/babel/index.mjs +1 -0
- package/dist/babel/plugin.cjs +1 -19
- package/dist/babel/plugin.d.cts +17 -34
- package/dist/babel/plugin.d.mts +17 -0
- package/dist/babel/plugin.mjs +1 -0
- package/dist/babel-CE47sTzg.mjs +1 -0
- package/dist/chunk-CbqXBSoN.mjs +1 -0
- package/dist/chunk-DT2f8AgL.cjs +1 -0
- package/dist/components/docs.cjs +1 -0
- package/dist/components/docs.d.cts +2 -0
- package/dist/components/docs.d.mts +2 -0
- package/dist/components/docs.mjs +1 -0
- package/dist/components/env.cjs +1 -40
- package/dist/components/env.d.cts +4 -105
- package/dist/components/env.d.mts +4 -0
- package/dist/components/env.mjs +1 -0
- package/dist/components/index.cjs +1 -1
- package/dist/components/index.d.cts +6 -8
- package/dist/components/index.d.mts +6 -0
- package/dist/components/index.mjs +1 -0
- package/dist/components-LyHNrcZE.mjs +1 -0
- package/dist/config-D2esSp2r.d.mts +1681 -0
- package/dist/config-D2esSp2r.d.mts.map +1 -0
- package/dist/config-Dli3ofDp.d.cts +1680 -0
- package/dist/config-Dli3ofDp.d.cts.map +1 -0
- package/dist/create-reflection-resource-CQHJrkQi.cjs +1 -0
- package/dist/create-reflection-resource-D7go0-VG.d.mts +16 -0
- package/dist/create-reflection-resource-D7go0-VG.d.mts.map +1 -0
- package/dist/create-reflection-resource-DOZmUtSi.d.cts +16 -0
- package/dist/create-reflection-resource-DOZmUtSi.d.cts.map +1 -0
- package/dist/create-reflection-resource-UtOwX4Ml.mjs +2 -0
- package/dist/create-reflection-resource-UtOwX4Ml.mjs.map +1 -0
- package/dist/docs-BDiEhcDa.mjs +2 -0
- package/dist/docs-BDiEhcDa.mjs.map +1 -0
- package/dist/docs-Bhi9smBO.cjs +1 -0
- package/dist/docs-BoZkRBO4.d.cts +10 -0
- package/dist/docs-BoZkRBO4.d.cts.map +1 -0
- package/dist/docs-BwK6pC_c.d.mts +10 -0
- package/dist/docs-BwK6pC_c.d.mts.map +1 -0
- package/dist/env-0C9Vc_CF.cjs +34 -0
- package/dist/env-BQWQzimx.d.cts +113 -0
- package/dist/env-BQWQzimx.d.cts.map +1 -0
- package/dist/env-D4MK9BWK.mjs +32 -0
- package/dist/env-D4MK9BWK.mjs.map +1 -0
- package/dist/env-DMqCnKB2.d.mts +113 -0
- package/dist/env-DMqCnKB2.d.mts.map +1 -0
- package/dist/helpers/create-reflection-resource.cjs +1 -0
- package/dist/helpers/create-reflection-resource.d.cts +6 -0
- package/dist/helpers/create-reflection-resource.d.mts +6 -0
- package/dist/helpers/create-reflection-resource.mjs +1 -0
- package/dist/helpers/index.cjs +1 -1
- package/dist/helpers/index.d.cts +12 -35
- package/dist/helpers/index.d.mts +12 -0
- package/dist/helpers/index.mjs +1 -0
- package/dist/helpers/load.cjs +1 -7
- package/dist/helpers/load.d.cts +6 -60
- package/dist/helpers/load.d.mts +6 -0
- package/dist/helpers/load.mjs +1 -0
- package/dist/helpers/persistence.cjs +1 -7
- package/dist/helpers/persistence.d.cts +6 -108
- package/dist/helpers/persistence.d.mts +6 -0
- package/dist/helpers/persistence.mjs +1 -0
- package/dist/helpers/reflect.cjs +1 -7
- package/dist/helpers/reflect.d.cts +6 -72
- package/dist/helpers/reflect.d.mts +6 -0
- package/dist/helpers/reflect.mjs +1 -0
- package/dist/helpers/source-file-env.cjs +1 -7
- package/dist/helpers/source-file-env.d.cts +2 -7
- package/dist/helpers/source-file-env.d.mts +2 -0
- package/dist/helpers/source-file-env.mjs +1 -0
- package/dist/helpers/template-helpers.cjs +1 -7
- package/dist/helpers/template-helpers.d.cts +6 -41
- package/dist/helpers/template-helpers.d.mts +6 -0
- package/dist/helpers/template-helpers.mjs +1 -0
- package/dist/helpers-DfMThUgD.mjs +1 -0
- package/dist/helpers-YGhXHw5G.cjs +0 -0
- package/dist/index-B3G-X5Fc.d.mts +42 -0
- package/dist/index-B3G-X5Fc.d.mts.map +1 -0
- package/dist/index-BRBK9zG-.d.cts +1 -0
- package/dist/index-Bt4QNofW.d.mts +1 -0
- package/dist/index-CRo77wc3.d.mts +1 -0
- package/dist/index-CspKFJM1.d.cts +1 -0
- package/dist/index-Dpmi5zcN.d.cts +1 -0
- package/dist/index-E1euY2F8.d.cts +42 -0
- package/dist/index-E1euY2F8.d.cts.map +1 -0
- package/dist/index-Wc1llEvP.d.mts +1 -0
- package/dist/index.cjs +5 -10
- package/dist/index.d.cts +17 -71
- package/dist/index.d.mts +17 -0
- package/dist/index.mjs +18 -0
- package/dist/index.mjs.map +1 -0
- package/dist/load-BZTlThWg.mjs +2 -0
- package/dist/load-BZTlThWg.mjs.map +1 -0
- package/dist/load-CWOZ3u-s.d.cts +36 -0
- package/dist/load-CWOZ3u-s.d.cts.map +1 -0
- package/dist/load-Dzf30s_a.d.mts +39 -0
- package/dist/load-Dzf30s_a.d.mts.map +1 -0
- package/dist/load-nUlit5lR.cjs +1 -0
- package/dist/{helpers/persistence.d.ts → persistence-BSorOnu8.d.cts} +15 -38
- package/dist/persistence-BSorOnu8.d.cts.map +1 -0
- package/dist/persistence-Br-YMVb1.mjs +15 -0
- package/dist/persistence-Br-YMVb1.mjs.map +1 -0
- package/dist/persistence-KaP3-ka1.cjs +14 -0
- package/dist/persistence-sVp1g7Mp.d.mts +85 -0
- package/dist/persistence-sVp1g7Mp.d.mts.map +1 -0
- package/dist/plugin-CRYQ682C.cjs +0 -0
- package/dist/plugin-Cl-yPswT.d.cts +1716 -0
- package/dist/plugin-Cl-yPswT.d.cts.map +1 -0
- package/dist/plugin-Cx61c9gw.mjs +6 -0
- package/dist/plugin-Cx61c9gw.mjs.map +1 -0
- package/dist/plugin-DrnPbdzR.mjs +1 -0
- package/dist/plugin-VRahDLZZ.d.mts +1716 -0
- package/dist/plugin-VRahDLZZ.d.mts.map +1 -0
- package/dist/plugin-v-FJGggy.cjs +5 -0
- package/dist/reflect-C1joiXZ1.d.mts +47 -0
- package/dist/reflect-C1joiXZ1.d.mts.map +1 -0
- package/dist/reflect-CFNlkro0.d.cts +47 -0
- package/dist/reflect-CFNlkro0.d.cts.map +1 -0
- package/dist/runtime-BaZivi6m.cjs +0 -0
- package/dist/runtime-CIWxfv47.d.cts +795 -0
- package/dist/runtime-CIWxfv47.d.cts.map +1 -0
- package/dist/runtime-ChZa5p23.d.mts +795 -0
- package/dist/runtime-ChZa5p23.d.mts.map +1 -0
- package/dist/runtime-DqCYc37d.mjs +1 -0
- package/dist/source-file-CLCTB4C7.cjs +1 -0
- package/dist/source-file-CjFSCK1w.mjs +2 -0
- package/dist/source-file-CjFSCK1w.mjs.map +1 -0
- package/dist/source-file-env-BDFTs5WJ.mjs +2 -0
- package/dist/source-file-env-BDFTs5WJ.mjs.map +1 -0
- package/dist/source-file-env-C6uYyxww.cjs +1 -0
- package/dist/{helpers/source-file-env.d.ts → source-file-env-DonDJDV1.d.cts} +5 -3
- package/dist/source-file-env-DonDJDV1.d.cts.map +1 -0
- package/dist/source-file-env-DzpWKluw.d.mts +9 -0
- package/dist/source-file-env-DzpWKluw.d.mts.map +1 -0
- package/dist/template-helpers-BDDg5jaw.d.cts +16 -0
- package/dist/template-helpers-BDDg5jaw.d.cts.map +1 -0
- package/dist/template-helpers-BSbamu0U.cjs +1 -0
- package/dist/template-helpers-CLrM_TtO.mjs +2 -0
- package/dist/template-helpers-CLrM_TtO.mjs.map +1 -0
- package/dist/template-helpers-DmfAtQIT.d.mts +16 -0
- package/dist/template-helpers-DmfAtQIT.d.mts.map +1 -0
- package/dist/type-CnPIyotQ.d.mts +4 -0
- package/dist/type-CnPIyotQ.d.mts.map +1 -0
- package/dist/type-D6dRgWJT.d.cts +4 -0
- package/dist/type-D6dRgWJT.d.cts.map +1 -0
- package/dist/types/index.cjs +1 -1
- package/dist/types/index.d.cts +6 -30
- package/dist/types/index.d.mts +6 -0
- package/dist/types/index.mjs +1 -0
- package/dist/types/plugin.cjs +1 -1
- package/dist/types/plugin.d.cts +5 -1733
- package/dist/types/plugin.d.mts +5 -0
- package/dist/types/plugin.mjs +1 -0
- package/dist/types/runtime.cjs +1 -1
- package/dist/types/runtime.d.cts +3 -25
- package/dist/types/runtime.d.mts +3 -0
- package/dist/types/runtime.mjs +1 -0
- package/dist/types-BCto_Rzj.mjs +1 -0
- package/dist/types-DS7T32tb.cjs +0 -0
- package/dist/utilities-4S--uN0L.mjs +2 -0
- package/dist/utilities-4S--uN0L.mjs.map +1 -0
- package/dist/utilities-CxyT2chk.cjs +1 -0
- package/package.json +66 -55
- package/dist/babel/index.d.ts +0 -31
- package/dist/babel/index.js +0 -1
- package/dist/babel/plugin.d.ts +0 -34
- package/dist/babel/plugin.js +0 -19
- package/dist/chunk-FBBMZ4NC.cjs +0 -7
- package/dist/chunk-UCUR73HG.js +0 -7
- package/dist/components/env.d.ts +0 -105
- package/dist/components/env.js +0 -40
- package/dist/components/index.d.ts +0 -8
- package/dist/components/index.js +0 -1
- package/dist/fs-ECFlqnPg.d.cts +0 -378
- package/dist/fs-ECFlqnPg.d.ts +0 -378
- package/dist/helpers/index.d.ts +0 -35
- package/dist/helpers/index.js +0 -1
- package/dist/helpers/load.d.ts +0 -60
- package/dist/helpers/load.js +0 -7
- package/dist/helpers/persistence.js +0 -7
- package/dist/helpers/reflect.d.ts +0 -72
- package/dist/helpers/reflect.js +0 -7
- package/dist/helpers/source-file-env.js +0 -7
- package/dist/helpers/template-helpers.d.ts +0 -41
- package/dist/helpers/template-helpers.js +0 -7
- package/dist/index.d.ts +0 -71
- package/dist/index.js +0 -22
- package/dist/runtime-B75FziIk.d.ts +0 -2011
- package/dist/runtime-DqYFxAEo.d.cts +0 -2011
- package/dist/types/index.d.ts +0 -30
- package/dist/types/index.js +0 -1
- package/dist/types/plugin.d.ts +0 -1733
- package/dist/types/runtime.d.ts +0 -25
- /package/dist/{types/plugin.js → babel-Bmzkjy1p.cjs} +0 -0
- /package/dist/{types/runtime.js → components-BWruXLSx.cjs} +0 -0
package/dist/babel/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
require(`../persistence-KaP3-ka1.cjs`);const e=require(`../plugin-v-FJGggy.cjs`);require(`../utilities-CxyT2chk.cjs`),require(`../babel-Bmzkjy1p.cjs`),exports.envBabelPlugin=e.t;
|
package/dist/babel/index.d.cts
CHANGED
|
@@ -1,31 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
|
|
18
|
-
import '@stryke/types/configuration';
|
|
19
|
-
import '@stryke/types/file';
|
|
20
|
-
import 'vite';
|
|
21
|
-
import '@babel/helper-plugin-utils';
|
|
22
|
-
import '../fs-ECFlqnPg.cjs';
|
|
23
|
-
import '@stryke/fs/resolve';
|
|
24
|
-
import '@stryke/types/array';
|
|
25
|
-
import '@stryke/types/tsconfig';
|
|
26
|
-
import 'typescript';
|
|
27
|
-
import '../types/plugin.cjs';
|
|
28
|
-
import '@alloy-js/core/jsx-runtime';
|
|
29
|
-
import '@deepkit/type';
|
|
30
|
-
import '@stryke/capnp';
|
|
31
|
-
import '@stryke/env/types';
|
|
1
|
+
import "../type-D6dRgWJT.cjs";
|
|
2
|
+
import "../plugin-Cl-yPswT.cjs";
|
|
3
|
+
import "../config-Dli3ofDp.cjs";
|
|
4
|
+
import "../runtime-CIWxfv47.cjs";
|
|
5
|
+
import "../index-CspKFJM1.cjs";
|
|
6
|
+
import { t as envBabelPlugin } from "../index-E1euY2F8.cjs";
|
|
7
|
+
import "../docs-BoZkRBO4.cjs";
|
|
8
|
+
import "../env-BQWQzimx.cjs";
|
|
9
|
+
import "../index-Dpmi5zcN.cjs";
|
|
10
|
+
import "../create-reflection-resource-DOZmUtSi.cjs";
|
|
11
|
+
import "../load-CWOZ3u-s.cjs";
|
|
12
|
+
import "../persistence-BSorOnu8.cjs";
|
|
13
|
+
import "../reflect-CFNlkro0.cjs";
|
|
14
|
+
import "../source-file-env-DonDJDV1.cjs";
|
|
15
|
+
import "../template-helpers-BDDg5jaw.cjs";
|
|
16
|
+
import "../index-BRBK9zG-.cjs";
|
|
17
|
+
export { envBabelPlugin };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import "../type-CnPIyotQ.mjs";
|
|
2
|
+
import "../plugin-VRahDLZZ.mjs";
|
|
3
|
+
import "../config-D2esSp2r.mjs";
|
|
4
|
+
import "../runtime-ChZa5p23.mjs";
|
|
5
|
+
import "../index-CRo77wc3.mjs";
|
|
6
|
+
import { t as envBabelPlugin } from "../index-B3G-X5Fc.mjs";
|
|
7
|
+
import "../load-Dzf30s_a.mjs";
|
|
8
|
+
import "../docs-BwK6pC_c.mjs";
|
|
9
|
+
import "../env-DMqCnKB2.mjs";
|
|
10
|
+
import "../index-Wc1llEvP.mjs";
|
|
11
|
+
import "../create-reflection-resource-D7go0-VG.mjs";
|
|
12
|
+
import "../persistence-sVp1g7Mp.mjs";
|
|
13
|
+
import "../reflect-C1joiXZ1.mjs";
|
|
14
|
+
import "../source-file-env-DzpWKluw.mjs";
|
|
15
|
+
import "../template-helpers-DmfAtQIT.mjs";
|
|
16
|
+
import "../index-Bt4QNofW.mjs";
|
|
17
|
+
export { envBabelPlugin };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"../persistence-Br-YMVb1.mjs";import{t as e}from"../plugin-Cx61c9gw.mjs";import"../utilities-4S--uN0L.mjs";import"../babel-CE47sTzg.mjs";export{e as envBabelPlugin};
|
package/dist/babel/plugin.cjs
CHANGED
|
@@ -1,19 +1 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
* ⚡ Built by Storm Software
|
|
4
|
-
*
|
|
5
|
-
*****************************************/
|
|
6
|
-
|
|
7
|
-
const G=createPlugin.createBabelPlugin("env",({log:f,context:t})=>{function l(e,o,n=false){const a=t.env.types.env?.getProperties().filter(m=>m.getAlias().length>0);if(e.name){const m=t.config.env.prefix.find(i=>e.name&&e.name.startsWith(i)&&(t.env.types.env?.hasProperty(e.name.replace(`${i}_`,""))||a.some(r=>r.getAlias().includes(e.name.replace(`${i}_`,"")))));let s=e.name;if(m&&(s=e.name.replace(`${m}_`,"")),f(types.LogLevelLabel.TRACE,`Environment variable ${s} found in ${o.filename||"unknown file"}.`),t.env.types.env?.hasProperty(s)||a.some(i=>i.getAlias().includes(s))){const i=t.env.types.env.hasProperty(s)?t.env.types.env.getProperty(s):a.find(r=>r.getAlias().includes(s));if(!i||i.isIgnored())return;if(t.env.used.env.hasProperty(s)||t.env.used.env.addProperty(i.property),t.config.env.inject&&n){let r=t.env.parsed?.[s];if(r===void 0){const v=t.config.env.prefix.find(u=>t.env.parsed[`${u.replace(/_$/g,"")}_${s}`]);v&&(r=t.env.parsed[`${v.replace(/_$/g,"")}_${s}`]);}if(r??=i.getDefaultValue(),i.isValueRequired()&&r===void 0)throw new Error(`Environment variable \`${s}\` is not defined in the .env configuration files`);return utilities.stringifyDefaultValue(i,r)}}else throw new Error(`The "${s}" environment variable is not defined in the \`env\` type definition, but is used in the source code file ${o.filename?o.filename:"unknown"}.
|
|
8
|
-
|
|
9
|
-
The following environment configuration names are defined in the \`env\` type definition:
|
|
10
|
-
${t.env.types.env?.getPropertyNames().sort((i,r)=>String(i).localeCompare(String(r))).map(i=>` - ${String(i)} ${a.some(r=>r.getNameAsString()===String(i)&&r.getAlias().length>0)?`(Alias: ${a?.find(r=>r.getNameAsString()===String(i))?.getAlias().join(", ")})`:""}`).join(`
|
|
11
|
-
`)}
|
|
12
|
-
|
|
13
|
-
Using the following env prefix:
|
|
14
|
-
${t.config.env.prefix.map(i=>` - ${i}`).join(`
|
|
15
|
-
`)}
|
|
16
|
-
|
|
17
|
-
Please check your \`env\` configuration option. If you are using a custom dotenv type definition, please make sure that the configuration names match the ones in the code.
|
|
18
|
-
|
|
19
|
-
`)}}return chunkFBBMZ4NC_cjs.a(l,"extractEnv"),{visitor:{MemberExpression(e,o){if(e.get("object")?.get("property")?.isIdentifier({name:"env"})&&e.get("object")?.get("object")?.isIdentifier({name:"$storm"})&&e.get("property")?.isIdentifier()){const n=e.get("property")?.node;l(n,o,false),e.replaceWithSourceString(`env.${n.name}`),moduleHelpers.addImport(e,{module:"storm:env",name:"env",imported:"env"});}else if(e.get("object")?.get("property")?.isIdentifier({name:"env"})&&e.get("object")?.get("object")?.isCallExpression({callee:{name:"useStorm",type:"Identifier"}})&&e.get("property")?.isIdentifier()){const n=e.get("property")?.node;l(n,o,false),e.replaceWithSourceString(`env.${n.name}`),moduleHelpers.addImport(e,{module:"storm:env",name:"env",imported:"env"});}else if(e.get("object")?.get("property")?.isIdentifier({name:"env"})&&e.get("object")?.get("object")?.isIdentifier({name:"process"})&&e.get("property")?.isIdentifier()){const n=e.get("property")?.node;if(!n.name)return;l(n,o,false),e.replaceWithSourceString(`env.${n.name}`),moduleHelpers.addImport(e,{module:"storm:env",name:"env",imported:"env"});}else if(e.get("object")?.get("property")?.isIdentifier({name:"env"})&&e.get("object")?.get("object")?.isMetaProperty()&&e.get("property")?.isIdentifier()){const n=e.get("property")?.node;if(!n.name)return;l(n,o,false),e.replaceWithSourceString(`env.${n.name}`),moduleHelpers.addImport(e,{module:"storm:env",name:"env",imported:"env"});}}},post(){f(types.LogLevelLabel.TRACE,`Adding environment variables from ${this.filename||"unknown file"} to env.json.`);let e=type.ReflectionClass.from({kind:type.ReflectionKind.objectLiteral,description:"An object containing the environment variables used by the application.",types:[]});const o=persistence.getEnvReflectionsPath(t,"env");o&&node_fs.existsSync(o)&&(f(types.LogLevelLabel.TRACE,`Environment reflection file found at ${o}, reading existing reflection.`),e=type.resolveClassType(type.deserializeType(capnp.convertFromCapnp(new E__namespace.Message(buffer.readFileBufferSync(o),false).getRoot(reflection.SerializedTypes).types)))),f(types.LogLevelLabel.TRACE,`Adding new variables to env reflection at ${o}.`),e.getProperties().filter(n=>n.getNameAsString()&&!t.env.used.env.hasProperty(n.getNameAsString())).forEach(n=>{t.env.used.env.addProperty({...n,name:n.getNameAsString(),description:n.getDescription()??`The ${n.getNameAsString()} variable.`,default:n.getDefaultValue(),optional:n.isOptional()?true:void 0,readonly:n.isReadonly()?true:void 0,visibility:n.getVisibility(),type:n.getType(),tags:n.getTags()});});}}});exports.envBabelPlugin=G;
|
|
1
|
+
require(`../persistence-KaP3-ka1.cjs`);const e=require(`../plugin-v-FJGggy.cjs`);require(`../utilities-CxyT2chk.cjs`),exports.envBabelPlugin=e.t;
|
package/dist/babel/plugin.d.cts
CHANGED
|
@@ -1,34 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
|
|
18
|
-
import '@stryke/types/configuration';
|
|
19
|
-
import '@stryke/types/file';
|
|
20
|
-
import 'vite';
|
|
21
|
-
import '@babel/helper-plugin-utils';
|
|
22
|
-
import '../fs-ECFlqnPg.cjs';
|
|
23
|
-
import '@stryke/fs/resolve';
|
|
24
|
-
import '@stryke/types/array';
|
|
25
|
-
import '@stryke/types/tsconfig';
|
|
26
|
-
import 'typescript';
|
|
27
|
-
import '@alloy-js/core/jsx-runtime';
|
|
28
|
-
import '@deepkit/type';
|
|
29
|
-
import '@stryke/capnp';
|
|
30
|
-
import '@stryke/env/types';
|
|
31
|
-
|
|
32
|
-
declare const envBabelPlugin: DeclareBabelTransformPluginReturn<EnvPluginContext<EnvPluginResolvedConfig>, Record<string, any>>;
|
|
33
|
-
|
|
34
|
-
export { envBabelPlugin };
|
|
1
|
+
import "../type-D6dRgWJT.cjs";
|
|
2
|
+
import "../plugin-Cl-yPswT.cjs";
|
|
3
|
+
import "../config-Dli3ofDp.cjs";
|
|
4
|
+
import "../runtime-CIWxfv47.cjs";
|
|
5
|
+
import "../index-CspKFJM1.cjs";
|
|
6
|
+
import { t as envBabelPlugin } from "../index-E1euY2F8.cjs";
|
|
7
|
+
import "../docs-BoZkRBO4.cjs";
|
|
8
|
+
import "../env-BQWQzimx.cjs";
|
|
9
|
+
import "../index-Dpmi5zcN.cjs";
|
|
10
|
+
import "../create-reflection-resource-DOZmUtSi.cjs";
|
|
11
|
+
import "../load-CWOZ3u-s.cjs";
|
|
12
|
+
import "../persistence-BSorOnu8.cjs";
|
|
13
|
+
import "../reflect-CFNlkro0.cjs";
|
|
14
|
+
import "../source-file-env-DonDJDV1.cjs";
|
|
15
|
+
import "../template-helpers-BDDg5jaw.cjs";
|
|
16
|
+
import "../index-BRBK9zG-.cjs";
|
|
17
|
+
export { envBabelPlugin };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import "../type-CnPIyotQ.mjs";
|
|
2
|
+
import "../plugin-VRahDLZZ.mjs";
|
|
3
|
+
import "../config-D2esSp2r.mjs";
|
|
4
|
+
import "../runtime-ChZa5p23.mjs";
|
|
5
|
+
import "../index-CRo77wc3.mjs";
|
|
6
|
+
import { t as envBabelPlugin } from "../index-B3G-X5Fc.mjs";
|
|
7
|
+
import "../load-Dzf30s_a.mjs";
|
|
8
|
+
import "../docs-BwK6pC_c.mjs";
|
|
9
|
+
import "../env-DMqCnKB2.mjs";
|
|
10
|
+
import "../index-Wc1llEvP.mjs";
|
|
11
|
+
import "../create-reflection-resource-D7go0-VG.mjs";
|
|
12
|
+
import "../persistence-sVp1g7Mp.mjs";
|
|
13
|
+
import "../reflect-C1joiXZ1.mjs";
|
|
14
|
+
import "../source-file-env-DzpWKluw.mjs";
|
|
15
|
+
import "../template-helpers-DmfAtQIT.mjs";
|
|
16
|
+
import "../index-Bt4QNofW.mjs";
|
|
17
|
+
export { envBabelPlugin };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"../persistence-Br-YMVb1.mjs";import{t as e}from"../plugin-Cx61c9gw.mjs";import"../utilities-4S--uN0L.mjs";export{e as envBabelPlugin};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,i=(i,a,o,s)=>{if(a&&typeof a==`object`||typeof a==`function`)for(var c=n(a),l=0,u=c.length,d;l<u;l++)d=c[l],!r.call(i,d)&&d!==o&&e(i,d,{get:(e=>a[e]).bind(null,d),enumerable:!(s=t(a,d))||s.enumerable});return i},a=(t,n,r,a)=>{a&&(e(t,Symbol.toStringTag,{value:`Module`}),r&&e(r,Symbol.toStringTag,{value:`Module`})),i(t,n,`default`),r&&i(r,n,`default`)};export{a as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(e,n,r,i)=>{i&&(t(e,Symbol.toStringTag,{value:`Module`}),r&&t(r,Symbol.toStringTag,{value:`Module`})),o(e,n,`default`),r&&o(r,n,`default`)},c=(n,r,a)=>(a=n==null?{}:e(i(n)),o(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return s}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`../source-file-CLCTB4C7.cjs`),require(`../persistence-KaP3-ka1.cjs`),require(`../source-file-env-C6uYyxww.cjs`),require(`../load-nUlit5lR.cjs`),require(`../create-reflection-resource-CQHJrkQi.cjs`);const e=require(`../docs-Bhi9smBO.cjs`);exports.EnvDocs=e.t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"../source-file-CjFSCK1w.mjs";import"../persistence-Br-YMVb1.mjs";import"../source-file-env-BDFTs5WJ.mjs";import"../load-BZTlThWg.mjs";import"../create-reflection-resource-UtOwX4Ml.mjs";import{t as e}from"../docs-BDiEhcDa.mjs";export{e as EnvDocs};
|
package/dist/components/env.cjs
CHANGED
|
@@ -1,40 +1 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
* ⚡ Built by Storm Software
|
|
4
|
-
*
|
|
5
|
-
*****************************************/
|
|
6
|
-
|
|
7
|
-
function Z(u){const[{defaultValue:o,reflection:r}]=core.splitProps(u,["defaultValue","reflection"]),a=context.usePowerlines();return [jsxRuntime.createComponent(typescriptInterface.TypeScriptInterface,{name:" EnvBase",extends:["EnvInterface"],defaultValue:o,reflection:r,export:true}),jsxRuntime.createIntrinsic("hbr",{}),jsxRuntime.createIntrinsic("hbr",{}),jsxRuntime.createComponent(typescript.TypeDeclaration,{name:"Env",export:true,get children(){return core.code` {
|
|
8
|
-
[Key in keyof EnvBase as Key ${a?.config.env.prefix.map(s=>`| \`${s.replace(/_$/g,"")}_\${Key}\``).join(" ")}]: EnvBase[Key];
|
|
9
|
-
}
|
|
10
|
-
`}})]}chunkFBBMZ4NC_cjs.a(Z,"EnvTypeDefinition");function g(u){const[{context:o,name:r}]=core.splitProps(u,["context","name"]);return o?core.code`propertyName === "${r}" || propertyName.replace(/^(${o.config.env.prefix.sort((a,s)=>a.startsWith(s)?-1:s.startsWith(a)?1:a.localeCompare(s)).map(a=>`${a.replace(/_$/,"")}_`).join("|")})/g, "").toLowerCase().replace(/[\\s\\-_]+/g, "") === "${r.toLowerCase().replace(/[\s\-_]+/g,"")}"`:null}chunkFBBMZ4NC_cjs.a(g,"ConfigPropertyConditional");function ee(u){const[{context:o,property:r,index:a}]=core.splitProps(u,["context","property","index"]);return o?[a===0?jsxRuntime.createComponent(typescript.IfStatement,{get condition(){return [jsxRuntime.createComponent(g,{get name(){return r.getNameAsString()},context:o}),jsxRuntime.createComponent(core.Show,{get when(){return jsxRuntime.memo(()=>!!r.getAlias())()&&r.getAlias().length>0},get children(){return [core.code` || `,jsxRuntime.createComponent(core.For,{get each(){return r.getAlias()},joiner:core.code` || `,children:chunkFBBMZ4NC_cjs.a(s=>jsxRuntime.createComponent(g,{name:s,context:o}),"children")})]}})]},get children(){return core.code`return target["${r.getNameAsString()}"];`}}):jsxRuntime.createComponent(typescript.ElseIfClause,{get condition(){return [jsxRuntime.createComponent(g,{get name(){return r.getNameAsString()},context:o}),jsxRuntime.createComponent(core.Show,{get when(){return jsxRuntime.memo(()=>!!r.getAlias())()&&r.getAlias().length>0},get children(){return [core.code` || `,jsxRuntime.createComponent(core.For,{get each(){return r.getAlias()},joiner:core.code` || `,children:chunkFBBMZ4NC_cjs.a(s=>jsxRuntime.createComponent(g,{name:s,context:o}),"children")})]}})]},get children(){return core.code`return target["${r.getNameAsString()}"];`}})]:null}chunkFBBMZ4NC_cjs.a(ee,"ConfigPropertyGet");function te(u){const[{context:o,property:r,index:a}]=core.splitProps(u,["context","property","index"]);return o?[a===0?jsxRuntime.createComponent(typescript.IfStatement,{get condition(){return [jsxRuntime.createComponent(g,{get name(){return r.getNameAsString()},context:o}),jsxRuntime.createComponent(core.Show,{get when(){return jsxRuntime.memo(()=>!!r.getAlias())()&&r.getAlias().length>0},get children(){return [core.code` || `,jsxRuntime.createComponent(core.For,{get each(){return r.getAlias()},joiner:core.code` || `,children:chunkFBBMZ4NC_cjs.a(s=>jsxRuntime.createComponent(g,{name:s,context:o}),"children")})]}})]},get children(){return core.code`
|
|
11
|
-
target["${r.getNameAsString()}"] = newValue;
|
|
12
|
-
return true;
|
|
13
|
-
`}}):jsxRuntime.createComponent(typescript.ElseIfClause,{get condition(){return [jsxRuntime.createComponent(g,{get name(){return r.getNameAsString()},context:o}),jsxRuntime.createComponent(core.Show,{get when(){return jsxRuntime.memo(()=>!!r.getAlias())()&&r.getAlias().length>0},get children(){return [core.code` || `,jsxRuntime.createComponent(core.For,{get each(){return r.getAlias()},joiner:core.code` || `,children:chunkFBBMZ4NC_cjs.a(s=>jsxRuntime.createComponent(g,{name:s,context:o}),"children")})]}})]},get children(){return core.code`
|
|
14
|
-
target["${r.getNameAsString()}"] = newValue;
|
|
15
|
-
return true;
|
|
16
|
-
`}})]:null}chunkFBBMZ4NC_cjs.a(te,"ConfigPropertySet");const re=refkey.refkey("createEnv"),ne=refkey.refkey("env"),ie=refkey.refkey("EnvSerializer");function ze(u){const[{defaultConfig:o},r]=core.splitProps(u,["defaultConfig"]),a=context.usePowerlines(),s=core.computed(()=>a&&load.loadEnvFromContext(a,process.env)),h=core.createResource(async()=>{if(!a)return new type.ReflectionClass({kind:type.ReflectionKind.objectLiteral,description:"The initial environment configuration state for the Powerlines project.",types:[]});const l=await persistence.readEnvTypeReflection(a,"env");return l.getProperties().forEach(t=>{t.getAlias().filter(Boolean).forEach(y=>{l.addProperty({name:y,optional:t.isOptional()?true:void 0,readonly:t.isReadonly()?true:void 0,description:t.getDescription(),visibility:t.getVisibility(),type:t.getType(),default:t.getDefaultValue(),tags:{hidden:t.isHidden(),ignore:t.isIgnored(),internal:t.isInternal(),alias:t.getAlias().filter(I=>I!==y).concat(t.name),title:t.getTitle()||titleCase.titleCase(t.name),readonly:t.isReadonly(),permission:t.getPermission(),domain:t.getDomain()}});});}),l.getProperties().forEach(t=>{t.setDefaultValue(s.value?.[t.getNameAsString()]??t.getAlias().reduce((w,y)=>w??s.value?.[y],void 0)??t.getDefaultValue());}),l}),D=core.computed(()=>new type.ReflectionClass({kind:type.ReflectionKind.objectLiteral,description:`The initial environment configuration state for the ${titleCase.titleCase(a?.config?.name)} project.`,types:[]},h.data??void 0)),V=core.computed(()=>h.data?.getProperties().filter(l=>!l.isIgnored()).sort((l,t)=>l.getNameAsString().localeCompare(t.getNameAsString()))??[]),R=core.computed(()=>h.data?.getProperties().filter(l=>!l.isIgnored()&&!l.isReadonly()).sort((l,t)=>l.getNameAsString().localeCompare(t.getNameAsString()))??[]);return jsxRuntime.createComponent(builtinFile.BuiltinFile,jsxRuntime.mergeProps(r,{id:"env",description:"The Powerlines environment configuration module provides an interface to define environment configuration parameters.",get imports(){return U__default.default({"@powerlines/deepkit/vendor/type":["Type","stringify","serializer","serializeFunction","deserializeFunction","ReflectionKind","TemplateState","Serializer","TypeProperty","TypePropertySignature"],"@powerlines/plugin-env/types/runtime":[{name:"EnvInterface"}]},r.imports??{})},get children(){return [jsxRuntime.createComponent(core.Show,{get when(){return !isNull.isNull(h.data)},get children(){return [jsxRuntime.createComponent(Z,{get defaultValue(){return s.value},get reflection(){return h.data}}),jsxRuntime.createIntrinsic("hbr",{}),jsxRuntime.createIntrinsic("hbr",{})]}}),jsxRuntime.createComponent(typescriptObject.TypescriptObject,{name:"initialEnv",type:"Partial<EnvBase>",defaultValue:s,reflection:D,export:true,const:true}),jsxRuntime.createIntrinsic("hbr",{}),jsxRuntime.createIntrinsic("hbr",{}),jsxRuntime.createComponent(tsdoc.TSDoc,{heading:"The environment configuration serializer for the Powerlines application.",get children(){return [jsxRuntime.createComponent(tsdoc.TSDocLink,{children:"https://deepkit.io/docs/serialization/serializers"}),jsxRuntime.createComponent(tsdoc.TSDocLink,{children:"https://github.com/marcj/untitled-code/blob/master/packages/type/src/serializer.ts#L1918"}),jsxRuntime.createComponent(tsdoc.TSDocRemarks,{children:"This serializer is used to serialize and deserialize the Powerlines environment configuration."})]}}),jsxRuntime.createComponent(typescript.ClassDeclaration,{refkey:ie,name:"EnvSerializer",extends:"Serializer",export:true,get children(){return jsxRuntime.createComponent(typescript.ClassMethod,{name:"constructor",public:true,children:core.code`
|
|
17
|
-
super("env");
|
|
18
|
-
|
|
19
|
-
this.deserializeRegistry.register(
|
|
20
|
-
ReflectionKind.boolean,
|
|
21
|
-
(type: Type, state: TemplateState) => {
|
|
22
|
-
state.addSetter(
|
|
23
|
-
\`typeof \${state.accessor.toString()} !== "boolean" ? \${state.accessor.toString()} === 1 || \${state.accessor.toString()} === "1" || \${state.accessor.toString()}.toLowerCase() === "t" || \${state.accessor.toString()}.toLowerCase() === "true" || \${state.accessor.toString()}.toLowerCase() === "y" || \${state.accessor.toString()}.toLowerCase() === "yes" : \${state.accessor.toString()}\`
|
|
24
|
-
);
|
|
25
|
-
}
|
|
26
|
-
);
|
|
27
|
-
`})}}),jsxRuntime.createIntrinsic("hbr",{}),jsxRuntime.createIntrinsic("hbr",{}),jsxRuntime.createComponent(tsdoc.TSDoc,{heading:"A {@link EnvSerializer | environment configuration serializer} instance for the Powerlines application.",get children(){return [jsxRuntime.createComponent(tsdoc.TSDocLink,{children:"https://deepkit.io/docs/serialization/serializers"}),jsxRuntime.createComponent(tsdoc.TSDocLink,{children:"https://github.com/marcj/untitled-code/blob/master/packages/type/src/serializer.ts#L1918"}),jsxRuntime.createComponent(tsdoc.TSDocRemarks,{children:"This serializer is used to serialize and deserialize the Powerlines environment configuration."})]}}),jsxRuntime.createComponent(typescript.VarDeclaration,{name:"envSerializer",export:false,const:true,get initializer(){return jsxRuntime.createComponent(typescript.NewExpression,{args:[],target:"EnvSerializer"})}}),jsxRuntime.createIntrinsic("hbr",{}),jsxRuntime.createIntrinsic("hbr",{}),jsxRuntime.createComponent(tsdoc.TSDoc,{heading:"Serialize a environment configuration object to JSON data objects (not a JSON string).",get children(){return [jsxRuntime.createComponent(tsdoc.TSDocRemarks,{children:"The resulting JSON object can be stringified using JSON.stringify()."}),jsxRuntime.createComponent(tsdoc.TSDocExample,{children:"const json = serializeEnv(env);"}),jsxRuntime.createComponent(tsdoc.TSDocThrows,{children:"ValidationError when serialization or validation fails."})]}}),jsxRuntime.createComponent(typescript.VarDeclaration,{name:"serializeEnv",export:true,const:true,initializer:"serializeFunction<EnvBase>(envSerializer)"}),jsxRuntime.createIntrinsic("hbr",{}),jsxRuntime.createIntrinsic("hbr",{}),jsxRuntime.createComponent(tsdoc.TSDoc,{heading:"Deserialize a environment configuration object from JSON data objects to JavaScript objects, without running any validators.",get children(){return [jsxRuntime.createComponent(tsdoc.TSDocRemarks,{children:"Types that are already correct will be used as-is."}),jsxRuntime.createComponent(tsdoc.TSDocExample,{children:"const env = deserializeEnv(json);"}),jsxRuntime.createComponent(tsdoc.TSDocThrows,{children:"ValidationError when deserialization fails."})]}}),jsxRuntime.createComponent(typescript.VarDeclaration,{name:"deserializeEnv",export:true,const:true,initializer:"deserializeFunction<EnvBase>(envSerializer)"}),jsxRuntime.createIntrinsic("hbr",{}),jsxRuntime.createIntrinsic("hbr",{}),jsxRuntime.createComponent(tsdoc.TSDoc,{heading:"Initializes the Powerlines environment configuration module.",get children(){return [jsxRuntime.createComponent(tsdoc.TSDocRemarks,{children:"This function initializes the Powerlines environment configuration object."}),jsxRuntime.createComponent(tsdoc.TSDocParam,{name:"environmentConfig",children:"The dynamic/runtime configuration - this could include the current environment variables or any other environment-specific settings provided by the runtime."}),jsxRuntime.createComponent(tsdoc.TSDocReturns,{children:"The initialized Powerlines configuration object."})]}}),jsxRuntime.createComponent(core.Show,{get when(){return !!a?.entryPath},get children(){return jsxRuntime.createComponent(typescript.FunctionDeclaration,{refkey:re,async:false,export:true,name:"createEnv",parameters:[{name:"environmentConfig",type:"Partial<Env>",optional:false,default:"{}"}],returnType:"Env",get children(){return [core.code`
|
|
28
|
-
return new Proxy<Env>(
|
|
29
|
-
deserializeEnv({
|
|
30
|
-
...initialEnv,
|
|
31
|
-
...environmentConfig
|
|
32
|
-
}) as Env,
|
|
33
|
-
{
|
|
34
|
-
get: (target: EnvBase, propertyName: string) => { `,jsxRuntime.createIntrinsic("hbr",{}),jsxRuntime.createComponent(core.For,{each:V,children:chunkFBBMZ4NC_cjs.a((l,t)=>jsxRuntime.createComponent(ee,{index:t,context:a,property:l}),"children")}),core.code`
|
|
35
|
-
return undefined;
|
|
36
|
-
}, `,jsxRuntime.createIntrinsic("hbr",{}),jsxRuntime.createIntrinsic("hbr",{}),core.code` set: (target: EnvBase, propertyName: string, newValue: any) => { `,jsxRuntime.createIntrinsic("hbr",{}),jsxRuntime.createComponent(core.For,{each:R,ender:core.code` else `,children:chunkFBBMZ4NC_cjs.a((l,t)=>jsxRuntime.createComponent(te,{index:t,context:a,property:l}),"children")}),jsxRuntime.createIntrinsic("hbr",{}),core.code`return false;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
);
|
|
40
|
-
`]}})}}),jsxRuntime.createIntrinsic("hbr",{}),jsxRuntime.createIntrinsic("hbr",{}),jsxRuntime.createIntrinsic("hbr",{}),jsxRuntime.createComponent(typescript.VarDeclaration,{refkey:ne,name:"env",type:"Env",export:true,const:true,get initializer(){return [core.code`createEnv(`,o||"{}",core.code` as Partial<Env>)`]}})]}}))}chunkFBBMZ4NC_cjs.a(ze,"EnvBuiltin");exports.EnvBuiltin=ze;exports.EnvTypeDefinition=Z;
|
|
1
|
+
require(`../source-file-CLCTB4C7.cjs`),require(`../persistence-KaP3-ka1.cjs`),require(`../utilities-CxyT2chk.cjs`);const e=require(`../env-0C9Vc_CF.cjs`);require(`../source-file-env-C6uYyxww.cjs`),require(`../load-nUlit5lR.cjs`),require(`../create-reflection-resource-CQHJrkQi.cjs`),exports.EnvBuiltin=e.t,exports.EnvTypeDefinition=e.n;
|
|
@@ -1,105 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
import { ReflectionClass } from '@deepkit/type';
|
|
6
|
-
import '@stryke/fs/resolve';
|
|
7
|
-
import '@stryke/types/base';
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* A type that represents the props of a component that can have children.
|
|
11
|
-
*/
|
|
12
|
-
interface ComponentProps {
|
|
13
|
-
children?: Children;
|
|
14
|
-
}
|
|
15
|
-
interface TypescriptFileImportItem {
|
|
16
|
-
name: string;
|
|
17
|
-
default?: boolean;
|
|
18
|
-
alias?: string;
|
|
19
|
-
type?: boolean;
|
|
20
|
-
}
|
|
21
|
-
type TypescriptFileImports = Record<string, null | Array<TypescriptFileImportItem | string>>;
|
|
22
|
-
|
|
23
|
-
interface TSDocModuleProps extends ComponentProps {
|
|
24
|
-
/**
|
|
25
|
-
* the prefix for the builtin module name
|
|
26
|
-
*
|
|
27
|
-
* @defaultValue "storm"
|
|
28
|
-
*/
|
|
29
|
-
prefix?: string;
|
|
30
|
-
/**
|
|
31
|
-
* The name of the module
|
|
32
|
-
*
|
|
33
|
-
* @remarks
|
|
34
|
-
* This will be used in the `@module` tag as well as the import path for the module, e.g. `storm:<name>`.
|
|
35
|
-
*
|
|
36
|
-
* @example
|
|
37
|
-
* ```ts
|
|
38
|
-
* import { MyModule } from "storm:my-module";
|
|
39
|
-
* ```
|
|
40
|
-
*/
|
|
41
|
-
name: Children$1;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
type SourceFileProps = SourceFileProps$1 & ComponentProps & {
|
|
45
|
-
/**
|
|
46
|
-
* If true, indicates that the file is virtual and should not be written to disk.
|
|
47
|
-
*
|
|
48
|
-
* @defaultValue false
|
|
49
|
-
*/
|
|
50
|
-
preset?: StoragePreset;
|
|
51
|
-
/**
|
|
52
|
-
* The metadata associated with the source file.
|
|
53
|
-
*
|
|
54
|
-
* @remarks
|
|
55
|
-
* The values stored in the metadata will be available in the rendering context.
|
|
56
|
-
*/
|
|
57
|
-
meta?: Record<string, any>;
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
type TypescriptFileProps = Omit<SourceFileProps, "filetype"> & ComponentProps & {
|
|
61
|
-
header?: Children$1;
|
|
62
|
-
imports?: TypescriptFileImports;
|
|
63
|
-
export?: boolean | string;
|
|
64
|
-
tsx?: boolean;
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
type BuiltinFileProps = Omit<TypescriptFileProps, "path"> & Omit<TSDocModuleProps, "name"> & {
|
|
68
|
-
/**
|
|
69
|
-
* The runtime module identifier.
|
|
70
|
-
*
|
|
71
|
-
* @remarks
|
|
72
|
-
* This value will be included after the \`storm:\` prefix in the import statement.
|
|
73
|
-
*/
|
|
74
|
-
id: string;
|
|
75
|
-
/**
|
|
76
|
-
* The description for the builtin module.
|
|
77
|
-
*/
|
|
78
|
-
description?: string;
|
|
79
|
-
/**
|
|
80
|
-
* Whether the file is a TSX file.
|
|
81
|
-
*
|
|
82
|
-
* @defaultValue false
|
|
83
|
-
*/
|
|
84
|
-
tsx?: boolean;
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
interface TypeScriptInterfaceProps<T extends Record<string, any> = Record<string, any>> extends InterfaceDeclarationProps, ComponentProps {
|
|
88
|
-
reflection: ReflectionClass<T>;
|
|
89
|
-
defaultValue?: Partial<T>;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* Generates the environment configuration typescript definition for the Powerlines project.
|
|
94
|
-
*/
|
|
95
|
-
declare function EnvTypeDefinition(props: Omit<TypeScriptInterfaceProps, "name">): Children$1;
|
|
96
|
-
interface EnvBuiltinProps extends Omit<BuiltinFileProps, "id"> {
|
|
97
|
-
defaultConfig?: Children$1;
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* Generates the environment configuration module for the Powerlines project.
|
|
101
|
-
*/
|
|
102
|
-
declare function EnvBuiltin(props: EnvBuiltinProps): Children$1;
|
|
103
|
-
declare type __ΩEnvBuiltinProps = any[];
|
|
104
|
-
|
|
105
|
-
export { EnvBuiltin, type EnvBuiltinProps, EnvTypeDefinition, type __ΩEnvBuiltinProps };
|
|
1
|
+
import "../type-D6dRgWJT.cjs";
|
|
2
|
+
import "../config-Dli3ofDp.cjs";
|
|
3
|
+
import { i as __ΩEnvBuiltinProps, n as EnvBuiltinProps, r as EnvTypeDefinition, t as EnvBuiltin } from "../env-BQWQzimx.cjs";
|
|
4
|
+
export { EnvBuiltin, EnvBuiltinProps, EnvTypeDefinition, __ΩEnvBuiltinProps };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import "../type-CnPIyotQ.mjs";
|
|
2
|
+
import "../config-D2esSp2r.mjs";
|
|
3
|
+
import { i as __ΩEnvBuiltinProps, n as EnvBuiltinProps, r as EnvTypeDefinition, t as EnvBuiltin } from "../env-DMqCnKB2.mjs";
|
|
4
|
+
export { EnvBuiltin, EnvBuiltinProps, EnvTypeDefinition, __ΩEnvBuiltinProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"../source-file-CjFSCK1w.mjs";import"../persistence-Br-YMVb1.mjs";import"../utilities-4S--uN0L.mjs";import{n as e,t}from"../env-D4MK9BWK.mjs";import"../source-file-env-BDFTs5WJ.mjs";import"../load-BZTlThWg.mjs";import"../create-reflection-resource-UtOwX4Ml.mjs";export{t as EnvBuiltin,e as EnvTypeDefinition};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
require(`../source-file-CLCTB4C7.cjs`),require(`../persistence-KaP3-ka1.cjs`),require(`../utilities-CxyT2chk.cjs`);const e=require(`../env-0C9Vc_CF.cjs`);require(`../source-file-env-C6uYyxww.cjs`),require(`../load-nUlit5lR.cjs`),require(`../create-reflection-resource-CQHJrkQi.cjs`);const t=require(`../docs-Bhi9smBO.cjs`);require(`../components-BWruXLSx.cjs`),exports.EnvBuiltin=e.t,exports.EnvDocs=t.t,exports.EnvTypeDefinition=e.n;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
import '@alloy-js/typescript';
|
|
8
|
-
import '@deepkit/type';
|
|
1
|
+
import "../type-D6dRgWJT.cjs";
|
|
2
|
+
import "../config-Dli3ofDp.cjs";
|
|
3
|
+
import { t as EnvDocs } from "../docs-BoZkRBO4.cjs";
|
|
4
|
+
import { i as __ΩEnvBuiltinProps, n as EnvBuiltinProps, r as EnvTypeDefinition, t as EnvBuiltin } from "../env-BQWQzimx.cjs";
|
|
5
|
+
import "../index-Dpmi5zcN.cjs";
|
|
6
|
+
export { EnvBuiltin, EnvBuiltinProps, EnvDocs, EnvTypeDefinition, __ΩEnvBuiltinProps };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import "../type-CnPIyotQ.mjs";
|
|
2
|
+
import "../config-D2esSp2r.mjs";
|
|
3
|
+
import { t as EnvDocs } from "../docs-BwK6pC_c.mjs";
|
|
4
|
+
import { i as __ΩEnvBuiltinProps, n as EnvBuiltinProps, r as EnvTypeDefinition, t as EnvBuiltin } from "../env-DMqCnKB2.mjs";
|
|
5
|
+
import "../index-Wc1llEvP.mjs";
|
|
6
|
+
export { EnvBuiltin, EnvBuiltinProps, EnvDocs, EnvTypeDefinition, __ΩEnvBuiltinProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"../source-file-CjFSCK1w.mjs";import"../persistence-Br-YMVb1.mjs";import"../utilities-4S--uN0L.mjs";import{n as e,t}from"../env-D4MK9BWK.mjs";import"../source-file-env-BDFTs5WJ.mjs";import"../load-BZTlThWg.mjs";import"../create-reflection-resource-UtOwX4Ml.mjs";import{t as n}from"../docs-BDiEhcDa.mjs";import"../components-LyHNrcZE.mjs";export{t as EnvBuiltin,n as EnvDocs,e as EnvTypeDefinition};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{};
|