entwicklerstube / babel-plugin-root-import

Add the opportunity to import modules by the root path

Home Page:https://npmjs.com/babel-plugin-root-import

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

More consistent name: babel-plugin-root-import

denysdovhan opened this issue · comments

Hi! Thanks for awesome plugin!

Babel's docs say about Plugin/Preset Shorthands. Most of plugins works well with that shorthand notation, but babel-root-import do not, because of its name.

Why this plugin wasn't named in common convention? Don't you think it would be better to rename the plugin?

For example, we've got this issue brunch/brunch#1549 in Brunch. Of course, issue will be fixed by our efforts, but wouldn't it be easier for users not to write babel-root-import, but just root-import, every time they want to use your plugin?

I developed this plugin a while ago where this kind of standard wasn't that popular.
But i see your idea and i think it would be a better naming..
I'm wondering which side-effects this would have if rename this repo.

And i've seen that the name is already taken on npm :/
https://github.com/andrelom/babel-plugin-root-import

@michaelzoidl you can contact @andrelom and resolve this problem together.

Actually, I had experience in renaming packages — that's not so hard. You can deprecate old package and leave a message with link to the new one.

Hi!

I am willing to remove/rename (deprecate) my NPM package in favor of the current one. Just send the instructions and I'll do it as soon as possible.

Sorry for the inconvenience.

@andrelom you need to give @michaelzoidl an access to your package. Then just update corresponding package.json's fields and publish. Package with old plugin name should be deprecated.

P.S: I think it's better to bump major version with renaming a package.

Major version bumps should be done with breaking functionality. Unsure if this constitutes one but i don't think so.

@sivael correct! But let's keep in mind that these two plugins may work a little bit different. Make sure, that you don't break anything. Be careful.

From my experience, it was better to bump major.

Oh. Did not connect the two facts. Yes then it has to be done.
Thanks for clarifying.

Ok guys, i'm back.. sorry for the 26 days waiting :S

@andrelom awesome, if you can remove your package from npm i will move this repo to an organisation, rename it and publish it on your version.

I will bump the version to v5, i also add a information part in the repo - and add a note to the old babel-root-import npm package that we changed the name

Again, thank you guys for contributing to this

Hi @michaelzoidl, I added you as a contributor in the package, so you can publish the current package and deprecate the old one. I've tried deleting a package before, and after all, they ask to transfer the ownership to the NPM and depreciate the package. So I believe that is the easiest way to solve this.

Ok, after a year waiting I did it.. really..
Okay so i moved everything to the organisation i'm working for and renamed the package, i also bumped the version to 5.0.0 and published everything with the new name on npm

I think i can close this ticket now :)