feat: upgrade cli to newest oclif version #484
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
✨ Upgrade Accent CLI to
@oclif/corev4Summary
This PR modernizes the Accent CLI by upgrading from the deprecated
@oclif/command/@oclif/configstack to the latest@oclif/corev4.The upgrade improves compatibility with Node.js 18+, simplifies dependencies, and aligns the codebase with current oclif best practices.
🔧 Changes
Core upgrade
@oclif/command,@oclif/config,cli-ux,form-data,mkdirp, andnode-fetch.@oclif/core@^4.5.2@oclif/plugin-help@^6.2.x@oclif/plugin-not-found@^3.2.xbin/runto use@oclif/core.run/flush/handle.Flags & args
static args = []→ newArgsobject map.-cfor--config.Base command
base.tsto extend@oclif/core.Command.cli-uxcalls withuxfrom@oclif/core.this.errorinstead of deprecatedCLIError.File + network handling
form-dataandfs.ReadStreamusage.fetch,FormData,File,Blob.mkdirpwithfs.mkdir({recursive:true}).response.arrayBuffer().Build scripts
rm; replaced with cross-platform Node commandrimraf.@oclif/dev-cli; replaced with modernoclifcommands (readme,manifest).Repo cleanup
.cmdto.gitignore.bin/run.cmd(npm will auto-generate on install).Docs
oclif readme.-c, --config.✅ Testing
npm build && npm link # generate command "accent" according to package.jsonaccent sync --add-translations -c "accent.json"accent jipt key_lang --config "accent.json"accent jipt key_lang --config="D:\<path-to-file>\accent.json"accent help.