Release RuneStone 0.1.7 with plugin documents and shared menus
This commit is contained in:
@@ -1,9 +1,13 @@
|
||||
import { readFile } from "node:fs/promises";
|
||||
import { resolve } from "node:path";
|
||||
import { pathToFileURL } from "node:url";
|
||||
|
||||
/** Load the actual compiled packages through the production Blob module loader. */
|
||||
export async function mockFeaturePlugins(surface) {
|
||||
const packages = await Promise.all(["terminal", "table-formulas"].map(async name => {
|
||||
const root = new URL(`../plugin-packages/${name}/`, import.meta.url);
|
||||
const root = name === "terminal"
|
||||
? (process.env.RUNESTONE_TERMINAL_DIST ? pathToFileURL(resolve(process.env.RUNESTONE_TERMINAL_DIST) + "/") : new URL("../../RuneStone_Terminal/dist/", import.meta.url))
|
||||
: new URL(`../plugin-packages/${name}/`, import.meta.url);
|
||||
return {
|
||||
manifest: JSON.parse(await readFile(new URL("plugin.json", root), "utf8")),
|
||||
code: await readFile(new URL("main.js", root), "utf8"),
|
||||
|
||||
Reference in New Issue
Block a user