Skip to content

Commit 0e39caf

Browse files
committed
use .js extension in codegenned import statements
1 parent 7aef432 commit 0e39caf

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

scripts/codegen.cjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ telescope({
1010
protoDirs: ["protos/cosmos-sdk", "protos/wasmd", "protos/ibc-go"],
1111
outPath: outPath,
1212
options: {
13+
restoreImportExtension: ".js",
1314
logLevel: 0,
1415
useSDKTypes: false,
1516
tsDisable: {
@@ -102,7 +103,7 @@ telescope({
102103
103104
// Exports we want to provide at the root of the "cosmjs-types" package
104105
105-
export type { DeepPartial, Exact } from "./helpers";
106+
export type { DeepPartial, Exact } from "./helpers.js";
106107
`;
107108
writeFileSync(`${outPath}/index.ts`, index_ts);
108109

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
// Exports we want to provide at the root of the "cosmjs-types" package
44

5-
export type { DeepPartial, Exact } from "./helpers";
5+
export type { DeepPartial, Exact } from "./helpers.js";

0 commit comments

Comments
 (0)