@cabloy/cli 3.0.42 → 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.
- package/dist/lib/local.helper.js +9 -0
- package/package.json +1 -1
package/dist/lib/local.helper.js
CHANGED
|
@@ -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 => {
|