@capawesome/cli 1.3.1 → 1.3.2

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/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
4
4
 
5
+ ## [1.3.2](https://github.com/capawesome-team/cli/compare/v1.3.1...v1.3.2) (2024-12-30)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * npm error `patch-package: command not found` ([ed3513a](https://github.com/capawesome-team/cli/commit/ed3513a63d89d20da76e969d2b5a11f876b7da76)), closes [#23](https://github.com/capawesome-team/cli/issues/23)
11
+
5
12
  ## [1.3.1](https://github.com/capawesome-team/cli/compare/v1.3.0...v1.3.1) (2024-12-30)
6
13
 
7
14
 
@@ -13,16 +13,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.passwordPrompt = exports.prompt = void 0;
16
- const consola_1 = __importDefault(require("consola"));
17
16
  const prompts_1 = require("@clack/prompts");
18
- /**
19
- * This is a workaround for the issue with consola.prompt not detecting command cancellation.
20
- *
21
- * @see https://github.com/unjs/consola/issues/251#issuecomment-1810269084
22
- */
17
+ const consola_1 = __importDefault(require("consola"));
23
18
  const prompt = (message, options) => __awaiter(void 0, void 0, void 0, function* () {
19
+ options = Object.assign(Object.assign({}, (options || {})), { cancel: 'symbol' });
24
20
  const response = yield consola_1.default.prompt(message, options);
25
- if (response && response.toString() === 'Symbol(clack:cancel)') {
21
+ // See https://github.com/unjs/consola/pull/325#issue-2751614453
22
+ if (response === Symbol.for('cancel')) {
26
23
  process.exit(0);
27
24
  }
28
25
  return response;
package/package.json CHANGED
@@ -1,16 +1,15 @@
1
1
  {
2
2
  "name": "@capawesome/cli",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "description": "The Capawesome Cloud Command Line Interface (CLI) to manage Live Updates and more.",
5
5
  "scripts": {
6
- "build": "rimraf ./dist && tsc",
6
+ "build": "patch-package && rimraf ./dist && tsc",
7
7
  "start": "npm run build && node ./dist/index.js",
8
8
  "lint": "npm run prettier -- --check",
9
9
  "fmt": "npm run prettier -- --write",
10
10
  "prettier": "prettier \"**/*.{css,html,ts,js}\"",
11
11
  "prepublishOnly": "npm run build",
12
- "release": "commit-and-tag-version",
13
- "postinstall": "patch-package"
12
+ "release": "commit-and-tag-version"
14
13
  },
15
14
  "bin": {
16
15
  "capawesome": "./dist/index.js"
@@ -47,7 +46,7 @@
47
46
  "axios": "1.7.7",
48
47
  "c12": "2.0.1",
49
48
  "citty": "0.1.6",
50
- "consola": "3.2.3",
49
+ "consola": "3.3.0",
51
50
  "form-data": "4.0.1",
52
51
  "rc9": "2.1.2",
53
52
  "semver": "7.6.3"