Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

bin/files are automatically symlinked? #739

Closed
kof opened this issue Mar 22, 2011 · 8 comments
Closed

bin/files are automatically symlinked? #739

kof opened this issue Mar 22, 2011 · 8 comments

Comments

@kof
Copy link

kof commented Mar 22, 2011

I don't use "bin" key in package.json, but I see, that all files from bin are symlinked to /usr/local/bin

How is that possible?

MacOS 10.6.6
Node 0.4.0
npm 0.3.17

Oleg

@isaacs
Copy link
Contributor

isaacs commented Mar 23, 2011

It could be because you have "directories":{"bin":"./bin"}? What package is this?

@isaacs isaacs closed this as completed Mar 23, 2011
@kof
Copy link
Author

kof commented Mar 23, 2011

no, directories prop is not in use too ... first I found this in sharedjs package ... now tested some other, all of them have this problem. if I use bin: {} then it stops doing that.

@isaacs
Copy link
Contributor

isaacs commented Mar 23, 2011

Ah, yeah, it's defaulting the "bin" directory to "./bin" if there's a dir by that name.

I'm going to rip that out for 1.0

@kof
Copy link
Author

kof commented Mar 23, 2011

is this behaviour being there all the time?

@kof
Copy link
Author

kof commented Mar 23, 2011

so, if we have bin dir and don't want to symlink its files, we have to use bin: {} ... puh this is really broken :)

@isaacs
Copy link
Contributor

isaacs commented Mar 23, 2011

It's not really broken. Worst case scenario, it creates some symlinks that you don't need. In the vast majority of packages, putting something in a "bin" folder is grounds for believing it's an executable.

Changed in 1.0.

@kof
Copy link
Author

kof commented Mar 23, 2011

also if doing this automatically, package name should be used as a prefix for the symlink name, f.e package fui, bin/test.js symlinked to fui-test.

I got problems because I have file names conflicts ....

@isaacs
Copy link
Contributor

isaacs commented Mar 23, 2011

on dbf5e80, more specifically.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants