@cabloy/cli 3.0.42 → 3.0.44

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.
@@ -153,6 +153,8 @@ export class LocalHelper {
153
153
  });
154
154
  }
155
155
  async formatFile({ fileName, logPrefix }) {
156
+ if (_formatFileDisable(fileName))
157
+ return;
156
158
  return await this.processHelper.formatFile({ fileName, logPrefix });
157
159
  }
158
160
  async spawnBin({ cmd, args, options }) {
@@ -286,6 +288,14 @@ export class LocalHelper {
286
288
  return pathToFileURL(fileName).href;
287
289
  }
288
290
  }
291
+ function _formatFileDisable(fileName) {
292
+ const baseName = path.basename(fileName);
293
+ if (/.env\..*$/.test(baseName))
294
+ return true;
295
+ if (['.env', 'docker-compose-dockerfile-app', 'docker-compose.yml'].includes(baseName))
296
+ return true;
297
+ return false;
298
+ }
289
299
  // async importDynamic<RESULT>(fileName: string, fn: (instance: any) => Promise<RESULT>): Promise<RESULT> {
290
300
  // return await this.tempFile(
291
301
  // async fileTemp => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cabloy/cli",
3
3
  "type": "module",
4
- "version": "3.0.42",
4
+ "version": "3.0.44",
5
5
  "description": "@cabloy/cli",
6
6
  "publishConfig": {
7
7
  "access": "public"