@oclif/core 1.12.0 → 1.12.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 +7 -0
- package/lib/command.js +3 -2
- package/package.json +1 -1
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.12.1](https://github.com/oclif/core/compare/v1.12.0...v1.12.1) (2022-07-21)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* flag setter order ([#450](https://github.com/oclif/core/issues/450)) ([a02f86c](https://github.com/oclif/core/commit/a02f86cb1094a86ba0cd8689fd82908ff3d46386))
|
|
11
|
+
|
|
5
12
|
## [1.12.0](https://github.com/oclif/core/compare/v1.11.0...v1.12.0) (2022-07-20)
|
|
6
13
|
|
|
7
14
|
|
package/lib/command.js
CHANGED
|
@@ -52,13 +52,14 @@ class Command {
|
|
|
52
52
|
}
|
|
53
53
|
static set globalFlags(flags) {
|
|
54
54
|
this._globalFlags = Object.assign({}, this.globalFlags, flags);
|
|
55
|
-
this.flags =
|
|
55
|
+
this.flags = {}; // force the flags setter to run
|
|
56
56
|
}
|
|
57
57
|
static get flags() {
|
|
58
58
|
return this._flags;
|
|
59
59
|
}
|
|
60
60
|
static set flags(flags) {
|
|
61
|
-
|
|
61
|
+
var _a;
|
|
62
|
+
this._flags = Object.assign({}, (_a = this._flags) !== null && _a !== void 0 ? _a : {}, this.globalFlags, flags);
|
|
62
63
|
}
|
|
63
64
|
get ctor() {
|
|
64
65
|
return this.constructor;
|