-
Notifications
You must be signed in to change notification settings - Fork 711
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Default to the package.json source field #1991
Comments
I'm pretty sure if you don't specify either typedoc/src/lib/utils/package-manifest.ts Lines 243 to 281 in 5060fe2
|
@akphi very interesting! For me, the main field always refers to the compiled |
I'm somewhat wary of adding even more options for specifying source files without a very clear reason for making the already fairly complicated monorepo code even more so... If your compiled source contains source maps, TypeDoc in packages mode will automatically resolve the compiled file back to the .ts file. Another proposal for the use of the This |
@Gerrit0 alrighty, thank you for your consideration! I do not use source maps in production, so typedoc will not automatically resolve in my case. |
Search Terms
Legacy typedoc entry point config (using "typedocMain" field) found for "". Please update to use "typedoc": { "entryPoint": "..." } instead. In future upgrade, "typedocMain" field will be ignored.
package.json source field
Problem
Typedoc understandably needs to know where my source typescript files are.
Suggested Solution
Use the defacto standard of the package.json.source field by default. However, allow overriding the source field by using "typedoc": { "entryPoint": "..." }
The source field in the package.json points to the entry ts file and is used as a defacto standard.
Examples of the source field in the wild are:
The text was updated successfully, but these errors were encountered: