Skip to content

Commit

Permalink
fix: bump deps (#356)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley authored Feb 12, 2024
1 parent 0314802 commit 770bf3d
Show file tree
Hide file tree
Showing 3 changed files with 1,277 additions and 237 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"bugs": "https://github.com/oclif/plugin-legacy/issues",
"dependencies": {
"@oclif/color": "^1.0.13",
"@oclif/core": "^3.7.1",
"@oclif/core": "^3.19.1",
"ansi-escapes": "^4.3.2",
"debug": "^4.3.3",
"semver": "^7.5.4"
Expand All @@ -15,9 +15,9 @@
"@commitlint/config-conventional": "^17.8.1",
"@heroku-cli/plugin-apps": "^7.59.1",
"@heroku-cli/plugin-status": "5.0.10",
"@oclif/plugin-help": "^6",
"@oclif/plugin-help": "^6.0.12",
"@oclif/prettier-config": "^0.2.1",
"@oclif/test": "^3.0.3",
"@oclif/test": "^3.1.16",
"@types/chai": "^4.3.11",
"@types/mocha": "^10.0.3",
"@types/nock": "^11.1.0",
Expand All @@ -37,7 +37,7 @@
"mocha": "^10.2.0",
"nock": "^13.0.0",
"nyc": "^15.1.0",
"oclif": "^4.0.2",
"oclif": "^4.4.8",
"prettier": "^3.0.3",
"ts-node": "^10.9.1",
"typescript": "^5.3.3"
Expand Down
12 changes: 8 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,6 @@ export class PluginLegacy extends Plugin implements Interfaces.Plugin {
debug('loading legacy plugin', base.root)
}

get commandIDs(): string[] {
return super.commandIDs.concat(this.moduleCommands.map((c) => c.id))
}

protected get moduleCommands(): Command.Class[] {
if (this._moduleCommands) return this._moduleCommands
const {main} = this.pjson
Expand Down Expand Up @@ -103,6 +99,14 @@ export class PluginLegacy extends Plugin implements Interfaces.Plugin {
if (opts.must) throw new Error(`command ${id} not found`)
}

protected async getCommandIds() {
return [
// @ts-expect-error because it's private
...(await super.getCommandIds()),
...this.moduleCommands.map((c) => c.id),
]
}

private convertCommand(c: any): Command.Class {
if (this.isICommand(c)) return this.convertFromICommand(c)
if (this.isV5Command(c)) return this.convertFromV5(c)
Expand Down
Loading

0 comments on commit 770bf3d

Please sign in to comment.