@powerlines/plugin-plugin 0.12.338 → 0.12.340
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 +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.mts +2 -2
- package/dist/types/plugin.d.cts +1 -6
- package/dist/types/plugin.d.cts.map +1 -1
- package/dist/types/plugin.d.mts +1 -6
- package/dist/types/plugin.d.mts.map +1 -1
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
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:`
|
|
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:`esnext`,cjsDefault:!0,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.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:!0},resolve:{external:[`powerlines`,/^powerlines\/.*$/,/^@powerlines\//]},tsdown:{platform:`node`,target:`
|
|
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:`esnext`,cjsDefault:!0,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
2
|
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
CHANGED
|
@@ -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 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: \"
|
|
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: \"esnext\",\n cjsDefault: true,\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,WAAY,GACZ,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"}
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PluginPluginContext, PluginPluginOptions, PluginPluginResolvedConfig, PluginPluginTypesOptions, PluginPluginUserConfig
|
|
2
|
-
export { PluginPluginContext, PluginPluginOptions, PluginPluginResolvedConfig, PluginPluginTypesOptions, PluginPluginUserConfig
|
|
1
|
+
import { PluginPluginContext, PluginPluginOptions, PluginPluginResolvedConfig, PluginPluginTypesOptions, PluginPluginUserConfig } from "./plugin.cjs";
|
|
2
|
+
export { PluginPluginContext, PluginPluginOptions, PluginPluginResolvedConfig, PluginPluginTypesOptions, PluginPluginUserConfig };
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PluginPluginContext, PluginPluginOptions, PluginPluginResolvedConfig, PluginPluginTypesOptions, PluginPluginUserConfig
|
|
2
|
-
export { PluginPluginContext, PluginPluginOptions, PluginPluginResolvedConfig, PluginPluginTypesOptions, PluginPluginUserConfig
|
|
1
|
+
import { PluginPluginContext, PluginPluginOptions, PluginPluginResolvedConfig, PluginPluginTypesOptions, PluginPluginUserConfig } from "./plugin.mjs";
|
|
2
|
+
export { PluginPluginContext, PluginPluginOptions, PluginPluginResolvedConfig, PluginPluginTypesOptions, PluginPluginUserConfig };
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -25,11 +25,6 @@ interface PluginPluginResolvedConfig extends TsdownPluginResolvedConfig {
|
|
|
25
25
|
plugin: PluginPluginOptions;
|
|
26
26
|
}
|
|
27
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
28
|
//#endregion
|
|
34
|
-
export { PluginPluginContext, PluginPluginOptions, PluginPluginResolvedConfig, PluginPluginTypesOptions, PluginPluginUserConfig
|
|
29
|
+
export { PluginPluginContext, PluginPluginOptions, PluginPluginResolvedConfig, PluginPluginTypesOptions, PluginPluginUserConfig };
|
|
35
30
|
//# sourceMappingURL=plugin.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
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
|
|
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"}
|
package/dist/types/plugin.d.mts
CHANGED
|
@@ -25,11 +25,6 @@ interface PluginPluginResolvedConfig extends TsdownPluginResolvedConfig {
|
|
|
25
25
|
plugin: PluginPluginOptions;
|
|
26
26
|
}
|
|
27
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
28
|
//#endregion
|
|
34
|
-
export { PluginPluginContext, PluginPluginOptions, PluginPluginResolvedConfig, PluginPluginTypesOptions, PluginPluginUserConfig
|
|
29
|
+
export { PluginPluginContext, PluginPluginOptions, PluginPluginResolvedConfig, PluginPluginTypesOptions, PluginPluginUserConfig };
|
|
35
30
|
//# sourceMappingURL=plugin.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
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
|
|
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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-plugin",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.340",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing a Powerlines plugin to assist in developing other Powerlines plugins.",
|
|
6
6
|
"repository": {
|
|
@@ -117,12 +117,12 @@
|
|
|
117
117
|
"files": ["dist/**/*"],
|
|
118
118
|
"keywords": ["powerlines", "storm-software", "powerlines-plugin"],
|
|
119
119
|
"dependencies": {
|
|
120
|
-
"@stryke/path": "^0.27.
|
|
121
|
-
"@stryke/types": "^0.11.
|
|
122
|
-
"powerlines": "^0.42.
|
|
123
|
-
"@powerlines/plugin-tsdown": "^0.1.
|
|
120
|
+
"@stryke/path": "^0.27.4",
|
|
121
|
+
"@stryke/types": "^0.11.3",
|
|
122
|
+
"powerlines": "^0.42.30",
|
|
123
|
+
"@powerlines/plugin-tsdown": "^0.1.331"
|
|
124
124
|
},
|
|
125
125
|
"devDependencies": { "@types/node": "^25.5.2" },
|
|
126
126
|
"publishConfig": { "access": "public" },
|
|
127
|
-
"gitHead": "
|
|
127
|
+
"gitHead": "454fceda20c6f4dda53f6bc5901e5768ac253365"
|
|
128
128
|
}
|