Skip to content

Commit ac26689

Browse files
authored
[node-modules] Implement .bin symlinks creation (#1099)
* Adds .bin symlink creation for Posix systems * Adds windows cmd-shim support for .bin links * Pass native paths to cmdShim * Use copyFilePromise for file copying (no difference in perf, just less code) * Removes unused import * Remove outdated symlinks * Add some inline comments and do some code cleanups
1 parent a072a45 commit ac26689

File tree

7 files changed

+299
-81
lines changed

7 files changed

+299
-81
lines changed

.pnp.js

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.

.yarn/versions/c55404dd.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
releases:
2+
"@yarnpkg/cli": prerelease
3+
"@yarnpkg/plugin-node-modules": prerelease
4+
5+
declined:
6+
- "@yarnpkg/plugin-constraints"
7+
- "@yarnpkg/plugin-dlx"
8+
- "@yarnpkg/plugin-essentials"
9+
- "@yarnpkg/plugin-init"
10+
- "@yarnpkg/plugin-interactive-tools"
11+
- "@yarnpkg/plugin-npm-cli"
12+
- "@yarnpkg/plugin-pack"
13+
- "@yarnpkg/plugin-patch"
14+
- "@yarnpkg/plugin-pnp"
15+
- "@yarnpkg/plugin-stage"
16+
- "@yarnpkg/plugin-typescript"
17+
- "@yarnpkg/plugin-version"
18+
- "@yarnpkg/plugin-workspace-tools"
19+
- "@yarnpkg/core"
20+
- "@yarnpkg/doctor"

packages/plugin-node-modules/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"@yarnpkg/plugin-pnp": "workspace:^2.0.0-rc.18",
99
"@yarnpkg/pnp": "workspace:^2.0.0-rc.18",
1010
"@yarnpkg/pnpify": "workspace:^2.0.0-rc.19",
11+
"@zkochan/cmd-shim": "^4.3.0",
1112
"clipanion": "^2.1.5",
1213
"micromatch": "^4.0.2"
1314
},

0 commit comments

Comments
 (0)