8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d83118 commit 5a9f8afCopy full SHA for 5a9f8af
src/cli/index.ts
@@ -2,7 +2,7 @@
2
3
import { resolve, join } from 'path';
4
import { progressBar } from './progress';
5
-import { ensureDir, stat } from 'fs-extra';
+import { ensureDir, ensureFile, stat } from 'fs-extra';
6
import { isValid, validationErrors, input } from './config';
7
import { normaliseDates } from '../dates-normaliser';
8
import { generateUrls } from '../url-generator';
@@ -143,6 +143,7 @@ if (isDebugActive) {
143
}
144
145
const relativeFilePath = join(dir, fileName);
146
+ await ensureFile(filePath);
147
const { size } = await stat(filePath);
148
printSuccess(`√ File saved: ${chalk.bold(relativeFilePath)} (${formatBytes(size)})`);
149
} else {
0 commit comments