@powerlines/plugin-plugin 0.12.245 → 0.12.246

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 CHANGED
@@ -1 +1 @@
1
- Object.defineProperty(exports,`__esModule`,{value:!0});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:!1},tsdown:{variant:`tsdown`,platform:`node`,target:`node22`,nodeProtocol:!0,minify:!1,exports:{all:!0},unbundle:!0,external:[`powerlines`,/^powerlines\/.*$/,/^@powerlines\//]}}},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}}}];var d=u;exports.default=d,exports.plugin=u;
1
+ Object.defineProperty(exports,`__esModule`,{value:!0});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:!1},tsdown:{platform:`node`,target:`node22`,nodeProtocol:!0,fixedExtension:!0,minify:!1,exports:{all:!0},unbundle:!0,external:[`powerlines`,/^powerlines\/.*$/,/^@powerlines\//]}}},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}}}];var d=u;exports.default=d,exports.plugin=u;
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
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:!1},tsdown:{variant:`tsdown`,platform:`node`,target:`node22`,nodeProtocol:!0,minify:!1,exports:{all:!0},unbundle:!0,external:[`powerlines`,/^powerlines\/.*$/,/^@powerlines\//]}}},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}}}];var r=n;export{r as default,n as plugin};
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:!1},tsdown:{platform:`node`,target:`node22`,nodeProtocol:!0,fixedExtension:!0,minify:!1,exports:{all:!0},unbundle:!0,external:[`powerlines`,/^powerlines\/.*$/,/^@powerlines\//]}}},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}}}];var r=n;export{r as default,n as plugin};
2
2
  //# sourceMappingURL=index.mjs.map
@@ -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 tsdown: {\n variant: \"tsdown\",\n platform: \"node\",\n target: \"node22\",\n nodeProtocol: true,\n minify: false,\n exports: {\n all: true\n },\n unbundle: true,\n external: [\"powerlines\", /^powerlines\\/.*$/, /^@powerlines\\//]\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,OAAQ,CACN,QAAS,SACT,SAAU,OACV,OAAQ,SACR,aAAc,GACd,OAAQ,GACR,QAAS,CACP,IAAK,GACN,CACD,SAAU,GACV,SAAU,CAAC,aAAc,mBAAoB,iBAAiB,CAC/D,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\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 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 external: [\"powerlines\", /^powerlines\\/.*$/, /^@powerlines\\//]\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,OAAQ,CACN,SAAU,OACV,OAAQ,SACR,aAAc,GACd,eAAgB,GAChB,OAAQ,GACR,QAAS,CACP,IAAK,GACN,CACD,SAAU,GACV,SAAU,CAAC,aAAc,mBAAoB,iBAAiB,CAC/D,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.245",
3
+ "version": "0.12.246",
4
4
  "type": "module",
5
5
  "description": "A package containing a Powerlines plugin to assist in developing other Powerlines plugins.",
6
6
  "repository": {
@@ -39,89 +39,89 @@
39
39
  "license": "Apache-2.0",
40
40
  "private": false,
41
41
  "main": "dist/src/index.cjs",
42
- "module": "dist/src/index.js",
42
+ "module": "dist/src/index.mjs",
43
43
  "exports": {
44
44
  "./package.json": "./package.json",
45
45
  ".": {
46
46
  "import": {
47
- "types": "./dist/src/index.d.ts",
48
- "default": "./dist/src/index.js"
47
+ "types": "./dist/src/index.d.mts",
48
+ "default": "./dist/src/index.mjs"
49
49
  },
50
50
  "require": {
51
- "types": "./dist/src/index.d.ts",
51
+ "types": "./dist/src/index.d.mts",
52
52
  "default": "./dist/src/index.cjs"
53
53
  },
54
54
  "default": {
55
- "types": "./dist/src/index.d.ts",
56
- "default": "./dist/src/index.js"
55
+ "types": "./dist/src/index.d.mts",
56
+ "default": "./dist/src/index.mjs"
57
57
  }
58
58
  },
59
59
  "./index": {
60
60
  "import": {
61
- "types": "./dist/src/index.d.ts",
62
- "default": "./dist/src/index.js"
61
+ "types": "./dist/src/index.d.mts",
62
+ "default": "./dist/src/index.mjs"
63
63
  },
64
64
  "require": {
65
- "types": "./dist/src/index.d.ts",
65
+ "types": "./dist/src/index.d.mts",
66
66
  "default": "./dist/src/index.cjs"
67
67
  },
68
68
  "default": {
69
- "types": "./dist/src/index.d.ts",
70
- "default": "./dist/src/index.js"
69
+ "types": "./dist/src/index.d.mts",
70
+ "default": "./dist/src/index.mjs"
71
71
  }
72
72
  },
73
73
  "./plugin": {
74
74
  "import": {
75
- "types": "./dist/src/plugin.d.ts",
76
- "default": "./dist/src/plugin.js"
75
+ "types": "./dist/src/plugin.d.mts",
76
+ "default": "./dist/src/plugin.mjs"
77
77
  },
78
78
  "require": {
79
- "types": "./dist/src/plugin.d.ts",
79
+ "types": "./dist/src/plugin.d.mts",
80
80
  "default": "./dist/src/plugin.cjs"
81
81
  },
82
82
  "default": {
83
- "types": "./dist/src/plugin.d.ts",
84
- "default": "./dist/src/plugin.js"
83
+ "types": "./dist/src/plugin.d.mts",
84
+ "default": "./dist/src/plugin.mjs"
85
85
  }
86
86
  },
87
87
  "./types": {
88
88
  "import": {
89
- "types": "./dist/src/types/index.d.ts",
90
- "default": "./dist/src/types/index.js"
89
+ "types": "./dist/src/types/index.d.mts",
90
+ "default": "./dist/src/types/index.mjs"
91
91
  },
92
92
  "require": {
93
- "types": "./dist/src/types/index.d.ts",
93
+ "types": "./dist/src/types/index.d.mts",
94
94
  "default": "./dist/src/types/index.cjs"
95
95
  },
96
96
  "default": {
97
- "types": "./dist/src/types/index.d.ts",
98
- "default": "./dist/src/types/index.js"
97
+ "types": "./dist/src/types/index.d.mts",
98
+ "default": "./dist/src/types/index.mjs"
99
99
  }
100
100
  },
101
101
  "./types/*": {
102
102
  "import": {
103
- "types": "./dist/src/types/*.d.ts",
104
- "default": "./dist/src/types/*.js"
103
+ "types": "./dist/src/types/*.d.mts",
104
+ "default": "./dist/src/types/*.mjs"
105
105
  },
106
106
  "require": {
107
- "types": "./dist/src/types/*.d.ts",
107
+ "types": "./dist/src/types/*.d.mts",
108
108
  "default": "./dist/src/types/*.cjs"
109
109
  },
110
110
  "default": {
111
- "types": "./dist/src/types/*.d.ts",
112
- "default": "./dist/src/types/*.js"
111
+ "types": "./dist/src/types/*.d.mts",
112
+ "default": "./dist/src/types/*.mjs"
113
113
  }
114
114
  }
115
115
  },
116
- "typings": "dist/src/index.d.ts",
116
+ "typings": "dist/src/index.d.mts",
117
117
  "files": ["dist/**/*"],
118
118
  "keywords": ["powerlines", "storm-software", "powerlines-plugin"],
119
119
  "dependencies": {
120
120
  "@stryke/path": "^0.26.6",
121
- "powerlines": "^0.39.3",
122
- "@powerlines/plugin-tsdown": "^0.1.247"
121
+ "powerlines": "^0.39.4",
122
+ "@powerlines/plugin-tsdown": "^0.1.248"
123
123
  },
124
124
  "devDependencies": { "@stryke/types": "^0.10.39", "@types/node": "^25.3.3" },
125
125
  "publishConfig": { "access": "public" },
126
- "gitHead": "b4ba0b4904f7e4b6da2705b1678505387f1a8d0f"
126
+ "gitHead": "b4932f4bf2a6f97dd535eb6a05219db5722d4462"
127
127
  }