@oclif/plugin-test-esm-2 0.7.60 → 0.7.61

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.7.60 linux-x64 node-v22.13.0
21
+ @oclif/plugin-test-esm-2/0.7.61 linux-x64 node-v22.13.1
22
22
  $ esm2 --help [COMMAND]
23
23
  USAGE
24
24
  $ esm2 COMMAND
@@ -56,7 +56,7 @@ GLOBAL FLAGS
56
56
  --json Format output as json.
57
57
  ```
58
58
 
59
- _See code: [src/commands/esm2.ts](https://github.com/oclif/plugin-test-esm-2/blob/v0.7.60/src/commands/esm2.ts)_
59
+ _See code: [src/commands/esm2.ts](https://github.com/oclif/plugin-test-esm-2/blob/v0.7.61/src/commands/esm2.ts)_
60
60
 
61
61
  ## `esm2 help [COMMAND]`
62
62
 
package/bin/dev.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ts-node
2
- // eslint-disable-next-line node/shebang
2
+
3
3
  async function main() {
4
4
  const oclif = await import('@oclif/core')
5
5
  await oclif.execute({development: true, dir: import.meta.url})
@@ -4,17 +4,17 @@ type Result = {
4
4
  flags: Interfaces.InferredFlags<typeof ESM2.flags>;
5
5
  };
6
6
  export default class ESM2 extends Command {
7
- static flags: {
8
- optionalString: Interfaces.OptionFlag<string | undefined, Interfaces.CustomOptions>;
9
- defaultString: Interfaces.OptionFlag<string, Interfaces.CustomOptions>;
10
- defaultFnString: Interfaces.OptionFlag<string, Interfaces.CustomOptions>;
11
- };
12
7
  static args: {
13
8
  optionalArg: Interfaces.Arg<string | undefined, Record<string, unknown>>;
14
9
  defaultArg: Interfaces.Arg<string, Record<string, unknown>>;
15
10
  defaultFnArg: Interfaces.Arg<string, Record<string, unknown>>;
16
11
  };
17
12
  static enableJsonFlag: boolean;
13
+ static flags: {
14
+ optionalString: Interfaces.OptionFlag<string | undefined, Interfaces.CustomOptions>;
15
+ defaultString: Interfaces.OptionFlag<string, Interfaces.CustomOptions>;
16
+ defaultFnString: Interfaces.OptionFlag<string, Interfaces.CustomOptions>;
17
+ };
18
18
  run(): Promise<Result>;
19
19
  }
20
20
  export {};
@@ -1,14 +1,5 @@
1
1
  import { Args, Command, Flags } from '@oclif/core';
2
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
3
  static args = {
13
4
  optionalArg: Args.string(),
14
5
  defaultArg: Args.string({
@@ -19,6 +10,15 @@ export default class ESM2 extends Command {
19
10
  }),
20
11
  };
21
12
  static enableJsonFlag = true;
13
+ static flags = {
14
+ optionalString: Flags.string(),
15
+ defaultString: Flags.string({
16
+ default: 'simple string default',
17
+ }),
18
+ defaultFnString: Flags.string({
19
+ default: async () => 'async fn default',
20
+ }),
21
+ };
22
22
  async run() {
23
23
  const { args, flags } = await this.parse(ESM2);
24
24
  this.log(`hello I am an ESM plugin from ${this.config.root}!`);
@@ -60,5 +60,5 @@
60
60
  ]
61
61
  }
62
62
  },
63
- "version": "0.7.60"
63
+ "version": "0.7.61"
64
64
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oclif/plugin-test-esm-2",
3
- "version": "0.7.60",
3
+ "version": "0.7.61",
4
4
  "description": "Test ESM plugin",
5
5
  "author": "Salesforce",
6
6
  "bin": {
@@ -11,7 +11,7 @@
11
11
  "main": "",
12
12
  "repository": "oclif/plugin-test-esm-2",
13
13
  "files": [
14
- "/bin",
14
+ "bin",
15
15
  "/dist",
16
16
  "/npm-shrinkwrap.json",
17
17
  "/oclif.manifest.json"
@@ -22,16 +22,16 @@
22
22
  "@oclif/plugin-plugins": "^5"
23
23
  },
24
24
  "devDependencies": {
25
+ "@eslint/compat": "^1.2.5",
25
26
  "@oclif/prettier-config": "^0.2.1",
26
27
  "@oclif/test": "^4",
27
28
  "@types/chai": "^4",
28
29
  "@types/mocha": "^10",
29
30
  "@types/node": "^18",
30
31
  "chai": "^4",
31
- "eslint": "^8",
32
- "eslint-config-oclif": "^5",
33
- "eslint-config-oclif-typescript": "^2.0.1",
34
- "eslint-config-prettier": "^9.1.0",
32
+ "eslint": "^9.19.0",
33
+ "eslint-config-oclif": "^6.0.0",
34
+ "eslint-config-prettier": "^10.0.1",
35
35
  "mocha": "^10",
36
36
  "oclif": "^4",
37
37
  "shx": "^0.3.4",
@@ -58,7 +58,7 @@
58
58
  },
59
59
  "scripts": {
60
60
  "build": "shx rm -rf dist && tsc -b",
61
- "lint": "eslint . --ext .ts",
61
+ "lint": "eslint",
62
62
  "postpack": "shx rm -f oclif.manifest.json",
63
63
  "posttest": "yarn lint",
64
64
  "prepack": "yarn build && oclif manifest && oclif readme",
@@ -66,7 +66,7 @@
66
66
  "version": "oclif readme && git add README.md"
67
67
  },
68
68
  "engines": {
69
- "node": ">=12.0.0"
69
+ "node": ">=18.0.0"
70
70
  },
71
71
  "bugs": "https://github.com/oclif/plugin-test-esm-2/issues",
72
72
  "keywords": [