@powerlines/plugin-nodejs 0.1.147 → 0.1.149
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 +11 -5
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +11 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -7
package/dist/index.cjs
CHANGED
|
@@ -4,6 +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
8
|
let __powerlines_plugin_babel = require("@powerlines/plugin-babel");
|
|
8
9
|
__powerlines_plugin_babel = require_env.__toESM(__powerlines_plugin_babel);
|
|
9
10
|
let __powerlines_plugin_env = require("@powerlines/plugin-env");
|
|
@@ -29,11 +30,16 @@ const plugin = (options = {}) => {
|
|
|
29
30
|
async prepare() {
|
|
30
31
|
const _self$ = this;
|
|
31
32
|
const result = await (0, __powerlines_plugin_env.readEnvTypeReflection)(this, "env");
|
|
32
|
-
await this.render((0, __alloy_js_core_jsx_runtime.createComponent)(
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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
|
+
}
|
|
37
43
|
}));
|
|
38
44
|
}
|
|
39
45
|
}
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;;AAgCa,cAAA,MAqCZ,EAAA,CAAA,iBApCkB,mBAoClB,GApCwC,mBAoCxC,CAAA,CAAA,OAAA,CAAA,EAlCU,mBAkCV,EAAA,GADM,MACN,CADa,QACb,CAAA,EAAA"}
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;;AAgCa,cAAA,MAqCZ,EAAA,CAAA,iBApCkB,mBAoClB,GApCwC,mBAoCxC,CAAA,CAAA,OAAA,CAAA,EAlCU,mBAkCV,EAAA,GADM,MACN,CADa,QACb,CAAA,EAAA"}
|
package/dist/index.mjs
CHANGED
|
@@ -3,6 +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
7
|
import babel from "@powerlines/plugin-babel";
|
|
7
8
|
import env, { readEnvTypeReflection } from "@powerlines/plugin-env";
|
|
8
9
|
import { isMatchFound } from "powerlines/lib/typescript/tsconfig";
|
|
@@ -26,11 +27,16 @@ const plugin = (options = {}) => {
|
|
|
26
27
|
async prepare() {
|
|
27
28
|
const _self$ = this;
|
|
28
29
|
const result = await readEnvTypeReflection(this, "env");
|
|
29
|
-
await this.render(createComponent(
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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
|
+
}
|
|
34
40
|
}));
|
|
35
41
|
}
|
|
36
42
|
}
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["babel","env","readEnvTypeReflection","isMatchFound","NodeJsEnvBuiltin","plugin","options","name","configResolved","devDependencies","tsconfig","tsconfigJson","compilerOptions","types","push","prepare","_self$","result","render","_$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 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 <NodeJsEnvBuiltin\n
|
|
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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-nodejs",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.149",
|
|
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.
|
|
123
|
-
"@powerlines/plugin-babel": "^0.12.
|
|
124
|
-
"@powerlines/plugin-env": "^0.15.
|
|
125
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
122
|
+
"@powerlines/plugin-alloy": "^0.19.26",
|
|
123
|
+
"@powerlines/plugin-babel": "^0.12.258",
|
|
124
|
+
"@powerlines/plugin-env": "^0.15.154",
|
|
125
|
+
"@powerlines/plugin-plugin": "^0.12.200",
|
|
126
126
|
"@storm-software/config-tools": "^1.189.0",
|
|
127
127
|
"@stryke/string-format": "^0.13.6",
|
|
128
128
|
"defu": "^6.1.4",
|
|
129
|
-
"powerlines": "^0.38.
|
|
129
|
+
"powerlines": "^0.38.16"
|
|
130
130
|
},
|
|
131
131
|
"devDependencies": { "@types/node": "^24.10.9" },
|
|
132
132
|
"publishConfig": { "access": "public" },
|
|
133
133
|
"types": "./dist/index.d.cts",
|
|
134
|
-
"gitHead": "
|
|
134
|
+
"gitHead": "ae1829e47caf25992a6b047398bfebf06420e325"
|
|
135
135
|
}
|