diff --git a/sdk/js-query/package.json b/sdk/js-query/package.json index 0314bd979c..423cf85572 100644 --- a/sdk/js-query/package.json +++ b/sdk/js-query/package.json @@ -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", diff --git a/sdk/js-query/tsconfig-cjs.json b/sdk/js-query/tsconfig.cjs.json similarity index 100% rename from sdk/js-query/tsconfig-cjs.json rename to sdk/js-query/tsconfig.cjs.json diff --git a/sdk/js-query/tsconfig.json b/sdk/js-query/tsconfig.json index 117a079a24..3a62f0562e 100644 --- a/sdk/js-query/tsconfig.json +++ b/sdk/js-query/tsconfig.json @@ -3,7 +3,6 @@ "target": "es6", "module": "esnext", "moduleResolution": "node", - "declaration": true, "outDir": "./lib/esm", "strict": true, "esModuleInterop": true, diff --git a/sdk/js-query/tsconfig.types.json b/sdk/js-query/tsconfig.types.json new file mode 100644 index 0000000000..fb4be7a0a4 --- /dev/null +++ b/sdk/js-query/tsconfig.types.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "declarationDir": "./lib/types", + "declaration": true, + "emitDeclarationOnly": true + } +}