forked from bazel-contrib/rules_nodejs
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(typescript): exclude typescript lib declarations in
...node_module_library transitive_declarations as the including /node_modules/typescript/lib/lib.*.d.ts is controlled by compilerOptions libs. Including all of the can cause typings conflicts. Test coverage also added for this that verifies that typescript/lib/typescript.d.ts and typescript/lib/tsserverlibrary.d.ts are available since we must exclude other typescript/lib/ .d.ts files which are controlled by the compilerOptions.libs config. Also verify that libs not specified such as lib.webworkder.d.ts in compileOptions.libs config are not included in the compilation unit. See bazel-contrib#875 for more details.
- Loading branch information
1 parent
22e61f8
commit 3d55b41
Showing
6 changed files
with
30 additions
and
11 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
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// Test that we can declare an interface named Client | ||
// which would conflict with typescript/lib/lib.webworker.d.ts if that | ||
// lib was included but should work if that lib is not | ||
declare class Client { id: string; } |
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 |
---|---|---|
|
@@ -3,14 +3,14 @@ | |
|
||
|
||
"@bazel/jasmine@file:../../dist/npm_bazel_jasmine": | ||
version "0.30.1-2-g5cc5c06" | ||
version "0.32.0-4-gf2ff790" | ||
dependencies: | ||
jasmine "~3.3.1" | ||
jasmine-core "~3.3.0" | ||
v8-coverage "1.0.9" | ||
|
||
"@bazel/typescript@file:../../dist/npm_bazel_typescript": | ||
version "0.30.1-2-g5cc5c06" | ||
version "0.32.0-4-gf2ff790" | ||
dependencies: | ||
protobufjs "6.8.8" | ||
semver "5.6.0" | ||
|
@@ -829,10 +829,10 @@ [email protected]: | |
dependencies: | ||
tslib "^1.8.1" | ||
|
||
typescript@^3.3.1: | ||
version "3.3.3333" | ||
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.3.3333.tgz#171b2c5af66c59e9431199117a3bcadc66fdcfd6" | ||
integrity sha512-JjSKsAfuHBE/fB2oZ8NxtRTk5iGcg6hkYXMnZ3Wc+b2RSqejEqTaem11mHASMnFilHrax3sLK0GDzcJrekZYLw== | ||
typescript@~3.4.2: | ||
version "3.4.5" | ||
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.4.5.tgz#2d2618d10bb566572b8d7aad5180d84257d70a99" | ||
integrity sha512-YycBxUb49UUhdNMU5aJ7z5Ej2XGmaIBL0x34vZ82fn3hGvD+bgrMrVDpatgz2f7YxUMJxMkbWxJZeAvDxVe7Vw== | ||
|
||
uglify-js@^3.1.4: | ||
version "3.5.3" | ||
|
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