-
Notifications
You must be signed in to change notification settings - Fork 604
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[node-core-library] Fix semantics of RealNodeModulePath (#5042)
* [node-core-library] Fix semantics of RealNodeModulePath * Add tests for relative paths * Use `path.join` * Optionalize, use path.join instead of parse/format * Fix parameter optionality --------- Co-authored-by: David Michon <[email protected]>
- Loading branch information
1 parent
5a17143
commit 2e2ac57
Showing
4 changed files
with
122 additions
and
40 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
common/changes/@rushstack/node-core-library/trim-trailing-slash_2024-12-13-02-11.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"changes": [ | ||
{ | ||
"packageName": "@rushstack/node-core-library", | ||
"comment": "Fix handling of trailing slashes and relative paths in RealNodeModulePath to match semantics of `fs.realpathSync.native`.", | ||
"type": "patch" | ||
} | ||
], | ||
"packageName": "@rushstack/node-core-library" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters