- [Instructor] Dist-tags are human readable tags
you can add when you publish your package to NPM,
and we'll use them when we publish
our own package later in this course.
Dist-tags can be anything you want
and can add details to the version you are publishing.
For example, if you are publishing
a new version of your package,
you can add details with tags that
will be descriptive of this version.
So let's say, for example, we are at version 1.1.0,
and we are publishing a version that fixes bugs
in the version 1.1.0,
and now would be 1.1.1.
Then we could simply add a tag to our
NPM publish command like the one we'll use when we
publish our package with a command like this one,
npm publish --tag bugfix.
So, in this case, we would be publishing
our package with the mention, or tag, bugfix.
Then, later, if you'd like to add
tags to any of your versions,
this is definitely possible.
First, make sure you're in the root folder of your package,
then, when you're in the root folder of the package,
you can add a tag by doing this command,
npm dist-tag
add test-npm@1.0.0
and then [stable].
So, if we look at this command,
we would add the stable tag to our own
NPM package name, test-npm@
version 1.0.0.
Again, we'll use these commands
when we publish our own package next,
so no worries, if you need practice, we'll do this shortly.