learn-secrets-sdk 1.11.4 → 1.11.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.
@@ -782,6 +782,7 @@ Next steps:`);
782
782
  fs3.writeFileSync(configFile, JSON.stringify(config, null, 2));
783
783
  console.log(`
784
784
  Updated local config: ${configFile}`);
785
+ console.log(`Saved env config: ${envFile} (will be used by 'learn-secrets deploy')`);
785
786
  } catch (error) {
786
787
  console.error("\nUpload failed:", error.message);
787
788
  if (error.status === 401) {
@@ -869,6 +870,13 @@ Deploying secrets to project: ${config.project}`);
869
870
  console.log(`Origins: ${config.origins.join(", ")}
870
871
  `);
871
872
  const envFile = options.env || config.env || ".env";
873
+ if (options.env) {
874
+ console.log(`[Using --env flag: ${options.env}]`);
875
+ } else if (config.env) {
876
+ console.log(`[Using env from config: ${config.env}]`);
877
+ } else {
878
+ console.log(`[Using default: .env]`);
879
+ }
872
880
  let secrets;
873
881
  let envVars = [];
874
882
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "learn-secrets-sdk",
3
- "version": "1.11.4",
3
+ "version": "1.11.5",
4
4
  "description": "Secrets management SDK for static sites with Learn platform",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",