Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@
"!cosmos-sdk-*/**/*.md"
],
"scripts": {
"format": "prettier --write --log-level warn \"./src/**/*.ts\" \"./scripts/**/*.js\"",
"format": "prettier --write --log-level warn \"./src/**/*.ts\" \"./scripts/**/*.cjs\"",
"precodegen": "./scripts/exports_protos.sh",
"codegen": "rm -rf ./src && ./scripts/codegen.js && npm run format",
"codegen": "rm -rf ./src && ./scripts/codegen.cjs && npm run format",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I cherry-picked this change to main already such that we can keep it out of here

"prepare-publishing": "./scripts/prepare-publishing.sh",
"build": "rm -rf ./build && tsc && npm run prepare-publishing"
},
Expand Down
3 changes: 2 additions & 1 deletion scripts/codegen.js → scripts/codegen.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ telescope({
protoDirs: ["protos/cosmos-sdk", "protos/wasmd", "protos/ibc-go"],
outPath: outPath,
options: {
restoreImportExtension: ".ts",
logLevel: 0,
useSDKTypes: false,
tsDisable: {
Expand Down Expand Up @@ -102,7 +103,7 @@ telescope({

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

export type { DeepPartial, Exact } from "./helpers";
export type { DeepPartial, Exact } from "./helpers.ts";
`;
writeFileSync(`${outPath}/index.ts`, index_ts);

Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

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

export type { DeepPartial, Exact } from "./helpers";
export type { DeepPartial, Exact } from "./helpers.ts";
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
// So minifiers have to strip them off later on.
"removeComments": false,
"resolveJsonModule": true,
"rewriteRelativeImportExtensions": true,
"rootDir": "src",
"sourceMap": true,
"strict": true
Expand Down
Loading