Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be possible for you to update the "dependencies" and "keywords" section to "babel-plugin-root-import" as well? It would remove the warning you get when you install this package due to the incorrect dependency.
@PCguru I was having trouble with switching over so I just left it. I can take a look at it again. |
I've further illustrated my trouble with that in this issue on the |
That's a breaking change!IMO, you should either update Or you should at least jump an entire version — to 1.0.0 — rather than a subversion like it is now. You don't want to break current app linters who are targeting |
@PCguru It seems that they suggest we keep using the old version. entwicklerstube/babel-plugin-root-import#66 (comment) @zurfyx good point, I will do this. |
I'll probably fork and republish if this isn't merged in sometime in the next few weeks. |
@adrianmcli is your branch working correctly? I'd love to get a working version of this bad boy if possible. |
@GollyJer yeah it should be working, I've been using it for the past few weeks. Give it a go and let me know. |
@adrianmcli Thanks for the help. Here's what I tried. .eslintrc
.babelrc
|
@GollyJer you can see how I use it here: https://github.com/adrianmcli/next-boilerplate |
@adrianmcli Working perfectly, thanks! |
@GollyJer haha, maybe it's time that I fork and publish an actual working option. |
@adrianmcli yeah, take a look at the version by @rmacklin. It seems like he's done a bunch of clean up too. |
Whoa, wasn't expecting anyone to see my fork, haha. I got that fork working on Thursday and was thinking about publishing it, but then I ended up switching approaches and dropping A few things to note about your (@adrianmcli's) changes:
But another thing I realized is that the |
@rmacklin Could you provide a link to details on the symlink approach? I'm migrating a client app that used webpack path resolving to use server-side rendering and I need a server-workable path solution. Relative paths are just a nightmare with our feature-focused directory structure. Thanks in advance! Best |
Ooh, some details around symlink, here: https://gist.github.com/branneman/8048520 A bummer that it's a solution that can't quite be committed, though. |
@mherodev, a symlink can be committed actually, although I don't do that. Instead, I create the symlink in a |
@rmacklin I don't hate the preinstall/postinstall script approach. I took the solution available on the linked gist and updated it to use "preinstall": "node -e \"var d='node_modules/src',fs=require('fs');fs.stat(d,function(e){!e&&fs.unlinkSync(d)});\"",
"postinstall": "node -e \"var s='../src',d='node_modules/src',fs=require('fs');fs.stat(d,function(e){e&&fs.symlinkSync(s,d,'dir')});\"", This seems pretty straightforward and works. Thanks for the insight! |
Seems like that'd work 👍 . In my project I just run a bash script rather than doing it in node, since I'm fortunate to not have to worry about cross-platform inconsistencies. |
Any plans on this being merged or published elsewhere under a new name? |
Anyone wants to be added to the repos' maintainers? I'm no longer using this plugin. |
We're still using. I can take if you don't mind. |
@GollyJer added you as a collaborator on GitHub |
Can someone merge and publish it finally? |
@BjornMelgaard I think @GollyJer is your best bet right now. |
@GollyJer, you are collaborator now, can you publish this fix)) |
I'm on vacation until the 12th. Will merge this asap. |
This is now merged and released. |
@GollyJer glad to see this finally merged. You'll need access to publish the package on NPM. @olalonde will likely have to give you permission to do this. If he already did, then just bump the version number (while following SemVer) and do If you've never published anything on NPM before, I highly recommend you publish a test project just so you can see how the process works. Thanks again for merging! P.S. For those that want to use this immediately, you can replace the version number in your |
Fixes #5
Linting and tests all pass.