@powerlines/plugin-plugin 0.12.252 → 0.12.254

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,7 +2,11 @@ import { n as PluginPluginOptions, t as PluginPluginContext } from "./plugin-DVX
2
2
  import { Plugin } from "powerlines";
3
3
 
4
4
  //#region src/index.d.ts
5
-
5
+ declare module "@powerlines/core" {
6
+ interface BaseConfig {
7
+ plugin?: PluginPluginOptions;
8
+ }
9
+ }
6
10
  /**
7
11
  * A Powerlines plugin to assist in developing other Powerlines plugins.
8
12
  */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;AA0BA;AACmB,cADN,MACM,EAAA,CAAA,iBAAA,mBAAA,GAAsB,mBAAtB,CAAA,CAAA,OAAA,CAAA,EAER,mBAFQ,EAAA,GAGhB,MAHgB,CAGT,QAHS,CAAA,EAAA"}
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;IAqB+E,MAAA,CAAA,EAIlE,mBAJkE;EAAA;;;;AAW/E;AACmB,cADN,MACM,EAAA,CAAA,iBAAA,mBAAA,GAAsB,mBAAtB,CAAA,CAAA,OAAA,CAAA,EAER,mBAFQ,EAAA,GAGhB,MAHgB,CAGT,QAHS,CAAA,EAAA"}
package/dist/index.d.mts CHANGED
@@ -2,7 +2,11 @@ import { n as PluginPluginOptions, t as PluginPluginContext } from "./plugin-Bnb
2
2
  import { Plugin } from "powerlines";
3
3
 
4
4
  //#region src/index.d.ts
5
-
5
+ declare module "@powerlines/core" {
6
+ interface BaseConfig {
7
+ plugin?: PluginPluginOptions;
8
+ }
9
+ }
6
10
  /**
7
11
  * A Powerlines plugin to assist in developing other Powerlines plugins.
8
12
  */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;AA0BA;AACmB,cADN,MACM,EAAA,CAAA,iBAAA,mBAAA,GAAsB,mBAAtB,CAAA,CAAA,OAAA,CAAA,EAER,mBAFQ,EAAA,GAGhB,MAHgB,CAGT,QAHS,CAAA,EAAA"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;IAqB+E,MAAA,CAAA,EAIlE,mBAJkE;EAAA;;;;AAW/E;AACmB,cADN,MACM,EAAA,CAAA,iBAAA,mBAAA,GAAsB,mBAAtB,CAAA,CAAA,OAAA,CAAA,EAER,mBAFQ,EAAA,GAGhB,MAHgB,CAGT,QAHS,CAAA,EAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"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 tsdown from \"@powerlines/plugin-tsdown\";\nimport { joinPaths } from \"@stryke/path/join\";\nimport { Plugin } from \"powerlines\";\nimport type { PluginPluginContext, PluginPluginOptions } from \"./types/plugin\";\n\n/**\n * A Powerlines plugin to assist in developing other Powerlines plugins.\n */\nexport const plugin = <\n TContext extends PluginPluginContext = PluginPluginContext\n>(\n options: PluginPluginOptions = {}\n): Plugin<TContext>[] => {\n return [\n tsdown(options),\n {\n name: \"plugin\",\n config() {\n this.debug(\n \"Providing default configuration for the Powerlines plugin.\"\n );\n\n return {\n type: \"library\",\n output: {\n format: [\"cjs\", \"esm\"],\n dts: false\n },\n resolve: {\n external: [\"powerlines\", /^powerlines\\/.*$/, /^@powerlines\\//]\n },\n tsdown: {\n platform: \"node\",\n target: \"node22\",\n nodeProtocol: true,\n fixedExtension: true,\n minify: false,\n exports: {\n all: true\n },\n unbundle: true\n }\n };\n },\n async configResolved() {\n if (\n !this.config.input ||\n (Array.isArray(this.config.input) && this.config.input.length === 0)\n ) {\n let input = \"src/index.tsx\";\n if (!this.fs.existsSync(joinPaths(this.config.root, input))) {\n input = \"src/index.ts\";\n }\n\n this.config.input = input;\n }\n }\n }\n ];\n};\n\nexport default plugin;\n"],"mappings":"uFA0BA,MAAa,GAGX,EAA+B,EAAE,GAE1B,CACL,EAAO,EAAQ,CACf,CACE,KAAM,SACN,QAAS,CAKP,OAJA,KAAK,MACH,6DACD,CAEM,CACL,KAAM,UACN,OAAQ,CACN,OAAQ,CAAC,MAAO,MAAM,CACtB,IAAK,GACN,CACD,QAAS,CACP,SAAU,CAAC,aAAc,mBAAoB,iBAAiB,CAC/D,CACD,OAAQ,CACN,SAAU,OACV,OAAQ,SACR,aAAc,GACd,eAAgB,GAChB,OAAQ,GACR,QAAS,CACP,IAAK,GACN,CACD,SAAU,GACX,CACF,EAEH,MAAM,gBAAiB,CACrB,GACE,CAAC,KAAK,OAAO,OACZ,MAAM,QAAQ,KAAK,OAAO,MAAM,EAAI,KAAK,OAAO,MAAM,SAAW,EAClE,CACA,IAAI,EAAQ,gBACP,KAAK,GAAG,WAAW,EAAU,KAAK,OAAO,KAAM,EAAM,CAAC,GACzD,EAAQ,gBAGV,KAAK,OAAO,MAAQ,IAGzB,CACF,CAGH,IAAA,EAAe"}
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"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 tsdown from \"@powerlines/plugin-tsdown\";\nimport { joinPaths } from \"@stryke/path/join\";\nimport { Plugin } from \"powerlines\";\nimport type { PluginPluginContext, PluginPluginOptions } from \"./types/plugin\";\n\ndeclare module \"@powerlines/core\" {\n interface BaseConfig {\n plugin?: PluginPluginOptions;\n }\n}\n\n/**\n * A Powerlines plugin to assist in developing other Powerlines plugins.\n */\nexport const plugin = <\n TContext extends PluginPluginContext = PluginPluginContext\n>(\n options: PluginPluginOptions = {}\n): Plugin<TContext>[] => {\n return [\n tsdown(options),\n {\n name: \"plugin\",\n config() {\n this.debug(\n \"Providing default configuration for the Powerlines plugin.\"\n );\n\n return {\n type: \"library\",\n output: {\n format: [\"cjs\", \"esm\"],\n dts: false\n },\n resolve: {\n external: [\"powerlines\", /^powerlines\\/.*$/, /^@powerlines\\//]\n },\n tsdown: {\n platform: \"node\",\n target: \"node22\",\n nodeProtocol: true,\n fixedExtension: true,\n minify: false,\n exports: {\n all: true\n },\n unbundle: true\n }\n };\n },\n async configResolved() {\n if (\n !this.config.input ||\n (Array.isArray(this.config.input) && this.config.input.length === 0)\n ) {\n let input = \"src/index.tsx\";\n if (!this.fs.existsSync(joinPaths(this.config.root, input))) {\n input = \"src/index.ts\";\n }\n\n this.config.input = input;\n }\n }\n }\n ];\n};\n\nexport default plugin;\n"],"mappings":"uFAgCA,MAAa,GAGX,EAA+B,EAAE,GAE1B,CACL,EAAO,EAAQ,CACf,CACE,KAAM,SACN,QAAS,CAKP,OAJA,KAAK,MACH,6DACD,CAEM,CACL,KAAM,UACN,OAAQ,CACN,OAAQ,CAAC,MAAO,MAAM,CACtB,IAAK,GACN,CACD,QAAS,CACP,SAAU,CAAC,aAAc,mBAAoB,iBAAiB,CAC/D,CACD,OAAQ,CACN,SAAU,OACV,OAAQ,SACR,aAAc,GACd,eAAgB,GAChB,OAAQ,GACR,QAAS,CACP,IAAK,GACN,CACD,SAAU,GACX,CACF,EAEH,MAAM,gBAAiB,CACrB,GACE,CAAC,KAAK,OAAO,OACZ,MAAM,QAAQ,KAAK,OAAO,MAAM,EAAI,KAAK,OAAO,MAAM,SAAW,EAClE,CACA,IAAI,EAAQ,gBACP,KAAK,GAAG,WAAW,EAAU,KAAK,OAAO,KAAM,EAAM,CAAC,GACzD,EAAQ,gBAGV,KAAK,OAAO,MAAQ,IAGzB,CACF,CAGH,IAAA,EAAe"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-plugin",
3
- "version": "0.12.252",
3
+ "version": "0.12.254",
4
4
  "type": "module",
5
5
  "description": "A package containing a Powerlines plugin to assist in developing other Powerlines plugins.",
6
6
  "repository": {
@@ -118,10 +118,10 @@
118
118
  "keywords": ["powerlines", "storm-software", "powerlines-plugin"],
119
119
  "dependencies": {
120
120
  "@stryke/path": "^0.26.6",
121
- "powerlines": "^0.39.9",
122
- "@powerlines/plugin-tsdown": "^0.1.253"
121
+ "powerlines": "^0.39.11",
122
+ "@powerlines/plugin-tsdown": "^0.1.255"
123
123
  },
124
124
  "devDependencies": { "@stryke/types": "^0.10.39", "@types/node": "^25.3.3" },
125
125
  "publishConfig": { "access": "public" },
126
- "gitHead": "645a902416b92ae709b2ae786c21d3ec0be09258"
126
+ "gitHead": "e63eb5a0ecd0e5ee3e030388ad1c534b3ecb2136"
127
127
  }