Support cross-drive linking
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript
- Domain
- cli
Research direction
Start at the cmdShim entry point and reproduce the cross-drive example using C:\a.js and D:\a. Trace how the generated files construct the target path, then verify that cross-drive links use an absolute path such as C:/a.js and no longer contain the unresolved $basedir or %~dp0 prefix.
Written by the indexing model from the issue text.
Description
Currently we cannot link a file to a different drive. E.g. cmdShim('C:\\a.js', 'D:\\a', () => {}) would generate files containg "$basedir/C:/a.js" or "%~dp0\C:\a.js", which are broken due to the unresolvable paths.
In this case, we can use an absolute path instead, i.e. using "C:/a.js" rather than "$basedir/C:/a.js".
If this is a valid use case, I'd like to work on it.
- Dominant language
- JavaScript
- Stars
- 81
- Forks
- 51
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from npm/cmd-shim
-
Needs Triage
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
[BUG] PowerShell shim generated as UTF-8 without BOM breaks on Windows PowerShell 5 with non-ASCII pathsPossibly taken @webywz claimed this 32 days ago. OpenNeeds Triage
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Needs Triage
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
Priority 1
Difficulty 3/5 1-2 days Newbie friendliness 48/100
-
Needs Triage
Difficulty 3/5 1-2 days Newbie friendliness 45/100
Similar issues
-
question
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
bug has-work-around priority: high
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
liberation-data/drivine#908 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
JoeyHammoth/SolidGround#99 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Flow Needs: Triage :mag:
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
react/react-native#60447 ·
Maintainers usually reply within 1 day