Skip to content
This repository was archived by the owner on Jun 11, 2020. It is now read-only.

Commit ed18949

Browse files
dbartholomaesandersn
authored andcommitted
make error message for @types dependencies clearer (#653)
* make error message for @types dependencies clearer * Add final-form to whitelist (#654) * Try CRLF I guess
1 parent b7b3dc6 commit ed18949

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib/definition-parser.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ to refer to @types/P if it relies on old versions of P's types.
200200
In this case, please make a pull request to types-publisher adding @types/P to \`dependenciesWhitelist.txt\`.`
201201
: `Dependency ${dependencyName} not in whitelist.
202202
If you are depending on another \`@types\` package, do *not* add it to a \`package.json\`. Path mapping should make the import work.
203+
For namespaced dependencies you then have to add a \`paths\` mapping from \`@namespace/library\` to \`namespace__library\` in \`tsconfig.json\`.
203204
If this is an external library that provides typings, please make a pull request to types-publisher adding it to \`dependenciesWhitelist.txt\`.`;
204205
throw new Error(`In ${path}: ${msg}`);
205206
}

0 commit comments

Comments
 (0)