@oclif/core 1.6.0 → 1.6.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/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [1.6.1](https://github.com/oclif/core/compare/v1.6.0...v1.6.1) (2022-03-17)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * set id to alias when adding commands ([#390](https://github.com/oclif/core/issues/390)) ([84ab722](https://github.com/oclif/core/commit/84ab7223a2196c6a33f64a3e4ba75a050b02d1c3))
11
+
5
12
  ## [1.6.0](https://github.com/oclif/core/compare/v1.5.3...v1.6.0) (2022-03-14)
6
13
 
7
14
 
@@ -517,10 +517,10 @@ class Config {
517
517
  for (const alias of (_a = command.aliases) !== null && _a !== void 0 ? _a : []) {
518
518
  if (this._commands.has(alias)) {
519
519
  const prioritizedCommand = this.determinePriority([this._commands.get(alias), command]);
520
- this._commands.set(prioritizedCommand.id, prioritizedCommand);
520
+ this._commands.set(prioritizedCommand.id, { ...prioritizedCommand, id: alias });
521
521
  }
522
522
  else {
523
- this._commands.set(alias, command);
523
+ this._commands.set(alias, { ...command, id: alias });
524
524
  }
525
525
  const aliasPermutations = this.flexibleTaxonomy ? (0, util_2.getCommandIdPermutations)(alias) : [alias];
526
526
  for (const permutation of aliasPermutations) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@oclif/core",
3
3
  "description": "base library for oclif CLIs",
4
- "version": "1.6.0",
4
+ "version": "1.6.1",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/oclif/core/issues",
7
7
  "dependencies": {