@powerlines/plugin-nodejs 0.1.116 → 0.1.117

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 (144) hide show
  1. package/dist/components/env.cjs +14 -14
  2. package/dist/components/env.mjs +6 -6
  3. package/dist/deepkit/schemas/reflection.cjs +3998 -0
  4. package/dist/deepkit/schemas/reflection.mjs +3996 -0
  5. package/dist/deepkit/schemas/reflection2.cjs +4112 -0
  6. package/dist/deepkit/schemas/reflection2.mjs +4110 -0
  7. package/dist/deepkit/src/capnp.cjs +913 -0
  8. package/dist/deepkit/src/capnp.mjs +911 -0
  9. package/dist/deepkit/src/esbuild-plugin.cjs +47 -0
  10. package/dist/deepkit/src/esbuild-plugin.mjs +46 -0
  11. package/dist/deepkit/src/reflect-type.cjs +22 -0
  12. package/dist/deepkit/src/reflect-type.mjs +20 -0
  13. package/dist/deepkit/src/resolve-reflections.cjs +16 -0
  14. package/dist/deepkit/src/resolve-reflections.mjs +15 -0
  15. package/dist/deepkit/src/transformer.cjs +52 -0
  16. package/dist/deepkit/src/transformer.mjs +49 -0
  17. package/dist/deepkit/src/transpile.cjs +29 -0
  18. package/dist/deepkit/src/transpile.mjs +27 -0
  19. package/dist/deepkit/src/utilities.cjs +67 -0
  20. package/dist/deepkit/src/utilities.mjs +66 -0
  21. package/dist/index.cjs +6 -8
  22. package/dist/index.mjs +5 -5
  23. package/dist/plugin-alloy/src/core/components/output.cjs +43 -0
  24. package/dist/plugin-alloy/src/core/components/output.mjs +42 -0
  25. package/dist/plugin-alloy/src/core/components/single-line-comment.cjs +22 -0
  26. package/dist/plugin-alloy/src/core/components/single-line-comment.mjs +21 -0
  27. package/dist/plugin-alloy/src/core/components/source-file.cjs +64 -0
  28. package/dist/plugin-alloy/src/core/components/source-file.mjs +62 -0
  29. package/dist/plugin-alloy/src/core/contexts/context.cjs +49 -0
  30. package/dist/plugin-alloy/src/core/contexts/context.mjs +44 -0
  31. package/dist/plugin-alloy/src/core/contexts/index.cjs +2 -0
  32. package/dist/plugin-alloy/src/core/contexts/index.mjs +4 -0
  33. package/dist/plugin-alloy/src/core/contexts/reflection.cjs +46 -0
  34. package/dist/plugin-alloy/src/core/contexts/reflection.mjs +42 -0
  35. package/dist/plugin-alloy/src/helpers/refkey.cjs +16 -0
  36. package/dist/plugin-alloy/src/helpers/refkey.mjs +15 -0
  37. package/dist/plugin-alloy/src/index.cjs +105 -0
  38. package/dist/plugin-alloy/src/index.mjs +103 -0
  39. package/dist/plugin-alloy/src/markdown/components/markdown-file.cjs +115 -0
  40. package/dist/plugin-alloy/src/markdown/components/markdown-file.mjs +114 -0
  41. package/dist/plugin-alloy/src/markdown/components/markdown-table.cjs +39 -0
  42. package/dist/plugin-alloy/src/markdown/components/markdown-table.mjs +38 -0
  43. package/dist/plugin-alloy/src/markdown/contexts/markdown-table.cjs +18 -0
  44. package/dist/plugin-alloy/src/markdown/contexts/markdown-table.mjs +17 -0
  45. package/dist/plugin-alloy/src/types/components.d.mts +2 -1
  46. package/dist/plugin-alloy/src/typescript/components/builtin-file.cjs +62 -0
  47. package/dist/plugin-alloy/src/typescript/components/builtin-file.mjs +61 -0
  48. package/dist/plugin-alloy/src/typescript/components/tsdoc-reflection.cjs +131 -0
  49. package/dist/plugin-alloy/src/typescript/components/tsdoc-reflection.mjs +129 -0
  50. package/dist/plugin-alloy/src/typescript/components/tsdoc.cjs +451 -0
  51. package/dist/plugin-alloy/src/typescript/components/tsdoc.d.mts +1 -1
  52. package/dist/plugin-alloy/src/typescript/components/tsdoc.mjs +442 -0
  53. package/dist/plugin-alloy/src/typescript/components/typescript-file.cjs +216 -0
  54. package/dist/plugin-alloy/src/typescript/components/typescript-file.d.mts +1 -1
  55. package/dist/plugin-alloy/src/typescript/components/typescript-file.mjs +213 -0
  56. package/dist/plugin-alloy/src/typescript/components/typescript-interface.cjs +72 -0
  57. package/dist/plugin-alloy/src/typescript/components/typescript-interface.d.mts +2 -2
  58. package/dist/plugin-alloy/src/typescript/components/typescript-interface.mjs +71 -0
  59. package/dist/plugin-alloy/src/typescript/components/typescript-object.cjs +124 -0
  60. package/dist/plugin-alloy/src/typescript/components/typescript-object.mjs +123 -0
  61. package/dist/plugin-automd/src/index.cjs +101 -0
  62. package/dist/plugin-automd/src/index.mjs +98 -0
  63. package/dist/plugin-automd/src/types/plugin.d.mts +3 -1
  64. package/dist/plugin-babel/src/helpers/ast-utils.cjs +10 -0
  65. package/dist/plugin-babel/src/helpers/ast-utils.mjs +9 -0
  66. package/dist/plugin-babel/src/helpers/create-plugin.cjs +41 -0
  67. package/dist/plugin-babel/src/helpers/create-plugin.mjs +39 -0
  68. package/dist/plugin-babel/src/helpers/filters.cjs +23 -0
  69. package/dist/plugin-babel/src/helpers/filters.mjs +21 -0
  70. package/dist/plugin-babel/src/helpers/index.cjs +5 -0
  71. package/dist/plugin-babel/src/helpers/index.mjs +7 -0
  72. package/dist/plugin-babel/src/helpers/module-helpers.cjs +38 -0
  73. package/dist/plugin-babel/src/helpers/module-helpers.mjs +35 -0
  74. package/dist/plugin-babel/src/helpers/options.cjs +49 -0
  75. package/dist/plugin-babel/src/helpers/options.mjs +46 -0
  76. package/dist/plugin-babel/src/index.cjs +85 -0
  77. package/dist/plugin-babel/src/index.mjs +83 -0
  78. package/dist/plugin-babel/src/types/index.d.mts +1 -0
  79. package/dist/plugin-env/src/babel/index.cjs +1 -0
  80. package/dist/plugin-env/src/babel/index.mjs +3 -0
  81. package/dist/plugin-env/src/babel/plugin.cjs +70 -0
  82. package/dist/plugin-env/src/babel/plugin.mjs +69 -0
  83. package/dist/plugin-env/src/components/docs.cjs +70 -0
  84. package/dist/plugin-env/src/components/docs.mjs +69 -0
  85. package/dist/plugin-env/src/components/env.cjs +589 -0
  86. package/dist/plugin-env/src/components/env.mjs +586 -0
  87. package/dist/plugin-env/src/components/index.cjs +2 -0
  88. package/dist/plugin-env/src/components/index.mjs +4 -0
  89. package/dist/plugin-env/src/helpers/automd-generator.cjs +22 -0
  90. package/dist/plugin-env/src/helpers/automd-generator.mjs +21 -0
  91. package/dist/plugin-env/src/helpers/create-reflection-resource.cjs +55 -0
  92. package/dist/plugin-env/src/helpers/create-reflection-resource.mjs +54 -0
  93. package/dist/plugin-env/src/helpers/docs-helper.cjs +16 -0
  94. package/dist/plugin-env/src/helpers/docs-helper.mjs +15 -0
  95. package/dist/plugin-env/src/helpers/index.cjs +6 -0
  96. package/dist/plugin-env/src/helpers/index.mjs +8 -0
  97. package/dist/plugin-env/src/helpers/load.cjs +84 -0
  98. package/dist/plugin-env/src/helpers/load.mjs +81 -0
  99. package/dist/plugin-env/src/helpers/persistence.cjs +201 -0
  100. package/dist/plugin-env/src/helpers/persistence.mjs +190 -0
  101. package/dist/plugin-env/src/helpers/reflect.cjs +125 -0
  102. package/dist/plugin-env/src/helpers/reflect.mjs +117 -0
  103. package/dist/plugin-env/src/helpers/source-file-env.cjs +24 -0
  104. package/dist/plugin-env/src/helpers/source-file-env.mjs +23 -0
  105. package/dist/plugin-env/src/helpers/template-helpers.cjs +2 -0
  106. package/dist/plugin-env/src/helpers/template-helpers.mjs +4 -0
  107. package/dist/plugin-env/src/index.cjs +177 -0
  108. package/dist/plugin-env/src/index.mjs +175 -0
  109. package/dist/plugin-env/src/types/plugin.d.mts +2 -1
  110. package/dist/powerlines/src/internal/helpers/hooks.d.mts +2 -0
  111. package/dist/powerlines/src/lib/build/esbuild.cjs +93 -0
  112. package/dist/powerlines/src/lib/build/esbuild.mjs +91 -0
  113. package/dist/powerlines/src/lib/constants/environments.cjs +6 -0
  114. package/dist/powerlines/src/lib/constants/environments.mjs +5 -0
  115. package/dist/powerlines/src/lib/entry.cjs +11 -0
  116. package/dist/powerlines/src/lib/entry.mjs +13 -0
  117. package/dist/powerlines/src/lib/logger.cjs +41 -0
  118. package/dist/powerlines/src/lib/logger.mjs +39 -0
  119. package/dist/powerlines/src/lib/typescript/tsconfig.cjs +38 -0
  120. package/dist/powerlines/src/lib/typescript/tsconfig.mjs +35 -0
  121. package/dist/powerlines/src/lib/unplugin/helpers.cjs +3 -0
  122. package/dist/powerlines/src/lib/unplugin/helpers.mjs +5 -0
  123. package/dist/powerlines/src/lib/unplugin/module-resolution.cjs +66 -0
  124. package/dist/powerlines/src/lib/unplugin/module-resolution.mjs +65 -0
  125. package/dist/powerlines/src/lib/unplugin/plugin.cjs +46 -0
  126. package/dist/powerlines/src/lib/unplugin/plugin.mjs +45 -0
  127. package/dist/powerlines/src/lib/utilities/bundle.cjs +42 -0
  128. package/dist/powerlines/src/lib/utilities/bundle.mjs +40 -0
  129. package/dist/powerlines/src/lib/utilities/resolve.cjs +50 -0
  130. package/dist/powerlines/src/lib/utilities/resolve.mjs +49 -0
  131. package/dist/powerlines/src/lib/utilities/source-file.cjs +5 -0
  132. package/dist/powerlines/src/lib/utilities/source-file.mjs +5 -0
  133. package/dist/powerlines/src/plugin-utils/paths.cjs +1 -0
  134. package/dist/powerlines/src/plugin-utils/paths.mjs +3 -0
  135. package/dist/powerlines/src/types/build.cjs +21 -0
  136. package/dist/powerlines/src/types/build.d.mts +6 -6
  137. package/dist/powerlines/src/types/build.mjs +21 -0
  138. package/dist/powerlines/src/types/commands.d.mts +1 -0
  139. package/dist/powerlines/src/types/config.d.mts +3 -2
  140. package/dist/powerlines/src/types/context.d.mts +2 -2
  141. package/dist/powerlines/src/types/plugin.d.mts +1 -1
  142. package/dist/powerlines/src/types/tsconfig.d.mts +1 -1
  143. package/dist/powerlines/src/types/unplugin.d.mts +2 -1
  144. package/package.json +6 -6
@@ -1,14 +1,14 @@
1
1
  const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
2
+ const require_context = require('../plugin-alloy/src/core/contexts/context.cjs');
3
+ const require_tsdoc = require('../plugin-alloy/src/typescript/components/tsdoc.cjs');
4
+ const require_env = require('../plugin-env/src/components/env.cjs');
2
5
  let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
3
- let __alloy_js_core = require("@alloy-js/core");
4
- let __alloy_js_typescript = require("@alloy-js/typescript");
5
- let __powerlines_plugin_alloy_core_contexts_context = require("@powerlines/plugin-alloy/core/contexts/context");
6
- let __powerlines_plugin_alloy_typescript_components_tsdoc = require("@powerlines/plugin-alloy/typescript/components/tsdoc");
7
- let __powerlines_plugin_env_components_env = require("@powerlines/plugin-env/components/env");
8
- let __stryke_string_format_kebab_case = require("@stryke/string-format/kebab-case");
9
- let __stryke_string_format_title_case = require("@stryke/string-format/title-case");
10
6
  let defu = require("defu");
11
7
  defu = require_rolldown_runtime.__toESM(defu);
8
+ let __stryke_string_format_kebab_case = require("@stryke/string-format/kebab-case");
9
+ let __stryke_string_format_title_case = require("@stryke/string-format/title-case");
10
+ let __alloy_js_core = require("@alloy-js/core");
11
+ let __alloy_js_typescript = require("@alloy-js/typescript");
12
12
 
13
13
  //#region src/components/env.tsx
14
14
  /**
@@ -16,8 +16,8 @@ defu = require_rolldown_runtime.__toESM(defu);
16
16
  */
17
17
  function NodeJsEnvBuiltin(props) {
18
18
  const [{ children }, rest] = (0, __alloy_js_core.splitProps)(props, ["children"]);
19
- const context = (0, __powerlines_plugin_alloy_core_contexts_context.usePowerlines)();
20
- return (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_env_components_env.EnvBuiltin, (0, __alloy_js_core_jsx_runtime.mergeProps)(rest, {
19
+ const context = require_context.usePowerlines();
20
+ return (0, __alloy_js_core_jsx_runtime.createComponent)(require_env.EnvBuiltin, (0, __alloy_js_core_jsx_runtime.mergeProps)(rest, {
21
21
  get imports() {
22
22
  return (0, defu.default)({
23
23
  "node:os": "os",
@@ -67,10 +67,10 @@ function NodeJsEnvBuiltin(props) {
67
67
  }),
68
68
  (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
69
69
  (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
70
- (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, {
70
+ (0, __alloy_js_core_jsx_runtime.createComponent)(require_tsdoc.TSDoc, {
71
71
  heading: "The environment path types for storing things like data, config, logs, and cache in the current runtime environment.",
72
72
  get children() {
73
- return (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDocRemarks, { children: `These environment path types are accessed in the {@link EnvPaths} type. ` });
73
+ return (0, __alloy_js_core_jsx_runtime.createComponent)(require_tsdoc.TSDocRemarks, { children: `These environment path types are accessed in the {@link EnvPaths} type. ` });
74
74
  }
75
75
  }),
76
76
  (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.TypeDeclaration, {
@@ -80,7 +80,7 @@ function NodeJsEnvBuiltin(props) {
80
80
  }),
81
81
  (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
82
82
  (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
83
- (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, { heading: "The environment paths for storing things like data, config, logs, and cache in the current runtime environment." }),
83
+ (0, __alloy_js_core_jsx_runtime.createComponent)(require_tsdoc.TSDoc, { heading: "The environment paths for storing things like data, config, logs, and cache in the current runtime environment." }),
84
84
  (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_typescript.TypeDeclaration, {
85
85
  "export": true,
86
86
  name: "EnvPaths",
@@ -88,10 +88,10 @@ function NodeJsEnvBuiltin(props) {
88
88
  }),
89
89
  (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
90
90
  (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
91
- (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, {
91
+ (0, __alloy_js_core_jsx_runtime.createComponent)(require_tsdoc.TSDoc, {
92
92
  heading: "The resolved application directories based on the current operating system and environment variables.",
93
93
  get children() {
94
- return (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDocRemarks, { children: __alloy_js_core.code`If the \`DATA_DIR\`, \`CONFIG_DIR\`, \`CACHE_DIR\`, \`LOG_DIR\`, or \`TEMP_DIR\` environment variables are set, they will be treated as overrides and used by default. If the environment variables are not set, the paths are determined based on the specific conventions for each operating system (with additional overrides available through operating system specific environment variables):
94
+ return (0, __alloy_js_core_jsx_runtime.createComponent)(require_tsdoc.TSDocRemarks, { children: __alloy_js_core.code`If the \`DATA_DIR\`, \`CONFIG_DIR\`, \`CACHE_DIR\`, \`LOG_DIR\`, or \`TEMP_DIR\` environment variables are set, they will be treated as overrides and used by default. If the environment variables are not set, the paths are determined based on the specific conventions for each operating system (with additional overrides available through operating system specific environment variables):
95
95
  - **Linux**: directories are generally created in \`~/.config/<name>\` (this is determined via the [XDG Base Directory spec](https://specifications.freedesktop.org/basedir-spec/latest/))
96
96
  - **Windows**: directories are generally created in \`%AppData%/<name>\`
97
97
  - **MacOS**: directories are generally created in \`~/Library/Application Support/<name>\`
@@ -1,12 +1,12 @@
1
+ import { usePowerlines } from "../plugin-alloy/src/core/contexts/context.mjs";
2
+ import { TSDoc, TSDocRemarks } from "../plugin-alloy/src/typescript/components/tsdoc.mjs";
3
+ import { EnvBuiltin } from "../plugin-env/src/components/env.mjs";
1
4
  import { createComponent, createIntrinsic, mergeProps } from "@alloy-js/core/jsx-runtime";
2
- import { Show, code, splitProps } from "@alloy-js/core";
3
- import { TypeDeclaration, VarDeclaration } from "@alloy-js/typescript";
4
- import { usePowerlines } from "@powerlines/plugin-alloy/core/contexts/context";
5
- import { TSDoc, TSDocRemarks } from "@powerlines/plugin-alloy/typescript/components/tsdoc";
6
- import { EnvBuiltin } from "@powerlines/plugin-env/components/env";
5
+ import defu from "defu";
7
6
  import { kebabCase } from "@stryke/string-format/kebab-case";
8
7
  import { titleCase } from "@stryke/string-format/title-case";
9
- import defu from "defu";
8
+ import { Show, code, splitProps } from "@alloy-js/core";
9
+ import { TypeDeclaration, VarDeclaration } from "@alloy-js/typescript";
10
10
 
11
11
  //#region src/components/env.tsx
12
12
  /**