Skip to content

Commit 62479d4

Browse files
committed
use modulesFolder rather than cwd for .bin files - fixes #87
1 parent ae1912e commit 62479d4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/cli/commands/uninstall.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export async function run(
6565
// remove bins
6666
let pkg = await config.readManifest(loc);
6767
for (let binName in pkg.bin) {
68-
await fs.unlink(path.join("node_modules", ".bin", binName));
68+
await fs.unlink(path.join(config.modulesFolder, "node_modules", ".bin", binName));
6969
}
7070

7171
// remove from `package.json`

src/package-linker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ export default class PackageLinker {
320320

321321
// link bins
322322
if (!_.isEmpty(resolved.bin)) {
323-
let binLoc = path.join(this.config.cwd, await ref.getFolder(), ".bin");
323+
let binLoc = path.join(this.config.modulesFolder, ".bin");
324324
await fs.mkdirp(binLoc);
325325
await this.linkSelfDependencies(resolved, src, binLoc);
326326
}

0 commit comments

Comments
 (0)