@powerlines/plugin-nodejs 0.1.153 → 0.1.155

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/index.cjs CHANGED
@@ -4,7 +4,7 @@ require('./components-BWLXb7a2.cjs');
4
4
  require('./plugin-pBKbb5K9.cjs');
5
5
  require('./types-o3zWarRp.cjs');
6
6
  let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
7
- let __powerlines_plugin_alloy_core_components_output = require("@powerlines/plugin-alloy/core/components/output");
7
+ let __powerlines_plugin_alloy_render = require("@powerlines/plugin-alloy/render");
8
8
  let __powerlines_plugin_babel = require("@powerlines/plugin-babel");
9
9
  __powerlines_plugin_babel = require_env.__toESM(__powerlines_plugin_babel);
10
10
  let __powerlines_plugin_env = require("@powerlines/plugin-env");
@@ -30,16 +30,11 @@ const plugin = (options = {}) => {
30
30
  async prepare() {
31
31
  const _self$ = this;
32
32
  const result = await (0, __powerlines_plugin_env.readEnvTypeReflection)(this, "env");
33
- await this.render((0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_core_components_output.Output, {
34
- context: _self$,
35
- get children() {
36
- return (0, __alloy_js_core_jsx_runtime.createComponent)(require_env.NodeJsEnvBuiltin, {
37
- get defaultConfig() {
38
- return _self$.config.env.defaultConfig;
39
- },
40
- reflection: result
41
- });
42
- }
33
+ return (0, __powerlines_plugin_alloy_render.render)(this, (0, __alloy_js_core_jsx_runtime.createComponent)(require_env.NodeJsEnvBuiltin, {
34
+ get defaultConfig() {
35
+ return _self$.config.env.defaultConfig;
36
+ },
37
+ reflection: result
43
38
  }));
44
39
  }
45
40
  }
package/dist/index.mjs CHANGED
@@ -3,7 +3,7 @@ import "./components-kh0CpIG2.mjs";
3
3
  import "./plugin-ifZVa20V.mjs";
4
4
  import "./types-U3zd8PTP.mjs";
5
5
  import { createComponent } from "@alloy-js/core/jsx-runtime";
6
- import { Output } from "@powerlines/plugin-alloy/core/components/output";
6
+ import { render } from "@powerlines/plugin-alloy/render";
7
7
  import babel from "@powerlines/plugin-babel";
8
8
  import env, { readEnvTypeReflection } from "@powerlines/plugin-env";
9
9
  import { isMatchFound } from "powerlines/lib/typescript/tsconfig";
@@ -27,16 +27,11 @@ const plugin = (options = {}) => {
27
27
  async prepare() {
28
28
  const _self$ = this;
29
29
  const result = await readEnvTypeReflection(this, "env");
30
- await this.render(createComponent(Output, {
31
- context: _self$,
32
- get children() {
33
- return createComponent(NodeJsEnvBuiltin, {
34
- get defaultConfig() {
35
- return _self$.config.env.defaultConfig;
36
- },
37
- reflection: result
38
- });
39
- }
30
+ return render(this, createComponent(NodeJsEnvBuiltin, {
31
+ get defaultConfig() {
32
+ return _self$.config.env.defaultConfig;
33
+ },
34
+ reflection: result
40
35
  }));
41
36
  }
42
37
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":["Output","babel","env","readEnvTypeReflection","isMatchFound","NodeJsEnvBuiltin","plugin","options","name","configResolved","devDependencies","tsconfig","tsconfigJson","compilerOptions","types","push","prepare","_self$","result","render","_$createComponent","context","children","defaultConfig","config","reflection"],"sources":["../src/index.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { Output } from \"@powerlines/plugin-alloy/core/components/output\";\nimport babel from \"@powerlines/plugin-babel\";\nimport env, { readEnvTypeReflection } from \"@powerlines/plugin-env\";\nimport { isMatchFound } from \"powerlines/lib/typescript/tsconfig\";\nimport { Plugin } from \"powerlines/types/plugin\";\nimport { NodeJsEnvBuiltin } from \"./components/env\";\nimport { NodeJsPluginContext, NodeJsPluginOptions } from \"./types/plugin\";\n\nexport * from \"./components\";\nexport * from \"./types\";\n\n/**\n * A package containing a Powerlines plugin for building a NodeJs application.\n */\nexport const plugin = <\n TContext extends NodeJsPluginContext = NodeJsPluginContext\n>(\n options: NodeJsPluginOptions = {}\n) => {\n return [\n babel(options.babel),\n env(options.env),\n {\n name: \"nodejs\",\n configResolved() {\n this.devDependencies[\"@types/node\"] = \"^22.14.6\";\n\n this.tsconfig.tsconfigJson.compilerOptions ??= {};\n this.tsconfig.tsconfigJson.compilerOptions.types ??= [];\n if (\n !isMatchFound(\n \"node\",\n this.tsconfig.tsconfigJson.compilerOptions.types\n )\n ) {\n this.tsconfig.tsconfigJson.compilerOptions.types.push(\"node\");\n }\n },\n async prepare() {\n const result = await readEnvTypeReflection(this, \"env\");\n await this.render(\n <Output context={this}>\n <NodeJsEnvBuiltin\n defaultConfig={this.config.env.defaultConfig}\n reflection={result}\n />\n </Output>\n );\n }\n }\n ] as Plugin<TContext>[];\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;;;AAgCA,MAAaM,UAGXC,UAA+B,EAAE,KAC9B;AACH,QAAO;EACLN,MAAMM,QAAQN,MAAM;EACpBC,IAAIK,QAAQL,IAAI;EAChB;GACEM,MAAM;GACNC,iBAAiB;AACf,SAAKC,gBAAgB,iBAAiB;AAEtC,SAAKC,SAASC,aAAaC,oBAAoB,EAAE;AACjD,SAAKF,SAASC,aAAaC,gBAAgBC,UAAU,EAAE;AACvD,QACE,CAACV,aACC,QACA,KAAKO,SAASC,aAAaC,gBAAgBC,MAC5C,CAED,MAAKH,SAASC,aAAaC,gBAAgBC,MAAMC,KAAK,OAAO;;GAGjE,MAAMC,UAAU;IAAA,MAAAC,SAAA;IACd,MAAMC,SAAS,MAAMf,sBAAsB,MAAM,MAAM;AACvD,UAAM,KAAKgB,OAAMC,gBACdpB,QAAM;KAACqB,SAAOJ;KAAA,IAAAK,WAAA;AAAA,aAAAF,gBACZf,kBAAgB;OAAA,IACfkB,gBAAa;AAAA,eAAEN,OAAKO,OAAOtB,IAAIqB;;OAC/BE,YAAYP;OAAM,CAAA;;KAAA,CAGxB,CAAC;;GAEJ;EACF;;AAGH,kBAAeZ"}
1
+ {"version":3,"file":"index.mjs","names":["render","babel","env","readEnvTypeReflection","isMatchFound","NodeJsEnvBuiltin","plugin","options","name","configResolved","devDependencies","tsconfig","tsconfigJson","compilerOptions","types","push","prepare","_self$","result","_$createComponent","defaultConfig","config","reflection"],"sources":["../src/index.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { render } from \"@powerlines/plugin-alloy/render\";\nimport babel from \"@powerlines/plugin-babel\";\nimport env, { readEnvTypeReflection } from \"@powerlines/plugin-env\";\nimport { isMatchFound } from \"powerlines/lib/typescript/tsconfig\";\nimport { Plugin } from \"powerlines/types/plugin\";\nimport { NodeJsEnvBuiltin } from \"./components/env\";\nimport { NodeJsPluginContext, NodeJsPluginOptions } from \"./types/plugin\";\n\nexport * from \"./components\";\nexport * from \"./types\";\n\n/**\n * A package containing a Powerlines plugin for building a NodeJs application.\n */\nexport const plugin = <\n TContext extends NodeJsPluginContext = NodeJsPluginContext\n>(\n options: NodeJsPluginOptions = {}\n) => {\n return [\n babel(options.babel),\n env(options.env),\n {\n name: \"nodejs\",\n configResolved() {\n this.devDependencies[\"@types/node\"] = \"^22.14.6\";\n\n this.tsconfig.tsconfigJson.compilerOptions ??= {};\n this.tsconfig.tsconfigJson.compilerOptions.types ??= [];\n if (\n !isMatchFound(\n \"node\",\n this.tsconfig.tsconfigJson.compilerOptions.types\n )\n ) {\n this.tsconfig.tsconfigJson.compilerOptions.types.push(\"node\");\n }\n },\n async prepare() {\n const result = await readEnvTypeReflection(this, \"env\");\n\n return render(\n this,\n <NodeJsEnvBuiltin\n defaultConfig={this.config.env.defaultConfig}\n reflection={result}\n />\n );\n }\n }\n ] as Plugin<TContext>[];\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;;;AAgCA,MAAaM,UAGXC,UAA+B,EAAE,KAC9B;AACH,QAAO;EACLN,MAAMM,QAAQN,MAAM;EACpBC,IAAIK,QAAQL,IAAI;EAChB;GACEM,MAAM;GACNC,iBAAiB;AACf,SAAKC,gBAAgB,iBAAiB;AAEtC,SAAKC,SAASC,aAAaC,oBAAoB,EAAE;AACjD,SAAKF,SAASC,aAAaC,gBAAgBC,UAAU,EAAE;AACvD,QACE,CAACV,aACC,QACA,KAAKO,SAASC,aAAaC,gBAAgBC,MAC5C,CAED,MAAKH,SAASC,aAAaC,gBAAgBC,MAAMC,KAAK,OAAO;;GAGjE,MAAMC,UAAU;IAAA,MAAAC,SAAA;IACd,MAAMC,SAAS,MAAMf,sBAAsB,MAAM,MAAM;AAEvD,WAAOH,OACL,MAAImB,gBACHd,kBAAgB;KAAA,IACfe,gBAAa;AAAA,aAAEH,OAAKI,OAAOnB,IAAIkB;;KAC/BE,YAAYJ;KAAM,CAEtB,CAAC;;GAEJ;EACF;;AAGH,kBAAeZ"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-nodejs",
3
- "version": "0.1.153",
3
+ "version": "0.1.155",
4
4
  "type": "module",
5
5
  "description": "A package containing a Powerlines plugin for building a Node.js application.",
6
6
  "repository": {
@@ -119,17 +119,17 @@
119
119
  "dependencies": {
120
120
  "@alloy-js/core": "^0.22.0",
121
121
  "@alloy-js/typescript": "^0.22.0",
122
- "@powerlines/plugin-alloy": "^0.19.30",
123
- "@powerlines/plugin-babel": "^0.12.261",
124
- "@powerlines/plugin-env": "^0.15.158",
125
- "@powerlines/plugin-plugin": "^0.12.203",
122
+ "@powerlines/plugin-alloy": "^0.19.32",
123
+ "@powerlines/plugin-babel": "^0.12.262",
124
+ "@powerlines/plugin-env": "^0.15.160",
125
+ "@powerlines/plugin-plugin": "^0.12.204",
126
126
  "@storm-software/config-tools": "^1.189.0",
127
- "@stryke/string-format": "^0.13.6",
127
+ "@stryke/string-format": "^0.13.7",
128
128
  "defu": "^6.1.4",
129
- "powerlines": "^0.38.19"
129
+ "powerlines": "^0.38.20"
130
130
  },
131
131
  "devDependencies": { "@types/node": "^24.10.9" },
132
132
  "publishConfig": { "access": "public" },
133
133
  "types": "./dist/index.d.cts",
134
- "gitHead": "ed4d8044dcb6e1de7843b3908424bb0a7e636620"
134
+ "gitHead": "e049a581a8652a74e908a98ae4e5309c1c41c02f"
135
135
  }