vovk-cli 0.0.1-beta.42 → 0.0.1-beta.43
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/new/newModule.mjs +1 -1
- package/package.json +1 -1
package/dist/new/newModule.mjs
CHANGED
|
@@ -82,7 +82,7 @@ export default async function newModule({ projectInfo, what, moduleNameWithOptio
|
|
|
82
82
|
const prettiedCode = await prettify(code, absoluteModulePath);
|
|
83
83
|
if (!dryRun) {
|
|
84
84
|
if (!overwrite && (await getFileSystemEntryType(absoluteModulePath))) {
|
|
85
|
-
log.
|
|
85
|
+
return log.error(`File ${chalkHighlightThing(absoluteModulePath)} already exists, skipping this "${chalkHighlightThing(type)}". You can use --overwrite flag to overwrite it.`);
|
|
86
86
|
}
|
|
87
87
|
else {
|
|
88
88
|
await fs.mkdir(absoluteModuleDir, { recursive: true });
|