obsidian-testing-framework 0.4.8 → 0.4.9

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.
@@ -74,14 +74,14 @@ export async function generateVaultConfig(vault, vaultHash, concurrent, vaultPoo
74
74
  const json = JSON.parse((await readFile(obsidianConfigFile)).toString());
75
75
  const hasVault = Object.values(json.vaults).some((a) => a.path === vault) && !concurrent;
76
76
  if (concurrent === "symlink") {
77
- await symlinkDir(vault, path.join(vaultPoolDir, vaultHash));
77
+ await symlinkDir(vault, path.join(vaultPoolDir, `vault-${vaultHash}`));
78
78
  }
79
79
  else if (concurrent === "copy") {
80
- await cp(vault, path.join(vaultPoolDir, vaultHash), { recursive: true });
80
+ await cp(vault, path.join(vaultPoolDir, `vault-${vaultHash}`), { recursive: true });
81
81
  }
82
82
  if (!hasVault) {
83
83
  json.vaults[vaultHash] = {
84
- path: concurrent ? path.join(vaultPoolDir, vaultHash) : vault,
84
+ path: concurrent ? path.join(vaultPoolDir, `vault-${vaultHash}`) : vault,
85
85
  ts: Date.now(),
86
86
  };
87
87
  await writeFile(obsidianConfigFile, JSON.stringify(json, null, "\t"));
package/package.json CHANGED
@@ -29,7 +29,7 @@
29
29
  ".": "./lib/index.js"
30
30
  },
31
31
  "readme": "",
32
- "version": "0.4.8",
32
+ "version": "0.4.9",
33
33
  "main": "./lib/index.js",
34
34
  "typings": "./lib/index.d.ts",
35
35
  "repository": {