Skip to content

Commit 6a20b93

Browse files
authored
chore: fix CJS imports (#2121)
1 parent 33259a2 commit 6a20b93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/cli/src/utils/telemetry.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export async function sendTelemetry({
6060
...args
6161
} = argv;
6262
const event_time = new Date().toISOString();
63-
const { RedoclyOAuthClient } = await import('../auth/oauth-client');
63+
const { RedoclyOAuthClient } = await import('../auth/oauth-client.js');
6464
const oauthClient = new RedoclyOAuthClient('redocly-cli', version);
6565
const reuniteUrl = getReuniteUrl(argv.residency as string | undefined);
6666
const logged_in = await oauthClient.isAuthorized(reuniteUrl);
@@ -88,7 +88,7 @@ export async function sendTelemetry({
8888
: undefined,
8989
};
9090

91-
const { otelTelemetry } = await import('../otel');
91+
const { otelTelemetry } = await import('../otel.js');
9292
otelTelemetry.init();
9393
otelTelemetry.send(data.command, data);
9494
} catch (err) {

0 commit comments

Comments
 (0)