Skip to content

Commit

Permalink
(fix/types): add main and types fields (jaredpalmer#822)
Browse files Browse the repository at this point in the history
- generate type difinition files
- tsdx is requireable now
  - so user can put `TsdxOptions` into tsdx.config.js JSDoc
  • Loading branch information
cncolder authored and agilgur5 committed Oct 5, 2020
1 parent d292dd9 commit bbda469
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
"bugs": {
"url": "https://github.com/formium/tsdx/issues"
},
"main": "./dist/types.js",
"types": "./dist/types.d.ts",
"bin": {
"tsdx": "./dist/index.js"
},
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"importHelpers": true,
"esModuleInterop": true,
"outDir": "dist",
"declaration": false,
"declaration": true,
"module": "commonjs",
"rootDir": "src",
"strict": true,
Expand Down

0 comments on commit bbda469

Please sign in to comment.