@arkstack/console 0.14.3 → 0.14.15

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -3
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -99,6 +99,7 @@ var KeyGenerateCommand = class KeyGenerateCommand extends Command {
99
99
  description = "Set the application key (APP_KEY).";
100
100
  async handle() {
101
101
  const key = this.generateKey();
102
+ const ignore = !this.option("interaction");
102
103
  if (this.option("show")) {
103
104
  this.line(key);
104
105
  return;
@@ -109,9 +110,9 @@ var KeyGenerateCommand = class KeyGenerateCommand extends Command {
109
110
  return;
110
111
  }
111
112
  const contents = readFileSync(envPath, "utf-8");
112
- if (KeyGenerateCommand.hasEnvValue(contents, "APP_KEY") && !this.option("force")) {
113
- if (!await this.confirm("An application key already exists. Overwrite it?", false)) {
114
- this.info("Application key generation aborted.");
113
+ if (KeyGenerateCommand.hasEnvValue(contents, "APP_KEY") && !this.option("force") || ignore) {
114
+ if (!(!ignore ? await this.confirm("An application key already exists. Overwrite it?", false) : false) || ignore) {
115
+ this.info(`Application key generation ${ignore ? "skipped" : "aborted"}.`);
115
116
  return;
116
117
  }
117
118
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arkstack/console",
3
- "version": "0.14.3",
3
+ "version": "0.14.15",
4
4
  "type": "module",
5
5
  "description": "Console module for Arkstack, providing the command-line runtime and console integration layer.",
6
6
  "homepage": "https://arkstack.toneflix.net/guide/cli",
@@ -51,8 +51,8 @@
51
51
  "chalk": "^5.6.2",
52
52
  "resora": "^1.3.26",
53
53
  "ts-morph": "^28.0.0",
54
- "@arkstack/common": "^0.14.3",
55
- "@arkstack/contract": "^0.14.3"
54
+ "@arkstack/contract": "^0.14.15",
55
+ "@arkstack/common": "^0.14.15"
56
56
  },
57
57
  "scripts": {
58
58
  "build": "tsdown",