mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-29 06:35:24 +00:00
test: prove 2.8 to 2.9.0 upgrade is lossless and fix what it caught
This commit is contained in:
1 parent
2ee9b3592c
commit
f779d6a08e
37 files changed
+5184
-377
No files matched your search
@@ -15,6 +15,19 @@ export function getPluginsDir(): string {
|
||||
return path.join(process.env.DATA_DIR || "./db/data", "plugins");
|
||||
}
|
||||
|
||||
/**
|
||||
* A plugin's own files (ctx.files.dataDir(), downloaded binaries). Kept out of
|
||||
* getPluginsDir(), where the loader would read every data folder as a user
|
||||
* plugin that clashes with the bundled one of the same name.
|
||||
*/
|
||||
export function getPluginDataDir(pluginId: string): string {
|
||||
return path.join(
|
||||
process.env.DATA_DIR || "./db/data",
|
||||
"plugin-data",
|
||||
pluginId,
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Where user .tmxplug files are unpacked. A dot directory inside the user
|
||||
* plugins dir, which the loader's directory scan skips.
|
||||
|
||||
Reference in new issue
Block a user