kss-modern 0.0.44 → 0.0.46

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.
@@ -2145,7 +2145,7 @@ async function buildStyleguide(config) {
2145
2145
  const { content: parsedContent, overwrittenSectionsIds } = await parseStyleguide(config.contentDir);
2146
2146
  if (config.mode === "production" && await fs.exists(config.outDir)) {
2147
2147
  const files = await glob(`${config.outDir}/**/*.html`);
2148
- await Promise.all(files.map((file) => fs.unlink(file)));
2148
+ await Promise.all(files.map((file) => fs.remove(file)));
2149
2149
  }
2150
2150
  const baseDirectory = path.relative(process.cwd(), config.outDir);
2151
2151
  const getFullPageFilePath = (fileName) => path.join(baseDirectory, fileName);
@@ -2193,8 +2193,8 @@ async function buildStyleguide(config) {
2193
2193
  });
2194
2194
  });
2195
2195
  });
2196
- resolveInsertMarkupInRepository(markupRepository, sectionsById);
2197
2196
  markupRepository = await compilePugMarkup(config.mode, config.contentDir, markupRepository);
2197
+ resolveInsertMarkupInRepository(markupRepository, sectionsById);
2198
2198
  parsedContent.forEach((firstLevelSection, indexFirstLevel) => {
2199
2199
  searchSectionMapping[indexFirstLevel] = {
2200
2200
  title: firstLevelSection.header,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "kss-modern",
3
3
  "type": "module",
4
- "version": "0.0.44",
4
+ "version": "0.0.46",
5
5
  "description": "Modern KSS compatible styleguide generator",
6
6
  "repository": {
7
7
  "type": "git",