NOTE: This is a modified version of @oclif/config v1
which supports ES Module loading. To publish an ESM Oclif v2 CLI
at the moment you need to copy the lib directory to node_module/@oclif/config/lib
in your CLI directory.
@oclif/dev-cli
is not updated yet for Oclif v2 and uses@oclif/config
v1 so the only way to do this is copying the
lib directory of this repo to replace the v1 version. Then you can run oclif-dev manifest
in the prepublishOnly
NPM
script against your ESM Oclif V2 project. You also need to remove any usage of the README command from @oclif/dev-cli
as this is not supported with this hack.
To see the history of the process I went through to add ES Module support to Oclif v2 see this Github issue: oclif/core#130
base config object and standard interfaces for oclif components