-
Notifications
You must be signed in to change notification settings - Fork 996
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More detailed "Migrating from npm" guide #297
Comments
Comparing the docs for yarn publish to those for npm publish, they support the same subcommands and options. A difference is that the NPM docs mentions taking into account .gitignore and .npmignore files. The I don't think it's practical to maintain a detailed nuanced guide to the differences between every sub-command. That would involve tracking both projects as they change over time. The summary table is helpful to find the |
I probably wouldn't track them over time, but it would be nice to see why I should use If I understand you correctly it is currently not possible to ignore certain files? If this is true it would be nice to understand why the |
@donaldpipowitch the why yarn reasons are spelled on the front page of the https://yarnpkg.com/ I'm not a yarn core-contributor, but I am already using Ignoring files like I can't speak for the core-team motivation for having their own publish command, but it is convenient to have all the subcommands in one place, as |
That would be one of the points which could be a motivation for an own I'm aware of other benefits of |
There really isn't a real strong benefit for publishing though. There's nothing to advertise as being notably better, it's all about the install process. |
So we could add something like this to the "Migrating from npm" page?
I think it is also important to note when something isn't different, so there is no room for speculation :) |
Hi,
I'd like to know for all commands on "Migrating from npm" if and how they differ between npm and yarn. I can read about some of them in the docs. E.g. for
add
they tellWhen you run either yarn or yarn add <package>, Yarn will generate a yarn.lock file within the root directory of your package.
But how is yarns
publish
different to npms? It seems that this isn't just an alias. I initially thought yarn would be just for library consumers to install dependencies, but that library authors should still use npm to publish components. This doesn't seem to be true. So why should I useyarn publish
? Is this just convenience to use only one package manager?The text was updated successfully, but these errors were encountered: