@powerlines/plugin-nodejs 0.1.464 → 0.1.466
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 +5 -8
- package/dist/index.mjs +5 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -7
package/dist/index.cjs
CHANGED
|
@@ -8,7 +8,7 @@ let _powerlines_plugin_babel = require("@powerlines/plugin-babel");
|
|
|
8
8
|
_powerlines_plugin_babel = require_runtime.__toESM(_powerlines_plugin_babel);
|
|
9
9
|
let _powerlines_plugin_env = require("@powerlines/plugin-env");
|
|
10
10
|
_powerlines_plugin_env = require_runtime.__toESM(_powerlines_plugin_env);
|
|
11
|
-
let
|
|
11
|
+
let _powerlines_plugin_env_helpers = require("@powerlines/plugin-env/helpers");
|
|
12
12
|
|
|
13
13
|
//#region src/index.tsx
|
|
14
14
|
/**
|
|
@@ -28,13 +28,10 @@ const plugin = (options = {}) => {
|
|
|
28
28
|
},
|
|
29
29
|
async prepare() {
|
|
30
30
|
const _self$ = this;
|
|
31
|
-
|
|
32
|
-
return (0, _powerlines_plugin_alloy_render.render)(this, (0, _alloy_js_core_jsx_runtime.createComponent)(require_components_env_builtin.NodeJsEnvBuiltin, {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
},
|
|
36
|
-
reflection: result
|
|
37
|
-
}));
|
|
31
|
+
await (0, _powerlines_plugin_env_helpers.extractEnv)(this);
|
|
32
|
+
return (0, _powerlines_plugin_alloy_render.render)(this, (0, _alloy_js_core_jsx_runtime.createComponent)(require_components_env_builtin.NodeJsEnvBuiltin, { get defaultConfig() {
|
|
33
|
+
return _self$.config.env.defaultConfig;
|
|
34
|
+
} }));
|
|
38
35
|
}
|
|
39
36
|
}
|
|
40
37
|
];
|
package/dist/index.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import { isMatchFound } from "@powerlines/core/lib/typescript";
|
|
|
4
4
|
import { render } from "@powerlines/plugin-alloy/render";
|
|
5
5
|
import babel from "@powerlines/plugin-babel";
|
|
6
6
|
import env from "@powerlines/plugin-env";
|
|
7
|
-
import {
|
|
7
|
+
import { extractEnv } from "@powerlines/plugin-env/helpers";
|
|
8
8
|
|
|
9
9
|
//#region src/index.tsx
|
|
10
10
|
/**
|
|
@@ -24,13 +24,10 @@ const plugin = (options = {}) => {
|
|
|
24
24
|
},
|
|
25
25
|
async prepare() {
|
|
26
26
|
const _self$ = this;
|
|
27
|
-
|
|
28
|
-
return render(this, createComponent(NodeJsEnvBuiltin, {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
},
|
|
32
|
-
reflection: result
|
|
33
|
-
}));
|
|
27
|
+
await extractEnv(this);
|
|
28
|
+
return render(this, createComponent(NodeJsEnvBuiltin, { get defaultConfig() {
|
|
29
|
+
return _self$.config.env.defaultConfig;
|
|
30
|
+
} }));
|
|
34
31
|
}
|
|
35
32
|
}
|
|
36
33
|
];
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"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 { isMatchFound } from \"@powerlines/core/lib/typescript\";\nimport { render } from \"@powerlines/plugin-alloy/render\";\nimport babel from \"@powerlines/plugin-babel\";\nimport env from \"@powerlines/plugin-env\";\nimport {
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"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 { isMatchFound } from \"@powerlines/core/lib/typescript\";\nimport { render } from \"@powerlines/plugin-alloy/render\";\nimport babel from \"@powerlines/plugin-babel\";\nimport env from \"@powerlines/plugin-env\";\nimport { extractEnv } from \"@powerlines/plugin-env/helpers\";\nimport { Plugin } from \"powerlines\";\nimport { NodeJsEnvBuiltin } from \"./components/env-builtin\";\nimport { NodeJsPluginContext, NodeJsPluginOptions } from \"./types/plugin\";\n\ndeclare module \"powerlines\" {\n interface Config {\n nodejs?: NodeJsPluginOptions;\n }\n}\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): Plugin<TContext>[] => {\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 extractEnv(this);\n\n return render(\n this,\n <NodeJsEnvBuiltin defaultConfig={this.config.env.defaultConfig} />\n );\n }\n }\n ] as Plugin<TContext>[];\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;AA8BA,MAAE,UAAA,UAAA,CAAA,MAAA;CACF,OAAA;EAAA,MAAA,QAAA,KAAA;EAAA,IAAA,QAAA,GAAA;EAAA;;GAEE,iBAAA;IACG,KAAA,gBAAqB,iBAAkB;IAC1C,KAAA,SAAA,aAAA,oBAAA,CAAA;IACI,KAAC,SAAa,aAAE,gBAAA,UAAA,CAAA;IACpB,IAAQ,CAAC,aAAQ,QAAA,KAAA,SAAsB,aAAA,gBAAA,KAAA,GACxC,KAAA,SAAA,aAAA,gBAAA,MAAA,KAAA,MAAA;GAEE;GACD,MAAO,UAAA;IACL,MAAM,SAAQ;IACd,MAAI,WAAY,IAAA;IAChB,OAAA,OAAA,MAAA,gBAAA,kBAAA,EACE,IAAM,gBAAQ;KACd,OAAA,OAAiB,OAAA,IAAA;IACf;GAEJ;EACF;CAAC;AACH"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-nodejs",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.466",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing a Powerlines plugin for building a Node.js application.",
|
|
6
6
|
"repository": {
|
|
@@ -66,17 +66,17 @@
|
|
|
66
66
|
"dependencies": {
|
|
67
67
|
"@alloy-js/core": "^0.23.1",
|
|
68
68
|
"@alloy-js/typescript": "^0.23.0",
|
|
69
|
-
"@powerlines/plugin-alloy": "0.26.
|
|
70
|
-
"@powerlines/plugin-babel": "0.13.
|
|
71
|
-
"@powerlines/plugin-env": "0.16.
|
|
72
|
-
"@powerlines/plugin-plugin": "0.12.
|
|
69
|
+
"@powerlines/plugin-alloy": "0.26.155",
|
|
70
|
+
"@powerlines/plugin-babel": "0.13.63",
|
|
71
|
+
"@powerlines/plugin-env": "0.16.265",
|
|
72
|
+
"@powerlines/plugin-plugin": "0.12.479",
|
|
73
73
|
"@storm-software/config-tools": "^1.190.29",
|
|
74
74
|
"@stryke/string-format": "^0.17.18",
|
|
75
75
|
"defu": "^6.1.7",
|
|
76
|
-
"powerlines": "0.47.
|
|
76
|
+
"powerlines": "0.47.67"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": { "@types/node": "^25.9.1" },
|
|
79
79
|
"publishConfig": { "access": "public" },
|
|
80
80
|
"types": "./dist/index.d.cts",
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "756c9a682ebbff3ce96dc15d097ca21f5b3b85fe"
|
|
82
82
|
}
|