cli icon indicating copy to clipboard operation
cli copied to clipboard

Migrate to @oclif/core V3

Open Amzani opened this issue 2 years ago • 0 comments

Why do we need this improvement?

We need @oclif/core V3 instead of V1:

  • To enable the new Architecture https://github.com/asyncapi/cli/pull/1200 and more specifically be able to use, this kind of configuration
{
  "oclif": {
    "commands": {
      "strategy": "pattern",
      "target": "./dist/commands",
      "globPatterns": [
         "**/*.+(js|cjs|mjs|ts|tsx|mts|cts)",
        "!**/*.+(d.*|test.*|spec.*|helpers.*)?(x)"
      ]
    }
  }
}
  • At some point V1 will be deprecated by @oclif

How will this change help?

This will enable us to have something like

Example for generate

.
└── generate
    ├── fromTemplate
    │   ├── fromTemplate.test.ts
    │   └── fromTemplate.ts
    ├── index.ts
    └── models
        ├── models.test.ts
        └── models.ts

Thanks to this, we will be able to have an easy CODEOWNER file

Screenshots

No response

How could it be implemented/designed?

  • Migrate to V2 : https://github.com/oclif/core/blob/main/guides/V2_MIGRATION.md
  • Migrate to V3: https://github.com/oclif/core/blob/main/guides/V3_MIGRATION.md

🚧 Breaking changes

No

👀 Have you checked for similar open issues?

  • [X] I checked and didn't find a similar issue

🏢 Have you read the Contributing Guidelines?

Are you willing to work on this issue?

Yes I am willing to submit a PR!

Amzani avatar Mar 12 '24 11:03 Amzani