@powerlines/plugin-env 0.13.105 → 0.13.106
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/alloy/src/create-plugin.cjs +1 -1
- package/dist/alloy/src/create-plugin.mjs +1 -1
- package/dist/alloy/src/markdown/components/markdown-file.cjs +1 -1
- package/dist/alloy/src/markdown/components/markdown-file.mjs +1 -1
- package/dist/alloy/src/typescript/components/typescript-file.cjs +1 -1
- package/dist/alloy/src/typescript/components/typescript-file.d.cts +1 -0
- package/dist/alloy/src/typescript/components/typescript-file.d.mts +1 -0
- package/dist/alloy/src/typescript/components/typescript-file.mjs +1 -1
- package/dist/alloy/src/typescript/components/typescript-interface.cjs +1 -1
- package/dist/alloy/src/typescript/components/typescript-interface.mjs +1 -1
- package/dist/alloy/src/typescript/components/typescript-object.cjs +1 -1
- package/dist/alloy/src/typescript/components/typescript-object.mjs +1 -1
- package/package.json +7 -7
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=require(`../../_virtual/rolldown_runtime.cjs`),t=require(`../../powerlines/src/plugin-utils/helpers.cjs`),n=require(`./core/components/output.cjs`);let r=require(`@stryke/type-checks/is-set-string`),i=require(`@storm-software/config-tools/types`),a=require(`@stryke/path/replace`),o=require(`@stryke/path/is-parent-path`),s=require(`@alloy-js/core`),c=require(`@alloy-js/core/jsx-runtime`),l=require(`prettier/doc.js`);function u(e){return r=>{let i=e(r);return{...i,async prepare(){let e=this;if(t.isPluginHook(i.prepare)&&i.enforce!==`post`&&(t.isPluginHookFunction(i.prepare)||t.isPluginHookObject(i.prepare)&&i.prepare.order!==`post`)&&await Promise.resolve(t.getHookHandler(i.prepare).call(this)),t.isPluginHook(i.render)){let t=(0,s.renderTree)((0,c.createComponent)(n.Output,{context:e,get basePath(){return e.workspaceConfig.workspaceRoot},get children(){return i.render.call(e)}}));await d(this,t,r?.alloy)}t.isPluginHook(i.prepare)&&(i.enforce===`post`||t.isPluginHookObject(i.prepare)&&i.prepare.order===`post`)&&await Promise.resolve(t.getHookHandler(i.prepare).call(this))}}}}async function d(e,t,n={}){await(0,s.flushJobsAsync)();let c,l=async(t,r)=>{if(!Array.isArray(r))return;let u=async e=>{for(let t of r)await l(e,t)},d=(0,s.getContextForRenderNode)(r);if(!d)return u(t);if(d.meta?.directory){let e={kind:`directory`,path:d.meta.directory.path,contents:[]};t?t.contents.push(e):c=e,await u(e)}else if(d.meta?.sourceFile){if(!t)throw Error(`Source file doesn't have parent directory. Make sure you have used the Output component.`);let s;if(d.meta?.builtin){if(!d.meta.builtin.id)throw Error("Built-in runtime module doesn't have an ID. Make sure you have used the `<BuiltinFile />` component.");e.log(i.LogLevelLabel.TRACE,`Rendering built-in runtime module with ID: ${d.meta.builtin.id}`),s={kind:`builtin`,id:d.meta.builtin.id,path:(0,a.replacePath)(d.meta.sourceFile.path,e.builtinsPath),filetype:d.meta.sourceFile.filetype,preset:d.meta.output?.mode,contents:await f(e,r,n)}}else d.meta?.entry||(0,o.isParentPath)(e.entryPath,d.meta.sourceFile.path)?(e.log(i.LogLevelLabel.TRACE,`Rendering entry module at path: ${d.meta.sourceFile.path}`),s={kind:`entry`,typeDefinition:d.meta.entry?.typeDefinition,path:d.meta.sourceFile.path,filetype:d.meta.sourceFile.filetype,preset:d.meta.output?.mode,contents:await f(e,r,n)}):(e.log(i.LogLevelLabel.TRACE,`Rendering source file at path: ${d.meta.sourceFile.path}`),s={kind:`file`,path:d.meta.sourceFile.path,filetype:d.meta.sourceFile.filetype,preset:d.meta.output?.mode,contents:await f(e,r,n)});t.contents.push(s)}else if(d.meta?.copyFile){if(!t)throw Error(`Copy file doesn't have parent directory. Make sure you have used the Output component.`);if(e.log(i.LogLevelLabel.TRACE,`Processing copy file operation from "${d.meta.copyFile.sourcePath}" to "${d.meta.copyFile.path}"`),!d.meta.copyFile.sourcePath)throw Error("Copy file doesn't have a source path. Make sure you have provided a `sourcePath` property to the `meta.copyFile` context.");if(!d.meta.copyFile.path)throw Error("Copy file doesn't have a destination path. Make sure you have provided a `path` property to the `meta.copyFile` context.");t.contents.push({kind:`file`,path:d.meta.copyFile.path,sourcePath:d.meta.copyFile.sourcePath,preset:d.meta.output?.preset})}else await u(t)};await l(void 0,t);let u=async(e,t)=>{for(let n of t.contents)if(n.kind===`directory`)await u(e,n);else if(n.kind===`builtin`)await e.emitBuiltin(n.contents,n.id,n.path);else if(n.kind===`entry`)await e.emitEntry(n.contents,n.path);else if(n.kind===`file`)if(`sourcePath`in n&&n.sourcePath){if(!e.fs.existsSync(n.sourcePath))throw Error(`Source file "${n.sourcePath}" for copy operation does not exist.`);let t=await e.fs.read(n.sourcePath);if(!(0,r.isSetString)(t))throw Error(`Source file "${n.sourcePath}" for copy operation is empty.`);await e.fs.write(n.path,t)}else if(`contents`in n&&(0,r.isSetString)(n.contents))await e.fs.write(n.path,n.contents);else throw Error(`Unexpected output extracted from the render tree: \n\n${JSON.stringify(n,null,2)}`)};await u(e,c)}async function f(e,t,n={}){n.printWidth??=160,n.tabWidth??=2,n.useTabs??=!1,n.insertFinalNewLine??=!0,await(0,s.flushJobsAsync)();let r=l.printer.printDocToString(p(t),n).formatted;return n.insertFinalNewLine&&!r.endsWith(`
|
|
1
|
+
const e=require(`../../_virtual/rolldown_runtime.cjs`),t=require(`../../powerlines/src/plugin-utils/helpers.cjs`),n=require(`./core/components/output.cjs`);let r=require(`@stryke/type-checks/is-set-string`),i=require(`@storm-software/config-tools/types`),a=require(`@stryke/path/replace`),o=require(`@stryke/path/is-parent-path`),s=require(`@alloy-js/core`),c=require(`@alloy-js/core/jsx-runtime`),l=require(`prettier/doc.js`);function u(e){return r=>{let i=e(r);return{...i,async prepare(){let e=this;if(t.isPluginHook(i.prepare)&&i.enforce!==`post`&&(t.isPluginHookFunction(i.prepare)||t.isPluginHookObject(i.prepare)&&i.prepare.order!==`post`)&&await Promise.resolve(t.getHookHandler(i.prepare).call(this)),t.isPluginHook(i.render)){let t=(0,s.renderTree)((0,c.createComponent)(n.Output,{context:e,get basePath(){return e.workspaceConfig.workspaceRoot},get children(){return i.render.call(e)}}));await d(this,t,r?.alloy)}t.isPluginHook(i.prepare)&&(i.enforce===`post`||t.isPluginHookObject(i.prepare)&&i.prepare.order===`post`)&&await Promise.resolve(t.getHookHandler(i.prepare).call(this))}}}}async function d(e,t,n={}){await(0,s.flushJobsAsync)();let c,l=async(t,r)=>{if(!Array.isArray(r))return;let u=async e=>{for(let t of r)await l(e,t)},d=(0,s.getContextForRenderNode)(r);if(!d)return u(t);if(d.meta?.directory){let e={kind:`directory`,path:d.meta.directory.path,contents:[]};t?t.contents.push(e):c=e,await u(e)}else if(d.meta?.sourceFile){if(!t)throw Error(`Source file doesn't have parent directory. Make sure you have used the Output component.`);let s;if(d.meta?.builtin){if(!d.meta.builtin.id)throw Error("Built-in runtime module doesn't have an ID. Make sure you have used the `<BuiltinFile />` component.");e.log(i.LogLevelLabel.TRACE,`Rendering built-in runtime module with ID: ${d.meta.builtin.id}`),s={kind:`builtin`,id:d.meta.builtin.id,path:(0,a.replacePath)(d.meta.sourceFile.path,e.builtinsPath),filetype:d.meta.sourceFile.filetype,preset:d.meta.output?.mode,contents:await f(e,r,n)}}else d.meta?.entry||(0,o.isParentPath)(e.entryPath,d.meta.sourceFile.path)?(e.log(i.LogLevelLabel.TRACE,`Rendering entry module at path: ${d.meta.sourceFile.path}`),s={kind:`entry`,typeDefinition:d.meta.entry?.typeDefinition,path:d.meta.sourceFile.path,filetype:d.meta.sourceFile.filetype,preset:d.meta.output?.mode,contents:await f(e,r,n)}):(e.log(i.LogLevelLabel.TRACE,`Rendering source file at path: ${d.meta.sourceFile.path}`),s={kind:`file`,path:d.meta.sourceFile.path,filetype:d.meta.sourceFile.filetype,preset:d.meta.output?.mode,contents:await f(e,r,n)});t.contents.push(s)}else if(d.meta?.copyFile){if(!t)throw Error(`Copy file doesn't have parent directory. Make sure you have used the Output component.`);if(e.log(i.LogLevelLabel.TRACE,`Processing copy file operation from "${d.meta.copyFile.sourcePath}" to "${d.meta.copyFile.path}"`),!d.meta.copyFile.sourcePath)throw Error("Copy file doesn't have a source path. Make sure you have provided a `sourcePath` property to the `meta.copyFile` context.");if(!d.meta.copyFile.path)throw Error("Copy file doesn't have a destination path. Make sure you have provided a `path` property to the `meta.copyFile` context.");t.contents.push({kind:`file`,path:d.meta.copyFile.path,sourcePath:d.meta.copyFile.sourcePath,preset:d.meta.output?.preset})}else await u(t)};await l(void 0,t);let u=async(e,t)=>{for(let n of t.contents)if(n.kind===`directory`)await u(e,n);else if(n.kind===`builtin`)await e.emitBuiltin(n.contents,n.id,n.path);else if(n.kind===`entry`)await e.emitEntry(n.contents,n.path,n.typeDefinition);else if(n.kind===`file`)if(`sourcePath`in n&&n.sourcePath){if(!e.fs.existsSync(n.sourcePath))throw Error(`Source file "${n.sourcePath}" for copy operation does not exist.`);let t=await e.fs.read(n.sourcePath);if(!(0,r.isSetString)(t))throw Error(`Source file "${n.sourcePath}" for copy operation is empty.`);await e.fs.write(n.path,t)}else if(`contents`in n&&(0,r.isSetString)(n.contents))await e.fs.write(n.path,n.contents);else throw Error(`Unexpected output extracted from the render tree: \n\n${JSON.stringify(n,null,2)}`)};await u(e,c)}async function f(e,t,n={}){n.printWidth??=160,n.tabWidth??=2,n.useTabs??=!1,n.insertFinalNewLine??=!0,await(0,s.flushJobsAsync)();let r=l.printer.printDocToString(p(t),n).formatted;return n.insertFinalNewLine&&!r.endsWith(`
|
|
2
2
|
`)?`${r}\n`:r}function p(e){let t=[];for(let n of e)if(typeof n==`string`){let e=n.split(/\r?\n/).flatMap((e,t,n)=>(n.length-1,[e]));t.push(e)}else (0,s.isPrintHook)(n)?t.push(n.print(n.subtree,p)):t.push(p(n));return t}exports.createAlloyPlugin=u;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{getHookHandler as e,isPluginHook as t,isPluginHookFunction as n,isPluginHookObject as r}from"../../powerlines/src/plugin-utils/helpers.mjs";import{Output as i}from"./core/components/output.mjs";import{isSetString as a}from"@stryke/type-checks/is-set-string";import{LogLevelLabel as o}from"@storm-software/config-tools/types";import{replacePath as s}from"@stryke/path/replace";import{isParentPath as c}from"@stryke/path/is-parent-path";import{flushJobsAsync as l,getContextForRenderNode as u,isPrintHook as d,renderTree as f}from"@alloy-js/core";import{createComponent as p}from"@alloy-js/core/jsx-runtime";import{printer as m}from"prettier/doc.js";function h(a){return o=>{let s=a(o);return{...s,async prepare(){let a=this;if(t(s.prepare)&&s.enforce!==`post`&&(n(s.prepare)||r(s.prepare)&&s.prepare.order!==`post`)&&await Promise.resolve(e(s.prepare).call(this)),t(s.render)){let e=f(p(i,{context:a,get basePath(){return a.workspaceConfig.workspaceRoot},get children(){return s.render.call(a)}}));await g(this,e,o?.alloy)}t(s.prepare)&&(s.enforce===`post`||r(s.prepare)&&s.prepare.order===`post`)&&await Promise.resolve(e(s.prepare).call(this))}}}}async function g(e,t,n={}){await l();let r,i=async(t,a)=>{if(!Array.isArray(a))return;let l=async e=>{for(let t of a)await i(e,t)},d=u(a);if(!d)return l(t);if(d.meta?.directory){let e={kind:`directory`,path:d.meta.directory.path,contents:[]};t?t.contents.push(e):r=e,await l(e)}else if(d.meta?.sourceFile){if(!t)throw Error(`Source file doesn't have parent directory. Make sure you have used the Output component.`);let r;if(d.meta?.builtin){if(!d.meta.builtin.id)throw Error("Built-in runtime module doesn't have an ID. Make sure you have used the `<BuiltinFile />` component.");e.log(o.TRACE,`Rendering built-in runtime module with ID: ${d.meta.builtin.id}`),r={kind:`builtin`,id:d.meta.builtin.id,path:s(d.meta.sourceFile.path,e.builtinsPath),filetype:d.meta.sourceFile.filetype,preset:d.meta.output?.mode,contents:await _(e,a,n)}}else d.meta?.entry||c(e.entryPath,d.meta.sourceFile.path)?(e.log(o.TRACE,`Rendering entry module at path: ${d.meta.sourceFile.path}`),r={kind:`entry`,typeDefinition:d.meta.entry?.typeDefinition,path:d.meta.sourceFile.path,filetype:d.meta.sourceFile.filetype,preset:d.meta.output?.mode,contents:await _(e,a,n)}):(e.log(o.TRACE,`Rendering source file at path: ${d.meta.sourceFile.path}`),r={kind:`file`,path:d.meta.sourceFile.path,filetype:d.meta.sourceFile.filetype,preset:d.meta.output?.mode,contents:await _(e,a,n)});t.contents.push(r)}else if(d.meta?.copyFile){if(!t)throw Error(`Copy file doesn't have parent directory. Make sure you have used the Output component.`);if(e.log(o.TRACE,`Processing copy file operation from "${d.meta.copyFile.sourcePath}" to "${d.meta.copyFile.path}"`),!d.meta.copyFile.sourcePath)throw Error("Copy file doesn't have a source path. Make sure you have provided a `sourcePath` property to the `meta.copyFile` context.");if(!d.meta.copyFile.path)throw Error("Copy file doesn't have a destination path. Make sure you have provided a `path` property to the `meta.copyFile` context.");t.contents.push({kind:`file`,path:d.meta.copyFile.path,sourcePath:d.meta.copyFile.sourcePath,preset:d.meta.output?.preset})}else await l(t)};await i(void 0,t);let d=async(e,t)=>{for(let n of t.contents)if(n.kind===`directory`)await d(e,n);else if(n.kind===`builtin`)await e.emitBuiltin(n.contents,n.id,n.path);else if(n.kind===`entry`)await e.emitEntry(n.contents,n.path);else if(n.kind===`file`)if(`sourcePath`in n&&n.sourcePath){if(!e.fs.existsSync(n.sourcePath))throw Error(`Source file "${n.sourcePath}" for copy operation does not exist.`);let t=await e.fs.read(n.sourcePath);if(!a(t))throw Error(`Source file "${n.sourcePath}" for copy operation is empty.`);await e.fs.write(n.path,t)}else if(`contents`in n&&a(n.contents))await e.fs.write(n.path,n.contents);else throw Error(`Unexpected output extracted from the render tree: \n\n${JSON.stringify(n,null,2)}`)};await d(e,r)}async function _(e,t,n={}){n.printWidth??=160,n.tabWidth??=2,n.useTabs??=!1,n.insertFinalNewLine??=!0,await l();let r=m.printDocToString(v(t),n).formatted;return n.insertFinalNewLine&&!r.endsWith(`
|
|
1
|
+
import{getHookHandler as e,isPluginHook as t,isPluginHookFunction as n,isPluginHookObject as r}from"../../powerlines/src/plugin-utils/helpers.mjs";import{Output as i}from"./core/components/output.mjs";import{isSetString as a}from"@stryke/type-checks/is-set-string";import{LogLevelLabel as o}from"@storm-software/config-tools/types";import{replacePath as s}from"@stryke/path/replace";import{isParentPath as c}from"@stryke/path/is-parent-path";import{flushJobsAsync as l,getContextForRenderNode as u,isPrintHook as d,renderTree as f}from"@alloy-js/core";import{createComponent as p}from"@alloy-js/core/jsx-runtime";import{printer as m}from"prettier/doc.js";function h(a){return o=>{let s=a(o);return{...s,async prepare(){let a=this;if(t(s.prepare)&&s.enforce!==`post`&&(n(s.prepare)||r(s.prepare)&&s.prepare.order!==`post`)&&await Promise.resolve(e(s.prepare).call(this)),t(s.render)){let e=f(p(i,{context:a,get basePath(){return a.workspaceConfig.workspaceRoot},get children(){return s.render.call(a)}}));await g(this,e,o?.alloy)}t(s.prepare)&&(s.enforce===`post`||r(s.prepare)&&s.prepare.order===`post`)&&await Promise.resolve(e(s.prepare).call(this))}}}}async function g(e,t,n={}){await l();let r,i=async(t,a)=>{if(!Array.isArray(a))return;let l=async e=>{for(let t of a)await i(e,t)},d=u(a);if(!d)return l(t);if(d.meta?.directory){let e={kind:`directory`,path:d.meta.directory.path,contents:[]};t?t.contents.push(e):r=e,await l(e)}else if(d.meta?.sourceFile){if(!t)throw Error(`Source file doesn't have parent directory. Make sure you have used the Output component.`);let r;if(d.meta?.builtin){if(!d.meta.builtin.id)throw Error("Built-in runtime module doesn't have an ID. Make sure you have used the `<BuiltinFile />` component.");e.log(o.TRACE,`Rendering built-in runtime module with ID: ${d.meta.builtin.id}`),r={kind:`builtin`,id:d.meta.builtin.id,path:s(d.meta.sourceFile.path,e.builtinsPath),filetype:d.meta.sourceFile.filetype,preset:d.meta.output?.mode,contents:await _(e,a,n)}}else d.meta?.entry||c(e.entryPath,d.meta.sourceFile.path)?(e.log(o.TRACE,`Rendering entry module at path: ${d.meta.sourceFile.path}`),r={kind:`entry`,typeDefinition:d.meta.entry?.typeDefinition,path:d.meta.sourceFile.path,filetype:d.meta.sourceFile.filetype,preset:d.meta.output?.mode,contents:await _(e,a,n)}):(e.log(o.TRACE,`Rendering source file at path: ${d.meta.sourceFile.path}`),r={kind:`file`,path:d.meta.sourceFile.path,filetype:d.meta.sourceFile.filetype,preset:d.meta.output?.mode,contents:await _(e,a,n)});t.contents.push(r)}else if(d.meta?.copyFile){if(!t)throw Error(`Copy file doesn't have parent directory. Make sure you have used the Output component.`);if(e.log(o.TRACE,`Processing copy file operation from "${d.meta.copyFile.sourcePath}" to "${d.meta.copyFile.path}"`),!d.meta.copyFile.sourcePath)throw Error("Copy file doesn't have a source path. Make sure you have provided a `sourcePath` property to the `meta.copyFile` context.");if(!d.meta.copyFile.path)throw Error("Copy file doesn't have a destination path. Make sure you have provided a `path` property to the `meta.copyFile` context.");t.contents.push({kind:`file`,path:d.meta.copyFile.path,sourcePath:d.meta.copyFile.sourcePath,preset:d.meta.output?.preset})}else await l(t)};await i(void 0,t);let d=async(e,t)=>{for(let n of t.contents)if(n.kind===`directory`)await d(e,n);else if(n.kind===`builtin`)await e.emitBuiltin(n.contents,n.id,n.path);else if(n.kind===`entry`)await e.emitEntry(n.contents,n.path,n.typeDefinition);else if(n.kind===`file`)if(`sourcePath`in n&&n.sourcePath){if(!e.fs.existsSync(n.sourcePath))throw Error(`Source file "${n.sourcePath}" for copy operation does not exist.`);let t=await e.fs.read(n.sourcePath);if(!a(t))throw Error(`Source file "${n.sourcePath}" for copy operation is empty.`);await e.fs.write(n.path,t)}else if(`contents`in n&&a(n.contents))await e.fs.write(n.path,n.contents);else throw Error(`Unexpected output extracted from the render tree: \n\n${JSON.stringify(n,null,2)}`)};await d(e,r)}async function _(e,t,n={}){n.printWidth??=160,n.tabWidth??=2,n.useTabs??=!1,n.insertFinalNewLine??=!0,await l();let r=m.printDocToString(v(t),n).formatted;return n.insertFinalNewLine&&!r.endsWith(`
|
|
2
2
|
`)?`${r}\n`:r}function v(e){let t=[];for(let n of e)if(typeof n==`string`){let e=n.split(/\r?\n/).flatMap((e,t,n)=>(n.length-1,[e]));t.push(e)}else d(n)?t.push(n.print(n.subtree,v)):t.push(v(n));return t}export{h as createAlloyPlugin};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`../../../../_virtual/rolldown_runtime.cjs`),t=require(`../../core/components/single-line-comment.cjs`),
|
|
1
|
+
const e=require(`../../../../_virtual/rolldown_runtime.cjs`),t=require(`../../core/contexts/context.cjs`),n=require(`../../core/components/single-line-comment.cjs`),r=require(`../../core/components/source-file.cjs`);let i=require(`@stryke/string-format/title-case`),a=require(`@alloy-js/core`),o=require(`@alloy-js/core/jsx-runtime`),s=require(`@alloy-js/markdown`);function c(e){let[{children:t,preset:n},i]=(0,a.splitProps)(e,[`children`,`preset`]),c=(0,a.getContext)();return c.meta??={},c.meta.output={preset:n},(0,o.createComponent)(r.SourceFile,(0,o.mergeProps)({get header(){return(0,o.createComponent)(l,{})}},i,{filetype:`md`,reference:s.Link,get children(){return(0,o.createComponent)(a.Show,{get when(){return!!t},children:t})}}))}function l(e){let[{children:r,disableEslint:s=!0,disableBiome:c=!0,disablePrettier:l=!1}]=(0,a.splitProps)(e,[`children`,`disableEslint`,`disableBiome`,`disablePrettier`]),u=t.usePowerlines();return[(0,o.createComponent)(a.Show,{get when(){return!!s},get children(){return[(0,o.createComponent)(n.SingleLineComment,{variant:`markdown`,children:`eslint-disable`}),(0,o.createIntrinsic)(`hbr`,{})]}}),(0,o.createComponent)(a.Show,{get when(){return!!l},get children(){return[(0,o.createComponent)(n.SingleLineComment,{variant:`markdown`,children:`prettier-ignore`}),(0,o.createIntrinsic)(`hbr`,{})]}}),(0,o.createComponent)(a.Show,{get when(){return!!c},get children(){return[(0,o.createComponent)(n.SingleLineComment,{variant:`markdown`,children:`biome-ignore lint: disable`}),(0,o.createIntrinsic)(`hbr`,{})]}}),(0,o.createComponent)(a.Show,{get when(){return!!s||!!l||!!c},get children(){return(0,o.createIntrinsic)(`hbr`,{})}}),(0,o.createComponent)(a.Show,{get when(){return!!r},get children(){return[r,(0,o.createIntrinsic)(`hbr`,{})]}}),(0,o.createComponent)(n.SingleLineComment,{variant:`markdown`,get children(){return a.code`Generated by ${(0,i.titleCase)(u?.config.framework)||`Powerlines`}`}}),(0,o.createIntrinsic)(`hbr`,{}),(0,o.createComponent)(n.SingleLineComment,{variant:`markdown`,children:a.code`NOTE: Do not edit this file manually - it will be overwritten automatically by the "prepare" command`}),(0,o.createIntrinsic)(`hbr`,{})]}exports.MarkdownFile=c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{usePowerlines as e}from"../../core/contexts/context.mjs";import{SingleLineComment as t}from"../../core/components/single-line-comment.mjs";import{SourceFile as n}from"../../core/components/source-file.mjs";import{titleCase as r}from"@stryke/string-format/title-case";import{Show as i,code as a,getContext as o,splitProps as s}from"@alloy-js/core";import{createComponent as c,createIntrinsic as l,mergeProps as u}from"@alloy-js/core/jsx-runtime";import{Link as d}from"@alloy-js/markdown";function f(e){let[{children:t,preset:r},a]=s(e,[`children`,`preset`]),l=o();return l.meta??={},l.meta.output={preset:r},c(n,u({get header(){return c(p,{})}},a,{filetype:`md`,reference:d,get children(){return c(i,{get when(){return!!t},children:t})}}))}function p(n){let[{children:o,disableEslint:u=!0,disableBiome:d=!0,disablePrettier:f=!1}]=s(n,[`children`,`disableEslint`,`disableBiome`,`disablePrettier`]),p=e();return[c(i,{get when(){return!!u},get children(){return[c(t,{variant:`markdown`,children:`eslint-disable`}),l(`hbr`,{})]}}),c(i,{get when(){return!!f},get children(){return[c(t,{variant:`markdown`,children:`prettier-ignore`}),l(`hbr`,{})]}}),c(i,{get when(){return!!d},get children(){return[c(t,{variant:`markdown`,children:`biome-ignore lint: disable`}),l(`hbr`,{})]}}),c(i,{get when(){return!!u||!!f||!!d},get children(){return l(`hbr`,{})}}),c(i,{get when(){return!!o},get children(){return[o,l(`hbr`,{})]}}),c(t,{variant:`markdown`,get children(){return a`Generated by ${r(p?.config.framework)||`Powerlines`}`}}),l(`hbr`,{}),c(t,{variant:`markdown`,children:a`NOTE: Do not edit this file manually - it will be overwritten automatically by the "prepare" command`}),l(`hbr`,{})]}export{f as MarkdownFile};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`../../../../_virtual/rolldown_runtime.cjs`),t=require(`../../core/components/single-line-comment.cjs`),
|
|
1
|
+
const e=require(`../../../../_virtual/rolldown_runtime.cjs`),t=require(`../../core/contexts/context.cjs`),n=require(`../../core/components/single-line-comment.cjs`),r=require(`../../core/components/source-file.cjs`);let i=require(`@stryke/string-format/title-case`),a=require(`@stryke/type-checks/is-string`),o=require(`@stryke/path/append`),s=require(`@alloy-js/core`),c=require(`@alloy-js/core/jsx-runtime`),l=require(`@alloy-js/typescript`),u=require(`@stryke/type-checks/is-boolean`);function d(e){let[{children:t,path:n,imports:i,tsx:a,header:d,hashbang:m},h]=(0,s.splitProps)(e,[`children`,`path`,`imports`,`tsx`,`header`,`hashbang`]),g=(0,s.useContext)(s.SourceDirectoryContext),_=(0,l.getSourceDirectoryData)(g),v=(0,o.appendPath)(n,g.path),y=new l.TSModuleScope(v,(0,s.useScope)());_.modules.add(y);let b=(0,s.useContext)(l.PackageContext);return b&&b.scope.addModule(y),e.export&&b&&((0,u.isBoolean)(e.export)?b.scope.addExport(v,y):b.scope.addExport(e.export,y)),(0,c.createComponent)(l.SourceFileContext.Provider,{value:{scope:y},get children(){return(0,c.createComponent)(s.Scope,{value:y,get children(){return(0,c.createComponent)(r.SourceFile,(0,c.mergeProps)(h,{path:v,get header(){return d??(0,c.createComponent)(f,{hashbang:m,get children(){return(0,c.createComponent)(p,{imports:i,scope:y})}})},filetype:a?`tsx`:`typescript`,children:t}))}})}})}function f(e){let{header:r,hashbang:a,disableEslint:o=!0,disableBiome:l=!0,disablePrettier:u=!1,children:d}=e,f=t.usePowerlines();return[(0,c.createComponent)(s.Show,{get when(){return!!a},get children(){return[(0,c.memo)(()=>a===!0?s.code`#!/usr/bin/env ${f?.config.mode===`development`?`-S NODE_OPTIONS=--enable-source-maps`:``} node`:a),(0,c.createIntrinsic)(`hbr`,{})]}}),(0,c.createComponent)(s.Show,{get when(){return!!r},get children(){return[r,(0,c.createIntrinsic)(`hbr`,{})]}}),(0,c.createIntrinsic)(`hbr`,{}),(0,c.createComponent)(s.Show,{get when(){return!!o},get children(){return[(0,c.createComponent)(n.SingleLineComment,{variant:`slash-star`,children:`eslint-disable`}),(0,c.createIntrinsic)(`hbr`,{})]}}),(0,c.createComponent)(s.Show,{get when(){return!!u},get children(){return[(0,c.createComponent)(n.SingleLineComment,{variant:`slash-star`,children:`prettier-ignore`}),(0,c.createIntrinsic)(`hbr`,{})]}}),(0,c.createComponent)(s.Show,{get when(){return!!l},get children(){return[(0,c.createComponent)(n.SingleLineComment,{children:`biome-ignore lint: disable`}),(0,c.createIntrinsic)(`hbr`,{})]}}),(0,c.createComponent)(s.Show,{get when(){return!!o||!!u||!!l},get children(){return(0,c.createIntrinsic)(`hbr`,{})}}),(0,c.createComponent)(s.Show,{get when(){return!!d},get children(){return[d,(0,c.createIntrinsic)(`hbr`,{})]}}),(0,c.createComponent)(n.SingleLineComment,{get children(){return s.code`Generated by ${(0,i.titleCase)(f?.config.framework)||`Powerlines`}`}}),(0,c.createIntrinsic)(`hbr`,{}),(0,c.createComponent)(n.SingleLineComment,{children:s.code`NOTE: Do not edit this file manually - it will be overwritten automatically by the "prepare" command`}),(0,c.createIntrinsic)(`hbr`,{})]}function p(e){let{imports:t}=e,n=(0,l.useSourceFile)(),r=e.scope??n.scope;return(0,c.createComponent)(s.Show,{get when(){return r.importedModules.size>0||!!t&&Object.keys(t).length>0},get children(){return[(0,c.createComponent)(s.Show,{get when(){return!!t&&Object.keys(t).length>0},get children(){return Object.entries(t??{}).map(([e,t])=>s.code`import ${t===null?``:t.filter(e=>!(0,a.isString)(e)&&e.default).map(e=>e.alias?e.alias:e.name).join(`, `)+(t.filter(e=>!(0,a.isString)(e)&&e.default).length>0&&t.filter(e=>(0,a.isString)(e)||!e.default).length>0?`, `:``)+(t.filter(e=>(0,a.isString)(e)||!e.default).length>0?`{ ${t.map(e=>(0,a.isString)(e)?e:e.alias?`${e.name} as ${e.alias}`:e.name).join(`, `)} }`:``)} from "${e}";`)}}),(0,c.createComponent)(s.Show,{get when(){return r.importedModules.size>0},get children(){return(0,c.createComponent)(l.ImportStatements,{get records(){return r.importedModules}})}}),(0,c.createIntrinsic)(`hbr`,{})]}})}exports.TypescriptFile=d,exports.TypescriptFileHeader=f,exports.TypescriptFileHeaderImports=p;
|
|
@@ -4,6 +4,7 @@ import { Children } from "@alloy-js/core";
|
|
|
4
4
|
|
|
5
5
|
//#region ../alloy/src/typescript/components/typescript-file.d.ts
|
|
6
6
|
type TypescriptFileProps = Omit<SourceFileProps$1, "filetype"> & ComponentProps & {
|
|
7
|
+
hashbang?: Children | true;
|
|
7
8
|
header?: Children;
|
|
8
9
|
imports?: TypescriptFileImports;
|
|
9
10
|
export?: boolean | string;
|
|
@@ -5,6 +5,7 @@ import { TSModuleScope } from "@alloy-js/typescript";
|
|
|
5
5
|
|
|
6
6
|
//#region ../alloy/src/typescript/components/typescript-file.d.ts
|
|
7
7
|
type TypescriptFileProps = Omit<SourceFileProps$1, "filetype"> & ComponentProps & {
|
|
8
|
+
hashbang?: Children | true;
|
|
8
9
|
header?: Children;
|
|
9
10
|
imports?: TypescriptFileImports;
|
|
10
11
|
export?: boolean | string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{usePowerlines as e}from"../../core/contexts/context.mjs";import{SingleLineComment as t}from"../../core/components/single-line-comment.mjs";import{SourceFile as n}from"../../core/components/source-file.mjs";import{titleCase as r}from"@stryke/string-format/title-case";import{isString as i}from"@stryke/type-checks/is-string";import{appendPath as a}from"@stryke/path/append";import{Scope as o,Show as s,SourceDirectoryContext as c,code as l,splitProps as u,useContext as d,useScope as f}from"@alloy-js/core";import{createComponent as p,createIntrinsic as m,memo as h,mergeProps as g}from"@alloy-js/core/jsx-runtime";import{ImportStatements as _,PackageContext as v,SourceFileContext as y,TSModuleScope as b,getSourceDirectoryData as x,useSourceFile as S}from"@alloy-js/typescript";import{isBoolean as C}from"@stryke/type-checks/is-boolean";function w(e){let[{children:t,path:r,imports:i,tsx:s,header:l,hashbang:m},h]=u(e,[`children`,`path`,`imports`,`tsx`,`header`,`hashbang`]),_=d(c),S=x(_),w=a(r,_.path),D=new b(w,f());S.modules.add(D);let O=d(v);return O&&O.scope.addModule(D),e.export&&O&&(C(e.export)?O.scope.addExport(w,D):O.scope.addExport(e.export,D)),p(y.Provider,{value:{scope:D},get children(){return p(o,{value:D,get children(){return p(n,g(h,{path:w,get header(){return l??p(T,{hashbang:m,get children(){return p(E,{imports:i,scope:D})}})},filetype:s?`tsx`:`typescript`,children:t}))}})}})}function T(n){let{header:i,hashbang:a,disableEslint:o=!0,disableBiome:c=!0,disablePrettier:u=!1,children:d}=n,f=e();return[p(s,{get when(){return!!a},get children(){return[h(()=>a===!0?l`#!/usr/bin/env ${f?.config.mode===`development`?`-S NODE_OPTIONS=--enable-source-maps`:``} node`:a),m(`hbr`,{})]}}),p(s,{get when(){return!!i},get children(){return[i,m(`hbr`,{})]}}),m(`hbr`,{}),p(s,{get when(){return!!o},get children(){return[p(t,{variant:`slash-star`,children:`eslint-disable`}),m(`hbr`,{})]}}),p(s,{get when(){return!!u},get children(){return[p(t,{variant:`slash-star`,children:`prettier-ignore`}),m(`hbr`,{})]}}),p(s,{get when(){return!!c},get children(){return[p(t,{children:`biome-ignore lint: disable`}),m(`hbr`,{})]}}),p(s,{get when(){return!!o||!!u||!!c},get children(){return m(`hbr`,{})}}),p(s,{get when(){return!!d},get children(){return[d,m(`hbr`,{})]}}),p(t,{get children(){return l`Generated by ${r(f?.config.framework)||`Powerlines`}`}}),m(`hbr`,{}),p(t,{children:l`NOTE: Do not edit this file manually - it will be overwritten automatically by the "prepare" command`}),m(`hbr`,{})]}function E(e){let{imports:t}=e,n=S(),r=e.scope??n.scope;return p(s,{get when(){return r.importedModules.size>0||!!t&&Object.keys(t).length>0},get children(){return[p(s,{get when(){return!!t&&Object.keys(t).length>0},get children(){return Object.entries(t??{}).map(([e,t])=>l`import ${t===null?``:t.filter(e=>!i(e)&&e.default).map(e=>e.alias?e.alias:e.name).join(`, `)+(t.filter(e=>!i(e)&&e.default).length>0&&t.filter(e=>i(e)||!e.default).length>0?`, `:``)+(t.filter(e=>i(e)||!e.default).length>0?`{ ${t.map(e=>i(e)?e:e.alias?`${e.name} as ${e.alias}`:e.name).join(`, `)} }`:``)} from "${e}";`)}}),p(s,{get when(){return r.importedModules.size>0},get children(){return p(_,{get records(){return r.importedModules}})}}),m(`hbr`,{})]}})}export{w as TypescriptFile,T as TypescriptFileHeader,E as TypescriptFileHeaderImports};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`../../../../_virtual/rolldown_runtime.cjs`),t=require(`../../../../deepkit/src/vendor/type.cjs`),n=require(`../../core/contexts/reflection.cjs`),r=require(`./tsdoc-reflection.cjs`);let i=require(`@alloy-js/core`),
|
|
1
|
+
const e=require(`../../../../_virtual/rolldown_runtime.cjs`),t=require(`../../../../deepkit/src/vendor/type.cjs`),n=require(`../../core/contexts/reflection.cjs`),r=require(`./tsdoc-reflection.cjs`);let i=require(`@stryke/type-checks/is-string`),a=require(`@alloy-js/core`),o=require(`@alloy-js/core/jsx-runtime`),s=require(`@alloy-js/typescript`),c=require(`@stryke/string-format/pascal-case`);function l(e){let[{name:t,reflection:l},d]=(0,a.splitProps)(e,[`name`,`reflection`]),f=(0,a.computed)(()=>(0,c.pascalCase)(((0,i.isString)(t)?t:t.toString())||l.getName())),p=l.getProperties().filter(e=>!e.isIgnored()).sort((e,t)=>e.isReadonly()&&t.isReadonly()||!e.isReadonly()&&!t.isReadonly()?e.getNameAsString().localeCompare(t.getNameAsString()):e.isReadonly()?1:-1);return(0,o.createComponent)(n.ReflectionClassContext.Provider,{value:{reflection:l},get children(){return[(0,o.createComponent)(r.TSDocReflectionClass,{}),(0,o.createComponent)(s.InterfaceDeclaration,(0,o.mergeProps)({export:!0,get name(){return f.value}},d,{get children(){return(0,o.createComponent)(a.For,{each:p,doubleHardline:!0,semicolon:!0,children:e=>(0,o.createComponent)(u,{property:e})})}}))]}})}function u(e){let[{property:i},c]=(0,a.splitProps)(e,[`property`]);return(0,o.createComponent)(n.ReflectionPropertyContext.Provider,{value:i,get children(){return[(0,o.createComponent)(r.TSDocReflectionProperty,{}),(0,o.createComponent)(s.InterfaceMember,(0,o.mergeProps)({get name(){return i.getNameAsString()},get readonly(){return i.isReadonly()},get optional(){return i.isOptional()},get nullish(){return i.isNullable()},get type(){return(0,t.type_exports.stringifyType)(i.getType())}},c))]}})}exports.TypeScriptInterface=l;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{type_exports as e}from"../../../../deepkit/src/vendor/type.mjs";import{ReflectionClassContext as t,ReflectionPropertyContext as n}from"../../core/contexts/reflection.mjs";import{TSDocReflectionClass as r,TSDocReflectionProperty as i}from"./tsdoc-reflection.mjs";import{For as
|
|
1
|
+
import{type_exports as e}from"../../../../deepkit/src/vendor/type.mjs";import{ReflectionClassContext as t,ReflectionPropertyContext as n}from"../../core/contexts/reflection.mjs";import{TSDocReflectionClass as r,TSDocReflectionProperty as i}from"./tsdoc-reflection.mjs";import{isString as a}from"@stryke/type-checks/is-string";import{For as o,computed as s,splitProps as c}from"@alloy-js/core";import{createComponent as l,mergeProps as u}from"@alloy-js/core/jsx-runtime";import{InterfaceDeclaration as d,InterfaceMember as f}from"@alloy-js/typescript";import{pascalCase as p}from"@stryke/string-format/pascal-case";function m(e){let[{name:n,reflection:i},f]=c(e,[`name`,`reflection`]),m=s(()=>p((a(n)?n:n.toString())||i.getName())),g=i.getProperties().filter(e=>!e.isIgnored()).sort((e,t)=>e.isReadonly()&&t.isReadonly()||!e.isReadonly()&&!t.isReadonly()?e.getNameAsString().localeCompare(t.getNameAsString()):e.isReadonly()?1:-1);return l(t.Provider,{value:{reflection:i},get children(){return[l(r,{}),l(d,u({export:!0,get name(){return m.value}},f,{get children(){return l(o,{each:g,doubleHardline:!0,semicolon:!0,children:e=>l(h,{property:e})})}}))]}})}function h(t){let[{property:r},a]=c(t,[`property`]);return l(n.Provider,{value:r,get children(){return[l(i,{}),l(f,u({get name(){return r.getNameAsString()},get readonly(){return r.isReadonly()},get optional(){return r.isOptional()},get nullish(){return r.isNullable()},get type(){return(0,e.stringifyType)(r.getType())}},a))]}})}export{m as TypeScriptInterface};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`../../../../_virtual/rolldown_runtime.cjs`),t=require(`../../../../deepkit/src/utilities.cjs`),n=require(`../../core/contexts/reflection.cjs`),r=require(`./tsdoc-reflection.cjs`);let i=require(`@stryke/string-format/camel-case`),a=require(`@alloy-js/core`),
|
|
1
|
+
const e=require(`../../../../_virtual/rolldown_runtime.cjs`),t=require(`../../../../deepkit/src/utilities.cjs`),n=require(`../../core/contexts/reflection.cjs`),r=require(`./tsdoc-reflection.cjs`);let i=require(`@stryke/string-format/camel-case`),a=require(`@stryke/type-checks/is-string`),o=require(`@alloy-js/core`),s=require(`@alloy-js/core/jsx-runtime`),c=require(`@stryke/type-checks/is-undefined`),l=require(`@alloy-js/typescript`),u=require(`@stryke/string-format/pascal-case`);function d(e){if(!e.reflection?.value)return null;let t=(0,o.computed)(()=>(0,i.camelCase)(((0,a.isString)(e.name)?e.name:e.name.toString())||e.reflection.value.getName())),d=(0,o.computed)(()=>e.type||(0,u.pascalCase)(e.reflection.value.getName())),p=(0,o.computed)(()=>e.reflection.value.getProperties().filter(t=>!t.isIgnored()&&!(0,c.isUndefined)(e.defaultValue?.value?.[t.getNameAsString()]??t.getAlias().reduce((t,n)=>(0,c.isUndefined)(t)&&!(0,c.isUndefined)(e.defaultValue?.value?.[n])?e.defaultValue?.value?.[n]:t,void 0)??t.getDefaultValue())).sort((e,t)=>e.isReadonly()&&t.isReadonly()||!e.isReadonly()&&!t.isReadonly()?e.getNameAsString().localeCompare(t.getNameAsString()):e.isReadonly()?1:-1)),m=(0,o.createSymbolSlot)(),h=(0,o.createSymbolSlot)(),g=(0,l.createValueSymbol)(e.name,{refkeys:e.refkey,default:e.default,export:e.export,metadata:e.metadata,tsFlags:e.nullish?l.TSSymbolFlags.Nullish:l.TSSymbolFlags.None,type:e.type?m.firstSymbol:void 0,namePolicy:(0,l.useTSNamePolicy)().for(`variable`)});e.type||h.moveMembersTo(g);let _=e.var?`var`:e.let?`let`:`const`,v=e.type?(0,s.createComponent)(l.TypeRefContext,{get children(){return[`: `,(0,s.createComponent)(m,{get children(){return e.type}})]}}):void 0;return(0,s.createComponent)(o.Show,{get when(){return!!e.reflection.value},get children(){return(0,s.createComponent)(n.ReflectionClassContext.Provider,{get value(){return{reflection:e.reflection.value,override:{name:t.value,type:d.value,defaultValue:e.defaultValue?.value}}},get children(){return[(0,s.createComponent)(o.Show,{get when(){return!!t.value&&!!d.value},get children(){return[(0,s.createComponent)(r.TSDocReflectionClass,{}),(0,s.createComponent)(o.Declaration,{symbol:g,get children(){return[(0,s.memo)(()=>e.export?`export `:``),(0,s.memo)(()=>e.default?`default `:``),_,` `,(0,s.createComponent)(o.Name,{}),v,` =`,` `,(0,s.createComponent)(h,{get children(){return e.initializer??e.children??(0,s.createComponent)(l.ObjectExpression,{get children(){return(0,s.createComponent)(o.For,{get each(){return p.value??[]},comma:!0,doubleHardline:!0,children:e=>(0,s.createComponent)(f,{property:e})})}})}})]}})]}}),(0,s.createIntrinsic)(`hbr`,{})]}})}})}function f(e){let[{property:i}]=(0,o.splitProps)(e,[`property`]);return(0,s.createComponent)(n.ReflectionPropertyContext.Provider,{value:i,get children(){return[(0,s.createComponent)(r.TSDocReflectionProperty,{}),(0,s.createComponent)(l.ObjectProperty,{get name(){return i.getNameAsString()},get value(){return t.stringifyDefaultValue(i)}}),(0,s.createIntrinsic)(`hbr`,{})]}})}exports.TypescriptObject=d;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{stringifyDefaultValue as e}from"../../../../deepkit/src/utilities.mjs";import{ReflectionClassContext as t,ReflectionPropertyContext as n}from"../../core/contexts/reflection.mjs";import{TSDocReflectionClass as r,TSDocReflectionProperty as i}from"./tsdoc-reflection.mjs";import{camelCase as a}from"@stryke/string-format/camel-case";import{Declaration as
|
|
1
|
+
import{stringifyDefaultValue as e}from"../../../../deepkit/src/utilities.mjs";import{ReflectionClassContext as t,ReflectionPropertyContext as n}from"../../core/contexts/reflection.mjs";import{TSDocReflectionClass as r,TSDocReflectionProperty as i}from"./tsdoc-reflection.mjs";import{camelCase as a}from"@stryke/string-format/camel-case";import{isString as o}from"@stryke/type-checks/is-string";import{Declaration as s,For as c,Name as l,Show as u,computed as d,createSymbolSlot as f,splitProps as p}from"@alloy-js/core";import{createComponent as m,createIntrinsic as h,memo as g}from"@alloy-js/core/jsx-runtime";import{isUndefined as _}from"@stryke/type-checks/is-undefined";import{ObjectExpression as v,ObjectProperty as y,TSSymbolFlags as b,TypeRefContext as x,createValueSymbol as S,useTSNamePolicy as C}from"@alloy-js/typescript";import{pascalCase as w}from"@stryke/string-format/pascal-case";function T(e){if(!e.reflection?.value)return null;let n=d(()=>a((o(e.name)?e.name:e.name.toString())||e.reflection.value.getName())),i=d(()=>e.type||w(e.reflection.value.getName())),p=d(()=>e.reflection.value.getProperties().filter(t=>!t.isIgnored()&&!_(e.defaultValue?.value?.[t.getNameAsString()]??t.getAlias().reduce((t,n)=>_(t)&&!_(e.defaultValue?.value?.[n])?e.defaultValue?.value?.[n]:t,void 0)??t.getDefaultValue())).sort((e,t)=>e.isReadonly()&&t.isReadonly()||!e.isReadonly()&&!t.isReadonly()?e.getNameAsString().localeCompare(t.getNameAsString()):e.isReadonly()?1:-1)),y=f(),T=f(),D=S(e.name,{refkeys:e.refkey,default:e.default,export:e.export,metadata:e.metadata,tsFlags:e.nullish?b.Nullish:b.None,type:e.type?y.firstSymbol:void 0,namePolicy:C().for(`variable`)});e.type||T.moveMembersTo(D);let O=e.var?`var`:e.let?`let`:`const`,k=e.type?m(x,{get children(){return[`: `,m(y,{get children(){return e.type}})]}}):void 0;return m(u,{get when(){return!!e.reflection.value},get children(){return m(t.Provider,{get value(){return{reflection:e.reflection.value,override:{name:n.value,type:i.value,defaultValue:e.defaultValue?.value}}},get children(){return[m(u,{get when(){return!!n.value&&!!i.value},get children(){return[m(r,{}),m(s,{symbol:D,get children(){return[g(()=>e.export?`export `:``),g(()=>e.default?`default `:``),O,` `,m(l,{}),k,` =`,` `,m(T,{get children(){return e.initializer??e.children??m(v,{get children(){return m(c,{get each(){return p.value??[]},comma:!0,doubleHardline:!0,children:e=>m(E,{property:e})})}})}})]}})]}}),h(`hbr`,{})]}})}})}function E(t){let[{property:r}]=p(t,[`property`]);return m(n.Provider,{value:r,get children(){return[m(i,{}),m(y,{get name(){return r.getNameAsString()},get value(){return e(r)}}),h(`hbr`,{})]}})}export{T as TypescriptObject};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-env",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.106",
|
|
4
4
|
"type": "module",
|
|
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
|
"repository": {
|
|
@@ -192,9 +192,9 @@
|
|
|
192
192
|
"@alloy-js/markdown": "^0.21.0",
|
|
193
193
|
"@babel/core": "^7.28.5",
|
|
194
194
|
"@babel/types": "^7.28.5",
|
|
195
|
-
"@powerlines/alloy": "^0.
|
|
196
|
-
"@powerlines/plugin-babel": "^0.12.
|
|
197
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
195
|
+
"@powerlines/alloy": "^0.12.0",
|
|
196
|
+
"@powerlines/plugin-babel": "^0.12.106",
|
|
197
|
+
"@powerlines/plugin-plugin": "^0.12.49",
|
|
198
198
|
"@storm-software/config-tools": "^1.188.73",
|
|
199
199
|
"@stryke/capnp": "^0.12.51",
|
|
200
200
|
"@stryke/env": "^0.20.43",
|
|
@@ -203,16 +203,16 @@
|
|
|
203
203
|
"@stryke/string-format": "^0.12.29",
|
|
204
204
|
"@stryke/type-checks": "^0.5.14",
|
|
205
205
|
"@stryke/types": "^0.10.28",
|
|
206
|
-
"powerlines": "^0.36.
|
|
206
|
+
"powerlines": "^0.36.2"
|
|
207
207
|
},
|
|
208
208
|
"devDependencies": {
|
|
209
209
|
"@alloy-js/babel-preset": "^0.2.1",
|
|
210
210
|
"@babel/preset-typescript": "^7.28.5",
|
|
211
|
-
"@powerlines/nx": "^0.11.
|
|
211
|
+
"@powerlines/nx": "^0.11.28",
|
|
212
212
|
"@types/node": "^24.10.4",
|
|
213
213
|
"typescript": "^5.9.3",
|
|
214
214
|
"vite": "8.0.0-beta.2"
|
|
215
215
|
},
|
|
216
216
|
"publishConfig": { "access": "public" },
|
|
217
|
-
"gitHead": "
|
|
217
|
+
"gitHead": "916e24a276b03bbc9d64349bf85f37ffb43d5e87"
|
|
218
218
|
}
|