commet 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/README.md +2 -0
- package/dist/index.js +2 -5
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -30,7 +30,7 @@ var import_commander11 = require("commander");
|
|
|
30
30
|
// package.json
|
|
31
31
|
var package_default = {
|
|
32
32
|
name: "commet",
|
|
33
|
-
version: "1.3.
|
|
33
|
+
version: "1.3.1",
|
|
34
34
|
description: "Commet CLI - Manage your billing platform from the command line",
|
|
35
35
|
bin: {
|
|
36
36
|
commet: "./bin/commet"
|
|
@@ -409,10 +409,7 @@ function writeApiKeyToEnv(dest, apiKey, environment) {
|
|
|
409
409
|
const envPath = path2.join(dest, ".env");
|
|
410
410
|
if (!fs2.existsSync(envPath)) return;
|
|
411
411
|
let content = fs2.readFileSync(envPath, "utf-8");
|
|
412
|
-
content = content.replace(
|
|
413
|
-
/COMMET_API_KEY=.*/,
|
|
414
|
-
`COMMET_API_KEY=${apiKey}`
|
|
415
|
-
);
|
|
412
|
+
content = content.replace(/COMMET_API_KEY=.*/, `COMMET_API_KEY=${apiKey}`);
|
|
416
413
|
content = content.replace(
|
|
417
414
|
/COMMET_ENVIRONMENT=.*/,
|
|
418
415
|
`COMMET_ENVIRONMENT=${environment}`
|