@marvalt/digivalt-core 0.1.4 → 0.1.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marvalt/digivalt-core",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Core glue logic and shared context for DigiVAlt frontend applications",
5
5
  "license": "GPL-3.0-or-later",
6
6
  "main": "dist/index.cjs",
@@ -73,10 +73,14 @@ try {
73
73
  // Construct the command string tightly bound to the exact workspace
74
74
  let cmd = `npx wrangler pages secret bulk .tmp-cloudflare-secrets.json`;
75
75
  if (projectName) cmd += ` --project-name ${projectName}`;
76
- if (accountId) cmd += ` --account-id ${accountId}`;
77
76
 
78
- // Execute Wrangler natively
79
- execSync(cmd, { stdio: 'inherit' });
77
+ // Execute Wrangler natively with the Account ID passed through the strict environment scope
78
+ const env = { ...process.env };
79
+ if (accountId) {
80
+ env.CLOUDFLARE_ACCOUNT_ID = accountId;
81
+ }
82
+
83
+ execSync(cmd, { stdio: 'inherit', env });
80
84
  console.log("✅ All secrets deployed successfully to Cloudflare!");
81
85
 
82
86
  } catch (error) {