Skip to content

Commit

Permalink
Merge pull request #13474 from russellwpatterson/rp-empty-dir-for-cle…
Browse files Browse the repository at this point in the history
…anup

Core: Use fs-extra emptyDir so build works on docker volume
  • Loading branch information
shilman authored Dec 20, 2020
2 parents e028fe7 + cf3ad97 commit f4cbc0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core/src/server/build-static.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export async function buildStaticStandalone(options: any) {

logger.info(chalk`=> Cleaning outputDir: {cyan ${outputDir}}`);
if (outputDir === '/') throw new Error("Won't remove directory '/'. Check your outputDir!");
await fs.remove(outputDir);
await fs.emptyDir(outputDir);

await cpy(defaultFavIcon, outputDir);
await copyAllStaticFiles(staticDir, outputDir);
Expand Down

0 comments on commit f4cbc0b

Please sign in to comment.