Skip to content

Commit ab56730

Browse files
committed
fix: typo
1 parent 5793a13 commit ab56730

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/create.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ const templatePath = path.join(__dirname, 'template.mdx')
88
const create = async () => {
99
const hasPosts = await fs.pathExists(postsPath)
1010
if (!hasPosts) {
11-
console.log(chalk.red(' About. Not found dir "/page/posts".\n'))
11+
console.log(chalk.red(' Aborted. Not found dir "/page/posts".\n'))
1212
process.exit(1)
1313
}
1414

1515
const promptText = `> You need to specify the post ${chalk.bold('Filename')} (required): `
1616
const answer = prompt(chalk.hex('#bdbdbd')(promptText))
1717

1818
if (!answer) {
19-
console.log(chalk.yellow(' About. Nothing has changed.\n'))
19+
console.log(chalk.yellow(' Aborted. Nothing has changed.\n'))
2020
process.exit(1)
2121
}
2222

@@ -29,7 +29,7 @@ const create = async () => {
2929

3030
const hasFile = await fs.pathExists(filePath)
3131
if (hasFile) {
32-
console.log(chalk.red(` About. File ${postsPath} is exists.\n`))
32+
console.log(chalk.red(` Aborted. File ${postsPath} is exists.\n`))
3333
process.exit(1)
3434
}
3535

0 commit comments

Comments
 (0)