@oclif/plugin-test-esm-1 0.6.10 → 0.7.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/README.md CHANGED
@@ -18,7 +18,7 @@ $ npm install -g @oclif/plugin-test-esm-1
18
18
  $ esm1 COMMAND
19
19
  running command...
20
20
  $ esm1 (--version)
21
- @oclif/plugin-test-esm-1/0.6.10 linux-x64 node-v20.11.0
21
+ @oclif/plugin-test-esm-1/0.7.1 linux-x64 node-v20.11.1
22
22
  $ esm1 --help [COMMAND]
23
23
  USAGE
24
24
  $ esm1 COMMAND
@@ -35,6 +35,7 @@ USAGE
35
35
  * [`esm1 plugins:install PLUGIN...`](#esm1-pluginsinstall-plugin-1)
36
36
  * [`esm1 plugins:link PLUGIN`](#esm1-pluginslink-plugin)
37
37
  * [`esm1 plugins:uninstall PLUGIN...`](#esm1-pluginsuninstall-plugin)
38
+ * [`esm1 plugins reset`](#esm1-plugins-reset)
38
39
  * [`esm1 plugins:uninstall PLUGIN...`](#esm1-pluginsuninstall-plugin-1)
39
40
  * [`esm1 plugins:uninstall PLUGIN...`](#esm1-pluginsuninstall-plugin-2)
40
41
  * [`esm1 plugins update`](#esm1-plugins-update)
@@ -43,16 +44,19 @@ USAGE
43
44
 
44
45
  ```
45
46
  USAGE
46
- $ esm1 esm1 [OPTIONALARG] [DEFAULTARG] [DEFAULTFNARG] [--optionalString <value>] [--defaultString
47
- <value>] [--defaultFnString <value>]
47
+ $ esm1 esm1 [OPTIONALARG] [DEFAULTARG] [DEFAULTFNARG] [--json] [--optionalString <value>]
48
+ [--defaultString <value>] [--defaultFnString <value>]
48
49
 
49
50
  FLAGS
50
51
  --defaultFnString=<value> [default: async fn default]
51
52
  --defaultString=<value> [default: simple string default]
52
53
  --optionalString=<value>
54
+
55
+ GLOBAL FLAGS
56
+ --json Format output as json.
53
57
  ```
54
58
 
55
- _See code: [src/commands/esm1.ts](https://github.com/oclif/plugin-test-esm-1/blob/v0.6.10/src/commands/esm1.ts)_
59
+ _See code: [src/commands/esm1.ts](https://github.com/oclif/plugin-test-esm-1/blob/v0.7.1/src/commands/esm1.ts)_
56
60
 
57
61
  ## `esm1 help [COMMANDS]`
58
62
 
@@ -72,7 +76,7 @@ DESCRIPTION
72
76
  Display help for esm1.
73
77
  ```
74
78
 
75
- _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v5.2.20/src/commands/help.ts)_
79
+ _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.0.14/src/commands/help.ts)_
76
80
 
77
81
  ## `esm1 plugins`
78
82
 
@@ -95,7 +99,7 @@ EXAMPLES
95
99
  $ esm1 plugins
96
100
  ```
97
101
 
98
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v3.9.4/src/commands/plugins/index.ts)_
102
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v4.2.5/src/commands/plugins/index.ts)_
99
103
 
100
104
  ## `esm1 plugins:install PLUGIN...`
101
105
 
@@ -103,7 +107,7 @@ Installs a plugin into the CLI.
103
107
 
104
108
  ```
105
109
  USAGE
106
- $ esm1 plugins:install PLUGIN...
110
+ $ esm1 plugins add plugins:install PLUGIN...
107
111
 
108
112
  ARGUMENTS
109
113
  PLUGIN Plugin to install.
@@ -111,7 +115,11 @@ ARGUMENTS
111
115
  FLAGS
112
116
  -f, --force Run yarn install with force flag.
113
117
  -h, --help Show CLI help.
114
- -v, --verbose
118
+ -s, --silent Silences yarn output.
119
+ -v, --verbose Show verbose yarn output.
120
+
121
+ GLOBAL FLAGS
122
+ --json Format output as json.
115
123
 
116
124
  DESCRIPTION
117
125
  Installs a plugin into the CLI.
@@ -128,11 +136,11 @@ ALIASES
128
136
  $ esm1 plugins add
129
137
 
130
138
  EXAMPLES
131
- $ esm1 plugins:install myplugin
139
+ $ esm1 plugins add myplugin
132
140
 
133
- $ esm1 plugins:install https://github.com/someuser/someplugin
141
+ $ esm1 plugins add https://github.com/someuser/someplugin
134
142
 
135
- $ esm1 plugins:install someuser/someplugin
143
+ $ esm1 plugins add someuser/someplugin
136
144
  ```
137
145
 
138
146
  ## `esm1 plugins:inspect PLUGIN...`
@@ -141,7 +149,7 @@ Displays installation properties of a plugin.
141
149
 
142
150
  ```
143
151
  USAGE
144
- $ esm1 plugins:inspect PLUGIN...
152
+ $ esm1 plugins inspect PLUGIN...
145
153
 
146
154
  ARGUMENTS
147
155
  PLUGIN [default: .] Plugin to inspect.
@@ -157,10 +165,10 @@ DESCRIPTION
157
165
  Displays installation properties of a plugin.
158
166
 
159
167
  EXAMPLES
160
- $ esm1 plugins:inspect myplugin
168
+ $ esm1 plugins inspect myplugin
161
169
  ```
162
170
 
163
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v3.9.4/src/commands/plugins/inspect.ts)_
171
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v4.2.5/src/commands/plugins/inspect.ts)_
164
172
 
165
173
  ## `esm1 plugins:install PLUGIN...`
166
174
 
@@ -168,7 +176,7 @@ Installs a plugin into the CLI.
168
176
 
169
177
  ```
170
178
  USAGE
171
- $ esm1 plugins:install PLUGIN...
179
+ $ esm1 plugins install PLUGIN...
172
180
 
173
181
  ARGUMENTS
174
182
  PLUGIN Plugin to install.
@@ -176,7 +184,11 @@ ARGUMENTS
176
184
  FLAGS
177
185
  -f, --force Run yarn install with force flag.
178
186
  -h, --help Show CLI help.
179
- -v, --verbose
187
+ -s, --silent Silences yarn output.
188
+ -v, --verbose Show verbose yarn output.
189
+
190
+ GLOBAL FLAGS
191
+ --json Format output as json.
180
192
 
181
193
  DESCRIPTION
182
194
  Installs a plugin into the CLI.
@@ -193,14 +205,14 @@ ALIASES
193
205
  $ esm1 plugins add
194
206
 
195
207
  EXAMPLES
196
- $ esm1 plugins:install myplugin
208
+ $ esm1 plugins install myplugin
197
209
 
198
- $ esm1 plugins:install https://github.com/someuser/someplugin
210
+ $ esm1 plugins install https://github.com/someuser/someplugin
199
211
 
200
- $ esm1 plugins:install someuser/someplugin
212
+ $ esm1 plugins install someuser/someplugin
201
213
  ```
202
214
 
203
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v3.9.4/src/commands/plugins/install.ts)_
215
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v4.2.5/src/commands/plugins/install.ts)_
204
216
 
205
217
  ## `esm1 plugins:link PLUGIN`
206
218
 
@@ -208,15 +220,15 @@ Links a plugin into the CLI for development.
208
220
 
209
221
  ```
210
222
  USAGE
211
- $ esm1 plugins:link PLUGIN
223
+ $ esm1 plugins link PLUGIN
212
224
 
213
225
  ARGUMENTS
214
226
  PATH [default: .] path to plugin
215
227
 
216
228
  FLAGS
217
- -h, --help Show CLI help.
229
+ -h, --help Show CLI help.
218
230
  -v, --verbose
219
- --[no-]install Install dependencies after linking the plugin.
231
+ --[no-]install Install dependencies after linking the plugin.
220
232
 
221
233
  DESCRIPTION
222
234
  Links a plugin into the CLI for development.
@@ -227,10 +239,10 @@ DESCRIPTION
227
239
 
228
240
 
229
241
  EXAMPLES
230
- $ esm1 plugins:link myplugin
242
+ $ esm1 plugins link myplugin
231
243
  ```
232
244
 
233
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v3.9.4/src/commands/plugins/link.ts)_
245
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v4.2.5/src/commands/plugins/link.ts)_
234
246
 
235
247
  ## `esm1 plugins:uninstall PLUGIN...`
236
248
 
@@ -238,7 +250,7 @@ Removes a plugin from the CLI.
238
250
 
239
251
  ```
240
252
  USAGE
241
- $ esm1 plugins:uninstall PLUGIN...
253
+ $ esm1 plugins remove plugins:uninstall PLUGIN...
242
254
 
243
255
  ARGUMENTS
244
256
  PLUGIN plugin to uninstall
@@ -253,15 +265,33 @@ DESCRIPTION
253
265
  ALIASES
254
266
  $ esm1 plugins unlink
255
267
  $ esm1 plugins remove
268
+
269
+ EXAMPLES
270
+ $ esm1 plugins remove myplugin
256
271
  ```
257
272
 
273
+ ## `esm1 plugins reset`
274
+
275
+ Remove all user-installed and linked plugins.
276
+
277
+ ```
278
+ USAGE
279
+ $ esm1 plugins reset [--hard] [--reinstall]
280
+
281
+ FLAGS
282
+ --hard Delete node_modules and package manager related files in addition to uninstalling plugins.
283
+ --reinstall Reinstall all plugins after uninstalling.
284
+ ```
285
+
286
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v4.2.5/src/commands/plugins/reset.ts)_
287
+
258
288
  ## `esm1 plugins:uninstall PLUGIN...`
259
289
 
260
290
  Removes a plugin from the CLI.
261
291
 
262
292
  ```
263
293
  USAGE
264
- $ esm1 plugins:uninstall PLUGIN...
294
+ $ esm1 plugins uninstall PLUGIN...
265
295
 
266
296
  ARGUMENTS
267
297
  PLUGIN plugin to uninstall
@@ -276,9 +306,12 @@ DESCRIPTION
276
306
  ALIASES
277
307
  $ esm1 plugins unlink
278
308
  $ esm1 plugins remove
309
+
310
+ EXAMPLES
311
+ $ esm1 plugins uninstall myplugin
279
312
  ```
280
313
 
281
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v3.9.4/src/commands/plugins/uninstall.ts)_
314
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v4.2.5/src/commands/plugins/uninstall.ts)_
282
315
 
283
316
  ## `esm1 plugins:uninstall PLUGIN...`
284
317
 
@@ -286,7 +319,7 @@ Removes a plugin from the CLI.
286
319
 
287
320
  ```
288
321
  USAGE
289
- $ esm1 plugins:uninstall PLUGIN...
322
+ $ esm1 plugins unlink plugins:uninstall PLUGIN...
290
323
 
291
324
  ARGUMENTS
292
325
  PLUGIN plugin to uninstall
@@ -301,6 +334,9 @@ DESCRIPTION
301
334
  ALIASES
302
335
  $ esm1 plugins unlink
303
336
  $ esm1 plugins remove
337
+
338
+ EXAMPLES
339
+ $ esm1 plugins unlink myplugin
304
340
  ```
305
341
 
306
342
  ## `esm1 plugins update`
@@ -319,5 +355,5 @@ DESCRIPTION
319
355
  Update installed plugins.
320
356
  ```
321
357
 
322
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v3.9.4/src/commands/plugins/update.ts)_
358
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v4.2.5/src/commands/plugins/update.ts)_
323
359
  <!-- commandsstop -->
package/dist/index.d.ts CHANGED
@@ -1 +1,7 @@
1
- export { run } from '@oclif/core';
1
+ import ESM1 from './commands/esm1.js';
2
+ export declare const hooks: {
3
+ init: import("@oclif/core").Hook<"init">;
4
+ };
5
+ export declare const commands: {
6
+ esm1: typeof ESM1;
7
+ };
package/dist/index.js CHANGED
@@ -1 +1,8 @@
1
- export { run } from '@oclif/core';
1
+ import ESM1 from './commands/esm1.js';
2
+ import hook from './hooks/init/init.js';
3
+ export const hooks = {
4
+ init: hook,
5
+ };
6
+ export const commands = {
7
+ esm1: ESM1,
8
+ };
@@ -1,46 +1,64 @@
1
1
  {
2
- "version": "0.6.10",
3
2
  "commands": {
4
3
  "esm1": {
5
- "id": "esm1",
6
- "strict": true,
7
- "pluginName": "@oclif/plugin-test-esm-1",
8
- "pluginAlias": "@oclif/plugin-test-esm-1",
9
- "pluginType": "core",
10
4
  "aliases": [],
5
+ "args": {
6
+ "optionalArg": {
7
+ "name": "optionalArg"
8
+ },
9
+ "defaultArg": {
10
+ "default": "simple string default",
11
+ "name": "defaultArg"
12
+ },
13
+ "defaultFnArg": {
14
+ "default": "async fn default",
15
+ "name": "defaultFnArg"
16
+ }
17
+ },
11
18
  "flags": {
19
+ "json": {
20
+ "description": "Format output as json.",
21
+ "helpGroup": "GLOBAL",
22
+ "name": "json",
23
+ "allowNo": false,
24
+ "type": "boolean"
25
+ },
12
26
  "optionalString": {
13
27
  "name": "optionalString",
14
- "type": "option",
15
- "multiple": false
28
+ "hasDynamicHelp": false,
29
+ "multiple": false,
30
+ "type": "option"
16
31
  },
17
32
  "defaultString": {
18
33
  "name": "defaultString",
19
- "type": "option",
34
+ "default": "simple string default",
35
+ "hasDynamicHelp": false,
20
36
  "multiple": false,
21
- "default": "simple string default"
37
+ "type": "option"
22
38
  },
23
39
  "defaultFnString": {
24
40
  "name": "defaultFnString",
25
- "type": "option",
41
+ "default": "async fn default",
42
+ "hasDynamicHelp": false,
26
43
  "multiple": false,
27
- "default": "async fn default"
44
+ "type": "option"
28
45
  }
29
46
  },
30
- "args": {
31
- "optionalArg": {
32
- "name": "optionalArg"
33
- },
34
- "defaultArg": {
35
- "name": "defaultArg",
36
- "default": "simple string default"
37
- },
38
- "defaultFnArg": {
39
- "name": "defaultFnArg",
40
- "default": "async fn default"
41
- }
42
- },
43
- "enableJsonFlag": true
47
+ "hasDynamicHelp": false,
48
+ "hiddenAliases": [],
49
+ "id": "esm1",
50
+ "pluginAlias": "@oclif/plugin-test-esm-1",
51
+ "pluginName": "@oclif/plugin-test-esm-1",
52
+ "pluginType": "core",
53
+ "strict": true,
54
+ "enableJsonFlag": true,
55
+ "isESM": true,
56
+ "relativePath": [
57
+ "dist",
58
+ "commands",
59
+ "esm1.js"
60
+ ]
44
61
  }
45
- }
62
+ },
63
+ "version": "0.7.1"
46
64
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oclif/plugin-test-esm-1",
3
- "version": "0.6.10",
3
+ "version": "0.7.1",
4
4
  "description": "Test ESM plugin",
5
5
  "author": "Salesforce",
6
6
  "bin": {
@@ -8,7 +8,6 @@
8
8
  },
9
9
  "homepage": "https://github.com/oclif/plugin-test-esm-1",
10
10
  "license": "MIT",
11
- "main": "",
12
11
  "repository": "oclif/plugin-test-esm-1",
13
12
  "files": [
14
13
  "/bin",
@@ -18,22 +17,22 @@
18
17
  ],
19
18
  "dependencies": {
20
19
  "@oclif/core": "^3",
21
- "@oclif/plugin-help": "^5",
22
- "@oclif/plugin-plugins": "^3.9.4"
20
+ "@oclif/plugin-help": "^6",
21
+ "@oclif/plugin-plugins": "^4"
23
22
  },
24
23
  "devDependencies": {
25
24
  "@oclif/prettier-config": "^0.2.1",
26
25
  "@oclif/test": "^3",
27
26
  "@types/chai": "^4",
28
27
  "@types/mocha": "^9.0.0",
29
- "@types/node": "^16.18.82",
28
+ "@types/node": "^16.18.83",
30
29
  "chai": "^4",
31
30
  "eslint": "^8",
32
31
  "eslint-config-oclif": "^5",
33
32
  "eslint-config-oclif-typescript": "^2.0.1",
34
33
  "eslint-config-prettier": "^9.1.0",
35
34
  "mocha": "^10",
36
- "oclif": "^3.17.2",
35
+ "oclif": "^4",
37
36
  "shx": "^0.3.4",
38
37
  "ts-node": "^10.9.2",
39
38
  "typescript": "^5"
@@ -73,6 +72,6 @@
73
72
  "oclif"
74
73
  ],
75
74
  "types": "dist/index.d.ts",
76
- "exports": "./lib/index.js",
75
+ "exports": "./dist/index.js",
77
76
  "type": "module"
78
77
  }