-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Put type declarations next to JS file (fixes #84)
It seems that setting `"types": "index.d.ts"` in `package.json` doesn't cut it in all cases, and some build toolchains really want the `.d.ts` files to be next to the `.js` file it's associated with. So even if since 3.0.0 the `.d.ts` file is the same for `esm/index.js` and `cjs/index.js`, we still need to copy an identical declaration file next to the JS files.
- Loading branch information
1 parent
d2517c2
commit 628d058
Showing
3 changed files
with
15 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
/node_modules | ||
/esm/index.js | ||
/esm/index.d.ts | ||
/cjs/index.js | ||
/index.d.ts | ||
/cjs/index.d.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters