@rowlabs/ev 0.4.0 → 0.4.1
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/index.js +14 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6577,6 +6577,11 @@ var init_api_client = __esm({
|
|
|
6577
6577
|
githubRepo
|
|
6578
6578
|
});
|
|
6579
6579
|
}
|
|
6580
|
+
async updateProjectName(projectId, name) {
|
|
6581
|
+
return this.request("PATCH", `/projects/${projectId}`, {
|
|
6582
|
+
name
|
|
6583
|
+
});
|
|
6584
|
+
}
|
|
6580
6585
|
async listProjects() {
|
|
6581
6586
|
return this.request("GET", "/projects");
|
|
6582
6587
|
}
|
|
@@ -7073,6 +7078,13 @@ var pushCommand = new Command3("push").description("Push local .env files to rem
|
|
|
7073
7078
|
const config = await loadEvConfig(process.cwd());
|
|
7074
7079
|
const cwd = process.cwd();
|
|
7075
7080
|
const isAtRoot = cwd === repoRoot;
|
|
7081
|
+
if (config?.name) {
|
|
7082
|
+
try {
|
|
7083
|
+
const client = await createApiClient(backendConfig);
|
|
7084
|
+
await client.updateProjectName(context.project, config.name);
|
|
7085
|
+
} catch {
|
|
7086
|
+
}
|
|
7087
|
+
}
|
|
7076
7088
|
if (isAtRoot && config?.apps && Object.keys(config.apps).length > 0) {
|
|
7077
7089
|
spinner.text = "Pushing all apps...";
|
|
7078
7090
|
spinner.stop();
|
|
@@ -8845,7 +8857,7 @@ var updateCommand = new Command18("update").description("Update ev to the latest
|
|
|
8845
8857
|
const spinner = ora12("Checking for updates...").start();
|
|
8846
8858
|
try {
|
|
8847
8859
|
const latest = execSync2("npm view @rowlabs/ev version", { encoding: "utf-8" }).trim();
|
|
8848
|
-
const current = "0.4.
|
|
8860
|
+
const current = "0.4.1";
|
|
8849
8861
|
if (current === latest) {
|
|
8850
8862
|
spinner.succeed(chalk20.green(`Already on the latest version (${current})`));
|
|
8851
8863
|
return;
|
|
@@ -8861,7 +8873,7 @@ var updateCommand = new Command18("update").description("Update ev to the latest
|
|
|
8861
8873
|
|
|
8862
8874
|
// src/index.ts
|
|
8863
8875
|
var program = new Command19();
|
|
8864
|
-
program.name("ev").description("Git for env vars \u2014 sync environment variables across teams securely").version("0.4.
|
|
8876
|
+
program.name("ev").description("Git for env vars \u2014 sync environment variables across teams securely").version("0.4.1");
|
|
8865
8877
|
program.addCommand(loginCommand);
|
|
8866
8878
|
program.addCommand(initCommand);
|
|
8867
8879
|
program.addCommand(pushCommand);
|