@cabloy/cli 3.0.41 → 3.0.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.
@@ -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,13 @@ export class LocalHelper {
286
288
  return pathToFileURL(fileName).href;
287
289
  }
288
290
  }
291
+ function _formatFileDisable(fileName) {
292
+ if (/.env$/.test(fileName))
293
+ return true;
294
+ if (/.env\..*$/.test(fileName))
295
+ return true;
296
+ return false;
297
+ }
289
298
  // async importDynamic<RESULT>(fileName: string, fn: (instance: any) => Promise<RESULT>): Promise<RESULT> {
290
299
  // return await this.tempFile(
291
300
  // 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.41",
4
+ "version": "3.0.43",
5
5
  "description": "@cabloy/cli",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -27,10 +27,10 @@
27
27
  ],
28
28
  "dependencies": {
29
29
  "@babel/parser": "^7.26.5",
30
- "@cabloy/module-glob": "^5.2.23",
31
- "@cabloy/module-info": "^1.3.25",
30
+ "@cabloy/module-glob": "^5.2.24",
31
+ "@cabloy/module-info": "^1.3.26",
32
32
  "@cabloy/process-helper": "^2.0.18",
33
- "@cabloy/utils": "^1.0.38",
33
+ "@cabloy/utils": "^1.0.39",
34
34
  "@cabloy/word-utils": "^2.0.1",
35
35
  "@npmcli/config": "^8.3.4",
36
36
  "@zhennann/common-bin": "^4.0.0",