Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
chore: use npm7 workspaces instead of lerna bootstrap
Browse files Browse the repository at this point in the history
It's much faster!  npm@7 is required so people will need to upgrade
if they are running node 14.  Node 15 comes with npm@7 so all good
there.

```
npm7

real	2m30.996s
user	8m11.495s
sys	0m48.380sit

lerna

real	4m19.727s
user	4m36.371s
sys	0m51.310s
```
  • Loading branch information
achingbrain committed Mar 31, 2021
1 parent a418a52 commit b0d686c
Show file tree
Hide file tree
Showing 27 changed files with 158 additions and 79 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/bundlesize.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@ jobs:
- packages/ipfs-message-port-client
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- uses: actions/checkout@v2
- run: npm install -g @mapbox/node-pre-gyp && npm install
node-version: 15
- run: node --version
- run: npm --version
- name: Install dependencies
run: npm install -g @mapbox/node-pre-gyp && npm install
- name: Bundlesize ${{ matrix.project }}
uses: ipfs/aegir/actions/bundle-size@v32.1.0
with:
Expand Down
13 changes: 5 additions & 8 deletions .github/workflows/typecheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
project:
- packages/ipfs
- packages/ipfs-cli
Expand All @@ -28,16 +27,14 @@ jobs:
- packages/ipfs-message-port-server
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
node-version: 15
- run: node --version
- run: npm --version
- name: Install dependencies
run: npm install
- name: Build types
run: npm run build
run: npm install -g @mapbox/node-pre-gyp && npm install
- name: Typecheck ${{ matrix.project }}
uses: gozala/typescript-error-reporter-action@v1.0.8
with:
project: ${{ matrix.project }}

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ logs
npm-debug.log*
package-lock.json
yarn.lock
tsconfig-types.aegir.json

# Coverage directory used by tools like istanbul
coverage
Expand Down

0 comments on commit b0d686c

Please sign in to comment.