Skip to content

Commit d3048af

Browse files
authored
fix(lerna-changelog): dynamic ESM import (#181)
1 parent e1efc2e commit d3048af

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/lerna/changelog/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export const execute = async (args: ILernaChangelogArgs = {}): Promise<string |
4545
describeArgs.unshift('-C', args.path);
4646
}
4747

48-
const fromPath = (await import('lerna-changelog/lib/configuration')).fromPath;
48+
const fromPath = (await import('lerna-changelog/lib/configuration.js')).fromPath;
4949
const rootPath = await execa('git', revParseArgs);
5050
const config = fromPath(rootPath.stdout);
5151
const changelog = new Changelog(config);

typings/lerna-changelog/index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
*/
77

88
declare module 'lerna-changelog';
9-
declare module 'lerna-changelog/lib/configuration';
9+
declare module 'lerna-changelog/lib/configuration.js';

0 commit comments

Comments
 (0)