Skip to content

Commit

Permalink
sdk/js-query: Generate declaration files
Browse files Browse the repository at this point in the history
  • Loading branch information
kev1n-peters authored and evan-gray committed Oct 13, 2023
1 parent 0cac01a commit 5c4ac61
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
3 changes: 2 additions & 1 deletion sdk/js-query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
File renamed without changes.
1 change: 0 additions & 1 deletion sdk/js-query/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"target": "es6",
"module": "esnext",
"moduleResolution": "node",
"declaration": true,
"outDir": "./lib/esm",
"strict": true,
"esModuleInterop": true,
Expand Down
8 changes: 8 additions & 0 deletions sdk/js-query/tsconfig.types.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"declarationDir": "./lib/types",
"declaration": true,
"emitDeclarationOnly": true
}
}

0 comments on commit 5c4ac61

Please sign in to comment.