@oclif/plugin-test-esm-2 0.5.3 → 0.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/README.md CHANGED
@@ -18,7 +18,7 @@ $ npm install -g @oclif/plugin-test-esm-2
18
18
  $ esm2 COMMAND
19
19
  running command...
20
20
  $ esm2 (--version)
21
- @oclif/plugin-test-esm-2/0.5.3 linux-x64 node-v18.18.0
21
+ @oclif/plugin-test-esm-2/0.6.1 linux-x64 node-v20.9.0
22
22
  $ esm2 --help [COMMAND]
23
23
  USAGE
24
24
  $ esm2 COMMAND
@@ -44,18 +44,15 @@ USAGE
44
44
  ```
45
45
  USAGE
46
46
  $ esm2 esm2 [OPTIONALARG] [DEFAULTARG] [DEFAULTFNARG] [--optionalString <value>] [--defaultString
47
- <value>] [--defaultFnString <value>] [--json]
47
+ <value>] [--defaultFnString <value>]
48
48
 
49
49
  FLAGS
50
50
  --defaultFnString=<value> [default: async fn default]
51
51
  --defaultString=<value> [default: simple string default]
52
52
  --optionalString=<value>
53
-
54
- GLOBAL FLAGS
55
- --json Format output as json.
56
53
  ```
57
54
 
58
- _See code: [dist/commands/esm2.ts](https://github.com/oclif/plugin-test-esm-2/blob/v0.5.3/dist/commands/esm2.ts)_
55
+ _See code: [dist/commands/esm2.ts](https://github.com/oclif/plugin-test-esm-2/blob/v0.6.1/dist/commands/esm2.ts)_
59
56
 
60
57
  ## `esm2 help [COMMANDS]`
61
58
 
@@ -98,7 +95,7 @@ EXAMPLES
98
95
  $ esm2 plugins
99
96
  ```
100
97
 
101
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v3.8.3/src/commands/plugins/index.ts)_
98
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v3.9.4/src/commands/plugins/index.ts)_
102
99
 
103
100
  ## `esm2 plugins:install PLUGIN...`
104
101
 
@@ -163,7 +160,7 @@ EXAMPLES
163
160
  $ esm2 plugins:inspect myplugin
164
161
  ```
165
162
 
166
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v3.8.3/src/commands/plugins/inspect.ts)_
163
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v3.9.4/src/commands/plugins/inspect.ts)_
167
164
 
168
165
  ## `esm2 plugins:install PLUGIN...`
169
166
 
@@ -203,7 +200,7 @@ EXAMPLES
203
200
  $ esm2 plugins:install someuser/someplugin
204
201
  ```
205
202
 
206
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v3.8.3/src/commands/plugins/install.ts)_
203
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v3.9.4/src/commands/plugins/install.ts)_
207
204
 
208
205
  ## `esm2 plugins:link PLUGIN`
209
206
 
@@ -217,8 +214,9 @@ ARGUMENTS
217
214
  PATH [default: .] path to plugin
218
215
 
219
216
  FLAGS
220
- -h, --help Show CLI help.
217
+ -h, --help Show CLI help.
221
218
  -v, --verbose
219
+ --[no-]install Install dependencies after linking the plugin.
222
220
 
223
221
  DESCRIPTION
224
222
  Links a plugin into the CLI for development.
@@ -232,7 +230,7 @@ EXAMPLES
232
230
  $ esm2 plugins:link myplugin
233
231
  ```
234
232
 
235
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v3.8.3/src/commands/plugins/link.ts)_
233
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v3.9.4/src/commands/plugins/link.ts)_
236
234
 
237
235
  ## `esm2 plugins:uninstall PLUGIN...`
238
236
 
@@ -280,7 +278,7 @@ ALIASES
280
278
  $ esm2 plugins remove
281
279
  ```
282
280
 
283
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v3.8.3/src/commands/plugins/uninstall.ts)_
281
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v3.9.4/src/commands/plugins/uninstall.ts)_
284
282
 
285
283
  ## `esm2 plugins:uninstall PLUGIN...`
286
284
 
@@ -321,5 +319,5 @@ DESCRIPTION
321
319
  Update installed plugins.
322
320
  ```
323
321
 
324
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v3.8.3/src/commands/plugins/update.ts)_
322
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v3.9.4/src/commands/plugins/update.ts)_
325
323
  <!-- commandsstop -->
package/bin/dev.js CHANGED
@@ -1,6 +1,8 @@
1
1
  #!/usr/bin/env ts-node
2
2
  // eslint-disable-next-line node/shebang
3
- (async () => {
3
+ async function main() {
4
4
  const oclif = await import('@oclif/core')
5
5
  await oclif.execute({development: true, dir: import.meta.url})
6
- })()
6
+ }
7
+
8
+ await main()
package/bin/run.js CHANGED
@@ -1,6 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- void (async () => {
3
+ async function main() {
4
4
  const oclif = await import('@oclif/core')
5
5
  await oclif.execute({dir: import.meta.url})
6
- })()
6
+ }
7
+
8
+ await main()
@@ -1,29 +1,27 @@
1
- var _a;
2
1
  import { Args, Command, Flags } from '@oclif/core';
3
2
  export default class ESM2 extends Command {
3
+ static flags = {
4
+ optionalString: Flags.string(),
5
+ defaultString: Flags.string({
6
+ default: 'simple string default',
7
+ }),
8
+ defaultFnString: Flags.string({
9
+ default: async () => 'async fn default',
10
+ }),
11
+ };
12
+ static args = {
13
+ optionalArg: Args.string(),
14
+ defaultArg: Args.string({
15
+ default: 'simple string default',
16
+ }),
17
+ defaultFnArg: Args.string({
18
+ default: async () => 'async fn default',
19
+ }),
20
+ };
21
+ static enableJsonFlag = true;
4
22
  async run() {
5
23
  const { args, flags } = await this.parse(ESM2);
6
24
  this.log(`hello I am an ESM plugin from ${this.config.root}!`);
7
25
  return { args, flags };
8
26
  }
9
27
  }
10
- _a = ESM2;
11
- ESM2.flags = {
12
- optionalString: Flags.string(),
13
- defaultString: Flags.string({
14
- default: 'simple string default',
15
- }),
16
- defaultFnString: Flags.string({
17
- default: async () => Promise.resolve('async fn default'),
18
- }),
19
- };
20
- ESM2.args = {
21
- optionalArg: Args.string(),
22
- defaultArg: Args.string({
23
- default: 'simple string default',
24
- }),
25
- defaultFnArg: Args.string({
26
- default: async () => Promise.resolve('async fn default'),
27
- }),
28
- };
29
- ESM2.enableJsonFlag = true;
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.5.3",
2
+ "version": "0.6.1",
3
3
  "commands": {
4
4
  "esm2": {
5
5
  "id": "esm2",
@@ -25,13 +25,6 @@
25
25
  "type": "option",
26
26
  "multiple": false,
27
27
  "default": "async fn default"
28
- },
29
- "json": {
30
- "name": "json",
31
- "type": "boolean",
32
- "description": "Format output as json.",
33
- "helpGroup": "GLOBAL",
34
- "allowNo": false
35
28
  }
36
29
  },
37
30
  "args": {
@@ -46,7 +39,8 @@
46
39
  "name": "defaultFnArg",
47
40
  "default": "async fn default"
48
41
  }
49
- }
42
+ },
43
+ "enableJsonFlag": true
50
44
  }
51
45
  }
52
46
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oclif/plugin-test-esm-2",
3
- "version": "0.5.3",
3
+ "version": "0.6.1",
4
4
  "description": "Test ESM plugin",
5
5
  "author": "Salesforce",
6
6
  "bin": {
@@ -17,25 +17,26 @@
17
17
  "/oclif.manifest.json"
18
18
  ],
19
19
  "dependencies": {
20
- "@oclif/core": "^3.0.0-beta.13",
20
+ "@oclif/core": "^3",
21
21
  "@oclif/plugin-help": "^5",
22
- "@oclif/plugin-plugins": "^3.8.3"
22
+ "@oclif/plugin-plugins": "^3.9.4"
23
23
  },
24
24
  "devDependencies": {
25
- "@oclif/test": "^2.5.5",
25
+ "@oclif/prettier-config": "^0.2.1",
26
+ "@oclif/test": "^3",
26
27
  "@types/chai": "^4",
27
- "@types/mocha": "^9.0.0",
28
- "@types/node": "^16.18.53",
28
+ "@types/mocha": "^10",
29
+ "@types/node": "^18",
29
30
  "chai": "^4",
30
- "eslint": "^7",
31
- "eslint-config-oclif": "^4",
32
- "eslint-config-oclif-typescript": "^1.0.3",
33
- "mocha": "^9",
31
+ "eslint": "^8",
32
+ "eslint-config-oclif": "^5",
33
+ "eslint-config-oclif-typescript": "^2.0.1",
34
+ "eslint-config-prettier": "^9.0.0",
35
+ "mocha": "^10",
34
36
  "oclif": "^3.16.0",
35
37
  "shx": "^0.3.4",
36
38
  "ts-node": "^10.9.1",
37
- "tslib": "^2.6.2",
38
- "typescript": "^4.9.5"
39
+ "typescript": "^5"
39
40
  },
40
41
  "oclif": {
41
42
  "bin": "esm2",
@@ -57,7 +58,7 @@
57
58
  },
58
59
  "scripts": {
59
60
  "build": "shx rm -rf dist && tsc -b",
60
- "lint": "eslint . --ext .ts --config .eslintrc",
61
+ "lint": "eslint . --ext .ts",
61
62
  "postpack": "shx rm -f oclif.manifest.json",
62
63
  "posttest": "yarn lint",
63
64
  "prepack": "yarn build && oclif manifest && oclif readme",