Skip to content

Commit daca803

Browse files
committed
npm: Update to 1.4.28
1 parent 1fddc1f commit daca803

502 files changed

Lines changed: 19055 additions & 8030 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

deps/npm/.tern-project

Lines changed: 0 additions & 7 deletions
This file was deleted.

deps/npm/CHANGELOG.md

Lines changed: 737 additions & 0 deletions
Large diffs are not rendered by default.

deps/npm/Makefile

Lines changed: 9 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# vim: set softtabstop=2 shiftwidth=2:
22
SHELL = bash
33

4+
PUBLISHTAG = $(shell node scripts/publish-tag.js)
5+
BRANCH = $(shell git rev-parse --abbrev-ref HEAD)
6+
47
markdowns = $(shell find doc -name '*.md' | grep -v 'index') README.md
58

69
html_docdeps = html/dochead.html \
@@ -170,49 +173,20 @@ man: $(cli_docs) $(api_docs)
170173
test: doc
171174
node cli.js test
172175

176+
tag:
177+
npm tag npm@$(PUBLISHTAG) latest
178+
173179
publish: link doc
174180
@git push origin :v$(shell npm -v) 2>&1 || true
175-
@npm unpublish npm@$(shell npm -v) 2>&1 || true
176181
git clean -fd &&\
177-
git push origin &&\
182+
git push origin $(BRANCH) &&\
178183
git push origin --tags &&\
179-
npm publish &&\
180-
make doc-publish
181-
182-
docpublish: doc-publish
183-
doc-publish: doc
184-
# legacy urls
185-
for f in $$(find html/doc/{cli,files,misc}/ -name '*.html'); do \
186-
j=$$(basename $$f | sed 's|^npm-||g'); \
187-
if ! [ -f html/doc/$$j ] && [ $$j != README.html ] && [ $$j != index.html ]; then \
188-
perl -pi -e 's/ href="\.\.\// href="/g' <$$f >html/doc/$$j; \
189-
fi; \
190-
done
191-
mkdir -p html/api
192-
for f in $$(find html/doc/api/ -name '*.html'); do \
193-
j=$$(basename $$f | sed 's|^npm-||g'); \
194-
perl -pi -e 's/ href="\.\.\// href="/g' <$$f >html/api/$$j; \
195-
done
196-
rsync -vazu --stats --no-implied-dirs --delete \
197-
html/doc/* \
198-
../npm-www/doc
199-
rsync -vazu --stats --no-implied-dirs --delete \
200-
html/static/style.css \
201-
../npm-www/static/
202-
#cleanup
203-
rm -rf html/api
204-
for f in html/doc/*.html; do \
205-
case $$f in \
206-
html/doc/README.html) continue ;; \
207-
html/doc/index.html) continue ;; \
208-
*) rm $$f ;; \
209-
esac; \
210-
done
184+
npm publish --tag=$(PUBLISHTAG)
211185

212186
release:
213187
@bash scripts/release.sh
214188

215189
sandwich:
216190
@[ $$(whoami) = "root" ] && (echo "ok"; echo "ham" > sandwich) || (echo "make it yourself" && exit 13)
217191

218-
.PHONY: all latest install dev link doc clean uninstall test man doc-publish doc-clean docclean docpublish release
192+
.PHONY: all latest install dev link doc clean uninstall test man doc-clean docclean release

deps/npm/doc/cli/npm-version.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@ npm-version(1) -- Bump a package version
33

44
## SYNOPSIS
55

6-
npm version [<newversion> | major | minor | patch]
6+
npm version [<newversion> | major | minor | patch | premajor | preminor | prepatch | prerelease]
77

88
## DESCRIPTION
99

1010
Run this in a package directory to bump the version and write the new
1111
data back to the package.json file.
1212

13-
The `newversion` argument should be a valid semver string, *or* a valid
14-
second argument to semver.inc (one of "patch", "minor", or
15-
"major"). In the second case, the existing version will be incremented
16-
by 1 in the specified field.
13+
The `newversion` argument should be a valid semver string, *or* a
14+
valid second argument to semver.inc (one of "patch", "minor", "major",
15+
"prepatch", "preminor", "premajor", "prerelease"). In the second case,
16+
the existing version will be incremented by 1 in the specified field.
1717

1818
If run in a git repo, it will also create a version commit and tag, and
1919
fail if the repo is not clean.

0 commit comments

Comments
 (0)