release: WRNexusJS 0.8.0
Quality / quality (ubuntu-latest) (push) Failing after 21s
Quality / quality (windows-latest) (push) Canceled after 0s

This commit is contained in:
2026-08-02 23:18:51 +05:30
parent 87507edf59
commit 586a6db8ff
625 changed files with 243608 additions and 11210 deletions
+20
View File
@@ -0,0 +1,20 @@
import { dirname, join } from "node:path";
import { fileURLToPath } from "node:url";
import { definePlugin } from "@wrnexus/plugin";
export interface ImagePluginOptions {
components?: boolean;
componentDir?: string;
}
const packageRoot = dirname(dirname(fileURLToPath(import.meta.url)));
export function imageComponentsDir(): string {
return join(packageRoot, "components");
}
export function imagePlugin(options: ImagePluginOptions = {}) {
return definePlugin({
name: "@wrnexus/image",
version: "0.8.0",
componentDirs:
options.components === false ? [] : [options.componentDir ?? imageComponentsDir()],
});
}
export default imagePlugin;