@powerlines/plugin-nodejs 0.1.7 → 0.1.9

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 (127) hide show
  1. package/dist/components/env.cjs +14 -14
  2. package/dist/components/env.mjs +6 -6
  3. package/dist/index.cjs +8 -6
  4. package/dist/index.mjs +5 -5
  5. package/dist/plugin-alloy/src/types/components.d.mts +1 -2
  6. package/dist/plugin-alloy/src/typescript/components/typescript-file.d.mts +1 -1
  7. package/dist/plugin-alloy/src/typescript/components/typescript-interface.d.mts +2 -2
  8. package/dist/plugin-automd/src/types/plugin.d.mts +1 -3
  9. package/dist/plugin-env/src/types/plugin.d.mts +1 -2
  10. package/dist/powerlines/src/internal/helpers/hooks.d.mts +0 -2
  11. package/dist/powerlines/src/types/build.d.mts +6 -6
  12. package/dist/powerlines/src/types/commands.d.mts +0 -1
  13. package/dist/powerlines/src/types/config.d.mts +2 -3
  14. package/dist/powerlines/src/types/tsconfig.d.mts +1 -1
  15. package/dist/powerlines/src/types/unplugin.d.mts +0 -1
  16. package/package.json +11 -9
  17. package/dist/deepkit/schemas/reflection.cjs +0 -3940
  18. package/dist/deepkit/schemas/reflection.mjs +0 -3938
  19. package/dist/deepkit/schemas/reflection2.cjs +0 -4112
  20. package/dist/deepkit/schemas/reflection2.mjs +0 -4110
  21. package/dist/deepkit/src/capnp.cjs +0 -913
  22. package/dist/deepkit/src/capnp.mjs +0 -911
  23. package/dist/deepkit/src/esbuild-plugin.cjs +0 -47
  24. package/dist/deepkit/src/esbuild-plugin.mjs +0 -46
  25. package/dist/deepkit/src/reflect-type.cjs +0 -22
  26. package/dist/deepkit/src/reflect-type.mjs +0 -20
  27. package/dist/deepkit/src/resolve-reflections.cjs +0 -16
  28. package/dist/deepkit/src/resolve-reflections.mjs +0 -15
  29. package/dist/deepkit/src/transformer.cjs +0 -52
  30. package/dist/deepkit/src/transformer.mjs +0 -49
  31. package/dist/deepkit/src/transpile.cjs +0 -29
  32. package/dist/deepkit/src/transpile.mjs +0 -27
  33. package/dist/deepkit/src/utilities.cjs +0 -66
  34. package/dist/deepkit/src/utilities.mjs +0 -65
  35. package/dist/plugin-alloy/src/core/components/output.cjs +0 -45
  36. package/dist/plugin-alloy/src/core/components/output.mjs +0 -44
  37. package/dist/plugin-alloy/src/core/components/single-line-comment.cjs +0 -22
  38. package/dist/plugin-alloy/src/core/components/single-line-comment.mjs +0 -21
  39. package/dist/plugin-alloy/src/core/components/source-file.cjs +0 -64
  40. package/dist/plugin-alloy/src/core/components/source-file.mjs +0 -62
  41. package/dist/plugin-alloy/src/core/contexts/context.cjs +0 -60
  42. package/dist/plugin-alloy/src/core/contexts/context.mjs +0 -54
  43. package/dist/plugin-alloy/src/core/contexts/index.cjs +0 -2
  44. package/dist/plugin-alloy/src/core/contexts/index.mjs +0 -4
  45. package/dist/plugin-alloy/src/core/contexts/reflection.cjs +0 -46
  46. package/dist/plugin-alloy/src/core/contexts/reflection.mjs +0 -42
  47. package/dist/plugin-alloy/src/helpers/refkey.cjs +0 -16
  48. package/dist/plugin-alloy/src/helpers/refkey.mjs +0 -15
  49. package/dist/plugin-alloy/src/index.cjs +0 -106
  50. package/dist/plugin-alloy/src/index.mjs +0 -104
  51. package/dist/plugin-alloy/src/markdown/components/markdown-file.cjs +0 -7
  52. package/dist/plugin-alloy/src/markdown/components/markdown-file.mjs +0 -9
  53. package/dist/plugin-alloy/src/markdown/components/markdown-table.cjs +0 -5
  54. package/dist/plugin-alloy/src/markdown/components/markdown-table.mjs +0 -7
  55. package/dist/plugin-alloy/src/markdown/contexts/markdown-table.cjs +0 -17
  56. package/dist/plugin-alloy/src/markdown/contexts/markdown-table.mjs +0 -17
  57. package/dist/plugin-alloy/src/typescript/components/builtin-file.cjs +0 -57
  58. package/dist/plugin-alloy/src/typescript/components/builtin-file.mjs +0 -56
  59. package/dist/plugin-alloy/src/typescript/components/tsdoc-reflection.cjs +0 -126
  60. package/dist/plugin-alloy/src/typescript/components/tsdoc-reflection.mjs +0 -124
  61. package/dist/plugin-alloy/src/typescript/components/tsdoc.cjs +0 -442
  62. package/dist/plugin-alloy/src/typescript/components/tsdoc.mjs +0 -433
  63. package/dist/plugin-alloy/src/typescript/components/typescript-file.cjs +0 -212
  64. package/dist/plugin-alloy/src/typescript/components/typescript-file.mjs +0 -209
  65. package/dist/plugin-alloy/src/typescript/components/typescript-interface.cjs +0 -68
  66. package/dist/plugin-alloy/src/typescript/components/typescript-interface.mjs +0 -67
  67. package/dist/plugin-alloy/src/typescript/components/typescript-object.cjs +0 -124
  68. package/dist/plugin-alloy/src/typescript/components/typescript-object.mjs +0 -123
  69. package/dist/plugin-automd/src/index.cjs +0 -101
  70. package/dist/plugin-automd/src/index.mjs +0 -98
  71. package/dist/plugin-babel/src/helpers/ast-utils.cjs +0 -10
  72. package/dist/plugin-babel/src/helpers/ast-utils.mjs +0 -9
  73. package/dist/plugin-babel/src/helpers/create-plugin.cjs +0 -41
  74. package/dist/plugin-babel/src/helpers/create-plugin.mjs +0 -39
  75. package/dist/plugin-babel/src/helpers/filters.cjs +0 -23
  76. package/dist/plugin-babel/src/helpers/filters.mjs +0 -21
  77. package/dist/plugin-babel/src/helpers/index.cjs +0 -5
  78. package/dist/plugin-babel/src/helpers/index.mjs +0 -7
  79. package/dist/plugin-babel/src/helpers/module-helpers.cjs +0 -38
  80. package/dist/plugin-babel/src/helpers/module-helpers.mjs +0 -35
  81. package/dist/plugin-babel/src/helpers/options.cjs +0 -50
  82. package/dist/plugin-babel/src/helpers/options.mjs +0 -47
  83. package/dist/plugin-babel/src/index.cjs +0 -91
  84. package/dist/plugin-babel/src/index.mjs +0 -89
  85. package/dist/plugin-babel/src/types/index.d.mts +0 -1
  86. package/dist/plugin-env/src/babel/index.cjs +0 -1
  87. package/dist/plugin-env/src/babel/index.mjs +0 -3
  88. package/dist/plugin-env/src/babel/plugin.cjs +0 -121
  89. package/dist/plugin-env/src/babel/plugin.mjs +0 -119
  90. package/dist/plugin-env/src/components/docs.cjs +0 -9
  91. package/dist/plugin-env/src/components/docs.mjs +0 -11
  92. package/dist/plugin-env/src/components/env.cjs +0 -575
  93. package/dist/plugin-env/src/components/env.mjs +0 -572
  94. package/dist/plugin-env/src/components/index.cjs +0 -2
  95. package/dist/plugin-env/src/components/index.mjs +0 -4
  96. package/dist/plugin-env/src/helpers/automd-generator.cjs +0 -22
  97. package/dist/plugin-env/src/helpers/automd-generator.mjs +0 -21
  98. package/dist/plugin-env/src/helpers/create-reflection-resource.cjs +0 -55
  99. package/dist/plugin-env/src/helpers/create-reflection-resource.mjs +0 -54
  100. package/dist/plugin-env/src/helpers/index.cjs +0 -6
  101. package/dist/plugin-env/src/helpers/index.mjs +0 -8
  102. package/dist/plugin-env/src/helpers/load.cjs +0 -83
  103. package/dist/plugin-env/src/helpers/load.mjs +0 -80
  104. package/dist/plugin-env/src/helpers/persistence.cjs +0 -201
  105. package/dist/plugin-env/src/helpers/persistence.mjs +0 -190
  106. package/dist/plugin-env/src/helpers/reflect.cjs +0 -111
  107. package/dist/plugin-env/src/helpers/reflect.mjs +0 -103
  108. package/dist/plugin-env/src/helpers/source-file-env.cjs +0 -24
  109. package/dist/plugin-env/src/helpers/source-file-env.mjs +0 -23
  110. package/dist/plugin-env/src/helpers/template-helpers.cjs +0 -2
  111. package/dist/plugin-env/src/helpers/template-helpers.mjs +0 -4
  112. package/dist/plugin-env/src/index.cjs +0 -175
  113. package/dist/plugin-env/src/index.mjs +0 -173
  114. package/dist/powerlines/src/lib/build/esbuild.cjs +0 -102
  115. package/dist/powerlines/src/lib/build/esbuild.mjs +0 -100
  116. package/dist/powerlines/src/lib/entry.cjs +0 -12
  117. package/dist/powerlines/src/lib/entry.mjs +0 -14
  118. package/dist/powerlines/src/lib/logger.cjs +0 -41
  119. package/dist/powerlines/src/lib/logger.mjs +0 -39
  120. package/dist/powerlines/src/lib/typescript/tsconfig.cjs +0 -38
  121. package/dist/powerlines/src/lib/typescript/tsconfig.mjs +0 -35
  122. package/dist/powerlines/src/lib/utilities/bundle.cjs +0 -35
  123. package/dist/powerlines/src/lib/utilities/bundle.mjs +0 -34
  124. package/dist/powerlines/src/lib/utilities/resolve.cjs +0 -30
  125. package/dist/powerlines/src/lib/utilities/resolve.mjs +0 -29
  126. package/dist/powerlines/src/plugin-utils/paths.cjs +0 -1
  127. package/dist/powerlines/src/plugin-utils/paths.mjs +0 -3
@@ -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');
5
2
  let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
6
- let defu = require("defu");
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
3
  let __alloy_js_core = require("@alloy-js/core");
11
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
+ let defu = require("defu");
11
+ defu = require_rolldown_runtime.__toESM(defu);
12
12
 
13
13
  //#region src/components/env.tsx
14
14
  /**
@@ -16,8 +16,8 @@ let __alloy_js_typescript = require("@alloy-js/typescript");
16
16
  */
17
17
  function NodeJsEnvBuiltin(props) {
18
18
  const [{ children }, rest] = (0, __alloy_js_core.splitProps)(props, ["children"]);
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, {
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, {
21
21
  get imports() {
22
22
  return (0, defu.default)({
23
23
  "node:os": ["homedir", "tmpdir"],
@@ -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)(require_tsdoc.TSDoc, {
70
+ (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_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)(require_tsdoc.TSDocRemarks, { children: `These environment path types are accessed in the {@link EnvPaths} type. ` });
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. ` });
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)(require_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)(__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." }),
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)(require_tsdoc.TSDoc, {
91
+ (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_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)(require_tsdoc.TSDocRemarks, { children: `These paths are determined based on the conventions for each operating system, with overrides available through specific environment variables:
94
+ return (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_typescript_components_tsdoc.TSDocRemarks, { children: `These paths are determined based on the conventions for each operating system, with overrides available through specific environment variables:
95
95
  - On macOS, directories are generally created in \`~/Library/Application Support/<name>\`.
96
96
  - On Windows, directories are generally created in \`%AppData%/<name>\`.
97
97
  - On Linux, directories are generally created in \`~/.config/<name>\` - this is determined via the [XDG Base Directory spec](https://specifications.freedesktop.org/basedir-spec/latest/).
@@ -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";
4
1
  import { createComponent, createIntrinsic, mergeProps } from "@alloy-js/core/jsx-runtime";
5
- import defu from "defu";
6
- import { kebabCase } from "@stryke/string-format/kebab-case";
7
- import { titleCase } from "@stryke/string-format/title-case";
8
2
  import { Show, code, splitProps } from "@alloy-js/core";
9
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";
7
+ import { kebabCase } from "@stryke/string-format/kebab-case";
8
+ import { titleCase } from "@stryke/string-format/title-case";
9
+ import defu from "defu";
10
10
 
11
11
  //#region src/components/env.tsx
12
12
  /**
package/dist/index.cjs CHANGED
@@ -1,11 +1,13 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
2
  const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
3
- const require_index = require('./plugin-babel/src/index.cjs');
4
- const require_index$1 = require('./plugin-env/src/index.cjs');
5
- const require_tsconfig = require('./powerlines/src/lib/typescript/tsconfig.cjs');
6
3
  const require_components_env = require('./components/env.cjs');
7
4
  require('./components/index.cjs');
8
5
  let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
6
+ let __powerlines_plugin_babel = require("@powerlines/plugin-babel");
7
+ __powerlines_plugin_babel = require_rolldown_runtime.__toESM(__powerlines_plugin_babel);
8
+ let __powerlines_plugin_env = require("@powerlines/plugin-env");
9
+ __powerlines_plugin_env = require_rolldown_runtime.__toESM(__powerlines_plugin_env);
10
+ let powerlines_lib_typescript_tsconfig = require("powerlines/lib/typescript/tsconfig");
9
11
 
10
12
  //#region src/index.tsx
11
13
  /**
@@ -13,15 +15,15 @@ let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
13
15
  */
14
16
  const plugin = (options = {}) => {
15
17
  return [
16
- require_index.default(options.babel),
17
- require_index$1.default(options.env),
18
+ (0, __powerlines_plugin_babel.default)(options.babel),
19
+ (0, __powerlines_plugin_env.default)(options.env),
18
20
  {
19
21
  name: "nodejs",
20
22
  configResolved() {
21
23
  this.devDependencies["@types/node"] = "^22.14.6";
22
24
  this.tsconfig.tsconfigJson.compilerOptions ??= {};
23
25
  this.tsconfig.tsconfigJson.compilerOptions.types ??= [];
24
- if (!require_tsconfig.isMatchFound("node", this.tsconfig.tsconfigJson.compilerOptions.types)) this.tsconfig.tsconfigJson.compilerOptions.types.push("node");
26
+ if (!(0, powerlines_lib_typescript_tsconfig.isMatchFound)("node", this.tsconfig.tsconfigJson.compilerOptions.types)) this.tsconfig.tsconfigJson.compilerOptions.types.push("node");
25
27
  },
26
28
  async prepare() {
27
29
  const _self$ = this;
package/dist/index.mjs CHANGED
@@ -1,9 +1,9 @@
1
- import src_default$1 from "./plugin-babel/src/index.mjs";
2
- import src_default$2 from "./plugin-env/src/index.mjs";
3
- import { isMatchFound } from "./powerlines/src/lib/typescript/tsconfig.mjs";
4
1
  import { NodeJsEnvBuiltin } from "./components/env.mjs";
5
2
  import "./components/index.mjs";
6
3
  import { createComponent } from "@alloy-js/core/jsx-runtime";
4
+ import babel from "@powerlines/plugin-babel";
5
+ import env from "@powerlines/plugin-env";
6
+ import { isMatchFound } from "powerlines/lib/typescript/tsconfig";
7
7
 
8
8
  //#region src/index.tsx
9
9
  /**
@@ -11,8 +11,8 @@ import { createComponent } from "@alloy-js/core/jsx-runtime";
11
11
  */
12
12
  const plugin = (options = {}) => {
13
13
  return [
14
- src_default$1(options.babel),
15
- src_default$2(options.env),
14
+ babel(options.babel),
15
+ env(options.env),
16
16
  {
17
17
  name: "nodejs",
18
18
  configResolved() {
@@ -1,6 +1,5 @@
1
- import "../../../powerlines/src/types/resolved.mjs";
2
1
  import { Children } from "@alloy-js/core";
3
- import { SourceFileContext as SourceFileContext$1 } from "@alloy-js/typescript";
2
+ import "@alloy-js/typescript";
4
3
 
5
4
  //#region ../plugin-alloy/src/types/components.d.ts
6
5
 
@@ -1,7 +1,7 @@
1
1
  import { ComponentProps, TypescriptFileImports } from "../../types/components.mjs";
2
2
  import { SourceFileProps as SourceFileProps$1 } from "../../core/components/source-file.mjs";
3
3
  import { Children } from "@alloy-js/core";
4
- import { TSModuleScope } from "@alloy-js/typescript";
4
+ import "@alloy-js/typescript";
5
5
 
6
6
  //#region ../plugin-alloy/src/typescript/components/typescript-file.d.ts
7
7
  type TypescriptFileProps = Omit<SourceFileProps$1, "filetype"> & ComponentProps & {
@@ -1,4 +1,4 @@
1
1
  import "../../types/components.mjs";
2
- import { ReflectionClass } from "@powerlines/deepkit/vendor/type";
3
2
  import "@alloy-js/core";
4
- import "@alloy-js/typescript";
3
+ import "@alloy-js/typescript";
4
+ import { ReflectionClass } from "@powerlines/deepkit/vendor/type";
@@ -1,10 +1,8 @@
1
- import "../../../powerlines/src/types/context.mjs";
2
- import "../../../powerlines/src/types/config.mjs";
3
- import "../../../powerlines/src/types/resolved.mjs";
4
1
  import { TOCOptions } from "./toc.mjs";
5
2
  import { Config } from "automd";
6
3
 
7
4
  //#region ../plugin-automd/src/types/plugin.d.ts
5
+
8
6
  type AutoMDPluginOptions = Omit<Config, "dir" | "watch" | "onWatch" | "prefix"> & {
9
7
  /**
10
8
  * Path to the AutoMD configuration file.
@@ -3,11 +3,10 @@ import { Reflection } from "../../../deepkit/src/types.mjs";
3
3
  import { AlloyPluginContext, AlloyPluginOptions, AlloyPluginResolvedConfig, AlloyPluginUserConfig } from "../../../plugin-alloy/src/types/plugin.mjs";
4
4
  import "../../../plugin-alloy/src/types/index.mjs";
5
5
  import { AutoMDPluginOptions } from "../../../plugin-automd/src/types/plugin.mjs";
6
- import "../../../plugin-babel/src/types/index.mjs";
7
6
  import { EnvInterface, SecretsInterface } from "./runtime.mjs";
8
7
  import { Children } from "@alloy-js/core/jsx-runtime";
9
- import { DotenvParseOutput } from "@stryke/env/types";
10
8
  import { DotenvConfiguration, TypeDefinition, TypeDefinitionParameter } from "@stryke/types/configuration";
9
+ import { DotenvParseOutput } from "@stryke/env/types";
11
10
 
12
11
  //#region ../plugin-env/src/types/plugin.d.ts
13
12
  type EnvPluginOptions = Omit<DotenvConfiguration, "types"> & {
@@ -1,6 +1,4 @@
1
- import "../../types/hooks.mjs";
2
1
  import { SelectHooksOptions } from "../../types/context.mjs";
3
- import "../../types/resolved.mjs";
4
2
  import { MaybePromise } from "@stryke/types/base";
5
3
 
6
4
  //#region ../powerlines/src/internal/helpers/hooks.d.ts
@@ -1,9 +1,9 @@
1
- import { BuildOptions } from "esbuild";
2
1
  import { DepOptimizationOptions, UserConfig } from "vite";
3
2
  import { UserConfig as UserConfig$1 } from "@farmfe/core";
4
3
  import { Configuration } from "@rspack/core";
5
- import { BuildOptions as BuildOptions$1 } from "@storm-software/tsup/types";
4
+ import { BuildOptions } from "@storm-software/tsup/types";
6
5
  import { UnbuildOptions } from "@storm-software/unbuild/types";
6
+ import { BuildOptions as BuildOptions$1 } from "esbuild";
7
7
  import { RolldownOptions } from "rolldown";
8
8
  import { OutputOptions, RollupOptions } from "rollup";
9
9
  import { UserConfig as UserConfig$2 } from "tsdown";
@@ -153,8 +153,8 @@ interface BuildConfig {
153
153
  override?: Record<string, any>;
154
154
  }
155
155
  type BuildResolvedConfig = Omit<BuildConfig, "override">;
156
- type ESBuildBuildConfig = Omit<BuildOptions, "entryPoints" | "sourceRoot" | "platform" | "outdir" | "env" | "assets" | "external" | "inject" | "tsconfig" | "tsconfigRaw" | "logLevel"> & BuildConfig;
157
- type ESBuildResolvedBuildConfig = Omit<BuildOptions, "inject"> & BuildResolvedConfig;
156
+ type ESBuildBuildConfig = Omit<BuildOptions$1, "entryPoints" | "sourceRoot" | "platform" | "outdir" | "env" | "assets" | "external" | "inject" | "tsconfig" | "tsconfigRaw" | "logLevel"> & BuildConfig;
157
+ type ESBuildResolvedBuildConfig = Omit<BuildOptions$1, "inject"> & BuildResolvedConfig;
158
158
  type ViteBuildConfig = Omit<UserConfig, "entry" | "entryPoints" | "tsconfig" | "tsconfigRaw" | "environments" | "output"> & BuildConfig & {
159
159
  /**
160
160
  * Optimize deps config
@@ -173,8 +173,8 @@ type RollupBuildConfig = Omit<RollupOptions, "entry" | "external" | "input" | "o
173
173
  type RollupResolvedBuildConfig = RollupOptions & BuildResolvedConfig;
174
174
  type RolldownBuildConfig = Omit<RolldownOptions, "input" | "external" | "tsconfig" | "logLevel" | "output"> & BuildConfig;
175
175
  type RolldownResolvedBuildConfig = RolldownOptions & BuildResolvedConfig;
176
- type TsupBuildConfig = Partial<Omit<BuildOptions$1, "userOptions" | "tsconfig" | "tsconfigRaw" | "assets" | "outputPath" | "mode" | "format" | "platform" | "projectRoot" | "clean" | "env" | "entry" | "entryPoints" | "external" | "noExternal" | "skipNodeModulesBundle">> & BuildConfig;
177
- type TsupResolvedBuildConfig = BuildOptions$1 & BuildResolvedConfig;
176
+ type TsupBuildConfig = Partial<Omit<BuildOptions, "userOptions" | "tsconfig" | "tsconfigRaw" | "assets" | "outputPath" | "mode" | "format" | "platform" | "projectRoot" | "clean" | "env" | "entry" | "entryPoints" | "external" | "noExternal" | "skipNodeModulesBundle">> & BuildConfig;
177
+ type TsupResolvedBuildConfig = BuildOptions & BuildResolvedConfig;
178
178
  type TsdownBuildConfig = Partial<Omit<UserConfig$2, "name" | "outDir" | "clean" | "cwd" | "tsconfig" | "publicDir" | "copy" | "alias" | "format" | "platform" | "env" | "define" | "entry" | "external" | "noExternal" | "skipNodeModulesBundle">> & BuildConfig;
179
179
  type TsdownResolvedBuildConfig = UserConfig$2 & BuildResolvedConfig;
180
180
  type UnbuildBuildConfig = Partial<Omit<UnbuildOptions, "tsconfig" | "tsconfigRaw" | "assets" | "outputPath" | "mode" | "format" | "platform" | "projectRoot" | "env" | "entry" | "entryPoints">> & BuildConfig;
@@ -1,4 +1,3 @@
1
- import "./context.mjs";
2
1
  import { MaybePromise } from "@stryke/types/base";
3
2
  import { ArrayValues } from "@stryke/types/array";
4
3
 
@@ -4,14 +4,13 @@ import { Plugin } from "./plugin.mjs";
4
4
  import { TSConfig } from "./tsconfig.mjs";
5
5
  import { PluginContext } from "./context.mjs";
6
6
  import { BabelTransformPluginOptions } from "./babel.mjs";
7
- import { transformAsync } from "@babel/core";
8
- import { LogLevelLabel } from "@storm-software/config-tools/types";
9
- import "c12";
10
7
  import { MaybePromise } from "@stryke/types/base";
11
8
  import { AssetGlob } from "@stryke/types/file";
12
9
  import { TypeDefinitionParameter } from "@stryke/types/configuration";
13
10
  import { PreviewOptions } from "vite";
11
+ import { transformAsync } from "@babel/core";
14
12
  import { Format } from "@storm-software/build-tools/types";
13
+ import { LogLevelLabel } from "@storm-software/config-tools/types";
15
14
  import { StormWorkspaceConfig } from "@storm-software/config/types";
16
15
  import { DateString } from "compatx";
17
16
 
@@ -1,5 +1,5 @@
1
- import ts from "typescript";
2
1
  import { CompilerOptions, TsConfigJson } from "@stryke/types/tsconfig";
2
+ import ts from "typescript";
3
3
 
4
4
  //#region ../powerlines/src/types/tsconfig.d.ts
5
5
  type ReflectionMode = "default" | "explicit" | "never";
@@ -2,7 +2,6 @@ import { BuilderVariant, InferUnpluginVariant, UnpluginBuilderVariant } from "./
2
2
  import { API } from "./api.mjs";
3
3
  import { PluginHook } from "./plugin.mjs";
4
4
  import { Context } from "./context.mjs";
5
- import "./config.mjs";
6
5
  import { InferResolvedConfig } from "./resolved.mjs";
7
6
  import { MaybePromise } from "@stryke/types/base";
8
7
  import { HookFilter, UnpluginOptions } from "unplugin";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-nodejs",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "type": "module",
5
5
  "description": "A package containing a Powerlines plugin for building a Node.js application.",
6
6
  "repository": {
@@ -132,18 +132,20 @@
132
132
  "keywords": ["nodejs", "powerlines", "storm-software", "powerlines-plugin"],
133
133
  "dependencies": {
134
134
  "@alloy-js/core": "^0.22.0",
135
- "@alloy-js/json": "^0.22.0",
136
- "@alloy-js/markdown": "^0.22.0",
137
135
  "@alloy-js/typescript": "^0.22.0",
138
- "@powerlines/plugin-alloy": "^0.18.9",
139
- "@powerlines/plugin-babel": "^0.12.136",
140
- "@powerlines/plugin-env": "^0.15.12",
136
+ "@powerlines/plugin-alloy": "^0.18.11",
137
+ "@powerlines/plugin-babel": "^0.12.138",
138
+ "@powerlines/plugin-env": "^0.15.14",
141
139
  "@storm-software/config-tools": "^1.188.75",
142
140
  "@stryke/string-format": "^0.12.30",
143
141
  "defu": "^6.1.4",
144
- "powerlines": "^0.37.1"
142
+ "powerlines": "^0.37.3"
143
+ },
144
+ "devDependencies": {
145
+ "@babel/core": "^7.28.5",
146
+ "@powerlines/plugin-plugin": "^0.12.81",
147
+ "@types/node": "^24.10.4"
145
148
  },
146
- "devDependencies": { "@babel/core": "^7.28.5", "@types/node": "^24.10.4" },
147
149
  "publishConfig": { "access": "public" },
148
- "gitHead": "9567467b551ffd217efb054b6eee482a880bc672"
150
+ "gitHead": "ae9a5afaa497538477b63988242f433b60974623"
149
151
  }