fix: markdown tests in ci

This commit is contained in:
lowlighter
2022-01-16 23:37:37 -05:00
parent 6722685bce
commit 1f5e6da19c
6 changed files with 25 additions and 7 deletions

View File

@@ -18,7 +18,7 @@ if (!["plugin", "template"].includes(mode))
throw new Error(`Unsupported mode ${mode}`)
//Check if target directory already exists
const target = paths.join(__metrics, `source/${mode}s`, name)
const target = paths.join(__metrics, `source/${{plugin:"plugins/community", template:"templates"}[mode]}`, name)
if (fs.existsSync(target))
throw new Error(`A ${mode} named ${name} already exists!`)