Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #1131 from wederer/patch-3
Browse files Browse the repository at this point in the history
Add note: "files" property overwrites "types" prop
  • Loading branch information
Orta authored Jan 15, 2020
2 parents d6556a2 + 23c4092 commit 8411178
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pages/declaration files/Publishing.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ For example:

Note that the `"typings"` field is synonymous with `"types"`, and could be used as well.

Also note that if your `package.json` includes the `"files"` property the `"types"` property will be ignored. In that case you need to pass your main declaration file to the `"files"` property as well.

Also note that if your main declaration file is named `index.d.ts` and lives at the root of the package (next to `index.js`) you do not need to mark the `"types"` property, though it is advisable to do so.

## Dependencies
Expand Down

0 comments on commit 8411178

Please sign in to comment.