@powerlines/plugin-env 0.13.64 → 0.13.66
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/{chunk-DT2f8AgL.cjs → _virtual/rolldown_runtime.cjs} +1 -1
- package/dist/{chunk-CbqXBSoN.mjs → _virtual/rolldown_runtime.mjs} +1 -1
- package/dist/alloy/src/core/components/output.cjs +1 -0
- package/dist/alloy/src/core/components/output.mjs +1 -0
- package/dist/alloy/src/core/components/single-line-comment.cjs +1 -0
- package/dist/alloy/src/core/components/single-line-comment.mjs +1 -0
- package/dist/alloy/src/core/components/source-file.cjs +1 -0
- package/dist/alloy/src/core/components/source-file.d.cts +22 -0
- package/dist/alloy/src/core/components/source-file.d.mts +22 -0
- package/dist/alloy/src/core/components/source-file.mjs +1 -0
- package/dist/alloy/src/core/contexts/context.cjs +1 -0
- package/dist/alloy/src/core/contexts/context.mjs +1 -0
- package/dist/alloy/src/core/contexts/reflection.cjs +1 -0
- package/dist/alloy/src/core/contexts/reflection.mjs +1 -0
- package/dist/alloy/src/create-plugin.cjs +2 -0
- package/dist/alloy/src/create-plugin.mjs +2 -0
- package/dist/alloy/src/helpers/refkey.cjs +1 -0
- package/dist/alloy/src/helpers/refkey.mjs +1 -0
- package/dist/alloy/src/markdown/components/markdown-file.cjs +1 -0
- package/dist/alloy/src/markdown/components/markdown-file.mjs +1 -0
- package/dist/alloy/src/markdown/components/markdown-table.cjs +1 -0
- package/dist/alloy/src/markdown/components/markdown-table.mjs +1 -0
- package/dist/alloy/src/markdown/contexts/markdown-table.cjs +1 -0
- package/dist/alloy/src/markdown/contexts/markdown-table.mjs +1 -0
- package/dist/alloy/src/types/components.d.cts +19 -0
- package/dist/alloy/src/types/components.d.mts +23 -0
- package/dist/alloy/src/types/plugin.d.cts +15 -0
- package/dist/alloy/src/types/plugin.d.mts +15 -0
- package/dist/alloy/src/typescript/components/builtin-file.cjs +1 -0
- package/dist/alloy/src/typescript/components/builtin-file.d.cts +25 -0
- package/dist/alloy/src/typescript/components/builtin-file.d.mts +26 -0
- package/dist/alloy/src/typescript/components/builtin-file.mjs +1 -0
- package/dist/alloy/src/typescript/components/tsdoc-reflection.cjs +1 -0
- package/dist/alloy/src/typescript/components/tsdoc-reflection.mjs +1 -0
- package/dist/alloy/src/typescript/components/tsdoc.cjs +1 -0
- package/dist/alloy/src/typescript/components/tsdoc.d.cts +27 -0
- package/dist/alloy/src/typescript/components/tsdoc.d.mts +28 -0
- package/dist/alloy/src/typescript/components/tsdoc.mjs +1 -0
- package/dist/alloy/src/typescript/components/typescript-file.cjs +1 -0
- package/dist/alloy/src/typescript/components/typescript-file.d.cts +13 -0
- package/dist/alloy/src/typescript/components/typescript-file.d.mts +14 -0
- package/dist/alloy/src/typescript/components/typescript-file.mjs +1 -0
- package/dist/alloy/src/typescript/components/typescript-interface.cjs +1 -0
- package/dist/alloy/src/typescript/components/typescript-interface.d.cts +11 -0
- package/dist/alloy/src/typescript/components/typescript-interface.d.mts +12 -0
- package/dist/alloy/src/typescript/components/typescript-interface.mjs +1 -0
- package/dist/alloy/src/typescript/components/typescript-object.cjs +1 -0
- package/dist/alloy/src/typescript/components/typescript-object.mjs +1 -0
- package/dist/babel/index.cjs +1 -1
- package/dist/babel/index.d.cts +1 -16
- package/dist/babel/index.d.mts +1 -16
- package/dist/babel/index.mjs +1 -1
- package/dist/babel/plugin.cjs +5 -1
- package/dist/babel/plugin.d.cts +6 -16
- package/dist/babel/plugin.d.mts +8 -16
- package/dist/babel/plugin.mjs +5 -1
- package/dist/components/docs.cjs +1 -1
- package/dist/components/docs.d.cts +8 -1
- package/dist/components/docs.d.mts +8 -1
- package/dist/components/docs.mjs +1 -1
- package/dist/components/env.cjs +34 -1
- package/dist/components/env.d.cts +19 -3
- package/dist/components/env.d.mts +19 -3
- package/dist/components/env.mjs +31 -1
- package/dist/components/index.cjs +1 -1
- package/dist/components/index.d.cts +2 -5
- package/dist/components/index.d.mts +2 -5
- package/dist/components/index.mjs +1 -1
- package/dist/deepkit/schemas/reflection.cjs +1 -0
- package/dist/{plugin-BC31CJSb.d.mts → deepkit/schemas/reflection.d.cts} +1 -156
- package/dist/{plugin-Ds60xmj5.d.cts → deepkit/schemas/reflection.d.mts} +1 -156
- package/dist/deepkit/schemas/reflection.mjs +1 -0
- package/dist/deepkit/schemas/reflection2.cjs +1 -0
- package/dist/deepkit/schemas/reflection2.mjs +1 -0
- package/dist/deepkit/src/capnp.cjs +1 -0
- package/dist/deepkit/src/capnp.mjs +1 -0
- package/dist/deepkit/src/reflect-type.cjs +1 -0
- package/dist/deepkit/src/reflect-type.mjs +1 -0
- package/dist/deepkit/src/resolve-reflections.cjs +1 -0
- package/dist/deepkit/src/resolve-reflections.mjs +1 -0
- package/dist/deepkit/src/types.d.cts +10 -0
- package/dist/deepkit/src/types.d.mts +10 -0
- package/dist/deepkit/src/utilities.cjs +1 -0
- package/dist/deepkit/src/utilities.mjs +1 -0
- package/dist/deepkit/src/vendor/type.cjs +1 -0
- package/dist/deepkit/src/vendor/type.d.cts +7 -0
- package/dist/deepkit/src/vendor/type.d.mts +7 -0
- package/dist/deepkit/src/vendor/type.mjs +1 -0
- package/dist/helpers/create-reflection-resource.cjs +1 -1
- package/dist/helpers/create-reflection-resource.d.cts +14 -5
- package/dist/helpers/create-reflection-resource.d.mts +14 -5
- package/dist/helpers/create-reflection-resource.mjs +1 -1
- package/dist/helpers/index.cjs +1 -1
- package/dist/helpers/index.d.cts +6 -11
- package/dist/helpers/index.d.mts +6 -11
- package/dist/helpers/index.mjs +1 -1
- package/dist/helpers/load.cjs +1 -1
- package/dist/helpers/load.d.cts +34 -5
- package/dist/helpers/load.d.mts +35 -5
- package/dist/helpers/load.mjs +1 -1
- package/dist/helpers/persistence.cjs +1 -1
- package/dist/helpers/persistence.d.cts +83 -5
- package/dist/helpers/persistence.d.mts +83 -5
- package/dist/helpers/persistence.mjs +1 -1
- package/dist/helpers/reflect.cjs +1 -1
- package/dist/helpers/reflect.d.cts +45 -5
- package/dist/helpers/reflect.d.mts +45 -5
- package/dist/helpers/reflect.mjs +1 -1
- package/dist/helpers/source-file-env.cjs +1 -1
- package/dist/helpers/source-file-env.d.cts +7 -1
- package/dist/helpers/source-file-env.d.mts +7 -1
- package/dist/helpers/source-file-env.mjs +1 -1
- package/dist/helpers/template-helpers.cjs +1 -1
- package/dist/helpers/template-helpers.d.cts +14 -5
- package/dist/helpers/template-helpers.d.mts +14 -5
- package/dist/helpers/template-helpers.mjs +1 -1
- package/dist/index.cjs +3 -4
- package/dist/index.d.cts +20 -16
- package/dist/index.d.mts +25 -16
- package/dist/index.mjs +2 -3
- package/dist/plugin-babel/src/helpers/ast-utils.cjs +1 -0
- package/dist/plugin-babel/src/helpers/ast-utils.mjs +1 -0
- package/dist/plugin-babel/src/helpers/create-plugin.cjs +1 -0
- package/dist/plugin-babel/src/helpers/create-plugin.mjs +1 -0
- package/dist/plugin-babel/src/helpers/filters.cjs +1 -0
- package/dist/plugin-babel/src/helpers/filters.mjs +1 -0
- package/dist/plugin-babel/src/helpers/index.cjs +1 -0
- package/dist/plugin-babel/src/helpers/index.mjs +1 -0
- package/dist/plugin-babel/src/helpers/module-helpers.cjs +1 -0
- package/dist/plugin-babel/src/helpers/module-helpers.mjs +1 -0
- package/dist/plugin-babel/src/helpers/options.cjs +1 -0
- package/dist/plugin-babel/src/helpers/options.mjs +1 -0
- package/dist/plugin-babel/src/index.cjs +1 -0
- package/dist/plugin-babel/src/index.mjs +1 -0
- package/dist/plugin-babel/src/types/index.d.mts +1 -0
- package/dist/plugin-babel/src/types/plugin.d.cts +15 -0
- package/dist/plugin-babel/src/types/plugin.d.mts +15 -0
- package/dist/plugin-plugin/src/types/plugin.d.cts +21 -0
- package/dist/plugin-plugin/src/types/plugin.d.mts +24 -0
- package/dist/powerlines/src/internal/helpers/hooks.d.mts +5 -0
- package/dist/powerlines/src/lib/build/esbuild.cjs +14 -0
- package/dist/powerlines/src/lib/build/esbuild.mjs +14 -0
- package/dist/powerlines/src/lib/entry.cjs +1 -0
- package/dist/powerlines/src/lib/entry.mjs +1 -0
- package/dist/powerlines/src/lib/logger.cjs +1 -0
- package/dist/powerlines/src/lib/logger.mjs +1 -0
- package/dist/powerlines/src/lib/utilities/bundle.cjs +1 -0
- package/dist/powerlines/src/lib/utilities/bundle.mjs +1 -0
- package/dist/powerlines/src/lib/utilities/resolve.cjs +1 -0
- package/dist/powerlines/src/lib/utilities/resolve.mjs +1 -0
- package/dist/powerlines/src/plugin-utils/helpers.cjs +1 -0
- package/dist/powerlines/src/plugin-utils/helpers.mjs +1 -0
- package/dist/powerlines/src/plugin-utils/paths.cjs +1 -0
- package/dist/powerlines/src/plugin-utils/paths.mjs +1 -0
- package/dist/powerlines/src/types/api.d.mts +5 -0
- package/dist/powerlines/src/types/babel.d.cts +23 -0
- package/dist/powerlines/src/types/babel.d.mts +23 -0
- package/dist/powerlines/src/types/build.d.cts +139 -0
- package/dist/powerlines/src/types/build.d.mts +141 -0
- package/dist/powerlines/src/types/commands.d.cts +8 -0
- package/dist/powerlines/src/types/commands.d.mts +9 -0
- package/dist/powerlines/src/types/config.d.cts +356 -0
- package/dist/powerlines/src/types/config.d.mts +357 -0
- package/dist/powerlines/src/types/context.d.cts +358 -0
- package/dist/powerlines/src/types/context.d.mts +360 -0
- package/dist/powerlines/src/types/fs.d.cts +458 -0
- package/dist/powerlines/src/types/fs.d.mts +458 -0
- package/dist/powerlines/src/types/hooks.d.mts +2 -0
- package/dist/powerlines/src/types/index.d.mts +12 -0
- package/dist/powerlines/src/types/plugin.d.cts +232 -0
- package/dist/powerlines/src/types/plugin.d.mts +232 -0
- package/dist/powerlines/src/types/resolved.d.cts +82 -0
- package/dist/powerlines/src/types/resolved.d.mts +83 -0
- package/dist/powerlines/src/types/tsconfig.d.cts +69 -0
- package/dist/powerlines/src/types/tsconfig.d.mts +69 -0
- package/dist/powerlines/src/types/unplugin.d.mts +7 -0
- package/dist/types/index.cjs +0 -1
- package/dist/types/index.d.cts +2 -5
- package/dist/types/index.d.mts +2 -5
- package/dist/types/index.mjs +1 -1
- package/dist/types/plugin.cjs +0 -1
- package/dist/types/plugin.d.cts +140 -4
- package/dist/types/plugin.d.mts +141 -4
- package/dist/types/plugin.mjs +1 -1
- package/dist/types/runtime.cjs +0 -1
- package/dist/types/runtime.d.cts +793 -2
- package/dist/types/runtime.d.mts +793 -2
- package/dist/types/runtime.mjs +1 -1
- package/package.json +16 -16
- package/dist/babel-Bmzkjy1p.cjs +0 -0
- package/dist/babel-CE47sTzg.mjs +0 -1
- package/dist/components-BWruXLSx.cjs +0 -0
- package/dist/components-LyHNrcZE.mjs +0 -1
- package/dist/config-CYnsaVbs.d.mts +0 -1678
- package/dist/config-CxGVaXL4.d.cts +0 -1676
- package/dist/create-reflection-resource-CQHJrkQi.cjs +0 -1
- package/dist/create-reflection-resource-Cut236Kb.d.mts +0 -15
- package/dist/create-reflection-resource-DT6PRnl4.d.cts +0 -15
- package/dist/create-reflection-resource-UtOwX4Ml.mjs +0 -1
- package/dist/docs-BDiEhcDa.mjs +0 -1
- package/dist/docs-Bhi9smBO.cjs +0 -1
- package/dist/docs-BoZkRBO4.d.cts +0 -9
- package/dist/docs-BwK6pC_c.d.mts +0 -9
- package/dist/env-0C9Vc_CF.cjs +0 -34
- package/dist/env-BuKnYxut.d.mts +0 -112
- package/dist/env-CXBFOUFJ.d.cts +0 -112
- package/dist/env-D4MK9BWK.mjs +0 -31
- package/dist/helpers-DfMThUgD.mjs +0 -1
- package/dist/helpers-YGhXHw5G.cjs +0 -0
- package/dist/index-BBNpKJsx.d.mts +0 -41
- package/dist/index-BRBK9zG-.d.cts +0 -1
- package/dist/index-Bt4QNofW.d.mts +0 -1
- package/dist/index-CRo77wc3.d.mts +0 -1
- package/dist/index-CspKFJM1.d.cts +0 -1
- package/dist/index-Czm5wPhI.d.cts +0 -41
- package/dist/index-Dpmi5zcN.d.cts +0 -1
- package/dist/index-Wc1llEvP.d.mts +0 -1
- package/dist/load-BZTlThWg.mjs +0 -1
- package/dist/load-DLNNRhI9.d.cts +0 -35
- package/dist/load-DdYSs4J5.d.mts +0 -38
- package/dist/load-nUlit5lR.cjs +0 -1
- package/dist/persistence-BU921sV3.d.mts +0 -84
- package/dist/persistence-Br-YMVb1.mjs +0 -14
- package/dist/persistence-D0xYMSMI.d.cts +0 -84
- package/dist/persistence-KaP3-ka1.cjs +0 -14
- package/dist/plugin-CRYQ682C.cjs +0 -0
- package/dist/plugin-Cx61c9gw.mjs +0 -5
- package/dist/plugin-DrnPbdzR.mjs +0 -1
- package/dist/plugin-v-FJGggy.cjs +0 -5
- package/dist/reflect-DQjKw7jE.d.cts +0 -46
- package/dist/reflect-DzAiYF2u.d.mts +0 -46
- package/dist/runtime-BaZivi6m.cjs +0 -0
- package/dist/runtime-BxuH9yuK.d.cts +0 -794
- package/dist/runtime-DqCYc37d.mjs +0 -1
- package/dist/runtime-qQN60UNu.d.mts +0 -794
- package/dist/source-file-CLCTB4C7.cjs +0 -1
- package/dist/source-file-CjFSCK1w.mjs +0 -1
- package/dist/source-file-env-BDFTs5WJ.mjs +0 -1
- package/dist/source-file-env-C6uYyxww.cjs +0 -1
- package/dist/source-file-env-DonDJDV1.d.cts +0 -8
- package/dist/source-file-env-DzpWKluw.d.mts +0 -8
- package/dist/template-helpers-BNFy_Wbj.d.mts +0 -15
- package/dist/template-helpers-BSbamu0U.cjs +0 -1
- package/dist/template-helpers-C-NOO5ex.d.cts +0 -15
- package/dist/template-helpers-CLrM_TtO.mjs +0 -1
- package/dist/type-CnPIyotQ.d.mts +0 -3
- package/dist/type-D6dRgWJT.d.cts +0 -3
- package/dist/types-BCto_Rzj.mjs +0 -1
- package/dist/types-DS7T32tb.cjs +0 -0
- package/dist/utilities-4S--uN0L.mjs +0 -1
- package/dist/utilities-CxyT2chk.cjs +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require(`./chunk-DT2f8AgL.cjs`);let t=require(`@alloy-js/core/jsx-runtime`),n=require(`@alloy-js/core`),r=require(`defu`);r=e.n(r);let i=require(`@stryke/path/append`);const a=(0,n.createContext)();function o(){return(0,n.useContext)(a)}function s(){return o()?.ref?.value}function c(e){let{variant:r=`double-slash`,children:i}=e,a=r===`slash-star`?`/* `:r===`slash-star-star`?`/** `:r===`triple-slash`?`/// `:r===`markdown`?`<!-- `:`// `;return[a,(0,t.createIntrinsic)(`align`,{string:a,get children(){return[(0,t.createComponent)(n.Prose,{children:i}),r===`slash-star`||r===`slash-star-star`?` */ `:r===`markdown`?` -->`:``]}})]}function l(e){let[{children:a,meta:o,path:s,header:c,preset:l,filetype:u,reference:d}]=(0,n.splitProps)(e,[`children`,`meta`,`path`,`header`,`preset`,`filetype`,`reference`]),f=(0,n.useContext)(n.SourceDirectoryContext),p={path:(0,i.appendPath)(s,f.path),filetype:u,reference:d};f?.addContent(p);let m=(0,n.useFormatOptions)({printWidth:e.printWidth,tabWidth:e.tabWidth,useTabs:e.useTabs,insertFinalNewLine:e.insertFinalNewLine}),h=(0,n.getContext)();return h.meta=(0,r.default)({sourceFile:p,printOptions:m,output:{preset:l}},o??{}),(0,t.createComponent)(n.SourceFileContext.Provider,{value:p,get children(){return[(0,t.createComponent)(n.Show,{when:c!==void 0,get children(){return[c,(0,t.createIntrinsic)(`hbr`,{})]}}),a]}})}Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return l}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{createComponent as e,createIntrinsic as t}from"@alloy-js/core/jsx-runtime";import{Prose as n,Show as r,SourceDirectoryContext as i,SourceFileContext as a,createContext as o,getContext as s,splitProps as c,useContext as l,useFormatOptions as u}from"@alloy-js/core";import d from"defu";import{appendPath as f}from"@stryke/path/append";const p=o();function m(){return l(p)}function h(){return m()?.ref?.value}function g(r){let{variant:i=`double-slash`,children:a}=r,o=i===`slash-star`?`/* `:i===`slash-star-star`?`/** `:i===`triple-slash`?`/// `:i===`markdown`?`<!-- `:`// `;return[o,t(`align`,{string:o,get children(){return[e(n,{children:a}),i===`slash-star`||i===`slash-star-star`?` */ `:i===`markdown`?` -->`:``]}})]}function _(n){let[{children:o,meta:p,path:m,header:h,preset:g,filetype:_,reference:v}]=c(n,[`children`,`meta`,`path`,`header`,`preset`,`filetype`,`reference`]),y=l(i),b={path:f(m,y.path),filetype:_,reference:v};y?.addContent(b);let x=u({printWidth:n.printWidth,tabWidth:n.tabWidth,useTabs:n.useTabs,insertFinalNewLine:n.insertFinalNewLine}),S=s();return S.meta=d({sourceFile:b,printOptions:x,output:{preset:g}},p??{}),e(a.Provider,{value:b,get children(){return[e(r,{when:h!==void 0,get children(){return[h,t(`hbr`,{})]}}),o]}})}export{h as i,g as n,p as r,_ as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{isString as e}from"@stryke/type-checks/is-string";import{ENV_PREFIXES as t}from"@stryke/env/types";import{camelCase as n}from"@stryke/string-format/camel-case";function r(n){if(e(n)){let e=t.reduce((e,t)=>(e.startsWith(t)&&(e=e.slice(t.length)),e),n.toUpperCase());for(;e.startsWith(`_`);)e=e.slice(1);return e}return Object.keys(n).reduce((e,t)=>{let i=r(t);return i&&(e[i]=n[t]),e},{})}function i(e){return n(r(e))}export{r as n,i as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require(`./chunk-DT2f8AgL.cjs`);let t=require(`@stryke/type-checks/is-string`),n=require(`@stryke/env/types`),r=require(`@stryke/string-format/camel-case`);function i(e){if((0,t.isString)(e)){let t=n.ENV_PREFIXES.reduce((e,t)=>(e.startsWith(t)&&(e=e.slice(t.length)),e),e.toUpperCase());for(;t.startsWith(`_`);)t=t.slice(1);return t}return Object.keys(e).reduce((t,n)=>{let r=i(n);return r&&(t[r]=e[n]),t},{})}function a(e){return(0,r.camelCase)(i(e))}Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return a}});
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { DotenvParseOutput } from "@stryke/env/types";
|
|
2
|
-
|
|
3
|
-
//#region src/helpers/source-file-env.d.ts
|
|
4
|
-
type TReturned<TEnv> = TEnv extends string ? string : DotenvParseOutput;
|
|
5
|
-
declare function removeEnvPrefix<TEnv extends DotenvParseOutput | string>(env: TEnv): TReturned<TEnv>;
|
|
6
|
-
declare function formatEnvField(key: string): string;
|
|
7
|
-
//#endregion
|
|
8
|
-
export { removeEnvPrefix as n, formatEnvField as t };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { DotenvParseOutput } from "@stryke/env/types";
|
|
2
|
-
|
|
3
|
-
//#region src/helpers/source-file-env.d.ts
|
|
4
|
-
type TReturned<TEnv> = TEnv extends string ? string : DotenvParseOutput;
|
|
5
|
-
declare function removeEnvPrefix<TEnv extends DotenvParseOutput | string>(env: TEnv): TReturned<TEnv>;
|
|
6
|
-
declare function formatEnvField(key: string): string;
|
|
7
|
-
//#endregion
|
|
8
|
-
export { removeEnvPrefix as n, formatEnvField as t };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { t as type_d_exports } from "./type-CnPIyotQ.mjs";
|
|
2
|
-
import { a as EnvType, t as EnvPluginContext } from "./plugin-BC31CJSb.mjs";
|
|
3
|
-
|
|
4
|
-
//#region src/helpers/template-helpers.d.ts
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Creates the reflection data used when generating runtime template files.
|
|
8
|
-
*
|
|
9
|
-
* @param context - The context for the configuration plugin.
|
|
10
|
-
* @param name - The name of the configuration template.
|
|
11
|
-
* @returns The reflection for the specified configuration template.
|
|
12
|
-
*/
|
|
13
|
-
declare function createTemplateReflection(context: EnvPluginContext, name?: EnvType): Promise<type_d_exports.ReflectionClass<any>>;
|
|
14
|
-
//#endregion
|
|
15
|
-
export { createTemplateReflection as t };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require(`./chunk-DT2f8AgL.cjs`),t=require(`./persistence-KaP3-ka1.cjs`);let n=require(`@stryke/string-format/title-case`);async function r(e,r){let i=await t.o(e,r);return i.getProperties().forEach(e=>{e.getAlias().filter(Boolean).forEach(t=>{i.addProperty({name:t,optional:e.isOptional()?!0:void 0,readonly:e.isReadonly()?!0:void 0,description:e.getDescription(),visibility:e.getVisibility(),type:e.getType(),default:e.getDefaultValue(),tags:{hidden:e.isHidden(),ignore:e.isIgnored(),internal:e.isInternal(),alias:e.getAlias().filter(e=>e!==t).concat(e.name),title:e.getTitle()||(0,n.titleCase)(e.name),readonly:e.isReadonly(),permission:e.getPermission(),domain:e.getDomain()}})})}),i}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return r}});
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { t as type_d_exports } from "./type-D6dRgWJT.cjs";
|
|
2
|
-
import { a as EnvType, t as EnvPluginContext } from "./plugin-Ds60xmj5.cjs";
|
|
3
|
-
|
|
4
|
-
//#region src/helpers/template-helpers.d.ts
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Creates the reflection data used when generating runtime template files.
|
|
8
|
-
*
|
|
9
|
-
* @param context - The context for the configuration plugin.
|
|
10
|
-
* @param name - The name of the configuration template.
|
|
11
|
-
* @returns The reflection for the specified configuration template.
|
|
12
|
-
*/
|
|
13
|
-
declare function createTemplateReflection(context: EnvPluginContext, name?: EnvType): Promise<type_d_exports.ReflectionClass<any>>;
|
|
14
|
-
//#endregion
|
|
15
|
-
export { createTemplateReflection as t };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{o as e}from"./persistence-Br-YMVb1.mjs";import{titleCase as t}from"@stryke/string-format/title-case";async function n(n,r){let i=await e(n,r);return i.getProperties().forEach(e=>{e.getAlias().filter(Boolean).forEach(n=>{i.addProperty({name:n,optional:e.isOptional()?!0:void 0,readonly:e.isReadonly()?!0:void 0,description:e.getDescription(),visibility:e.getVisibility(),type:e.getType(),default:e.getDefaultValue(),tags:{hidden:e.isHidden(),ignore:e.isIgnored(),internal:e.isInternal(),alias:e.getAlias().filter(e=>e!==n).concat(e.name),title:e.getTitle()||t(e.name),readonly:e.isReadonly(),permission:e.getPermission(),domain:e.getDomain()}})})}),i}export{n as t};
|
package/dist/type-CnPIyotQ.d.mts
DELETED
package/dist/type-D6dRgWJT.d.cts
DELETED
package/dist/types-BCto_Rzj.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{};
|
package/dist/types-DS7T32tb.cjs
DELETED
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{S as e}from"./persistence-Br-YMVb1.mjs";import{isUndefined as t}from"@stryke/type-checks/is-undefined";import{isString as n}from"@stryke/type-checks/is-string";import{getUniqueBy as r}from"@stryke/helpers/get-unique";import{StormJSON as i}from"@stryke/json/storm-json";import{isNull as a}from"@stryke/type-checks/is-null";function o(e,t){return c(e.type,t??e.getDefaultValue())}function s(e){return`"${String(e).replaceAll(`"`,`\\"`)}"`}function c(r,o){return t(o)?`undefined`:a(o)?`null`:r.kind===e.ReflectionKind.boolean?String(o).trim().toLowerCase()===`true`?`true`:`false`:r.kind===e.ReflectionKind.string||r.kind===e.ReflectionKind.literal&&n(r.literal)?s(o):r.kind===e.ReflectionKind.enum?l(r).kind===e.ReflectionKind.string?s(o):`${String(o)}`:r.kind===e.ReflectionKind.union?d(r)?s(o):`${String(o)}`:r.kind===e.ReflectionKind.array?s(i.stringify(o)):r.kind===e.ReflectionKind.object||r.kind===e.ReflectionKind.objectLiteral?i.stringify(o):r.kind===e.ReflectionKind.property||r.kind===e.ReflectionKind.parameter?c(r.type,o):String(o)}function l(t){if(t.kind!==e.ReflectionKind.enum)throw Error(`Expected a TypeEnum, but received ${t.kind}.`);let i=r(t.values.filter(e=>e!=null),t=>n(t)?{kind:e.ReflectionKind.string}:{kind:e.ReflectionKind.number});if(i.length===0)throw Error(`No valid enum members could be found.`);return i[0]&&n(i[0])?{kind:e.ReflectionKind.string}:{kind:e.ReflectionKind.number}}function u(t){if(t.kind===e.ReflectionKind.union&&t.types.length>0)return r(t.types,e=>e.kind);throw Error(`Expected a TypeUnion, but received ${t.kind}.`)}function d(t){return u(t).some(t=>t.kind===e.ReflectionKind.string||t.kind===e.ReflectionKind.literal&&n(t.literal))}export{o as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require(`./chunk-DT2f8AgL.cjs`),t=require(`./persistence-KaP3-ka1.cjs`);let n=require(`@stryke/type-checks/is-undefined`),r=require(`@stryke/type-checks/is-string`),i=require(`@stryke/helpers/get-unique`),a=require(`@stryke/json/storm-json`),o=require(`@stryke/type-checks/is-null`);function s(e,t){return l(e.type,t??e.getDefaultValue())}function c(e){return`"${String(e).replaceAll(`"`,`\\"`)}"`}function l(e,i){return(0,n.isUndefined)(i)?`undefined`:(0,o.isNull)(i)?`null`:e.kind===t.S.ReflectionKind.boolean?String(i).trim().toLowerCase()===`true`?`true`:`false`:e.kind===t.S.ReflectionKind.string||e.kind===t.S.ReflectionKind.literal&&(0,r.isString)(e.literal)?c(i):e.kind===t.S.ReflectionKind.enum?u(e).kind===t.S.ReflectionKind.string?c(i):`${String(i)}`:e.kind===t.S.ReflectionKind.union?f(e)?c(i):`${String(i)}`:e.kind===t.S.ReflectionKind.array?c(a.StormJSON.stringify(i)):e.kind===t.S.ReflectionKind.object||e.kind===t.S.ReflectionKind.objectLiteral?a.StormJSON.stringify(i):e.kind===t.S.ReflectionKind.property||e.kind===t.S.ReflectionKind.parameter?l(e.type,i):String(i)}function u(e){if(e.kind!==t.S.ReflectionKind.enum)throw Error(`Expected a TypeEnum, but received ${e.kind}.`);let n=(0,i.getUniqueBy)(e.values.filter(e=>e!=null),e=>(0,r.isString)(e)?{kind:t.S.ReflectionKind.string}:{kind:t.S.ReflectionKind.number});if(n.length===0)throw Error(`No valid enum members could be found.`);return n[0]&&(0,r.isString)(n[0])?{kind:t.S.ReflectionKind.string}:{kind:t.S.ReflectionKind.number}}function d(e){if(e.kind===t.S.ReflectionKind.union&&e.types.length>0)return(0,i.getUniqueBy)(e.types,e=>e.kind);throw Error(`Expected a TypeUnion, but received ${e.kind}.`)}function f(e){return d(e).some(e=>e.kind===t.S.ReflectionKind.string||e.kind===t.S.ReflectionKind.literal&&(0,r.isString)(e.literal))}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return s}});
|