@powerlines/plugin-plugin 0.12.313 → 0.12.314

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-plugin",
3
- "version": "0.12.313",
3
+ "version": "0.12.314",
4
4
  "type": "module",
5
5
  "description": "A package containing a Powerlines plugin to assist in developing other Powerlines plugins.",
6
6
  "repository": {
@@ -119,10 +119,10 @@
119
119
  "dependencies": {
120
120
  "@stryke/path": "^0.27.2",
121
121
  "@stryke/types": "^0.11.1",
122
- "powerlines": "^0.42.3",
123
- "@powerlines/plugin-tsdown": "^0.1.310"
122
+ "powerlines": "^0.42.4",
123
+ "@powerlines/plugin-tsdown": "^0.1.311"
124
124
  },
125
125
  "devDependencies": { "@types/node": "^25.5.0" },
126
126
  "publishConfig": { "access": "public" },
127
- "gitHead": "c9c61ea343f037afaa4097720d77cb822eb86e63"
127
+ "gitHead": "c3243c1ec0fbacb4afd4bd3db20432f443334076"
128
128
  }
package/dist/index.cjs DELETED
@@ -1 +0,0 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,a)=>(a=n==null?{}:e(i(n)),o(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));let c=require(`@powerlines/plugin-tsdown`);c=s(c);let l=require(`@stryke/path/join`);const u=(e={})=>[(0,c.default)(e),{name:`plugin`,config(){return this.debug(`Providing default configuration for the Powerlines plugin.`),{type:`library`,output:{format:[`cjs`,`esm`],dts:!0},resolve:{external:[`powerlines`,/^powerlines\/.*$/,/^@powerlines\//]},tsdown:{platform:`node`,target:`node22`,nodeProtocol:!0,fixedExtension:!0,minify:!1,exports:!0,unbundle:!0}}},async configResolved(){if(!this.config.input||Array.isArray(this.config.input)&&this.config.input.length===0){let e=`src/index.tsx`;this.fs.existsSync((0,l.joinPaths)(this.config.root,e))||(e=`src/index.ts`),this.config.input=e}}}];exports.default=u,exports.plugin=u;
package/dist/index.d.cts DELETED
@@ -1,16 +0,0 @@
1
- import { PluginPluginContext, PluginPluginOptions } from "./types/plugin.cjs";
2
- import { Plugin } from "powerlines";
3
-
4
- //#region src/index.d.ts
5
- declare module "powerlines" {
6
- interface Config {
7
- plugin?: PluginPluginOptions;
8
- }
9
- }
10
- /**
11
- * A Powerlines plugin to assist in developing other Powerlines plugins.
12
- */
13
- declare const plugin: <TContext extends PluginPluginContext = PluginPluginContext>(options?: PluginPluginOptions) => Plugin<TContext>[];
14
- //#endregion
15
- export { plugin as default, plugin };
16
- //# sourceMappingURL=index.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;YAwBY,MAAA;IACR,MAAA,GAAS,mBAAA;EAAA;AAAA;;;;cAOA,MAAA,oBACM,mBAAA,GAAsB,mBAAA,EAEvC,OAAA,GAAS,mBAAA,KACR,MAAA,CAAO,QAAA"}
package/dist/index.d.mts DELETED
@@ -1,16 +0,0 @@
1
- import { PluginPluginContext, PluginPluginOptions } from "./types/plugin.mjs";
2
- import { Plugin } from "powerlines";
3
-
4
- //#region src/index.d.ts
5
- declare module "powerlines" {
6
- interface Config {
7
- plugin?: PluginPluginOptions;
8
- }
9
- }
10
- /**
11
- * A Powerlines plugin to assist in developing other Powerlines plugins.
12
- */
13
- declare const plugin: <TContext extends PluginPluginContext = PluginPluginContext>(options?: PluginPluginOptions) => Plugin<TContext>[];
14
- //#endregion
15
- export { plugin as default, plugin };
16
- //# sourceMappingURL=index.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;YAwBY,MAAA;IACR,MAAA,GAAS,mBAAA;EAAA;AAAA;;;;cAOA,MAAA,oBACM,mBAAA,GAAsB,mBAAA,EAEvC,OAAA,GAAS,mBAAA,KACR,MAAA,CAAO,QAAA"}
package/dist/index.mjs DELETED
@@ -1,2 +0,0 @@
1
- import e from"@powerlines/plugin-tsdown";import{joinPaths as t}from"@stryke/path/join";const n=(n={})=>[e(n),{name:`plugin`,config(){return this.debug(`Providing default configuration for the Powerlines plugin.`),{type:`library`,output:{format:[`cjs`,`esm`],dts:!0},resolve:{external:[`powerlines`,/^powerlines\/.*$/,/^@powerlines\//]},tsdown:{platform:`node`,target:`node22`,nodeProtocol:!0,fixedExtension:!0,minify:!1,exports:!0,unbundle:!0}}},async configResolved(){if(!this.config.input||Array.isArray(this.config.input)&&this.config.input.length===0){let e=`src/index.tsx`;this.fs.existsSync(t(this.config.root,e))||(e=`src/index.ts`),this.config.input=e}}}];export{n as default,n as plugin};
2
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
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 type { 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: true\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: true,\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,GACT,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"}
@@ -1 +0,0 @@
1
- require(`./plugin.cjs`);
@@ -1,2 +0,0 @@
1
- import { PluginPluginContext, PluginPluginOptions, PluginPluginResolvedConfig, PluginPluginTypesOptions, PluginPluginUserConfig, __ΩPluginPluginContext, __ΩPluginPluginOptions, __ΩPluginPluginResolvedConfig, __ΩPluginPluginTypesOptions, __ΩPluginPluginUserConfig } from "./plugin.cjs";
2
- export { PluginPluginContext, PluginPluginOptions, PluginPluginResolvedConfig, PluginPluginTypesOptions, PluginPluginUserConfig, __ΩPluginPluginContext, __ΩPluginPluginOptions, __ΩPluginPluginResolvedConfig, __ΩPluginPluginTypesOptions, __ΩPluginPluginUserConfig };
@@ -1,2 +0,0 @@
1
- import { PluginPluginContext, PluginPluginOptions, PluginPluginResolvedConfig, PluginPluginTypesOptions, PluginPluginUserConfig, __ΩPluginPluginContext, __ΩPluginPluginOptions, __ΩPluginPluginResolvedConfig, __ΩPluginPluginTypesOptions, __ΩPluginPluginUserConfig } from "./plugin.mjs";
2
- export { PluginPluginContext, PluginPluginOptions, PluginPluginResolvedConfig, PluginPluginTypesOptions, PluginPluginUserConfig, __ΩPluginPluginContext, __ΩPluginPluginOptions, __ΩPluginPluginResolvedConfig, __ΩPluginPluginTypesOptions, __ΩPluginPluginUserConfig };
@@ -1 +0,0 @@
1
- import"./plugin.mjs";
File without changes
@@ -1,35 +0,0 @@
1
- import { TsdownPluginContext, TsdownPluginOptions, TsdownPluginResolvedConfig, TsdownPluginUserConfig } from "@powerlines/plugin-tsdown";
2
- import { TypeDefinitionParameter } from "@stryke/types/configuration";
3
-
4
- //#region src/types/plugin.d.ts
5
- interface PluginPluginTypesOptions {
6
- /**
7
- * The type definition for the plugin's options.
8
- */
9
- options?: TypeDefinitionParameter;
10
- /**
11
- * The type definition for the plugin's user config.
12
- */
13
- userConfig?: TypeDefinitionParameter;
14
- }
15
- interface PluginPluginOptions extends TsdownPluginOptions {
16
- /**
17
- * The type definitions for the Plugin plugin.
18
- */
19
- types?: PluginPluginTypesOptions;
20
- }
21
- interface PluginPluginUserConfig extends TsdownPluginUserConfig {
22
- plugin?: PluginPluginOptions;
23
- }
24
- interface PluginPluginResolvedConfig extends TsdownPluginResolvedConfig {
25
- plugin: PluginPluginOptions;
26
- }
27
- type PluginPluginContext<TResolvedConfig extends PluginPluginResolvedConfig = PluginPluginResolvedConfig> = TsdownPluginContext<TResolvedConfig>;
28
- declare type __ΩPluginPluginTypesOptions = any[];
29
- declare type __ΩPluginPluginOptions = any[];
30
- declare type __ΩPluginPluginUserConfig = any[];
31
- declare type __ΩPluginPluginResolvedConfig = any[];
32
- declare type __ΩPluginPluginContext = any[];
33
- //#endregion
34
- export { PluginPluginContext, PluginPluginOptions, PluginPluginResolvedConfig, PluginPluginTypesOptions, PluginPluginUserConfig, __ΩPluginPluginContext, __ΩPluginPluginOptions, __ΩPluginPluginResolvedConfig, __ΩPluginPluginTypesOptions, __ΩPluginPluginUserConfig };
35
- //# sourceMappingURL=plugin.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;UA0BiB,wBAAA;;AAAjB;;EAIE,OAAA,GAAU,uBAAA;EAK0B;;;EAApC,UAAA,GAAa,uBAAA;AAAA;AAAA,UAGE,mBAAA,SAA4B,mBAAA;EAHP;AAGtC;;EAIE,KAAA,GAAQ,wBAAA;AAAA;AAAA,UAGO,sBAAA,SAA+B,sBAAA;EAC9C,MAAA,GAAS,mBAAA;AAAA;AAAA,UAGM,0BAAA,SAAmC,0BAAA;EAClD,MAAA,EAAQ,mBAAA;AAAA;AAAA,KAGE,mBAAA,yBACc,0BAAA,GACtB,0BAAA,IACA,mBAAA,CAAoB,eAAA;AAAA"}
@@ -1,35 +0,0 @@
1
- import { TsdownPluginContext, TsdownPluginOptions, TsdownPluginResolvedConfig, TsdownPluginUserConfig } from "@powerlines/plugin-tsdown";
2
- import { TypeDefinitionParameter } from "@stryke/types/configuration";
3
-
4
- //#region src/types/plugin.d.ts
5
- interface PluginPluginTypesOptions {
6
- /**
7
- * The type definition for the plugin's options.
8
- */
9
- options?: TypeDefinitionParameter;
10
- /**
11
- * The type definition for the plugin's user config.
12
- */
13
- userConfig?: TypeDefinitionParameter;
14
- }
15
- interface PluginPluginOptions extends TsdownPluginOptions {
16
- /**
17
- * The type definitions for the Plugin plugin.
18
- */
19
- types?: PluginPluginTypesOptions;
20
- }
21
- interface PluginPluginUserConfig extends TsdownPluginUserConfig {
22
- plugin?: PluginPluginOptions;
23
- }
24
- interface PluginPluginResolvedConfig extends TsdownPluginResolvedConfig {
25
- plugin: PluginPluginOptions;
26
- }
27
- type PluginPluginContext<TResolvedConfig extends PluginPluginResolvedConfig = PluginPluginResolvedConfig> = TsdownPluginContext<TResolvedConfig>;
28
- declare type __ΩPluginPluginTypesOptions = any[];
29
- declare type __ΩPluginPluginOptions = any[];
30
- declare type __ΩPluginPluginUserConfig = any[];
31
- declare type __ΩPluginPluginResolvedConfig = any[];
32
- declare type __ΩPluginPluginContext = any[];
33
- //#endregion
34
- export { PluginPluginContext, PluginPluginOptions, PluginPluginResolvedConfig, PluginPluginTypesOptions, PluginPluginUserConfig, __ΩPluginPluginContext, __ΩPluginPluginOptions, __ΩPluginPluginResolvedConfig, __ΩPluginPluginTypesOptions, __ΩPluginPluginUserConfig };
35
- //# sourceMappingURL=plugin.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;UA0BiB,wBAAA;;AAAjB;;EAIE,OAAA,GAAU,uBAAA;EAK0B;;;EAApC,UAAA,GAAa,uBAAA;AAAA;AAAA,UAGE,mBAAA,SAA4B,mBAAA;EAHP;AAGtC;;EAIE,KAAA,GAAQ,wBAAA;AAAA;AAAA,UAGO,sBAAA,SAA+B,sBAAA;EAC9C,MAAA,GAAS,mBAAA;AAAA;AAAA,UAGM,0BAAA,SAAmC,0BAAA;EAClD,MAAA,EAAQ,mBAAA;AAAA;AAAA,KAGE,mBAAA,yBACc,0BAAA,GACtB,0BAAA,IACA,mBAAA,CAAoB,eAAA;AAAA"}
File without changes