ztechno_cli 0.0.4 → 0.0.5
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.
|
@@ -34,7 +34,7 @@ function loadPackageJson() {
|
|
|
34
34
|
*/
|
|
35
35
|
async function dockerPublish(opt) {
|
|
36
36
|
// Load .env so ZTECHNO_API_SECRET (and other vars) are available
|
|
37
|
-
(0, dotenv_1.config)({ path: path_1.default.join(process.cwd(), '.env') });
|
|
37
|
+
(0, dotenv_1.config)({ path: path_1.default.join(process.cwd(), '.env'), quiet: true });
|
|
38
38
|
const pkg = loadPackageJson();
|
|
39
39
|
const packagename = opt?.packagename || pkg.name;
|
|
40
40
|
const awsAccountId = opt?.awsAccountId || pkg.config?.awsAccountId || process.env.AWS_ACCOUNT_ID;
|
|
@@ -116,7 +116,7 @@ function loadPackageJson() {
|
|
|
116
116
|
function loadOptionsFromEnv() {
|
|
117
117
|
// Load .env file
|
|
118
118
|
const envPath = path_1.default.join(process.cwd(), '.env');
|
|
119
|
-
const cfg = (0, dotenv_1.config)({ path: envPath });
|
|
119
|
+
const cfg = (0, dotenv_1.config)({ path: envPath, quiet: true });
|
|
120
120
|
if (cfg.error && cfg.error.message && !cfg.error.message.includes('ENOENT')) {
|
|
121
121
|
throw cfg.error;
|
|
122
122
|
}
|