Skip to content
This repository has been archived by the owner on Aug 13, 2023. It is now read-only.

Update all the package-locks #264

Merged
merged 13 commits into from
Jan 8, 2019
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ none:

install:
npm --version; node --version;
npm ci;
npm run ci:packages;

code-coverage-before-build:
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter;
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ git clone [email protected]:bbc-news/psammead.git
### :hammer: Setup Local Environment

```
cd psammead && npm install
cd psammead && npm run install:packages
```

NB, this automatically runs `npm run install:packages` in a postinstall step for you.
N.B. When merging branches, the `npm run install:packages` command should be favoured over `npm install`. [More details available here](https://github.com/bbc/psammead/pull/264).

### :runner: Run tests

Expand Down
1,440 changes: 814 additions & 626 deletions package-lock.json

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
"main": "index.js",
"scripts": {
"build": "lerna exec --parallel -- babel src -d dist --ignore '**/*.test.jsx,**/*.stories.jsx' --root-mode upward",
"ci:packages": "npm ci && lerna bootstrap --ci --hoist --force-local",
"deploy-storybook": "build-storybook -o storybook_dist && gh-pages -d storybook_dist",
"force-package-lock-https": "find . -type f -name \"package-lock.json\" | grep -v node_modules | xargs -I % sh -c 'echo \"Replacing http->https in %\"; sed -i \"\" -e \"s/http:\\/\\//https:\\/\\//g\" %'",
"postinstall": "lerna bootstrap --ci --hoist --force-local",
"install:packages": "npm i && lerna bootstrap --hoist --force-local",
"postshrinkwrap": "if test -z $CI; then \n npm run force-package-lock-https \n fi",
"prepare": "npm run build",
"publish": "node scripts/publish",
Expand Down Expand Up @@ -93,7 +94,9 @@
"!**/.eslintrc.js",
"!**/dist/**"
],
"testMatch": ["**/*.test.{js,jsx}"]
"testMatch": [
"**/*.test.{js,jsx}"
]
},
"spec": {
"prune": false,
Expand Down
Loading