sdk/js-query: Generate declaration files

This commit is contained in:
Kevin Peters 2023-10-13 15:42:26 -05:00 committed by Evan Gray
parent 0cac01a739
commit 5c4ac61f79
4 changed files with 10 additions and 2 deletions

View File

@ -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",

View File

@ -3,7 +3,6 @@
"target": "es6",
"module": "esnext",
"moduleResolution": "node",
"declaration": true,
"outDir": "./lib/esm",
"strict": true,
"esModuleInterop": true,

View File

@ -0,0 +1,8 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"declarationDir": "./lib/types",
"declaration": true,
"emitDeclarationOnly": true
}
}