@powerlines/plugin-nodejs 0.1.221 → 0.1.223

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.d.cts CHANGED
@@ -2,8 +2,8 @@ import { NodeJsPluginContext, NodeJsPluginOptions } from "./types/plugin.cjs";
2
2
  import { Plugin } from "powerlines";
3
3
 
4
4
  //#region src/index.d.ts
5
- declare module "powerlines" {
6
- interface UserConfig {
5
+ declare module "@powerlines/core" {
6
+ interface BaseConfig {
7
7
  nodejs?: NodeJsPluginOptions;
8
8
  }
9
9
  }
package/dist/index.d.mts CHANGED
@@ -2,8 +2,8 @@ import { NodeJsPluginContext, NodeJsPluginOptions } from "./types/plugin.mjs";
2
2
  import { Plugin } from "powerlines";
3
3
 
4
4
  //#region src/index.d.ts
5
- declare module "powerlines" {
6
- interface UserConfig {
5
+ declare module "@powerlines/core" {
6
+ interface BaseConfig {
7
7
  nodejs?: NodeJsPluginOptions;
8
8
  }
9
9
  }
@@ -1 +1 @@
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 from \"@powerlines/plugin-env\";\nimport { readEnvTypeReflection } from \"@powerlines/plugin-env/helpers/persistence\";\nimport { Plugin } from \"powerlines\";\nimport { isMatchFound } from \"powerlines/typescript\";\nimport { NodeJsEnvBuiltin } from \"./components/env\";\nimport { NodeJsPluginContext, NodeJsPluginOptions } from \"./types/plugin\";\n\ndeclare module \"powerlines\" {\n export interface UserConfig {\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 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":";;;;;;;;;;;;AAoCA,MAAaM,UAGXC,UAA+B,EAAE,KACV;AACvB,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"}
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 from \"@powerlines/plugin-env\";\nimport { readEnvTypeReflection } from \"@powerlines/plugin-env/helpers/persistence\";\nimport { Plugin } from \"powerlines\";\nimport { isMatchFound } from \"powerlines/typescript\";\nimport { NodeJsEnvBuiltin } from \"./components/env\";\nimport { NodeJsPluginContext, NodeJsPluginOptions } from \"./types/plugin\";\n\ndeclare module \"@powerlines/core\" {\n interface BaseConfig {\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 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":";;;;;;;;;;;;AAoCA,MAAaM,UAGXC,UAA+B,EAAE,KACV;AACvB,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.221",
3
+ "version": "0.1.223",
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.23.0-dev.8",
121
121
  "@alloy-js/typescript": "0.23.0-dev.4",
122
- "@powerlines/plugin-alloy": "^0.23.33",
123
- "@powerlines/plugin-babel": "^0.12.310",
124
- "@powerlines/plugin-env": "^0.16.20",
125
- "@powerlines/plugin-plugin": "^0.12.253",
122
+ "@powerlines/plugin-alloy": "^0.23.35",
123
+ "@powerlines/plugin-babel": "^0.12.312",
124
+ "@powerlines/plugin-env": "^0.16.22",
125
+ "@powerlines/plugin-plugin": "^0.12.255",
126
126
  "@storm-software/config-tools": "^1.189.10",
127
127
  "@stryke/string-format": "^0.14.2",
128
128
  "defu": "^6.1.4",
129
- "powerlines": "^0.39.10"
129
+ "powerlines": "^0.39.12"
130
130
  },
131
131
  "devDependencies": { "@types/node": "^25.3.3" },
132
132
  "publishConfig": { "access": "public" },
133
133
  "types": "./dist/index.d.cts",
134
- "gitHead": "905dbeee1a9e2658cf70489e977cafac62733e46"
134
+ "gitHead": "cb34e2756e722735631673a7c06509d2640284c1"
135
135
  }