We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f667357 commit 124510eCopy full SHA for 124510e
src/compiler/moduleNameResolver.ts
@@ -256,6 +256,8 @@ namespace ts {
256
for (const typeDirectivePath of host.getDirectories(root)) {
257
const normalized = normalizePath(typeDirectivePath);
258
const packageJsonPath = pathToPackageJson(combinePaths(root, normalized));
259
+ // `types-publisher` sometimes creates packages with `"typings": null` for packages that don't provide their own types.
260
+ // See `createNotNeededPackageJSON` in the types-publisher` repo.
261
// tslint:disable-next-line:no-null-keyword
262
const isNotNeededPackage = host.fileExists(packageJsonPath) && readJson(packageJsonPath, host).typings === null;
263
if (!isNotNeededPackage) {
0 commit comments