Skip to content
This repository has been archived by the owner on Nov 20, 2019. It is now read-only.

Commit

Permalink
fix: bug in esm loading the cli
Browse files Browse the repository at this point in the history
Signed-off-by: Charlike Mike Reagent <[email protected]>
  • Loading branch information
Charlike Mike Reagent committed Nov 13, 2018
1 parent 6a05520 commit c0b896b
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

'use strict';

const path = require('path');
const proc = require('process');
const parser = require('mri');
const esmLoader = require('esm');
Expand All @@ -18,15 +17,7 @@ function interop(x) {
return x;
}

const mod = esmRequire(
path.join(
__dirname,
'node_modules',
'@tunnckocore/release-cli',
'src',
'cli.js',
),
);
const mod = esmRequire('@tunnckocore/release-cli/src/cli');
const cli = interop(mod);

const argv = parser(proc.argv.slice(2), {
Expand Down

0 comments on commit c0b896b

Please sign in to comment.