refactor: convert CLI entry points to ESM; migrate create-docusaurus to ESM (#6661)

* refactor: convert CLI entry points to ESM

* fix

* fix

* fix

* fix!

* create-docusaurus ESM

* fix lock

* final touchups

* fix lodash

* fix

* use lodash

* fix hasYarn
This commit is contained in:
Joshua Chen 2022-02-16 23:00:35 +08:00 committed by GitHub
parent eacc695542
commit 67918e35e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 85 additions and 54 deletions

View file

@ -138,4 +138,9 @@ const logger = {
success,
};
// TODO remove when migrating to ESM
// logger can only be default-imported in ESM with this
module.exports = logger;
module.exports.default = logger;
export default logger;