@powerlines/plugin-satori 0.1.36 → 0.1.38
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.d.cts +2 -3
- package/dist/index.d.ts +2 -3
- package/dist/index.js +1 -1
- package/dist/{plugin-CrU6L9Rb.d.cts → plugin-B1q6563g.d.cts} +188 -231
- package/dist/{plugin-CrU6L9Rb.d.ts → plugin-B1q6563g.d.ts} +188 -231
- package/dist/types/index.d.cts +1 -2
- package/dist/types/index.d.ts +1 -2
- package/dist/types/plugin.d.cts +1 -2
- package/dist/types/plugin.d.ts +1 -2
- package/package.json +14 -14
package/dist/index.cjs
CHANGED
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
*
|
|
5
5
|
*****************************************/
|
|
6
6
|
|
|
7
|
-
var f=Object.defineProperty;var e=(i,o)=>f(i,"name",{value:o,configurable:true});const d=e(i=>({name:"satori",config(){return {satori:{defaultOptions:{},width:1200,height:630,fonts:[],...i}}},async configResolved(){if(!this.config.satori.path)throw new Error("The Powerlines Satori plugin requires a `path` option to be specified.");this.config.satori.inputs=(await Promise.all(toArray.toArray(this.config.satori.path).map(async o=>o.includes("*")?listFiles.listFiles(paths.replacePathTokens(this,o)):paths.replacePathTokens(this,o)))).flat().filter(o=>o&&["jsx","tsx"].includes(filePathFns.findFileExtensionSafe(o))&&exists.existsSync(o));},async prepare(){await Promise.all(this.config.satori.inputs.map(async o=>{try{const t=await this.resolver.import(o);if(t&&t.default){const r=await h__default.default(t.default,u__default.default(t.options??{},this.config.satori.defaultOptions));r&&await this.fs.
|
|
7
|
+
var f=Object.defineProperty;var e=(i,o)=>f(i,"name",{value:o,configurable:true});const d=e(i=>({name:"satori",config(){return {satori:{defaultOptions:{},width:1200,height:630,fonts:[],...i}}},async configResolved(){if(!this.config.satori.path)throw new Error("The Powerlines Satori plugin requires a `path` option to be specified.");this.config.satori.inputs=(await Promise.all(toArray.toArray(this.config.satori.path).map(async o=>o.includes("*")?listFiles.listFiles(paths.replacePathTokens(this,o)):paths.replacePathTokens(this,o)))).flat().filter(o=>o&&["jsx","tsx"].includes(filePathFns.findFileExtensionSafe(o))&&exists.existsSync(o));},async prepare(){await Promise.all(this.config.satori.inputs.map(async o=>{try{const t=await this.resolver.import(o);if(t&&t.default){const r=await h__default.default(t.default,u__default.default(t.options??{},this.config.satori.defaultOptions));r&&await this.fs.write(this.config.satori.outputPath?joinPaths.joinPaths(this.config.satori.outputPath,replace.replacePath(o,joinPaths.joinPaths(this.workspaceConfig.workspaceRoot,this.config.projectRoot))):o.replace(filePathFns.findFileExtensionSafe(o),"svg"),r);}}catch(t){this.log(types$1.LogLevelLabel.DEBUG,`Failed to load Satori schema from ${o}: ${t.message}`);}}));}}),"plugin");var $=d;exports.default=$;exports.plugin=d;Object.keys(types).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return types[k]}})});
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as SatoriPluginContext, S as SatoriPluginOptions, P as Plugin } from './plugin-
|
|
2
|
-
export { b as SatoriPluginResolvedConfig, a as SatoriPluginUserConfig, f as __ΩSatoriPluginContext, _ as __ΩSatoriPluginOptions, e as __ΩSatoriPluginResolvedConfig, d as __ΩSatoriPluginUserConfig } from './plugin-
|
|
1
|
+
import { c as SatoriPluginContext, S as SatoriPluginOptions, P as Plugin } from './plugin-B1q6563g.cjs';
|
|
2
|
+
export { b as SatoriPluginResolvedConfig, a as SatoriPluginUserConfig, f as __ΩSatoriPluginContext, _ as __ΩSatoriPluginOptions, e as __ΩSatoriPluginResolvedConfig, d as __ΩSatoriPluginUserConfig } from './plugin-B1q6563g.cjs';
|
|
3
3
|
export { SatoriComponentModule, __ΩSatoriComponentModule } from './types/module.cjs';
|
|
4
4
|
import '@storm-software/build-tools/types';
|
|
5
5
|
import '@storm-software/config-tools/types';
|
|
@@ -16,7 +16,6 @@ import 'semver';
|
|
|
16
16
|
import 'ts-morph';
|
|
17
17
|
import 'unplugin';
|
|
18
18
|
import '@stryke/fs/resolve';
|
|
19
|
-
import 'node:fs';
|
|
20
19
|
import '@stryke/types/tsconfig';
|
|
21
20
|
import 'typescript';
|
|
22
21
|
import '@stryke/types/array';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as SatoriPluginContext, S as SatoriPluginOptions, P as Plugin } from './plugin-
|
|
2
|
-
export { b as SatoriPluginResolvedConfig, a as SatoriPluginUserConfig, f as __ΩSatoriPluginContext, _ as __ΩSatoriPluginOptions, e as __ΩSatoriPluginResolvedConfig, d as __ΩSatoriPluginUserConfig } from './plugin-
|
|
1
|
+
import { c as SatoriPluginContext, S as SatoriPluginOptions, P as Plugin } from './plugin-B1q6563g.js';
|
|
2
|
+
export { b as SatoriPluginResolvedConfig, a as SatoriPluginUserConfig, f as __ΩSatoriPluginContext, _ as __ΩSatoriPluginOptions, e as __ΩSatoriPluginResolvedConfig, d as __ΩSatoriPluginUserConfig } from './plugin-B1q6563g.js';
|
|
3
3
|
export { SatoriComponentModule, __ΩSatoriComponentModule } from './types/module.js';
|
|
4
4
|
import '@storm-software/build-tools/types';
|
|
5
5
|
import '@storm-software/config-tools/types';
|
|
@@ -16,7 +16,6 @@ import 'semver';
|
|
|
16
16
|
import 'ts-morph';
|
|
17
17
|
import 'unplugin';
|
|
18
18
|
import '@stryke/fs/resolve';
|
|
19
|
-
import 'node:fs';
|
|
20
19
|
import '@stryke/types/tsconfig';
|
|
21
20
|
import 'typescript';
|
|
22
21
|
import '@stryke/types/array';
|
package/dist/index.js
CHANGED
|
@@ -4,4 +4,4 @@ import {LogLevelLabel}from'@storm-software/config-tools/types';import {toArray}f
|
|
|
4
4
|
*
|
|
5
5
|
*****************************************/
|
|
6
6
|
|
|
7
|
-
var f=Object.defineProperty;var e=(i,o)=>f(i,"name",{value:o,configurable:true});const d=e(i=>({name:"satori",config(){return {satori:{defaultOptions:{},width:1200,height:630,fonts:[],...i}}},async configResolved(){if(!this.config.satori.path)throw new Error("The Powerlines Satori plugin requires a `path` option to be specified.");this.config.satori.inputs=(await Promise.all(toArray(this.config.satori.path).map(async o=>o.includes("*")?listFiles(replacePathTokens(this,o)):replacePathTokens(this,o)))).flat().filter(o=>o&&["jsx","tsx"].includes(findFileExtensionSafe(o))&&existsSync(o));},async prepare(){await Promise.all(this.config.satori.inputs.map(async o=>{try{const t=await this.resolver.import(o);if(t&&t.default){const r=await h(t.default,u(t.options??{},this.config.satori.defaultOptions));r&&await this.fs.
|
|
7
|
+
var f=Object.defineProperty;var e=(i,o)=>f(i,"name",{value:o,configurable:true});const d=e(i=>({name:"satori",config(){return {satori:{defaultOptions:{},width:1200,height:630,fonts:[],...i}}},async configResolved(){if(!this.config.satori.path)throw new Error("The Powerlines Satori plugin requires a `path` option to be specified.");this.config.satori.inputs=(await Promise.all(toArray(this.config.satori.path).map(async o=>o.includes("*")?listFiles(replacePathTokens(this,o)):replacePathTokens(this,o)))).flat().filter(o=>o&&["jsx","tsx"].includes(findFileExtensionSafe(o))&&existsSync(o));},async prepare(){await Promise.all(this.config.satori.inputs.map(async o=>{try{const t=await this.resolver.import(o);if(t&&t.default){const r=await h(t.default,u(t.options??{},this.config.satori.defaultOptions));r&&await this.fs.write(this.config.satori.outputPath?joinPaths(this.config.satori.outputPath,replacePath(o,joinPaths(this.workspaceConfig.workspaceRoot,this.config.projectRoot))):o.replace(findFileExtensionSafe(o),"svg"),r);}}catch(t){this.log(LogLevelLabel.DEBUG,`Failed to load Satori schema from ${o}: ${t.message}`);}}));}}),"plugin");var q=d;export{q as default,d as plugin};
|