Skip to content
This repository was archived by the owner on Aug 22, 2023. It is now read-only.

Commit 7e41f35

Browse files
committed
fix: remove plugin module
1 parent e949568 commit 7e41f35

File tree

5 files changed

+25
-42
lines changed

5 files changed

+25
-42
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
"read-pkg": "^3.0.0"
1414
},
1515
"devDependencies": {
16-
"@dxcli/command": "^0.2.3",
17-
"@dxcli/config": "^0.1.31",
18-
"@dxcli/dev": "^2.0.15",
19-
"@dxcli/engine": "^0.1.16",
16+
"@dxcli/command": "^0.2.4",
17+
"@dxcli/config": "^0.1.34",
18+
"@dxcli/dev": "^2.0.16",
19+
"@dxcli/engine": "^0.1.17",
2020
"@dxcli/semantic-release": "^0.3.3",
2121
"@dxcli/tslint": "^0.1.3",
2222
"@heroku-cli/config-edit": "^1.0.4",

src/hooks.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
import {ICommand} from './command'
22
import {ICLIConfig} from './config'
3-
import {IPlugin, IPluginModule} from './plugin'
3+
import {IPlugin} from './plugin'
44

55
export interface Hooks {
66
init: {id: string}
77
update: {}
88
'command_not_found': {id: string},
99
'plugins:parse': {
10-
module: IPluginModule
1110
pjson: IPlugin
1211
}
1312
prerun: {

src/hooks/init.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/plugin.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,14 @@
1-
import {ICachedCommand, ICommand} from './command'
1+
import {ICachedCommand} from './command'
22
import {IConfig} from './config'
33
import {ITopic} from './topic'
44

5-
export interface IPluginModule {
6-
commands: ICommand[]
7-
topic?: ITopic
8-
topics: ITopic[]
9-
}
10-
115
export interface IPlugin {
126
name: string
137
version: string
148
type: string
159
root: string
1610
tag?: string
1711
config: IConfig
18-
module?: IPluginModule
1912
commands: ICachedCommand[]
2013
topics: ITopic[]
2114
plugins: IPlugin[]

yarn.lock

Lines changed: 19 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -118,30 +118,30 @@
118118
dependencies:
119119
find-up "^2.1.0"
120120

121-
"@dxcli/command@^0.2.3":
122-
version "0.2.3"
123-
resolved "https://registry.yarnpkg.com/@dxcli/command/-/command-0.2.3.tgz#244ffea9939bd3a4b6cd9defe5f8657a5041cb93"
121+
"@dxcli/command@^0.2.4":
122+
version "0.2.4"
123+
resolved "https://registry.yarnpkg.com/@dxcli/command/-/command-0.2.4.tgz#697dd134d60b409e2a42b86260835e78967d10de"
124124
dependencies:
125125
"@dxcli/parser" "^0.0.5"
126126
debug "^3.1.0"
127127
lodash "^4.17.4"
128128
tslib "^1.9.0"
129129

130-
"@dxcli/config@^0.1.31":
131-
version "0.1.31"
132-
resolved "https://registry.yarnpkg.com/@dxcli/config/-/config-0.1.31.tgz#9303597715b07ccd2de4fb2aa84b7e30b22dbd3f"
130+
"@dxcli/config@^0.1.34":
131+
version "0.1.34"
132+
resolved "https://registry.yarnpkg.com/@dxcli/config/-/config-0.1.34.tgz#392137d90f3f7f36ad136d97d6154db84d7bf356"
133133
dependencies:
134+
cli-ux "^3.3.8"
134135
debug "^3.1.0"
135136
fs-extra "^5.0.0"
136137
load-json-file "^4.0.0"
137138
lodash "^4.17.4"
138139
read-pkg "^3.0.0"
139140

140-
"@dxcli/dev@^2.0.15":
141-
version "2.0.15"
142-
resolved "https://registry.yarnpkg.com/@dxcli/dev/-/dev-2.0.15.tgz#2984dabb5e8069515ed328cb59d920a00bee7483"
141+
"@dxcli/dev@^2.0.16":
142+
version "2.0.16"
143+
resolved "https://registry.yarnpkg.com/@dxcli/dev/-/dev-2.0.16.tgz#8d1d30fb02a02a1595d74bf464e71593228b0e93"
143144
dependencies:
144-
"@dxcli/nyc-config" "^0.0.4"
145145
"@types/ansi-styles" "^2.0.30"
146146
"@types/chai" "^4.1.2"
147147
"@types/lodash" "^4.14.97"
@@ -152,20 +152,20 @@
152152
"@types/read-pkg" "^3.0.0"
153153
"@types/strip-ansi" "^3.0.0"
154154
"@types/supports-color" "^3.1.0"
155-
eslint-config-dxcli "^1.2.0"
155+
eslint-config-dxcli "^1.2.1"
156156
nyc "^11.4.1"
157157

158-
"@dxcli/engine@^0.1.16":
159-
version "0.1.16"
160-
resolved "https://registry.yarnpkg.com/@dxcli/engine/-/engine-0.1.16.tgz#a0a12b38894ab5ab4834297ed4a55ad59ae4a7fa"
158+
"@dxcli/engine@^0.1.17":
159+
version "0.1.17"
160+
resolved "https://registry.yarnpkg.com/@dxcli/engine/-/engine-0.1.17.tgz#77f067fd8ff187e12da16d06ac251e4b75cf23cf"
161161
dependencies:
162-
"@dxcli/loader" "^0.2.11"
162+
"@dxcli/loader" "^0.2.12"
163163
cli-ux "^3.3.8"
164164
debug "^3.1.0"
165165

166-
"@dxcli/loader@^0.2.11":
167-
version "0.2.11"
168-
resolved "https://registry.yarnpkg.com/@dxcli/loader/-/loader-0.2.11.tgz#d3b36cdbc9461c1cac44ed41b5a083bcdf4ce11d"
166+
"@dxcli/loader@^0.2.12":
167+
version "0.2.15"
168+
resolved "https://registry.yarnpkg.com/@dxcli/loader/-/loader-0.2.15.tgz#651121002a13c23fd346d2edc9db08fbe6624e7a"
169169
dependencies:
170170
"@dxcli/manifest-file" "^0.1.0"
171171
cli-ux "^3.3.8"
@@ -183,10 +183,6 @@
183183
lodash "^4.17.4"
184184
rwlockfile "^2.0.21"
185185

186-
"@dxcli/nyc-config@^0.0.4":
187-
version "0.0.4"
188-
resolved "https://registry.yarnpkg.com/@dxcli/nyc-config/-/nyc-config-0.0.4.tgz#bd60c089aaa6d5da34e415bab6bc527d8c35a210"
189-
190186
"@dxcli/parser@^0.0.5":
191187
version "0.0.5"
192188
resolved "https://registry.yarnpkg.com/@dxcli/parser/-/parser-0.0.5.tgz#51daf8133e8cec6ff21bfa464c4d58cd46b5ed99"
@@ -1510,7 +1506,7 @@ eslint-ast-utils@^1.0.0:
15101506
lodash.get "^4.4.2"
15111507
lodash.zip "^4.2.0"
15121508

1513-
eslint-config-dxcli@^1.2.0:
1509+
eslint-config-dxcli@^1.2.1:
15141510
version "1.2.1"
15151511
resolved "https://registry.yarnpkg.com/eslint-config-dxcli/-/eslint-config-dxcli-1.2.1.tgz#8e65ee698fa77e9485462c788fa466edffccc13d"
15161512
dependencies:

0 commit comments

Comments
 (0)