@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
- await catchError(() => {
279
- return this.helper.formatFile({ fileName: targetFile, logPrefix: 'format: ' });
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) {
@@ -5,6 +5,8 @@ export interface ICommandArgv {
5
5
  vscode: boolean;
6
6
  dummy: boolean;
7
7
  ci: boolean;
8
+ nometadata: boolean;
9
+ noformat: boolean;
8
10
  _: string[];
9
11
  }
10
12
  export interface ICommandContext {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cabloy/cli",
3
3
  "type": "module",
4
- "version": "3.0.62",
4
+ "version": "3.0.64",
5
5
  "description": "@cabloy/cli",
6
6
  "publishConfig": {
7
7
  "access": "public"