-
Notifications
You must be signed in to change notification settings - Fork 216
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Require one .d.ts, one .ts in tsconfig (#920)
* Require one .d.ts, one .ts in tsconfig Previously this was checked implicitly by the unused-files check. Now it's handled only by .npmignore, which works for publishing but not for CI -- in particular, it's easy to forget to put test files into tsconfig, thereby skipping testing. This fix is NOT foolproof, but it will prevent common mistakes while allowing uncommon layouts. `.npmignore` will continue to make sure that stray files don't get published. * Add changeset * Address PR feedback, add tests Also fix which errors are issued: don't report both excludes/includes AND missing-files errors. Do report both missing-index and missing-test errors, if both apply.
- Loading branch information
Showing
4 changed files
with
108 additions
and
34 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@definitelytyped/dtslint": patch | ||
--- | ||
|
||
Require 1 .d.ts, 1 .ts in tsconfigs |
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
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