@powerlines/plugin-alloy 0.18.116 → 0.18.118

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.
Files changed (129) hide show
  1. package/dist/core/components/index.cjs +6 -6
  2. package/dist/core/components/index.mjs +1 -1
  3. package/dist/core/components/output.cjs +5 -15
  4. package/dist/core/components/output.d.cts +5 -5
  5. package/dist/core/components/output.d.mts +5 -5
  6. package/dist/core/components/output.mjs +9 -19
  7. package/dist/core/components/single-line-comment.d.cts +2 -2
  8. package/dist/core/components/single-line-comment.d.mts +2 -2
  9. package/dist/core/components/source-file.d.cts +5 -5
  10. package/dist/core/components/source-file.d.mts +5 -5
  11. package/dist/core/contexts/context.cjs +2 -8
  12. package/dist/core/contexts/context.d.cts +1 -6
  13. package/dist/core/contexts/context.d.mts +1 -6
  14. package/dist/core/contexts/context.mjs +3 -7
  15. package/dist/core/contexts/index.cjs +0 -1
  16. package/dist/core/contexts/index.d.cts +2 -2
  17. package/dist/core/contexts/index.d.mts +2 -2
  18. package/dist/core/contexts/index.mjs +2 -2
  19. package/dist/core/contexts/reflection.cjs +3 -3
  20. package/dist/core/contexts/reflection.mjs +3 -3
  21. package/dist/core/index.cjs +6 -7
  22. package/dist/core/index.d.cts +2 -2
  23. package/dist/core/index.d.mts +2 -2
  24. package/dist/core/index.mjs +3 -3
  25. package/dist/index.cjs +13 -10
  26. package/dist/index.mjs +11 -8
  27. package/dist/internal/unctx.cjs +12 -0
  28. package/dist/internal/unctx.mjs +11 -0
  29. package/dist/types/components.d.cts +5 -126
  30. package/dist/types/components.d.mts +5 -126
  31. package/dist/types/plugin.d.cts +2 -9
  32. package/dist/types/plugin.d.mts +2 -9
  33. package/package.json +8 -7
  34. package/dist/helpers/capnp.cjs +0 -276
  35. package/dist/helpers/capnp.d.cts +0 -87
  36. package/dist/helpers/capnp.d.mts +0 -87
  37. package/dist/helpers/capnp.mjs +0 -259
  38. package/dist/helpers/create-builtin.cjs +0 -19
  39. package/dist/helpers/create-builtin.d.cts +0 -15
  40. package/dist/helpers/create-builtin.d.mts +0 -15
  41. package/dist/helpers/create-builtin.mjs +0 -18
  42. package/dist/helpers/index.cjs +0 -24
  43. package/dist/helpers/index.d.cts +0 -5
  44. package/dist/helpers/index.d.mts +0 -5
  45. package/dist/helpers/index.mjs +0 -6
  46. package/dist/helpers/refkey.cjs +0 -16
  47. package/dist/helpers/refkey.d.cts +0 -13
  48. package/dist/helpers/refkey.d.mts +0 -13
  49. package/dist/helpers/refkey.mjs +0 -15
  50. package/dist/helpers/typescript.cjs +0 -46
  51. package/dist/helpers/typescript.d.cts +0 -25
  52. package/dist/helpers/typescript.d.mts +0 -25
  53. package/dist/helpers/typescript.mjs +0 -45
  54. package/dist/markdown/components/index.cjs +0 -8
  55. package/dist/markdown/components/index.d.cts +0 -3
  56. package/dist/markdown/components/index.d.mts +0 -3
  57. package/dist/markdown/components/index.mjs +0 -4
  58. package/dist/markdown/components/markdown-file.cjs +0 -116
  59. package/dist/markdown/components/markdown-file.d.cts +0 -23
  60. package/dist/markdown/components/markdown-file.d.mts +0 -23
  61. package/dist/markdown/components/markdown-file.mjs +0 -114
  62. package/dist/markdown/components/markdown-table.cjs +0 -101
  63. package/dist/markdown/components/markdown-table.d.cts +0 -27
  64. package/dist/markdown/components/markdown-table.d.mts +0 -27
  65. package/dist/markdown/components/markdown-table.mjs +0 -98
  66. package/dist/markdown/contexts/index.cjs +0 -6
  67. package/dist/markdown/contexts/index.d.cts +0 -2
  68. package/dist/markdown/contexts/index.d.mts +0 -2
  69. package/dist/markdown/contexts/index.mjs +0 -3
  70. package/dist/markdown/contexts/markdown-table.cjs +0 -37
  71. package/dist/markdown/contexts/markdown-table.d.cts +0 -37
  72. package/dist/markdown/contexts/markdown-table.d.mts +0 -37
  73. package/dist/markdown/contexts/markdown-table.mjs +0 -33
  74. package/dist/markdown/index.cjs +0 -15
  75. package/dist/markdown/index.d.cts +0 -6
  76. package/dist/markdown/index.d.mts +0 -6
  77. package/dist/markdown/index.mjs +0 -7
  78. package/dist/types/components.cjs +0 -0
  79. package/dist/types/components.mjs +0 -1
  80. package/dist/types/index.cjs +0 -0
  81. package/dist/types/index.d.cts +0 -3
  82. package/dist/types/index.d.mts +0 -3
  83. package/dist/types/index.mjs +0 -1
  84. package/dist/types/plugin.cjs +0 -0
  85. package/dist/types/plugin.mjs +0 -1
  86. package/dist/typescript/components/builtin-file.cjs +0 -62
  87. package/dist/typescript/components/builtin-file.d.cts +0 -34
  88. package/dist/typescript/components/builtin-file.d.mts +0 -34
  89. package/dist/typescript/components/builtin-file.mjs +0 -61
  90. package/dist/typescript/components/dynamic-import-statement.cjs +0 -25
  91. package/dist/typescript/components/dynamic-import-statement.d.cts +0 -32
  92. package/dist/typescript/components/dynamic-import-statement.d.mts +0 -32
  93. package/dist/typescript/components/dynamic-import-statement.mjs +0 -24
  94. package/dist/typescript/components/entry-file.cjs +0 -42
  95. package/dist/typescript/components/entry-file.d.cts +0 -27
  96. package/dist/typescript/components/entry-file.d.mts +0 -27
  97. package/dist/typescript/components/entry-file.mjs +0 -40
  98. package/dist/typescript/components/index.cjs +0 -44
  99. package/dist/typescript/components/index.d.cts +0 -10
  100. package/dist/typescript/components/index.d.mts +0 -10
  101. package/dist/typescript/components/index.mjs +0 -11
  102. package/dist/typescript/components/record-expression.cjs +0 -12
  103. package/dist/typescript/components/record-expression.d.cts +0 -12
  104. package/dist/typescript/components/record-expression.d.mts +0 -12
  105. package/dist/typescript/components/record-expression.mjs +0 -11
  106. package/dist/typescript/components/tsdoc-reflection.cjs +0 -178
  107. package/dist/typescript/components/tsdoc-reflection.d.cts +0 -18
  108. package/dist/typescript/components/tsdoc-reflection.d.mts +0 -18
  109. package/dist/typescript/components/tsdoc-reflection.mjs +0 -175
  110. package/dist/typescript/components/tsdoc.cjs +0 -485
  111. package/dist/typescript/components/tsdoc.d.cts +0 -163
  112. package/dist/typescript/components/tsdoc.d.mts +0 -163
  113. package/dist/typescript/components/tsdoc.mjs +0 -465
  114. package/dist/typescript/components/typescript-file.cjs +0 -216
  115. package/dist/typescript/components/typescript-file.d.cts +0 -49
  116. package/dist/typescript/components/typescript-file.d.mts +0 -49
  117. package/dist/typescript/components/typescript-file.mjs +0 -213
  118. package/dist/typescript/components/typescript-interface.cjs +0 -73
  119. package/dist/typescript/components/typescript-interface.d.cts +0 -25
  120. package/dist/typescript/components/typescript-interface.d.mts +0 -25
  121. package/dist/typescript/components/typescript-interface.mjs +0 -71
  122. package/dist/typescript/components/typescript-object.cjs +0 -125
  123. package/dist/typescript/components/typescript-object.d.cts +0 -29
  124. package/dist/typescript/components/typescript-object.d.mts +0 -29
  125. package/dist/typescript/components/typescript-object.mjs +0 -123
  126. package/dist/typescript/index.cjs +0 -45
  127. package/dist/typescript/index.d.cts +0 -11
  128. package/dist/typescript/index.d.mts +0 -11
  129. package/dist/typescript/index.mjs +0 -12
@@ -1,7 +1,7 @@
1
- const require_core_components_single_line_comment = require('./single-line-comment.cjs');
2
- const require_core_components_source_file = require('./source-file.cjs');
3
- const require_core_components_output = require('./output.cjs');
1
+ const require_output = require('./output.cjs');
2
+ const require_single_line_comment = require('./single-line-comment.cjs');
3
+ const require_source_file = require('./source-file.cjs');
4
4
 
5
- exports.Output = require_core_components_output.Output;
6
- exports.SingleLineComment = require_core_components_single_line_comment.SingleLineComment;
7
- exports.SourceFile = require_core_components_source_file.SourceFile;
5
+ exports.Output = require_output.Output;
6
+ exports.SingleLineComment = require_single_line_comment.SingleLineComment;
7
+ exports.SourceFile = require_source_file.SourceFile;
@@ -1,5 +1,5 @@
1
+ import { Output } from "./output.mjs";
1
2
  import { SingleLineComment } from "./single-line-comment.mjs";
2
3
  import { SourceFile } from "./source-file.mjs";
3
- import { Output } from "./output.mjs";
4
4
 
5
5
  export { Output, SingleLineComment, SourceFile };
@@ -1,5 +1,4 @@
1
1
  const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
- const require_core_contexts_context = require('../contexts/context.cjs');
3
2
  let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
4
3
  let __alloy_js_core = require("@alloy-js/core");
5
4
  let __stryke_path_replace = require("@stryke/path/replace");
@@ -9,10 +8,9 @@ let __stryke_path_replace = require("@stryke/path/replace");
9
8
  * Output component for rendering the Powerlines plugin's output files via templates.
10
9
  */
11
10
  function Output(props) {
12
- const [{ children, context, meta, basePath }, rest] = (0, __alloy_js_core.splitProps)(props, [
11
+ const [{ children, context, basePath }, rest] = (0, __alloy_js_core.splitProps)(props, [
13
12
  "children",
14
13
  "context",
15
- "meta",
16
14
  "basePath"
17
15
  ]);
18
16
  const basePathRef = (0, __alloy_js_core.computed)(() => basePath ? (0, __stryke_path_replace.replacePath)(basePath, context.workspaceConfig.workspaceRoot) : context.workspaceConfig.workspaceRoot);
@@ -21,19 +19,11 @@ function Output(props) {
21
19
  return basePathRef.value;
22
20
  },
23
21
  get children() {
24
- return (0, __alloy_js_core_jsx_runtime.createComponent)(require_core_contexts_context.PowerlinesContext.Provider, {
25
- value: {
26
- value: context,
27
- meta: meta ?? {}
22
+ return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
23
+ get when() {
24
+ return Boolean(context);
28
25
  },
29
- get children() {
30
- return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
31
- get when() {
32
- return Boolean(context);
33
- },
34
- children
35
- });
36
- }
26
+ children
37
27
  });
38
28
  }
39
29
  }));
@@ -1,10 +1,10 @@
1
1
  import { MetaItem } from "../contexts/context.cjs";
2
- import * as _alloy_js_core16 from "@alloy-js/core";
3
- import { OutputProps as OutputProps$1 } from "@alloy-js/core";
2
+ import * as _alloy_js_core0 from "@alloy-js/core";
3
+ import { OutputProps } from "@alloy-js/core";
4
4
  import { PluginContext } from "powerlines/types/context";
5
5
 
6
6
  //#region src/core/components/output.d.ts
7
- interface OutputProps<TContext extends PluginContext = PluginContext, TMeta extends Record<string, MetaItem> = Record<string, MetaItem>> extends OutputProps$1 {
7
+ interface OutputProps$1<TContext extends PluginContext = PluginContext, TMeta extends Record<string, MetaItem> = Record<string, MetaItem>> extends OutputProps {
8
8
  /**
9
9
  * The current Powerlines process context.
10
10
  */
@@ -17,7 +17,7 @@ interface OutputProps<TContext extends PluginContext = PluginContext, TMeta exte
17
17
  /**
18
18
  * Output component for rendering the Powerlines plugin's output files via templates.
19
19
  */
20
- declare function Output<TContext extends PluginContext = PluginContext, TMeta extends Record<string, MetaItem> = Record<string, MetaItem>>(props: OutputProps<TContext, TMeta>): _alloy_js_core16.Children;
20
+ declare function Output<TContext extends PluginContext = PluginContext, TMeta extends Record<string, MetaItem> = Record<string, MetaItem>>(props: OutputProps$1<TContext, TMeta>): _alloy_js_core0.Children;
21
21
  declare type __ΩOutputProps = any[];
22
22
  //#endregion
23
- export { Output, OutputProps, __ΩOutputProps };
23
+ export { Output, OutputProps$1 as OutputProps, __ΩOutputProps };
@@ -1,10 +1,10 @@
1
1
  import { MetaItem } from "../contexts/context.mjs";
2
- import * as _alloy_js_core15 from "@alloy-js/core";
3
- import { OutputProps as OutputProps$1 } from "@alloy-js/core";
2
+ import * as _alloy_js_core1 from "@alloy-js/core";
3
+ import { OutputProps } from "@alloy-js/core";
4
4
  import { PluginContext } from "powerlines/types/context";
5
5
 
6
6
  //#region src/core/components/output.d.ts
7
- interface OutputProps<TContext extends PluginContext = PluginContext, TMeta extends Record<string, MetaItem> = Record<string, MetaItem>> extends OutputProps$1 {
7
+ interface OutputProps$1<TContext extends PluginContext = PluginContext, TMeta extends Record<string, MetaItem> = Record<string, MetaItem>> extends OutputProps {
8
8
  /**
9
9
  * The current Powerlines process context.
10
10
  */
@@ -17,7 +17,7 @@ interface OutputProps<TContext extends PluginContext = PluginContext, TMeta exte
17
17
  /**
18
18
  * Output component for rendering the Powerlines plugin's output files via templates.
19
19
  */
20
- declare function Output<TContext extends PluginContext = PluginContext, TMeta extends Record<string, MetaItem> = Record<string, MetaItem>>(props: OutputProps<TContext, TMeta>): _alloy_js_core15.Children;
20
+ declare function Output$1<TContext extends PluginContext = PluginContext, TMeta extends Record<string, MetaItem> = Record<string, MetaItem>>(props: OutputProps$1<TContext, TMeta>): _alloy_js_core1.Children;
21
21
  declare type __ΩOutputProps = any[];
22
22
  //#endregion
23
- export { Output, OutputProps, __ΩOutputProps };
23
+ export { Output$1 as Output, OutputProps$1 as OutputProps, __ΩOutputProps };
@@ -1,42 +1,32 @@
1
- import { PowerlinesContext } from "../contexts/context.mjs";
2
1
  import { createComponent, mergeProps } from "@alloy-js/core/jsx-runtime";
3
- import { Output as Output$1, Show, computed, splitProps } from "@alloy-js/core";
2
+ import { Output, Show, computed, splitProps } from "@alloy-js/core";
4
3
  import { replacePath } from "@stryke/path/replace";
5
4
 
6
5
  //#region src/core/components/output.tsx
7
6
  /**
8
7
  * Output component for rendering the Powerlines plugin's output files via templates.
9
8
  */
10
- function Output(props) {
11
- const [{ children, context, meta, basePath }, rest] = splitProps(props, [
9
+ function Output$1(props) {
10
+ const [{ children, context, basePath }, rest] = splitProps(props, [
12
11
  "children",
13
12
  "context",
14
- "meta",
15
13
  "basePath"
16
14
  ]);
17
15
  const basePathRef = computed(() => basePath ? replacePath(basePath, context.workspaceConfig.workspaceRoot) : context.workspaceConfig.workspaceRoot);
18
- return createComponent(Output$1, mergeProps(rest, {
16
+ return createComponent(Output, mergeProps(rest, {
19
17
  get basePath() {
20
18
  return basePathRef.value;
21
19
  },
22
20
  get children() {
23
- return createComponent(PowerlinesContext.Provider, {
24
- value: {
25
- value: context,
26
- meta: meta ?? {}
21
+ return createComponent(Show, {
22
+ get when() {
23
+ return Boolean(context);
27
24
  },
28
- get children() {
29
- return createComponent(Show, {
30
- get when() {
31
- return Boolean(context);
32
- },
33
- children
34
- });
35
- }
25
+ children
36
26
  });
37
27
  }
38
28
  }));
39
29
  }
40
30
 
41
31
  //#endregion
42
- export { Output };
32
+ export { Output$1 as Output };
@@ -1,5 +1,5 @@
1
1
  import { ComponentProps } from "../../types/components.cjs";
2
- import * as _alloy_js_core15 from "@alloy-js/core";
2
+ import * as _alloy_js_core1 from "@alloy-js/core";
3
3
 
4
4
  //#region src/core/components/single-line-comment.d.ts
5
5
  type SingleLineCommentVariant = "double-slash" | "triple-slash" | "slash-star" | "slash-star-star" | "markdown";
@@ -15,7 +15,7 @@ interface SingleLineCommentProps extends ComponentProps {
15
15
  * A single line comment block. The children are rendered as a prose element, which means that they
16
16
  * are broken into multiple lines
17
17
  */
18
- declare function SingleLineComment(props: SingleLineCommentProps): _alloy_js_core15.Children;
18
+ declare function SingleLineComment(props: SingleLineCommentProps): _alloy_js_core1.Children;
19
19
  declare type __ΩSingleLineCommentVariant = any[];
20
20
  declare type __ΩSingleLineCommentProps = any[];
21
21
  //#endregion
@@ -1,5 +1,5 @@
1
1
  import { ComponentProps } from "../../types/components.mjs";
2
- import * as _alloy_js_core16 from "@alloy-js/core";
2
+ import * as _alloy_js_core0 from "@alloy-js/core";
3
3
 
4
4
  //#region src/core/components/single-line-comment.d.ts
5
5
  type SingleLineCommentVariant = "double-slash" | "triple-slash" | "slash-star" | "slash-star-star" | "markdown";
@@ -15,7 +15,7 @@ interface SingleLineCommentProps extends ComponentProps {
15
15
  * A single line comment block. The children are rendered as a prose element, which means that they
16
16
  * are broken into multiple lines
17
17
  */
18
- declare function SingleLineComment(props: SingleLineCommentProps): _alloy_js_core16.Children;
18
+ declare function SingleLineComment(props: SingleLineCommentProps): _alloy_js_core0.Children;
19
19
  declare type __ΩSingleLineCommentVariant = any[];
20
20
  declare type __ΩSingleLineCommentProps = any[];
21
21
  //#endregion
@@ -1,10 +1,10 @@
1
1
  import { ComponentProps } from "../../types/components.cjs";
2
- import * as _alloy_js_core8 from "@alloy-js/core";
3
- import { SourceFileProps as SourceFileProps$1 } from "@alloy-js/core";
2
+ import * as _alloy_js_core0 from "@alloy-js/core";
3
+ import { SourceFileProps } from "@alloy-js/core";
4
4
  import { StoragePreset } from "powerlines/types/fs";
5
5
 
6
6
  //#region src/core/components/source-file.d.ts
7
- type SourceFileProps = SourceFileProps$1 & ComponentProps & {
7
+ type SourceFileProps$1 = SourceFileProps & ComponentProps & {
8
8
  /**
9
9
  * The storage preset for the output files.
10
10
  *
@@ -26,7 +26,7 @@ type SourceFileProps = SourceFileProps$1 & ComponentProps & {
26
26
  * @param props - The properties for the source file.
27
27
  * @returns The rendered source file component.
28
28
  */
29
- declare function SourceFile(props: SourceFileProps): _alloy_js_core8.Children;
29
+ declare function SourceFile(props: SourceFileProps$1): _alloy_js_core0.Children;
30
30
  declare type __ΩSourceFileProps = any[];
31
31
  //#endregion
32
- export { SourceFile, SourceFileProps, __ΩSourceFileProps };
32
+ export { SourceFile, SourceFileProps$1 as SourceFileProps, __ΩSourceFileProps };
@@ -1,10 +1,10 @@
1
1
  import { ComponentProps } from "../../types/components.mjs";
2
- import * as _alloy_js_core14 from "@alloy-js/core";
3
- import { SourceFileProps as SourceFileProps$1 } from "@alloy-js/core";
2
+ import * as _alloy_js_core0 from "@alloy-js/core";
3
+ import { SourceFileProps } from "@alloy-js/core";
4
4
  import { StoragePreset } from "powerlines/types/fs";
5
5
 
6
6
  //#region src/core/components/source-file.d.ts
7
- type SourceFileProps = SourceFileProps$1 & ComponentProps & {
7
+ type SourceFileProps$1 = SourceFileProps & ComponentProps & {
8
8
  /**
9
9
  * The storage preset for the output files.
10
10
  *
@@ -26,7 +26,7 @@ type SourceFileProps = SourceFileProps$1 & ComponentProps & {
26
26
  * @param props - The properties for the source file.
27
27
  * @returns The rendered source file component.
28
28
  */
29
- declare function SourceFile(props: SourceFileProps): _alloy_js_core14.Children;
29
+ declare function SourceFile(props: SourceFileProps$1): _alloy_js_core0.Children;
30
30
  declare type __ΩSourceFileProps = any[];
31
31
  //#endregion
32
- export { SourceFile, SourceFileProps, __ΩSourceFileProps };
32
+ export { SourceFile, SourceFileProps$1 as SourceFileProps, __ΩSourceFileProps };
@@ -1,18 +1,13 @@
1
- const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
- let __alloy_js_core = require("@alloy-js/core");
1
+ const require_unctx = require('../../internal/unctx.cjs');
3
2
 
4
3
  //#region src/core/contexts/context.ts
5
4
  /**
6
- * The Powerlines context used in template rendering.
7
- */
8
- const PowerlinesContext = (0, __alloy_js_core.createNamedContext)("powerlines");
9
- /**
10
5
  * Hook to access the Powerlines Context.
11
6
  *
12
7
  * @returns The Context.
13
8
  */
14
9
  function usePowerlinesContext() {
15
- return (0, __alloy_js_core.useContext)(PowerlinesContext);
10
+ return require_unctx.unctx.use();
16
11
  }
17
12
  /**
18
13
  * Hook to safely access the {@link PluginContext | Powerlines context}.
@@ -52,7 +47,6 @@ function useMeta() {
52
47
  }
53
48
 
54
49
  //#endregion
55
- exports.PowerlinesContext = PowerlinesContext;
56
50
  exports.useMeta = useMeta;
57
51
  exports.useMetaSafe = useMetaSafe;
58
52
  exports.usePowerlines = usePowerlines;
@@ -1,4 +1,3 @@
1
- import { ComponentContext } from "@alloy-js/core";
2
1
  import { PluginContext } from "powerlines/types/context";
3
2
  import { StoragePreset } from "powerlines/types/fs";
4
3
 
@@ -31,10 +30,6 @@ interface PowerlinesContextInterface<TContext extends PluginContext = PluginCont
31
30
  */
32
31
  meta: TMeta;
33
32
  }
34
- /**
35
- * The Powerlines context used in template rendering.
36
- */
37
- declare const PowerlinesContext: ComponentContext<PowerlinesContextInterface<any, any>>;
38
33
  /**
39
34
  * Hook to access the Powerlines Context.
40
35
  *
@@ -68,4 +63,4 @@ declare function useMeta<TMeta extends Record<string, MetaItem> = Record<string,
68
63
  declare type __ΩMetaItem = any[];
69
64
  declare type __ΩPowerlinesContextInterface = any[];
70
65
  //#endregion
71
- export { MetaItem, PowerlinesContext, PowerlinesContextInterface, __ΩMetaItem, __ΩPowerlinesContextInterface, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe };
66
+ export { MetaItem, PowerlinesContextInterface, __ΩMetaItem, __ΩPowerlinesContextInterface, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe };
@@ -1,4 +1,3 @@
1
- import { ComponentContext } from "@alloy-js/core";
2
1
  import { PluginContext } from "powerlines/types/context";
3
2
  import { StoragePreset } from "powerlines/types/fs";
4
3
 
@@ -31,10 +30,6 @@ interface PowerlinesContextInterface<TContext extends PluginContext = PluginCont
31
30
  */
32
31
  meta: TMeta;
33
32
  }
34
- /**
35
- * The Powerlines context used in template rendering.
36
- */
37
- declare const PowerlinesContext: ComponentContext<PowerlinesContextInterface<any, any>>;
38
33
  /**
39
34
  * Hook to access the Powerlines Context.
40
35
  *
@@ -68,4 +63,4 @@ declare function useMeta<TMeta extends Record<string, MetaItem> = Record<string,
68
63
  declare type __ΩMetaItem = any[];
69
64
  declare type __ΩPowerlinesContextInterface = any[];
70
65
  //#endregion
71
- export { MetaItem, PowerlinesContext, PowerlinesContextInterface, __ΩMetaItem, __ΩPowerlinesContextInterface, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe };
66
+ export { MetaItem, PowerlinesContextInterface, __ΩMetaItem, __ΩPowerlinesContextInterface, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe };
@@ -1,17 +1,13 @@
1
- import { createNamedContext, useContext } from "@alloy-js/core";
1
+ import { unctx } from "../../internal/unctx.mjs";
2
2
 
3
3
  //#region src/core/contexts/context.ts
4
4
  /**
5
- * The Powerlines context used in template rendering.
6
- */
7
- const PowerlinesContext = createNamedContext("powerlines");
8
- /**
9
5
  * Hook to access the Powerlines Context.
10
6
  *
11
7
  * @returns The Context.
12
8
  */
13
9
  function usePowerlinesContext() {
14
- return useContext(PowerlinesContext);
10
+ return unctx.use();
15
11
  }
16
12
  /**
17
13
  * Hook to safely access the {@link PluginContext | Powerlines context}.
@@ -51,4 +47,4 @@ function useMeta() {
51
47
  }
52
48
 
53
49
  //#endregion
54
- export { PowerlinesContext, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe };
50
+ export { useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe };
@@ -1,7 +1,6 @@
1
1
  const require_core_contexts_context = require('./context.cjs');
2
2
  const require_core_contexts_reflection = require('./reflection.cjs');
3
3
 
4
- exports.PowerlinesContext = require_core_contexts_context.PowerlinesContext;
5
4
  exports.ReflectionClassContext = require_core_contexts_reflection.ReflectionClassContext;
6
5
  exports.ReflectionMethodContext = require_core_contexts_reflection.ReflectionMethodContext;
7
6
  exports.ReflectionParameterContext = require_core_contexts_reflection.ReflectionParameterContext;
@@ -1,3 +1,3 @@
1
- import { MetaItem, PowerlinesContext, PowerlinesContextInterface, __ΩMetaItem, __ΩPowerlinesContextInterface, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe } from "./context.cjs";
1
+ import { MetaItem, PowerlinesContextInterface, __ΩMetaItem, __ΩPowerlinesContextInterface, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe } from "./context.cjs";
2
2
  import { ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, __ΩReflectionClassContextInterface, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty } from "./reflection.cjs";
3
- export { MetaItem, PowerlinesContext, PowerlinesContextInterface, ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, __ΩMetaItem, __ΩPowerlinesContextInterface, __ΩReflectionClassContextInterface, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
3
+ export { MetaItem, PowerlinesContextInterface, ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, __ΩMetaItem, __ΩPowerlinesContextInterface, __ΩReflectionClassContextInterface, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
@@ -1,3 +1,3 @@
1
- import { MetaItem, PowerlinesContext, PowerlinesContextInterface, __ΩMetaItem, __ΩPowerlinesContextInterface, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe } from "./context.mjs";
1
+ import { MetaItem, PowerlinesContextInterface, __ΩMetaItem, __ΩPowerlinesContextInterface, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe } from "./context.mjs";
2
2
  import { ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, __ΩReflectionClassContextInterface, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty } from "./reflection.mjs";
3
- export { MetaItem, PowerlinesContext, PowerlinesContextInterface, ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, __ΩMetaItem, __ΩPowerlinesContextInterface, __ΩReflectionClassContextInterface, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
3
+ export { MetaItem, PowerlinesContextInterface, ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, __ΩMetaItem, __ΩPowerlinesContextInterface, __ΩReflectionClassContextInterface, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
@@ -1,4 +1,4 @@
1
- import { PowerlinesContext, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe } from "./context.mjs";
1
+ import { useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe } from "./context.mjs";
2
2
  import { ReflectionClassContext, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty } from "./reflection.mjs";
3
3
 
4
- export { PowerlinesContext, ReflectionClassContext, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
4
+ export { ReflectionClassContext, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
@@ -19,7 +19,7 @@ function useReflectionClass() {
19
19
  /**
20
20
  * The reflection property context used in template rendering.
21
21
  */
22
- const ReflectionPropertyContext = (0, __alloy_js_core.createNamedContext)("reflection-property");
22
+ const ReflectionPropertyContext = (0, __alloy_js_core.createNamedContext)("ReflectionProperty");
23
23
  /**
24
24
  * Hook to access the Reflection Property context.
25
25
  *
@@ -33,7 +33,7 @@ function useReflectionProperty() {
33
33
  /**
34
34
  * The reflection method context used in template rendering.
35
35
  */
36
- const ReflectionMethodContext = (0, __alloy_js_core.createNamedContext)("reflection-method");
36
+ const ReflectionMethodContext = (0, __alloy_js_core.createNamedContext)("ReflectionMethod");
37
37
  /**
38
38
  * Hook to access the Reflection Method context.
39
39
  *
@@ -47,7 +47,7 @@ function useReflectionMethod() {
47
47
  /**
48
48
  * The reflection parameter context used in template rendering.
49
49
  */
50
- const ReflectionParameterContext = (0, __alloy_js_core.createNamedContext)("reflection-parameter");
50
+ const ReflectionParameterContext = (0, __alloy_js_core.createNamedContext)("ReflectionParameter");
51
51
  /**
52
52
  * Hook to access the Reflection Parameter context.
53
53
  *
@@ -18,7 +18,7 @@ function useReflectionClass() {
18
18
  /**
19
19
  * The reflection property context used in template rendering.
20
20
  */
21
- const ReflectionPropertyContext = createNamedContext("reflection-property");
21
+ const ReflectionPropertyContext = createNamedContext("ReflectionProperty");
22
22
  /**
23
23
  * Hook to access the Reflection Property context.
24
24
  *
@@ -32,7 +32,7 @@ function useReflectionProperty() {
32
32
  /**
33
33
  * The reflection method context used in template rendering.
34
34
  */
35
- const ReflectionMethodContext = createNamedContext("reflection-method");
35
+ const ReflectionMethodContext = createNamedContext("ReflectionMethod");
36
36
  /**
37
37
  * Hook to access the Reflection Method context.
38
38
  *
@@ -46,7 +46,7 @@ function useReflectionMethod() {
46
46
  /**
47
47
  * The reflection parameter context used in template rendering.
48
48
  */
49
- const ReflectionParameterContext = createNamedContext("reflection-parameter");
49
+ const ReflectionParameterContext = createNamedContext("ReflectionParameter");
50
50
  /**
51
51
  * Hook to access the Reflection Parameter context.
52
52
  *
@@ -1,19 +1,18 @@
1
+ const require_output = require('./components/output.cjs');
2
+ const require_single_line_comment = require('./components/single-line-comment.cjs');
1
3
  const require_core_contexts_context = require('./contexts/context.cjs');
2
- const require_core_components_single_line_comment = require('./components/single-line-comment.cjs');
3
4
  const require_core_contexts_reflection = require('./contexts/reflection.cjs');
4
5
  require('./contexts/index.cjs');
5
- const require_core_components_source_file = require('./components/source-file.cjs');
6
- const require_core_components_output = require('./components/output.cjs');
6
+ const require_source_file = require('./components/source-file.cjs');
7
7
  require('./components/index.cjs');
8
8
 
9
- exports.Output = require_core_components_output.Output;
10
- exports.PowerlinesContext = require_core_contexts_context.PowerlinesContext;
9
+ exports.Output = require_output.Output;
11
10
  exports.ReflectionClassContext = require_core_contexts_reflection.ReflectionClassContext;
12
11
  exports.ReflectionMethodContext = require_core_contexts_reflection.ReflectionMethodContext;
13
12
  exports.ReflectionParameterContext = require_core_contexts_reflection.ReflectionParameterContext;
14
13
  exports.ReflectionPropertyContext = require_core_contexts_reflection.ReflectionPropertyContext;
15
- exports.SingleLineComment = require_core_components_single_line_comment.SingleLineComment;
16
- exports.SourceFile = require_core_components_source_file.SourceFile;
14
+ exports.SingleLineComment = require_single_line_comment.SingleLineComment;
15
+ exports.SourceFile = require_source_file.SourceFile;
17
16
  exports.useMeta = require_core_contexts_context.useMeta;
18
17
  exports.useMetaSafe = require_core_contexts_context.useMetaSafe;
19
18
  exports.usePowerlines = require_core_contexts_context.usePowerlines;
@@ -1,8 +1,8 @@
1
- import { MetaItem, PowerlinesContext, PowerlinesContextInterface, __ΩMetaItem, __ΩPowerlinesContextInterface, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe } from "./contexts/context.cjs";
1
+ import { MetaItem, PowerlinesContextInterface, __ΩMetaItem, __ΩPowerlinesContextInterface, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe } from "./contexts/context.cjs";
2
2
  import { Output, OutputProps, __ΩOutputProps } from "./components/output.cjs";
3
3
  import { SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant } from "./components/single-line-comment.cjs";
4
4
  import { SourceFile, SourceFileProps, __ΩSourceFileProps } from "./components/source-file.cjs";
5
5
  import "./components/index.cjs";
6
6
  import { ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, __ΩReflectionClassContextInterface, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty } from "./contexts/reflection.cjs";
7
7
  import "./contexts/index.cjs";
8
- export { MetaItem, Output, OutputProps, PowerlinesContext, PowerlinesContextInterface, ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, SourceFile, SourceFileProps, __ΩMetaItem, __ΩOutputProps, __ΩPowerlinesContextInterface, __ΩReflectionClassContextInterface, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant, __ΩSourceFileProps, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
8
+ export { MetaItem, Output, OutputProps, PowerlinesContextInterface, ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, SourceFile, SourceFileProps, __ΩMetaItem, __ΩOutputProps, __ΩPowerlinesContextInterface, __ΩReflectionClassContextInterface, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant, __ΩSourceFileProps, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
@@ -1,8 +1,8 @@
1
- import { MetaItem, PowerlinesContext, PowerlinesContextInterface, __ΩMetaItem, __ΩPowerlinesContextInterface, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe } from "./contexts/context.mjs";
1
+ import { MetaItem, PowerlinesContextInterface, __ΩMetaItem, __ΩPowerlinesContextInterface, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe } from "./contexts/context.mjs";
2
2
  import { Output, OutputProps, __ΩOutputProps } from "./components/output.mjs";
3
3
  import { SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant } from "./components/single-line-comment.mjs";
4
4
  import { SourceFile, SourceFileProps, __ΩSourceFileProps } from "./components/source-file.mjs";
5
5
  import "./components/index.mjs";
6
6
  import { ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, __ΩReflectionClassContextInterface, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty } from "./contexts/reflection.mjs";
7
7
  import "./contexts/index.mjs";
8
- export { MetaItem, Output, OutputProps, PowerlinesContext, PowerlinesContextInterface, ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, SourceFile, SourceFileProps, __ΩMetaItem, __ΩOutputProps, __ΩPowerlinesContextInterface, __ΩReflectionClassContextInterface, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant, __ΩSourceFileProps, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
8
+ export { MetaItem, Output, OutputProps, PowerlinesContextInterface, ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, SourceFile, SourceFileProps, __ΩMetaItem, __ΩOutputProps, __ΩPowerlinesContextInterface, __ΩReflectionClassContextInterface, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant, __ΩSourceFileProps, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
@@ -1,9 +1,9 @@
1
- import { PowerlinesContext, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe } from "./contexts/context.mjs";
1
+ import { Output } from "./components/output.mjs";
2
2
  import { SingleLineComment } from "./components/single-line-comment.mjs";
3
+ import { useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe } from "./contexts/context.mjs";
3
4
  import { ReflectionClassContext, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty } from "./contexts/reflection.mjs";
4
5
  import "./contexts/index.mjs";
5
6
  import { SourceFile } from "./components/source-file.mjs";
6
- import { Output } from "./components/output.mjs";
7
7
  import "./components/index.mjs";
8
8
 
9
- export { Output, PowerlinesContext, ReflectionClassContext, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, SingleLineComment, SourceFile, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
9
+ export { Output, ReflectionClassContext, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, SingleLineComment, SourceFile, useMeta, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
package/dist/index.cjs CHANGED
@@ -1,14 +1,15 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
2
  const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
3
- const require_core_components_output = require('./core/components/output.cjs');
3
+ const require_output = require('./core/components/output.cjs');
4
+ const require_unctx = require('./internal/unctx.cjs');
4
5
  let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
5
- let __alloy_js_core = require("@alloy-js/core");
6
- let __stryke_path_file_path_fns = require("@stryke/path/file-path-fns");
7
6
  let __alloy_js_babel_preset = require("@alloy-js/babel-preset");
8
7
  __alloy_js_babel_preset = require_rolldown_runtime.__toESM(__alloy_js_babel_preset);
8
+ let __alloy_js_core = require("@alloy-js/core");
9
9
  let __powerlines_plugin_babel = require("@powerlines/plugin-babel");
10
10
  __powerlines_plugin_babel = require_rolldown_runtime.__toESM(__powerlines_plugin_babel);
11
11
  let __stryke_json_storm_json = require("@stryke/json/storm-json");
12
+ let __stryke_path_file_path_fns = require("@stryke/path/file-path-fns");
12
13
 
13
14
  //#region src/index.tsx
14
15
  /**
@@ -51,22 +52,25 @@ const plugin = (options = {}) => {
51
52
  }
52
53
  },
53
54
  {
54
- name: "alloy:create-render",
55
+ name: "alloy:attach-render",
55
56
  configResolved: {
56
57
  order: "pre",
57
58
  async handler() {
58
59
  this.debug("Attaching the `render` method to the context object.");
59
60
  this.render = async (children) => {
60
- const _render = async (_children) => {
61
+ const meta = {};
62
+ await require_unctx.unctx.callAsync({
63
+ value: this,
64
+ meta
65
+ }, async () => {
61
66
  const _self$ = this;
62
- const meta = {};
63
- await (0, __alloy_js_core.traverseOutput)(await (0, __alloy_js_core.renderAsync)((0, __alloy_js_core_jsx_runtime.createComponent)(require_core_components_output.Output, {
67
+ await (0, __alloy_js_core.traverseOutput)(await (0, __alloy_js_core.renderAsync)((0, __alloy_js_core_jsx_runtime.createComponent)(require_output.Output, {
64
68
  context: _self$,
65
69
  meta,
66
70
  get basePath() {
67
71
  return _self$.workspaceConfig.workspaceRoot;
68
72
  },
69
- children: _children
73
+ children
70
74
  })), {
71
75
  visitDirectory: (directory) => {
72
76
  if (this.fs.existsSync(directory.path)) return;
@@ -91,8 +95,7 @@ const plugin = (options = {}) => {
91
95
  } else this.fs.copySync(file.sourcePath, file.path);
92
96
  }
93
97
  });
94
- };
95
- await _render(children);
98
+ });
96
99
  };
97
100
  }
98
101
  }
package/dist/index.mjs CHANGED
@@ -1,10 +1,11 @@
1
1
  import { Output as Output$1 } from "./core/components/output.mjs";
2
+ import { unctx } from "./internal/unctx.mjs";
2
3
  import { createComponent } from "@alloy-js/core/jsx-runtime";
3
- import { renderAsync, traverseOutput } from "@alloy-js/core";
4
- import { findFileExtension, findFileExtensionSafe } from "@stryke/path/file-path-fns";
5
4
  import alloyPreset from "@alloy-js/babel-preset";
5
+ import { renderAsync, traverseOutput } from "@alloy-js/core";
6
6
  import babel from "@powerlines/plugin-babel";
7
7
  import { StormJSON } from "@stryke/json/storm-json";
8
+ import { findFileExtension, findFileExtensionSafe } from "@stryke/path/file-path-fns";
8
9
 
9
10
  //#region src/index.tsx
10
11
  /**
@@ -47,22 +48,25 @@ const plugin = (options = {}) => {
47
48
  }
48
49
  },
49
50
  {
50
- name: "alloy:create-render",
51
+ name: "alloy:attach-render",
51
52
  configResolved: {
52
53
  order: "pre",
53
54
  async handler() {
54
55
  this.debug("Attaching the `render` method to the context object.");
55
56
  this.render = async (children) => {
56
- const _render = async (_children) => {
57
+ const meta = {};
58
+ await unctx.callAsync({
59
+ value: this,
60
+ meta
61
+ }, async () => {
57
62
  const _self$ = this;
58
- const meta = {};
59
63
  await traverseOutput(await renderAsync(createComponent(Output$1, {
60
64
  context: _self$,
61
65
  meta,
62
66
  get basePath() {
63
67
  return _self$.workspaceConfig.workspaceRoot;
64
68
  },
65
- children: _children
69
+ children
66
70
  })), {
67
71
  visitDirectory: (directory) => {
68
72
  if (this.fs.existsSync(directory.path)) return;
@@ -87,8 +91,7 @@ const plugin = (options = {}) => {
87
91
  } else this.fs.copySync(file.sourcePath, file.path);
88
92
  }
89
93
  });
90
- };
91
- await _render(children);
94
+ });
92
95
  };
93
96
  }
94
97
  }