@powerlines/plugin-nodejs 0.1.140 → 0.1.141
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 +7 -3
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +8 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -7
package/dist/index.cjs
CHANGED
|
@@ -28,9 +28,13 @@ const plugin = (options = {}) => {
|
|
|
28
28
|
},
|
|
29
29
|
async prepare() {
|
|
30
30
|
const _self$ = this;
|
|
31
|
-
await
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
const result = await (0, __powerlines_plugin_env.readEnvTypeReflection)(this, "env");
|
|
32
|
+
await this.render((0, __alloy_js_core_jsx_runtime.createComponent)(require_env.NodeJsEnvBuiltin, {
|
|
33
|
+
get defaultConfig() {
|
|
34
|
+
return _self$.config.env.defaultConfig;
|
|
35
|
+
},
|
|
36
|
+
reflection: result
|
|
37
|
+
}));
|
|
34
38
|
}
|
|
35
39
|
}
|
|
36
40
|
];
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;;AA+Ba,cAAA,
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;;AA+Ba,cAAA,MAmCZ,EAAA,CAAA,iBAlCkB,mBAkClB,GAlCwC,mBAkCxC,CAAA,CAAA,OAAA,CAAA,EAhCU,mBAgCV,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":";;;;;;;;;;AA+Ba,cAAA,
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;;AA+Ba,cAAA,MAmCZ,EAAA,CAAA,iBAlCkB,mBAkClB,GAlCwC,mBAkCxC,CAAA,CAAA,OAAA,CAAA,EAhCU,mBAgCV,EAAA,GADM,MACN,CADa,QACb,CAAA,EAAA"}
|
package/dist/index.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import "./plugin-ifZVa20V.mjs";
|
|
|
4
4
|
import "./types-U3zd8PTP.mjs";
|
|
5
5
|
import { createComponent } from "@alloy-js/core/jsx-runtime";
|
|
6
6
|
import babel from "@powerlines/plugin-babel";
|
|
7
|
-
import env from "@powerlines/plugin-env";
|
|
7
|
+
import env, { readEnvTypeReflection } from "@powerlines/plugin-env";
|
|
8
8
|
import { isMatchFound } from "powerlines/lib/typescript/tsconfig";
|
|
9
9
|
|
|
10
10
|
//#region src/index.tsx
|
|
@@ -25,9 +25,13 @@ const plugin = (options = {}) => {
|
|
|
25
25
|
},
|
|
26
26
|
async prepare() {
|
|
27
27
|
const _self$ = this;
|
|
28
|
-
await this
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
const result = await readEnvTypeReflection(this, "env");
|
|
29
|
+
await this.render(createComponent(NodeJsEnvBuiltin, {
|
|
30
|
+
get defaultConfig() {
|
|
31
|
+
return _self$.config.env.defaultConfig;
|
|
32
|
+
},
|
|
33
|
+
reflection: result
|
|
34
|
+
}));
|
|
31
35
|
}
|
|
32
36
|
}
|
|
33
37
|
];
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["babel","env","isMatchFound","NodeJsEnvBuiltin","plugin","options","name","configResolved","devDependencies","tsconfig","tsconfigJson","compilerOptions","types","push","prepare","_self$","render","_$createComponent","defaultConfig","config"],"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 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 await this.render(\n <NodeJsEnvBuiltin
|
|
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 defaultConfig={this.config.env.defaultConfig}\n reflection={result}\n />\n );\n }\n }\n ] as Plugin<TContext>[];\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;;AA+BA,MAAaK,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,gBACdf,kBAAgB;KAAA,IACfgB,gBAAa;AAAA,aAAEJ,OAAKK,OAAOpB,IAAImB;;KAC/BE,YAAYL;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.
|
|
3
|
+
"version": "0.1.141",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing a Powerlines plugin for building a Node.js application.",
|
|
6
6
|
"repository": {
|
|
@@ -127,17 +127,17 @@
|
|
|
127
127
|
"dependencies": {
|
|
128
128
|
"@alloy-js/core": "^0.22.0",
|
|
129
129
|
"@alloy-js/typescript": "^0.22.0",
|
|
130
|
-
"@powerlines/plugin-alloy": "^0.19.
|
|
131
|
-
"@powerlines/plugin-babel": "^0.12.
|
|
132
|
-
"@powerlines/plugin-env": "^0.15.
|
|
133
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
130
|
+
"@powerlines/plugin-alloy": "^0.19.18",
|
|
131
|
+
"@powerlines/plugin-babel": "^0.12.252",
|
|
132
|
+
"@powerlines/plugin-env": "^0.15.146",
|
|
133
|
+
"@powerlines/plugin-plugin": "^0.12.194",
|
|
134
134
|
"@storm-software/config-tools": "^1.189.0",
|
|
135
135
|
"@stryke/string-format": "^0.13.6",
|
|
136
136
|
"defu": "^6.1.4",
|
|
137
|
-
"powerlines": "^0.38.
|
|
137
|
+
"powerlines": "^0.38.10"
|
|
138
138
|
},
|
|
139
139
|
"devDependencies": { "@types/node": "^24.10.9" },
|
|
140
140
|
"publishConfig": { "access": "public" },
|
|
141
141
|
"types": "./dist/index.d.cts",
|
|
142
|
-
"gitHead": "
|
|
142
|
+
"gitHead": "e13c5c6489d5a23188bee777479ccb511c807bf2"
|
|
143
143
|
}
|