@powerlines/plugin-plugin 0.12.268 → 0.12.270

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
@@ -1,9 +1,9 @@
1
- import { n as PluginPluginOptions, t as PluginPluginContext } from "./plugin-DVXa9Zx4.cjs";
1
+ import { n as PluginPluginOptions, t as PluginPluginContext } from "./plugin-DfGt6jzp.cjs";
2
2
  import { Plugin } from "powerlines";
3
3
 
4
4
  //#region src/index.d.ts
5
- declare module "@powerlines/core" {
6
- interface BaseConfig {
5
+ declare module "powerlines" {
6
+ interface Config {
7
7
  plugin?: PluginPluginOptions;
8
8
  }
9
9
  }
package/dist/index.d.mts CHANGED
@@ -1,9 +1,9 @@
1
- import { n as PluginPluginOptions, t as PluginPluginContext } from "./plugin-BWGld0BS.mjs";
1
+ import { n as PluginPluginOptions, t as PluginPluginContext } from "./plugin-B53UwtG7.mjs";
2
2
  import { Plugin } from "powerlines";
3
3
 
4
4
  //#region src/index.d.ts
5
- declare module "@powerlines/core" {
6
- interface BaseConfig {
5
+ declare module "powerlines" {
6
+ interface Config {
7
7
  plugin?: PluginPluginOptions;
8
8
  }
9
9
  }
@@ -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\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"}
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\" {\n interface Config {\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"}
@@ -1,4 +1,4 @@
1
- import { TsdownPluginContext, TsdownPluginOptions, TsdownPluginResolvedConfig, TsdownPluginUserConfig } from "@powerlines/plugin-tsdown/types/plugin";
1
+ import { TsdownPluginContext, TsdownPluginOptions, TsdownPluginResolvedConfig, TsdownPluginUserConfig } from "@powerlines/plugin-tsdown";
2
2
  import { TypeDefinitionParameter } from "@stryke/types/configuration";
3
3
 
4
4
  //#region src/types/plugin.d.ts
@@ -32,4 +32,4 @@ declare type __ΩPluginPluginResolvedConfig = any[];
32
32
  declare type __ΩPluginPluginContext = any[];
33
33
  //#endregion
34
34
  export { PluginPluginUserConfig as a, __ΩPluginPluginResolvedConfig as c, PluginPluginTypesOptions as i, __ΩPluginPluginTypesOptions as l, PluginPluginOptions as n, __ΩPluginPluginContext as o, PluginPluginResolvedConfig as r, __ΩPluginPluginOptions as s, PluginPluginContext as t, __ΩPluginPluginUserConfig as u };
35
- //# sourceMappingURL=plugin-BWGld0BS.d.mts.map
35
+ //# sourceMappingURL=plugin-B53UwtG7.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"plugin-BWGld0BS.d.mts","names":[],"sources":["../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;UA0BiB,wBAAA;;AAAjB;AAYA;EAOiB,OAAA,CAAA,EAfL,uBAe4B;EAIvB;AAIjB;;EAEI,UAAA,CAAA,EApBW,uBAoBX;;AACA,UAlBa,mBAAA,SAA4B,mBAkBzC,CAAA;EAAmB;;;UAdb;;UAGO,sBAAA,SAA+B;WACrC;;UAGM,0BAAA,SAAmC;UAC1C;;KAGE,4CACc,6BACtB,8BACA,oBAAoB"}
1
+ {"version":3,"file":"plugin-B53UwtG7.d.mts","names":[],"sources":["../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;UA0BiB,wBAAA;;AAAjB;AAYA;EAOiB,OAAA,CAAA,EAfL,uBAe4B;EAIvB;AAIjB;;EAEI,UAAA,CAAA,EApBW,uBAoBX;;AACA,UAlBa,mBAAA,SAA4B,mBAkBzC,CAAA;EAAmB;;;UAdb;;UAGO,sBAAA,SAA+B;WACrC;;UAGM,0BAAA,SAAmC;UAC1C;;KAGE,4CACc,6BACtB,8BACA,oBAAoB"}
@@ -1,4 +1,4 @@
1
- import { TsdownPluginContext, TsdownPluginOptions, TsdownPluginResolvedConfig, TsdownPluginUserConfig } from "@powerlines/plugin-tsdown/types/plugin";
1
+ import { TsdownPluginContext, TsdownPluginOptions, TsdownPluginResolvedConfig, TsdownPluginUserConfig } from "@powerlines/plugin-tsdown";
2
2
  import { TypeDefinitionParameter } from "@stryke/types/configuration";
3
3
 
4
4
  //#region src/types/plugin.d.ts
@@ -32,4 +32,4 @@ declare type __ΩPluginPluginResolvedConfig = any[];
32
32
  declare type __ΩPluginPluginContext = any[];
33
33
  //#endregion
34
34
  export { PluginPluginUserConfig as a, __ΩPluginPluginResolvedConfig as c, PluginPluginTypesOptions as i, __ΩPluginPluginTypesOptions as l, PluginPluginOptions as n, __ΩPluginPluginContext as o, PluginPluginResolvedConfig as r, __ΩPluginPluginOptions as s, PluginPluginContext as t, __ΩPluginPluginUserConfig as u };
35
- //# sourceMappingURL=plugin-DVXa9Zx4.d.cts.map
35
+ //# sourceMappingURL=plugin-DfGt6jzp.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"plugin-DVXa9Zx4.d.cts","names":[],"sources":["../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;UA0BiB,wBAAA;;AAAjB;AAYA;EAOiB,OAAA,CAAA,EAfL,uBAe4B;EAIvB;AAIjB;;EAEI,UAAA,CAAA,EApBW,uBAoBX;;AACA,UAlBa,mBAAA,SAA4B,mBAkBzC,CAAA;EAAmB;;;UAdb;;UAGO,sBAAA,SAA+B;WACrC;;UAGM,0BAAA,SAAmC;UAC1C;;KAGE,4CACc,6BACtB,8BACA,oBAAoB"}
1
+ {"version":3,"file":"plugin-DfGt6jzp.d.cts","names":[],"sources":["../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;UA0BiB,wBAAA;;AAAjB;AAYA;EAOiB,OAAA,CAAA,EAfL,uBAe4B;EAIvB;AAIjB;;EAEI,UAAA,CAAA,EApBW,uBAoBX;;AACA,UAlBa,mBAAA,SAA4B,mBAkBzC,CAAA;EAAmB;;;UAdb;;UAGO,sBAAA,SAA+B;WACrC;;UAGM,0BAAA,SAAmC;UAC1C;;KAGE,4CACc,6BACtB,8BACA,oBAAoB"}
@@ -1,2 +1,2 @@
1
- import { a as PluginPluginUserConfig, c as __ΩPluginPluginResolvedConfig, i as PluginPluginTypesOptions, l as __ΩPluginPluginTypesOptions, n as PluginPluginOptions, o as __ΩPluginPluginContext, r as PluginPluginResolvedConfig, s as __ΩPluginPluginOptions, t as PluginPluginContext, u as __ΩPluginPluginUserConfig } from "../plugin-DVXa9Zx4.cjs";
1
+ import { a as PluginPluginUserConfig, c as __ΩPluginPluginResolvedConfig, i as PluginPluginTypesOptions, l as __ΩPluginPluginTypesOptions, n as PluginPluginOptions, o as __ΩPluginPluginContext, r as PluginPluginResolvedConfig, s as __ΩPluginPluginOptions, t as PluginPluginContext, u as __ΩPluginPluginUserConfig } from "../plugin-DfGt6jzp.cjs";
2
2
  export { PluginPluginContext, PluginPluginOptions, PluginPluginResolvedConfig, PluginPluginTypesOptions, PluginPluginUserConfig, __ΩPluginPluginContext, __ΩPluginPluginOptions, __ΩPluginPluginResolvedConfig, __ΩPluginPluginTypesOptions, __ΩPluginPluginUserConfig };
@@ -1,2 +1,2 @@
1
- import { a as PluginPluginUserConfig, c as __ΩPluginPluginResolvedConfig, i as PluginPluginTypesOptions, l as __ΩPluginPluginTypesOptions, n as PluginPluginOptions, o as __ΩPluginPluginContext, r as PluginPluginResolvedConfig, s as __ΩPluginPluginOptions, t as PluginPluginContext, u as __ΩPluginPluginUserConfig } from "../plugin-BWGld0BS.mjs";
1
+ import { a as PluginPluginUserConfig, c as __ΩPluginPluginResolvedConfig, i as PluginPluginTypesOptions, l as __ΩPluginPluginTypesOptions, n as PluginPluginOptions, o as __ΩPluginPluginContext, r as PluginPluginResolvedConfig, s as __ΩPluginPluginOptions, t as PluginPluginContext, u as __ΩPluginPluginUserConfig } from "../plugin-B53UwtG7.mjs";
2
2
  export { PluginPluginContext, PluginPluginOptions, PluginPluginResolvedConfig, PluginPluginTypesOptions, PluginPluginUserConfig, __ΩPluginPluginContext, __ΩPluginPluginOptions, __ΩPluginPluginResolvedConfig, __ΩPluginPluginTypesOptions, __ΩPluginPluginUserConfig };
@@ -1,2 +1,2 @@
1
- import { a as PluginPluginUserConfig, c as __ΩPluginPluginResolvedConfig, i as PluginPluginTypesOptions, l as __ΩPluginPluginTypesOptions, n as PluginPluginOptions, o as __ΩPluginPluginContext, r as PluginPluginResolvedConfig, s as __ΩPluginPluginOptions, t as PluginPluginContext, u as __ΩPluginPluginUserConfig } from "../plugin-DVXa9Zx4.cjs";
1
+ import { a as PluginPluginUserConfig, c as __ΩPluginPluginResolvedConfig, i as PluginPluginTypesOptions, l as __ΩPluginPluginTypesOptions, n as PluginPluginOptions, o as __ΩPluginPluginContext, r as PluginPluginResolvedConfig, s as __ΩPluginPluginOptions, t as PluginPluginContext, u as __ΩPluginPluginUserConfig } from "../plugin-DfGt6jzp.cjs";
2
2
  export { PluginPluginContext, PluginPluginOptions, PluginPluginResolvedConfig, PluginPluginTypesOptions, PluginPluginUserConfig, __ΩPluginPluginContext, __ΩPluginPluginOptions, __ΩPluginPluginResolvedConfig, __ΩPluginPluginTypesOptions, __ΩPluginPluginUserConfig };
@@ -1,2 +1,2 @@
1
- import { a as PluginPluginUserConfig, c as __ΩPluginPluginResolvedConfig, i as PluginPluginTypesOptions, l as __ΩPluginPluginTypesOptions, n as PluginPluginOptions, o as __ΩPluginPluginContext, r as PluginPluginResolvedConfig, s as __ΩPluginPluginOptions, t as PluginPluginContext, u as __ΩPluginPluginUserConfig } from "../plugin-BWGld0BS.mjs";
1
+ import { a as PluginPluginUserConfig, c as __ΩPluginPluginResolvedConfig, i as PluginPluginTypesOptions, l as __ΩPluginPluginTypesOptions, n as PluginPluginOptions, o as __ΩPluginPluginContext, r as PluginPluginResolvedConfig, s as __ΩPluginPluginOptions, t as PluginPluginContext, u as __ΩPluginPluginUserConfig } from "../plugin-B53UwtG7.mjs";
2
2
  export { PluginPluginContext, PluginPluginOptions, PluginPluginResolvedConfig, PluginPluginTypesOptions, PluginPluginUserConfig, __ΩPluginPluginContext, __ΩPluginPluginOptions, __ΩPluginPluginResolvedConfig, __ΩPluginPluginTypesOptions, __ΩPluginPluginUserConfig };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-plugin",
3
- "version": "0.12.268",
3
+ "version": "0.12.270",
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.15",
121
- "powerlines": "^0.40.4",
122
- "@powerlines/plugin-tsdown": "^0.1.268"
121
+ "powerlines": "^0.40.6",
122
+ "@powerlines/plugin-tsdown": "^0.1.270"
123
123
  },
124
124
  "devDependencies": { "@stryke/types": "^0.10.48", "@types/node": "^25.3.5" },
125
125
  "publishConfig": { "access": "public" },
126
- "gitHead": "81fe04ecdb367e905a2d89b30beebd28cfd8a470"
126
+ "gitHead": "8952a4d271f29b7b174297aaa4c0d3ebb002140f"
127
127
  }