mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-28 06:05:24 +00:00
feat: add plugin packing, signing, pinned trust and tmxplug bundling
This commit is contained in:
1 parent
c6a44b7ff3
commit
2ee9b3592c
25 files changed
+1764
-56
No files matched your search
@@ -1846,7 +1846,13 @@ export async function createTestDb(
|
||||
);
|
||||
|
||||
const handle = drizzle(sqlite);
|
||||
const pluginId = path.basename(pluginDir);
|
||||
// The manifest id, not the folder name: a plugin's own repo is rarely
|
||||
// named after its id.
|
||||
const manifestPath = path.join(pluginDir, "manifest.json");
|
||||
const pluginId: string =
|
||||
(fs.existsSync(manifestPath) &&
|
||||
JSON.parse(fs.readFileSync(manifestPath, "utf8")).id) ||
|
||||
path.basename(pluginDir);
|
||||
const applied: string[] = [];
|
||||
let persisted = 0;
|
||||
|
||||
|
||||
@@ -42,7 +42,11 @@ export function pluginVitestConfig(
|
||||
options: PluginVitestOptions = {},
|
||||
) {
|
||||
const pluginDir = path.dirname(fileURLToPath(configUrl));
|
||||
const pluginId = path.basename(pluginDir);
|
||||
const manifestPath = path.join(pluginDir, "manifest.json");
|
||||
const pluginId: string =
|
||||
(fs.existsSync(manifestPath) &&
|
||||
JSON.parse(fs.readFileSync(manifestPath, "utf8")).id) ||
|
||||
path.basename(pluginDir);
|
||||
const setupFile = fileURLToPath(
|
||||
new URL("./testing/setup.js", import.meta.url),
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user