Skip to content

Commit c390c97

Browse files
committed
use .ts extension in codegenned import statements
1 parent 2d8b64a commit c390c97

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

scripts/codegen.cjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ telescope({
1010
protoDirs: ["protos/cosmos-sdk", "protos/wasmd", "protos/ibc-go"],
1111
outPath: outPath,
1212
options: {
13-
restoreImportExtension: ".js",
13+
restoreImportExtension: ".ts",
1414
logLevel: 0,
1515
useSDKTypes: false,
1616
tsDisable: {
@@ -103,7 +103,7 @@ telescope({
103103
104104
// Exports we want to provide at the root of the "cosmjs-types" package
105105
106-
export type { DeepPartial, Exact } from "./helpers.js";
106+
export type { DeepPartial, Exact } from "./helpers.ts";
107107
`;
108108
writeFileSync(`${outPath}/index.ts`, index_ts);
109109

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.js";
5+
export type { DeepPartial, Exact } from "./helpers.ts";

0 commit comments

Comments
 (0)