@cabloy/cli 3.0.62 → 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.
|
@@ -145,7 +145,7 @@ export class LocalTemplate {
|
|
|
145
145
|
// save
|
|
146
146
|
fs.writeFileSync(targetFile, result);
|
|
147
147
|
// format
|
|
148
|
-
if (changed) {
|
|
148
|
+
if (changed && !this.context.argv.noformat) {
|
|
149
149
|
await catchError(() => {
|
|
150
150
|
return this.helper.formatFile({ fileName: targetFile, logPrefix: 'format: ' });
|
|
151
151
|
});
|
|
@@ -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) {
|
package/dist/types/argv.d.ts
CHANGED