Skip to content

Commit 1905296

Browse files
authored
chore: remove package lock (#1993)
* chore: remove package lock * chore: remove remaining lock files
1 parent 0643642 commit 1905296

File tree

10 files changed

+24
-20936
lines changed

10 files changed

+24
-20936
lines changed

.github/workflows/canary.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
with:
3030
# must be done before bootstrap to not include node_modules files in the cache paths
3131
path: |
32+
package-lock.json
3233
packages/*/package-lock.json
3334
benchmark/*/package-lock.json
3435
backwards-compatability/*/package-lock.json
@@ -37,18 +38,17 @@ jobs:
3738
integration-tests/*/package-lock.json
3839
key: ${{ runner.os }}-${{ hashFiles('**/package.json') }}
3940

40-
- name: Install root dependencies
41-
run: npm ci --ignore-scripts
42-
4341
- name: Install and Build (cache miss) 🔧
4442
if: steps.cache.outputs.cache-hit != 'true'
4543
run: |
44+
npm install --ignore-scripts
4645
npx lerna bootstrap --no-ci
4746
npm run compile
4847
4948
- name: Install and Build (cache hit) 🔧
5049
if: steps.cache.outputs.cache-hit == 'true'
5150
run: |
51+
npm ci --ignore-scripts
5252
npx lerna bootstrap
5353
npm run compile
5454

.github/workflows/lint.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ jobs:
3434
with:
3535
# must be done before bootstrap to not include node_modules files in the cache paths
3636
path: |
37+
package-lock.json
3738
packages/*/package-lock.json
3839
benchmark/*/package-lock.json
3940
backwards-compatability/*/package-lock.json
@@ -42,18 +43,19 @@ jobs:
4243
integration-tests/*/package-lock.json
4344
key: ${{ runner.os }}-lint-${{ hashFiles('**/package.json') }}
4445

45-
- name: Install root dependencies
46-
run: npm ci --ignore-scripts
47-
4846
# On a cache hit, use ci to speed up the install process
4947
- name: Bootstrap (cache hit)
5048
if: steps.cache.outputs.cache-hit == 'true'
51-
run: npx lerna bootstrap --ignore-scripts
49+
run: |
50+
npm ci --ignore-scripts
51+
npx lerna bootstrap --ignore-scripts
5252
5353
# On a cache miss, fall back to a regular install
5454
- name: Bootstrap (cache miss)
5555
if: steps.cache.outputs.cache-hit != 'true'
56-
run: npx lerna bootstrap --no-ci --ignore-scripts -- --only=dev
56+
run: |
57+
npm install --ignore-scripts
58+
npx lerna bootstrap --no-ci --ignore-scripts -- --only=dev
5759
5860
- name: Lint
5961
run: |

.github/workflows/unit-test.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
with:
2727
# must be done before bootstrap to not include node_modules files in the cache paths
2828
path: |
29+
package-lock.json
2930
packages/*/package-lock.json
3031
benchmark/*/package-lock.json
3132
backwards-compatability/*/package-lock.json
@@ -34,18 +35,17 @@ jobs:
3435
integration-tests/*/package-lock.json
3536
key: ${{ runner.os }}-unit_test-${{ matrix.container }}-${{ hashFiles('**/package.json') }}
3637

37-
- name: Install root dependencies
38-
run: npm ci --ignore-scripts
39-
4038
- name: Install and Build (cache miss) 🔧
4139
if: steps.cache.outputs.cache-hit != 'true'
4240
run: |
41+
npm install --ignore-scripts
4342
npx lerna bootstrap --no-ci
4443
npm run compile
4544
4645
- name: Install and Build (cache hit) 🔧
4746
if: steps.cache.outputs.cache-hit == 'true'
4847
run: |
48+
npm ci --ignore-scripts
4949
npx lerna bootstrap
5050
npm run compile
5151
@@ -72,6 +72,7 @@ jobs:
7272
with:
7373
# must be done before bootstrap to not include node_modules files in the cache paths
7474
path: |
75+
package-lock.json
7576
packages/*/package-lock.json
7677
benchmark/*/package-lock.json
7778
backwards-compatability/*/package-lock.json
@@ -80,18 +81,17 @@ jobs:
8081
integration-tests/*/package-lock.json
8182
key: ${{ runner.os }}-unit_test-${{ matrix.container }}-${{ hashFiles('**/package.json') }}
8283

83-
- name: Install root dependencies
84-
run: npm ci --ignore-scripts
85-
8684
- name: Install and Build (cache miss) 🔧
8785
if: steps.cache.outputs.cache-hit != 'true'
8886
run: |
87+
npm install --ignore-scripts
8988
npx lerna bootstrap --no-ci
9089
npm run compile
9190
9291
- name: Install and Build (cache hit) 🔧
9392
if: steps.cache.outputs.cache-hit == 'true'
9493
run: |
94+
npm ci --ignore-scripts
9595
npx lerna bootstrap
9696
npm run compile
9797

.github/workflows/w3c-integration-test.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
with:
2020
# must be done before bootstrap to not include node_modules files in the cache paths
2121
path: |
22+
package-lock.json
2223
packages/*/package-lock.json
2324
benchmark/*/package-lock.json
2425
backwards-compatability/*/package-lock.json
@@ -27,16 +28,17 @@ jobs:
2728
integration-tests/*/package-lock.json
2829
key: ${{ runner.os }}-w3c_integration-${{ hashFiles('**/package.json') }}
2930

30-
- name: Install root dependencies
31-
run: npm ci --ignore-scripts
32-
3331
- name: Install and Build (cache miss) 🔧
3432
if: steps.cache.outputs.cache-hit != 'true'
35-
run: npx lerna bootstrap --no-ci --scope=propagation-validation-server --include-dependencies
33+
run: |
34+
npm install --ignore-scripts
35+
npx lerna bootstrap --no-ci --scope=propagation-validation-server --include-dependencies
3636
3737
- name: Install and Build (cache hit) 🔧
3838
if: steps.cache.outputs.cache-hit == 'true'
39-
run: npx lerna bootstrap --scope=propagation-validation-server --include-dependencies
39+
run: |
40+
npm ci --ignore-scripts
41+
npx lerna bootstrap --scope=propagation-validation-server --include-dependencies
4042
4143
- name: Build 🔧
4244
run: npm run compile

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ typings/
6060

6161
# lock files
6262
yarn.lock
63-
packages/**/yarn.lock
64-
*/**/package-lock.json
63+
package-lock.json
6564

6665
# docs files
6766
docs

0 commit comments

Comments
 (0)