Comparing version
@@ -7,7 +7,8 @@ import { execSync } from "child_process"; | ||
execSync(`export SOPS_AGE_KEY="${process?.env?.AGE_PRIVATE_KEY}" && unset SOPS_AGE_KEY_FILE && ${SOPS_COMMAND} --decrypt ${srcPath} > ${destPath}`); | ||
console.log(`Decrypted file: ${destPath}`); | ||
return true; | ||
} catch (error) { | ||
console.error(error); | ||
console.info(JSON.stringify(error, null, 2)); | ||
return false; | ||
} | ||
}; |
{ | ||
"name": "env-sops", | ||
"version": "0.0.0-20240306064749", | ||
"version": "0.0.0-20240306065415", | ||
"description": "Package to help encrypt/decrypt ENV files", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
23375
0.33%187
0.54%