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

Commit c0b896b

Browse files
author
Charlike Mike Reagent
committed
fix: bug in esm loading the cli
Signed-off-by: Charlike Mike Reagent <mameto2011@gmail.com>
1 parent 6a05520 commit c0b896b

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

cli.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
'use strict';
44

5-
const path = require('path');
65
const proc = require('process');
76
const parser = require('mri');
87
const esmLoader = require('esm');
@@ -18,15 +17,7 @@ function interop(x) {
1817
return x;
1918
}
2019

21-
const mod = esmRequire(
22-
path.join(
23-
__dirname,
24-
'node_modules',
25-
'@tunnckocore/release-cli',
26-
'src',
27-
'cli.js',
28-
),
29-
);
20+
const mod = esmRequire('@tunnckocore/release-cli/src/cli');
3021
const cli = interop(mod);
3122

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

0 commit comments

Comments
 (0)