From cf8dcee7fdfaa8da9fb5524d61f9a94e8ebabfaf Mon Sep 17 00:00:00 2001 From: Chris Moesel Date: Mon, 5 Feb 2024 12:07:44 -0500 Subject: [PATCH] Paths in index.json should always use '/' --- manifest.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manifest.js b/manifest.js index 31692ae..e840e8f 100644 --- a/manifest.js +++ b/manifest.js @@ -50,7 +50,7 @@ async function getChildren(relativeDir = '') { if (file.endsWith('fsh')) { const metaData = await getMetadata(fullFilePath, file); workingArray.push({ - path: encodeURI(relativeFilePath), + path: encodeURI(relativeFilePath.split(path.sep).join('/')), ...metaData, type: 'file' }); @@ -59,7 +59,7 @@ async function getChildren(relativeDir = '') { if (children.length) { workingArray.push({ name: file, - path: encodeURI(relativeFilePath), + path: encodeURI(relativeFilePath.split(path.sep).join('/')), type: 'category', children });