@supatest/cli 0.0.34 → 0.0.35
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/index.js +6 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -304,8 +304,11 @@ var init_config = __esm({
|
|
|
304
304
|
isDevelopment = process.env.NODE_ENV === "development";
|
|
305
305
|
if (isDevelopment) {
|
|
306
306
|
const envFile = process.env.ENV_NAME ? `.env.${process.env.ENV_NAME}` : ".env";
|
|
307
|
-
|
|
308
|
-
|
|
307
|
+
try {
|
|
308
|
+
const dotenv = await import("dotenv");
|
|
309
|
+
dotenv.config({ path: resolve(process.cwd(), envFile) });
|
|
310
|
+
} catch (error) {
|
|
311
|
+
}
|
|
309
312
|
}
|
|
310
313
|
getEnvVar = (key, defaultValue) => {
|
|
311
314
|
if (process.env.ENV_NAME) {
|
|
@@ -5365,7 +5368,7 @@ var CLI_VERSION;
|
|
|
5365
5368
|
var init_version = __esm({
|
|
5366
5369
|
"src/version.ts"() {
|
|
5367
5370
|
"use strict";
|
|
5368
|
-
CLI_VERSION = "0.0.
|
|
5371
|
+
CLI_VERSION = "0.0.35";
|
|
5369
5372
|
}
|
|
5370
5373
|
});
|
|
5371
5374
|
|