Skip to content

Commit

Permalink
deprecate npm tag the simplest way possible
Browse files Browse the repository at this point in the history
  • Loading branch information
othiym23 committed Jan 23, 2015
1 parent dc51810 commit 10d5c77
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/cli/npm-tag.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ npm-tag(1) -- Tag a published version

## DESCRIPTION

THIS COMMAND IS DEPRECATED. See npm-dist-tag(1) for details.

Tags the specified version of the package with the specified tag, or the
`--tag` config if not specified.

Expand Down
3 changes: 3 additions & 0 deletions lib/tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ var npm = require("./npm.js")
, mapToRegistry = require("./utils/map-to-registry.js")
, npa = require("npm-package-arg")
, semver = require("semver")
, log = require("npmlog")

function tag (args, cb) {
var thing = npa(args.shift() || "")
Expand All @@ -25,6 +26,8 @@ function tag (args, cb) {
return cb(er)
}

log.warn("tag", "This command is deprecated. Use `npm dist-tag` instead.")

mapToRegistry(project, npm.config, function (er, uri, auth) {
if (er) return cb(er)

Expand Down

0 comments on commit 10d5c77

Please sign in to comment.