Skip to content

Commit 3d42c0e

Browse files
author
Fabrice Bascoulergue
committed
Fix build and add base doc config
1 parent 2e05c0b commit 3d42c0e

File tree

6 files changed

+12
-3
lines changed

6 files changed

+12
-3
lines changed

docs/README.md

Whitespace-only changes.

docs/lib/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# @lum-network/sdk-javascript

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
"@types/uuid": "^8.3.0",
4646
"crypto-browserify": "^3.12.0",
4747
"crypto-js": "^4.0.0",
48+
"long": "^4.0.0",
4849
"uuid": "^8.3.2"
4950
},
5051
"optionalDependencies": {},

src/utils/encoding.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as hexEncoding from 'crypto-js/enc-hex';
22
import { Bech32, toHex, fromHex, toBase64, fromBase64 } from '@cosmjs/encoding';
33
import { sha256 } from '@cosmjs/crypto';
4-
import SHA3 = require('crypto-js/sha3');
4+
import SHA3 from 'crypto-js/sha3';
55

66
import { isUint8Array } from './commons';
77

src/utils/transactions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Long = require('long');
1+
import Long from 'long';
22
import { Int53 } from '@cosmjs/math';
33
import { Secp256k1, Secp256k1Signature } from '@cosmjs/crypto';
44
import { makeAuthInfoBytes, makeSignBytes } from '@cosmjs/proto-signing';

tsconfig.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,14 @@
1818
"pretty": true,
1919
"sourceMap": true,
2020
"strict": true,
21-
"target": "es2018"
21+
"target": "es2018",
22+
"experimentalDecorators": true
23+
},
24+
"typedocOptions": {
25+
"entryPoints": ["src/index.ts"],
26+
// "mode": "file",
27+
"out": "docs",
28+
"exclude": []
2229
},
2330
"include": ["src/**/*.ts", "test/**/*.ts"],
2431
"exclude": ["node_modules"]

0 commit comments

Comments
 (0)