Add logic for content file path generation

This commit is contained in:
Kamran Ahmed
2021-12-03 15:01:23 +01:00
parent cdc362625a
commit bf56db60bc
5 changed files with 12 additions and 6 deletions

View File

@ -223,6 +223,6 @@ const roadmapMetaFilePath = path.join(roadmapDirPath, 'meta.json');
const roadmapMeta = require(roadmapMetaFilePath);
// Put the content paths file path in the roadmap meta
roadmapMeta.contentPathsFilePath = contentPathsFilePath.replace(CONTENT_DIR, '');
roadmapMeta.contentPathsFilePath = contentPathsFilePath.replace(roadmapDirPath, '.');
fs.writeFileSync(roadmapMetaFilePath, JSON.stringify(roadmapMeta, null, 2));