Skip to content

Commit

Permalink
Merge pull request algolia/vue-instantsearch#16 from algolia/feat/con…
Browse files Browse the repository at this point in the history
…venience-script

chore(build): allow to get a clear state of all packages
  • Loading branch information
Haroenv authored Mar 14, 2017
2 parents 5d71a4b + 727f094 commit 5c4ff75
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions packages/vue-instantsearch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,14 @@ yarn global add lerna
# Install dependencies common to the packages
yarn install

# Download all dependencies
# Download all dependencies and build all packages
yarn boot

# Or with native lerna:
lerna bootstrap --npmClient=yarn

# Build all the packages
# if you want to run the building later again
lerna run build
```

## Lerna caveats (probably because of Yarn)

Sometimes your builds will fail because of incorrect dependencies resolution. If that happens, the easiest fix is
to delete all `node_modules` folders and to bootstrap again.

```sh
rm -rf ./packages/*/node_modules
lerna bootstrap
```

Note: `yarn boot` will delete all node modules and make sure all npm dependencies are properly rebuilt.

0 comments on commit 5c4ff75

Please sign in to comment.