// allow modules import syntax
require = require('esm')(module, { // eslint-disable-line
  cache: false
})

import run, * as cli from './src/index'

// Run from CLI or as Node module
if (module.parent) {
  module.exports = cli
  /* istanbul ignore next */
} else run(process.argv)

// allow modules import syntax
import run, * as cli from './src/index'

// Run from CLI or as Node module
if (module.parent) {
  module.exports = cli
  /* istanbul ignore next */
} else run(process.argv)

--- 
+++ 
@@ -1,4 +1,8 @@
 // allow modules import syntax
+require = require('esm')(module, { // eslint-disable-line
+  cache: false
+})
+
 import run, * as cli from './src/index'
 
 // Run from CLI or as Node module
Revert "updated: remove esm from the cli bundle"

This reverts commit e75f8fa6ac98969c8d65ede6c7d9a614d7f54b5d.
