Skip to content

Commit a243817

Browse files
committed
Improve detection of package names
Co-Authored-By: @bodil
1 parent e36ea1c commit a243817

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@
1212
### Bug Fixes
1313

1414
- Fixed schema URL for TSDoc preventing the use of `typedoc/tsdoc.json` in TSDoc extends, #2015.
15+
- Improved detection of package names in repositories using pnpm, #2017.
1516
- Fixed missing JSDoc style `@typedef` comments for properties, #2020.
1617

1718
### Thanks!
1819

20+
- @bodil
1921
- @nazarhussain
2022

2123
## v0.23.9 (2022-07-24)

src/lib/models/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -847,7 +847,7 @@ export class ReferenceType extends Type {
847847
.fileName.replace(/\\/g, "/");
848848
if (!symbolPath) return ref;
849849

850-
let startIndex = symbolPath.indexOf("node_modules/");
850+
let startIndex = symbolPath.lastIndexOf("node_modules/");
851851
if (startIndex === -1) return ref;
852852
startIndex += "node_modules/".length;
853853
let stopIndex = symbolPath.indexOf("/", startIndex);

0 commit comments

Comments
 (0)