Skip to content

Commit e6cb70c

Browse files
committed
Fixing npm-shrinkwrap.json by installing only dependencies. Updating release process in RELEASE.md. (Fixes #295.)
1 parent 5d38510 commit e6cb70c

2 files changed

Lines changed: 933 additions & 82 deletions

File tree

RELEASE.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,19 @@ Drupal Tasks:
2525
file contains the version of Grunt Drupal Tasks, it should be updated as
2626
part of the release process.
2727

28-
First, delete `npm-shrinkwrap.json` and `node_modules`. Then, run `npm i &&
29-
npm shrinkwrap`.
28+
First, delete `npm-shrinkwrap.json` and `node_modules`. Then, run:
29+
`npm i --prod && npm shrinkwrap`.
30+
31+
Installing with the `--prod` option excludes dev dependencies, which avoids
32+
an issue with npm v2 where modules that are dev dependencies are not
33+
included in the shrinkwrap file.
3034

3135
- Tag a new version.
3236

3337
Once all updates are committed, tag a new version using `git tag -a v0.9.3
3438
-m "Version 0.9.3."` and push the tag.
3539

3640
- Run `npm publish` to publish the release to npm.
41+
42+
For pre-releases (alpha, non-stable), specify a release tag by running:
43+
`npm publish --tag alpha`

0 commit comments

Comments
 (0)