alex-c-line 1.3.0 → 1.3.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.cjs CHANGED
@@ -91,10 +91,6 @@ var import_dotenv = __toESM(require("dotenv"), 1);
91
91
  var import_dotenv_stringify = __toESM(require("dotenv-stringify"), 1);
92
92
  function editEnv(program2) {
93
93
  program2.command("edit-env <key> <value>").description("Edit property in .env file ").action((key, value) => __async(null, null, function* () {
94
- if (!key || !value) {
95
- console.error("Invalid property. Please provide property in format PROPERTY=value");
96
- process.exit(1);
97
- }
98
94
  let currentEnvFileContents;
99
95
  try {
100
96
  currentEnvFileContents = import_dotenv.default.parse(
@@ -105,6 +101,7 @@ function editEnv(program2) {
105
101
  }
106
102
  currentEnvFileContents[key] = value;
107
103
  yield (0, import_promises.writeFile)(import_path2.default.join(process.cwd(), ".env"), (0, import_dotenv_stringify.default)(currentEnvFileContents));
104
+ console.log(".env file updated");
108
105
  }));
109
106
  }
110
107
  var edit_env_default = editEnv;
package/dist/index.js CHANGED
@@ -70,10 +70,6 @@ import dotenv from "dotenv";
70
70
  import dotenvStringify from "dotenv-stringify";
71
71
  function editEnv(program2) {
72
72
  program2.command("edit-env <key> <value>").description("Edit property in .env file ").action((key, value) => __async(null, null, function* () {
73
- if (!key || !value) {
74
- console.error("Invalid property. Please provide property in format PROPERTY=value");
75
- process.exit(1);
76
- }
77
73
  let currentEnvFileContents;
78
74
  try {
79
75
  currentEnvFileContents = dotenv.parse(
@@ -84,6 +80,7 @@ function editEnv(program2) {
84
80
  }
85
81
  currentEnvFileContents[key] = value;
86
82
  yield writeFile(path2.join(process.cwd(), ".env"), dotenvStringify(currentEnvFileContents));
83
+ console.log(".env file updated");
87
84
  }));
88
85
  }
89
86
  var edit_env_default = editEnv;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alex-c-line",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",