-
Notifications
You must be signed in to change notification settings - Fork 524
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: check that ts_library @npm strict deps work
Add missing coverage to verify that ts_library strict deps of @npm dependencies works # NB: We don't require the `@npm//semver` package for the typescript compile # action as the .d.ts files live in @types/semver. If the resulting # .js file is run downstream in a nodejs_binary rule, however, the # `@npm//semver` dep will be required at that point. # TODO: Is it desirable to automatically add @npm//semver as a transitive # dep if @npm//@types/semver is a dep so that downtream nodejs_binary # rules get this automatically?
- Loading branch information
1 parent
64a31ab
commit c78eafd
Showing
6 changed files
with
31 additions
and
1 deletion.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// The line below is a strict deps violation: | ||
// The line below is a strict deps violation of a ts_library dep | ||
import {Symbol} from './grandparent'; | ||
|
||
console.log(Symbol); |
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 @@ | ||
// The line below is a strict deps violation of an @npm dep | ||
import * as semver from 'semver'; | ||
semver.valid('1.2.3'); | ||
|
||
console.log(Symbol); |
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 +1,3 @@ | ||
import * as semver from 'semver'; | ||
semver.valid('1.2.3'); | ||
export class Symbol {} |
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