@cabloy/cli 3.0.63 → 3.0.64
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.
|
@@ -275,9 +275,11 @@ export class LocalTemplate {
|
|
|
275
275
|
// save
|
|
276
276
|
fs.writeFileSync(targetFile, outputCode);
|
|
277
277
|
// format
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
278
|
+
if (!this.context.argv.noformat) {
|
|
279
|
+
await catchError(() => {
|
|
280
|
+
return this.helper.formatFile({ fileName: targetFile, logPrefix: 'format: ' });
|
|
281
|
+
});
|
|
282
|
+
}
|
|
281
283
|
}
|
|
282
284
|
}
|
|
283
285
|
_parseSnippetFilePrefix(fileName) {
|