kss-modern 0.0.45 → 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.
- package/dist/node/lib/index.mjs +1 -1
- package/package.json +1 -1
package/dist/node/lib/index.mjs
CHANGED
|
@@ -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.
|
|
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);
|