sdk/js-query: Generate declaration files
This commit is contained in:
parent
0cac01a739
commit
5c4ac61f79
|
@ -5,12 +5,13 @@
|
|||
"homepage": "https://wormhole.com",
|
||||
"main": "./lib/cjs/index.js",
|
||||
"module": "./lib/esm/index.js",
|
||||
"types": "./lib/types/index.d.ts",
|
||||
"files": [
|
||||
"lib/"
|
||||
],
|
||||
"scripts": {
|
||||
"test": "jest --verbose",
|
||||
"build": "tsc -p tsconfig.json && tsc -p tsconfig-cjs.json"
|
||||
"build": "tsc -p tsconfig.json && tsc -p tsconfig.cjs.json && tsc -p tsconfig.types.json"
|
||||
},
|
||||
"keywords": [
|
||||
"wormhole",
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
"target": "es6",
|
||||
"module": "esnext",
|
||||
"moduleResolution": "node",
|
||||
"declaration": true,
|
||||
"outDir": "./lib/esm",
|
||||
"strict": true,
|
||||
"esModuleInterop": true,
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"declarationDir": "./lib/types",
|
||||
"declaration": true,
|
||||
"emitDeclarationOnly": true
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue