@envsave/cli 1.0.51 → 1.0.52
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/cli.js +3 -7
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -860,7 +860,7 @@ async function checkLicense() {
|
|
|
860
860
|
// package.json
|
|
861
861
|
var package_default = {
|
|
862
862
|
name: "@envsave/cli",
|
|
863
|
-
version: "1.0.
|
|
863
|
+
version: "1.0.52",
|
|
864
864
|
description: "Local secret vault for LLM-safe environments — encrypted secrets that agents can't bulk-discover",
|
|
865
865
|
type: "module",
|
|
866
866
|
main: "dist/index.js",
|
|
@@ -1585,16 +1585,12 @@ Use 'envsave list' to verify your secrets.`);
|
|
|
1585
1585
|
case "vercel": {
|
|
1586
1586
|
const vercelDir = join4(process.cwd(), ".vercel");
|
|
1587
1587
|
const vercelProjectJson = join4(vercelDir, "project.json");
|
|
1588
|
-
|
|
1588
|
+
const vercelRepoJson = join4(vercelDir, "repo.json");
|
|
1589
|
+
if (!existsSync3(vercelProjectJson) && !existsSync3(vercelRepoJson)) {
|
|
1589
1590
|
console.error("This project is not linked to Vercel.");
|
|
1590
1591
|
console.error("Run 'vercel link' first to connect this directory to a Vercel project.");
|
|
1591
1592
|
process.exit(1);
|
|
1592
1593
|
}
|
|
1593
|
-
let projectName = "unknown";
|
|
1594
|
-
try {
|
|
1595
|
-
const proj = JSON.parse(readFileSync5(vercelProjectJson, "utf8"));
|
|
1596
|
-
projectName = proj.projectId || "unknown";
|
|
1597
|
-
} catch {}
|
|
1598
1594
|
const envArg = getFlag("--env");
|
|
1599
1595
|
const environments = envArg ? envArg.split(",") : ["production", "preview", "development"];
|
|
1600
1596
|
const keyArgs = args.slice(1).filter((a) => !a.startsWith("--"));
|