@oclif/plugin-test-esm-1 0.5.4 → 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-1
18
18
  $ esm1 COMMAND
19
19
  running command...
20
20
  $ esm1 (--version)
21
- @oclif/plugin-test-esm-1/0.5.4 linux-x64 node-v18.18.0
21
+ @oclif/plugin-test-esm-1/0.6.1 linux-x64 node-v20.9.0
22
22
  $ esm1 --help [COMMAND]
23
23
  USAGE
24
24
  $ esm1 COMMAND
@@ -44,18 +44,15 @@ USAGE
44
44
  ```
45
45
  USAGE
46
46
  $ esm1 esm1 [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/esm1.ts](https://github.com/oclif/plugin-test-esm-1/blob/v0.5.4/dist/commands/esm1.ts)_
55
+ _See code: [dist/commands/esm1.ts](https://github.com/oclif/plugin-test-esm-1/blob/v0.6.1/dist/commands/esm1.ts)_
59
56
 
60
57
  ## `esm1 help [COMMANDS]`
61
58
 
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 ESM1 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(ESM1);
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 = ESM1;
11
- ESM1.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
- ESM1.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
- ESM1.enableJsonFlag = true;
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.5.4",
2
+ "version": "0.6.1",
3
3
  "commands": {
4
4
  "esm1": {
5
5
  "id": "esm1",
@@ -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-1",
3
- "version": "0.5.4",
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
22
  "@oclif/plugin-plugins": "^3.8.3"
23
23
  },
24
24
  "devDependencies": {
25
- "@oclif/test": "^2.5.6",
25
+ "@oclif/prettier-config": "^0.2.1",
26
+ "@oclif/test": "^3",
26
27
  "@types/chai": "^4",
27
28
  "@types/mocha": "^9.0.0",
28
29
  "@types/node": "^16.18.53",
29
30
  "chai": "^4",
30
- "eslint": "^7",
31
- "eslint-config-oclif": "^4",
32
- "eslint-config-oclif-typescript": "^1.0.3",
33
- "mocha": "^9",
34
- "oclif": "^3.17.1",
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",
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": "esm1",
@@ -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",
@@ -65,7 +66,7 @@
65
66
  "version": "oclif readme && git add README.md"
66
67
  },
67
68
  "engines": {
68
- "node": ">=12.0.0"
69
+ "node": ">=18.0.0"
69
70
  },
70
71
  "bugs": "https://github.com/oclif/plugin-test-esm-1/issues",
71
72
  "keywords": [