You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In monorepo mode only, tsdoc fails to find the entry point
Error: The file /absolute/path/to/src/index.d.cts does not contain a sourceMappingURL
Error: Could not determine TS entry point for package /absolute/path/to/package.json
Steps to reproduce the bug
Create a monorepo with a package with two files—index.cjs and index.d.cts (instead of index.d.ts)
Have the typedocMain point to the index.d.cts file
Use the monorepo mode NODE_OPTIONS=--max_old_space_size="16384" npx typedoc --out "$monorepo_path/docs" --excludeExternals --entryPointStrategy packages 'packages/*'
Environment
Typedoc version: 0.22.17
TypeScript version: 4.7.4
Node.js version: v16.15.0
OS: both MacOS and Linux
The text was updated successfully, but these errors were encountered:
Gerrit0
added
needs reproduction
Needs a minimal reproducible case - https://gist.github.com/Rich-Harris/88c5fc2ac6dc941b22e7996af05d
and removed
needs reproduction
Needs a minimal reproducible case - https://gist.github.com/Rich-Harris/88c5fc2ac6dc941b22e7996af05d
labels
Jun 20, 2022
Uh oh!
There was an error while loading. Please reload this page.
Search terms
Error: The file does not contain a sourceMappingURL
Error: Could not determine TS entry point for package package.json
Expected Behavior
I expect tsdoc to compile like it normally does after migrating to https://www.typescriptlang.org/docs/handbook/esm-node.html#new-file-extensions
Actual Behavior
In monorepo mode only, tsdoc fails to find the entry point
Steps to reproduce the bug
Create a monorepo with a package with two files—index.cjs and index.d.cts (instead of index.d.ts)
Have the typedocMain point to the index.d.cts file
Use the monorepo mode
NODE_OPTIONS=--max_old_space_size="16384" npx typedoc --out "$monorepo_path/docs" --excludeExternals --entryPointStrategy packages 'packages/*'
Environment
The text was updated successfully, but these errors were encountered: