-
Notifications
You must be signed in to change notification settings - Fork 16
whack link appears to symlink #9
Comments
I don't think there is any way whackage is doing the symlinking. It is however possible that the isNotSymlinked check is returning a false negative, or that you have a preexisting symlink from some previous attempt to solve the problem? I'm also fairly sure that whackage should not modify your package.json - though it's been a long time since I worked on this, so I could be wrong about that. |
I was using
afaik Line 24 in 0ca1cfd
Perhaps that wasn't true awhile back? |
Ah, you must be using npm 5! According to the npm5 release notes, both of these are actually perfectly logical issues:
Unfortunately that means that whackage is currently not npm 5 compatible. If you want to figure out how to solve this, pull requests are welcome. I am currently busy with other work and travelling, don't expect to get to this for at least a few weeks. |
A quick glance at the React Native repo is showing that there's a bunch of problems with npm 5 and react-native, so I'm downgrading to npm 4:
For anyone tackling the npm 5 issue: There is a flag to disable the automatic saving in packages.json |
related: #17 |
@jpdriver I've started using haul whilst building local packages, it handles symlinks rather easily. You don't need to add the build steps to gradle/ xcode |
@peterp Haul is great, glad it's working out for you. In the meantime, I just released whackage 1.2.0 with NPM 5 support https://github.com/FormidableLabs/whackage/releases/tag/v1.2.0 Closing this issue now, feel free to message to reopen if needed! |
It appears that whackage creates a symlink just like
npm link
does.I add
"my-react-native-library": "0.0.1"
topackages.json
dependencies and try againThis works now, and
packages.json
dependency is now:"my-react-native-library": "file:../my-react-native-library"
The text was updated successfully, but these errors were encountered: