diff options
author | Akihiko Odaki <akihiko.odaki.4i@stu.hosei.ac.jp> | 2018-03-07 05:36:46 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2018-03-06 21:36:46 +0100 |
commit | 81cefc1913e89a3f659d9a2663f4006db94004cd (patch) | |
tree | f778677741ddaa8524f4f5565b4589eb67aa1283 /package.json | |
parent | a07cfee644a6b854c977903775e083c2a3d827b8 (diff) |
Do not use npm (#6656)
Both of yarn and npm are used in Mastodon, but the combined usage requires a redundant dependency and may lead to data inconsistency. Considering that yarn has autoclean feature which npm does not have, this change replaces all npm usage with yarn. This change requires documentation update. Most notably, the following command must be executed before assets precompilation if any system dependency of node-sass has changed: yarn install --force --pure-lockfile
Diffstat (limited to 'package.json')
-rw-r--r-- | package.json | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/package.json b/package.json index abc13e1ea..5b9ea7d37 100644 --- a/package.json +++ b/package.json @@ -10,10 +10,9 @@ "build:production": "cross-env RAILS_ENV=production ./bin/webpack", "manage:translations": "node ./config/webpack/translationRunner.js", "start": "node ./streaming/index.js", - "test": "npm run test:lint && npm run test:jest", + "test": "yarn run test:lint && yarn run test:jest", "test:lint": "eslint -c .eslintrc.yml --ext=js app/javascript/ config/webpack/ streaming/", - "test:jest": "cross-env NODE_ENV=test jest --coverage", - "postinstall": "npm rebuild node-sass" + "test:jest": "cross-env NODE_ENV=test jest --coverage" }, "repository": { "type": "git", |