fix: add type-check script to web3.js package (#23109)
This commit is contained in:
parent
1b7b261460
commit
59290c08aa
|
@ -9,7 +9,6 @@ ls -l lib
|
||||||
test -r lib/index.iife.js
|
test -r lib/index.iife.js
|
||||||
test -r lib/index.cjs.js
|
test -r lib/index.cjs.js
|
||||||
test -r lib/index.esm.js
|
test -r lib/index.esm.js
|
||||||
npm run doc
|
npm run ok
|
||||||
npm run lint
|
|
||||||
npm run codecov
|
npm run codecov
|
||||||
npm run test:live-with-test-validator
|
npm run test:live-with-test-validator
|
||||||
|
|
|
@ -48,7 +48,8 @@
|
||||||
"type:gen": "./scripts/typegen.sh",
|
"type:gen": "./scripts/typegen.sh",
|
||||||
"lint": "set -ex; npm run pretty; eslint . --ext .js,.ts",
|
"lint": "set -ex; npm run pretty; eslint . --ext .js,.ts",
|
||||||
"lint:fix": "npm run pretty:fix && eslint . --fix --ext .js,.ts",
|
"lint:fix": "npm run pretty:fix && eslint . --fix --ext .js,.ts",
|
||||||
"ok": "run-s lint test doc",
|
"type:check": "tsc -p tsconfig.json --noEmit",
|
||||||
|
"ok": "run-s lint test doc type:check",
|
||||||
"pretty": "prettier --check '{,{src,test}/**/}*.{j,t}s'",
|
"pretty": "prettier --check '{,{src,test}/**/}*.{j,t}s'",
|
||||||
"pretty:fix": "prettier --write '{,{src,test}/**/}*.{j,t}s'",
|
"pretty:fix": "prettier --write '{,{src,test}/**/}*.{j,t}s'",
|
||||||
"re": "semantic-release --repository-url git@github.com:solana-labs/solana-web3.js.git",
|
"re": "semantic-release --repository-url git@github.com:solana-labs/solana-web3.js.git",
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import bs58 from 'bs58';
|
import bs58 from 'bs58';
|
||||||
import {Buffer} from 'buffer';
|
import {Buffer} from 'buffer';
|
||||||
import fetch from 'cross-fetch';
|
import fetch from 'cross-fetch';
|
||||||
import type {Response} from 'cross-fetch';
|
|
||||||
import {
|
import {
|
||||||
type as pick,
|
type as pick,
|
||||||
number,
|
number,
|
||||||
|
|
|
@ -14,7 +14,9 @@
|
||||||
"isolatedModules": true,
|
"isolatedModules": true,
|
||||||
"baseUrl": "src",
|
"baseUrl": "src",
|
||||||
"noFallthroughCasesInSwitch": true,
|
"noFallthroughCasesInSwitch": true,
|
||||||
"noImplicitReturns": true
|
"noImplicitReturns": true,
|
||||||
|
"noUnusedParameters": true,
|
||||||
|
"noUnusedLocals": true
|
||||||
},
|
},
|
||||||
"include": ["src"]
|
"include": ["src"]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue