Skip to content

Commit 53a5c0e

Browse files
committed
build: remove yarn
1 parent 5ae649e commit 53a5c0e

File tree

32 files changed

+9830
-26184
lines changed

32 files changed

+9830
-26184
lines changed

.aspect/rules/external_repository_action_cache/npm_translate_lock_MzA5NzUwNzMx

Lines changed: 0 additions & 23 deletions
This file was deleted.

.bazelrc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ build --nolegacy_external_runfiles
4040
# in Bazel 0.21.0 but turned off again in 0.22.0. Follow
4141
# https://github.com/bazelbuild/bazel/issues/7026 for more details.
4242
# This flag is needed to so that the bazel cache is not invalidated
43-
# when running bazel via `yarn bazel`.
43+
# when running bazel via `pnpm bazel`.
4444
# See https://github.com/angular/angular/issues/27514.
4545
build --incompatible_strict_action_env
4646
run --incompatible_strict_action_env
@@ -83,14 +83,14 @@ test:saucelabs --define=KARMA_WEB_TEST_MODE=SL_REQUIRED
8383
# Releases should always be stamped with version control info
8484
# This command assumes node on the path and is a workaround for
8585
# https://github.com/bazelbuild/bazel/issues/4802
86-
build:release --workspace_status_command="yarn ng-dev release build-env-stamp --mode=release"
86+
build:release --workspace_status_command="pnpm run --silent ng-dev release build-env-stamp --mode=release"
8787
build:release --stamp
8888

89-
build:snapshot --workspace_status_command="yarn ng-dev release build-env-stamp --mode=snapshot"
89+
build:snapshot --workspace_status_command="pnpm run --silent ng-dev release build-env-stamp --mode=snapshot"
9090
build:snapshot --stamp
9191
build:snapshot --//:enable_snapshot_repo_deps
9292

93-
build:e2e --workspace_status_command="yarn ng-dev release build-env-stamp --mode=release"
93+
build:e2e --workspace_status_command="pnpm run --silent ng-dev release build-env-stamp --mode=release"
9494
build:e2e --stamp
9595
test:e2e --test_timeout=3600 --experimental_ui_max_stdouterr_bytes=2097152
9696

.github/shared-actions/windows-bazel-test/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ runs:
3030
- name: Install node modules in WSL (re-using from previous install/cache restore)
3131
run: |
3232
cd ${{steps.init_wsl.outputs.repo_path}}
33-
yarn install --immutable
33+
pnpm install --frozen-lockfile
3434
shell: wsl-bash {0}
3535

3636
- name: Build test binary for Windows (inside WSL)
3737
shell: wsl-bash {0}
3838
run: |
3939
cd ${{steps.init_wsl.outputs.repo_path}}
40-
yarn bazel \
40+
pnpm run bazel \
4141
build --config=e2e //tests/legacy-cli:${{inputs.test_target_name}} --platforms=tools:windows_x64
4242
env:
4343
# See: https://devblogs.microsoft.com/commandline/share-environment-vars-between-wsl-and-windows

.github/workflows/ci.yml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,20 @@ jobs:
2323
- name: Initialize environment
2424
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@60ad70b4632945a3014cf26e045530f8ae2e6e18
2525
- name: Install node modules
26-
run: yarn install --immutable
26+
run: pnpm install --frozen-lockfile
2727
- name: Generate JSON schema types
2828
# Schema types are required to correctly lint the TypeScript code
29-
run: yarn admin build-schema
29+
run: pnpm run admin build-schema
3030
- name: Run ESLint
31-
run: yarn lint --cache-strategy content
31+
run: pnpm run lint --cache-strategy content
3232
- name: Validate NgBot Configuration
33-
run: yarn ng-dev ngbot verify
33+
run: pnpm run ng-dev ngbot verify
3434
- name: Validate Circular Dependencies
35-
run: yarn ts-circular-deps check
35+
run: pnpm run ts-circular-deps check
3636
- name: Run Validation
37-
run: yarn admin validate
37+
run: pnpm run admin validate
3838
- name: Check tooling setup
39-
run: yarn check-tooling-setup
39+
run: pnpm run check-tooling-setup
4040

4141
build:
4242
runs-on: ubuntu-latest
@@ -48,9 +48,9 @@ jobs:
4848
- name: Setup Bazel RBE
4949
uses: angular/dev-infra/github-actions/bazel/configure-remote@60ad70b4632945a3014cf26e045530f8ae2e6e18
5050
- name: Install node modules
51-
run: yarn install --immutable
51+
run: pnpm install --frozen-lockfile
5252
- name: Build release targets
53-
run: yarn ng-dev release build
53+
run: pnpm run ng-dev release build
5454

5555
test:
5656
needs: build
@@ -63,9 +63,9 @@ jobs:
6363
- name: Setup Bazel RBE
6464
uses: angular/dev-infra/github-actions/bazel/configure-remote@60ad70b4632945a3014cf26e045530f8ae2e6e18
6565
- name: Install node modules
66-
run: yarn install --immutable
66+
run: pnpm install --frozen-lockfile
6767
- name: Run module and package tests
68-
run: yarn bazel test //modules/... //packages/...
68+
run: pnpm run bazel test //modules/... //packages/...
6969
env:
7070
ASPECT_RULES_JS_FROZEN_PNPM_LOCK: '1'
7171

@@ -83,13 +83,13 @@ jobs:
8383
- name: Initialize environment
8484
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@60ad70b4632945a3014cf26e045530f8ae2e6e18
8585
- name: Install node modules
86-
run: yarn install --immutable
86+
run: pnpm install --frozen-lockfile
8787
- name: Setup Bazel
8888
uses: angular/dev-infra/github-actions/bazel/setup@60ad70b4632945a3014cf26e045530f8ae2e6e18
8989
- name: Setup Bazel RBE
9090
uses: angular/dev-infra/github-actions/bazel/configure-remote@60ad70b4632945a3014cf26e045530f8ae2e6e18
9191
- name: Run CLI E2E tests
92-
run: yarn bazel test --test_env=E2E_SHARD_TOTAL=6 --test_env=E2E_SHARD_INDEX=${{ matrix.shard }} --config=e2e //tests/legacy-cli:e2e.${{ matrix.subset }}_node${{ matrix.node }}
92+
run: pnpm run bazel test --test_env=E2E_SHARD_TOTAL=6 --test_env=E2E_SHARD_INDEX=${{ matrix.shard }} --config=e2e //tests/legacy-cli:e2e.${{ matrix.subset }}_node${{ matrix.node }}
9393

9494
e2e_windows:
9595
strategy:
@@ -125,13 +125,13 @@ jobs:
125125
- name: Initialize environment
126126
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@60ad70b4632945a3014cf26e045530f8ae2e6e18
127127
- name: Install node modules
128-
run: yarn install --immutable
128+
run: pnpm install --frozen-lockfile
129129
- name: Setup Bazel
130130
uses: angular/dev-infra/github-actions/bazel/setup@60ad70b4632945a3014cf26e045530f8ae2e6e18
131131
- name: Setup Bazel RBE
132132
uses: angular/dev-infra/github-actions/bazel/configure-remote@60ad70b4632945a3014cf26e045530f8ae2e6e18
133133
- name: Run CLI E2E tests
134-
run: yarn bazel test --test_env=E2E_SHARD_TOTAL=3 --test_env=E2E_SHARD_INDEX=${{ matrix.shard }} --config=e2e //tests/legacy-cli:e2e.${{ matrix.subset }}_node${{ matrix.node }}
134+
run: pnpm run bazel test --test_env=E2E_SHARD_TOTAL=3 --test_env=E2E_SHARD_INDEX=${{ matrix.shard }} --config=e2e //tests/legacy-cli:e2e.${{ matrix.subset }}_node${{ matrix.node }}
135135

136136
e2e-snapshots:
137137
needs: test
@@ -147,13 +147,13 @@ jobs:
147147
- name: Initialize environment
148148
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@60ad70b4632945a3014cf26e045530f8ae2e6e18
149149
- name: Install node modules
150-
run: yarn install --immutable
150+
run: pnpm install --frozen-lockfile
151151
- name: Setup Bazel
152152
uses: angular/dev-infra/github-actions/bazel/setup@60ad70b4632945a3014cf26e045530f8ae2e6e18
153153
- name: Setup Bazel RBE
154154
uses: angular/dev-infra/github-actions/bazel/configure-remote@60ad70b4632945a3014cf26e045530f8ae2e6e18
155155
- name: Run CLI E2E tests
156-
run: yarn bazel test --test_env=E2E_SHARD_TOTAL=6 --test_env=E2E_SHARD_INDEX=${{ matrix.shard }} --config=e2e //tests/legacy-cli:e2e.snapshots.${{ matrix.subset }}_node${{ matrix.node }}
156+
run: pnpm run bazel test --test_env=E2E_SHARD_TOTAL=6 --test_env=E2E_SHARD_INDEX=${{ matrix.shard }} --config=e2e //tests/legacy-cli:e2e.snapshots.${{ matrix.subset }}_node${{ matrix.node }}
157157

158158
browsers:
159159
needs: build
@@ -165,7 +165,7 @@ jobs:
165165
- name: Initialize environment
166166
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@60ad70b4632945a3014cf26e045530f8ae2e6e18
167167
- name: Install node modules
168-
run: yarn install --immutable
168+
run: pnpm install --frozen-lockfile
169169
- name: Setup Bazel
170170
uses: angular/dev-infra/github-actions/bazel/setup@60ad70b4632945a3014cf26e045530f8ae2e6e18
171171
- name: Setup Bazel RBE
@@ -182,7 +182,7 @@ jobs:
182182
run: |
183183
./scripts/saucelabs/start-tunnel.sh &
184184
./scripts/saucelabs/wait-for-tunnel.sh
185-
yarn bazel test --config=saucelabs //tests/legacy-cli:e2e.saucelabs
185+
pnpm run bazel test --config=saucelabs //tests/legacy-cli:e2e.saucelabs
186186
./scripts/saucelabs/stop-tunnel.sh
187187
- uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
188188
if: ${{ failure() }}
@@ -199,9 +199,9 @@ jobs:
199199
- name: Initialize environment
200200
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@60ad70b4632945a3014cf26e045530f8ae2e6e18
201201
- name: Install node modules
202-
run: yarn install --immutable
202+
run: pnpm install --frozen-lockfile
203203
- name: Setup Bazel
204204
uses: angular/dev-infra/github-actions/bazel/setup@60ad70b4632945a3014cf26e045530f8ae2e6e18
205-
- run: yarn admin snapshots --verbose
205+
- run: pnpm run admin snapshots --verbose
206206
env:
207207
SNAPSHOT_BUILDS_GITHUB_TOKEN: ${{ secrets.SNAPSHOT_BUILDS_GITHUB_TOKEN }}

.github/workflows/perf.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ jobs:
2525
- name: Initialize environment
2626
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@60ad70b4632945a3014cf26e045530f8ae2e6e18
2727
- name: Install node modules
28-
run: yarn install --immutable
28+
run: pnpm install --frozen-lockfile
2929
- id: workflows
30-
run: echo "workflows=$(yarn ng-dev perf workflows --list)" >> "$GITHUB_OUTPUT"
30+
run: echo "workflows=$(pnpm run --silent ng-dev perf workflows --list)" >> "$GITHUB_OUTPUT"
3131

3232
workflow:
3333
timeout-minutes: 30
@@ -42,7 +42,7 @@ jobs:
4242
- name: Setup Bazel
4343
uses: angular/dev-infra/github-actions/bazel/setup@60ad70b4632945a3014cf26e045530f8ae2e6e18
4444
- name: Install node modules
45-
run: yarn install --immutable
45+
run: pnpm install --frozen-lockfile
4646
# We utilize the google-github-actions/auth action to allow us to get an active credential using workflow
4747
# identity federation. This allows us to request short lived credentials on demand, rather than storing
4848
# credentials in secrets long term. More information can be found at:
@@ -52,4 +52,4 @@ jobs:
5252
project_id: 'internal-200822'
5353
workload_identity_provider: 'projects/823469418460/locations/global/workloadIdentityPools/measurables-tracking/providers/angular'
5454
service_account: '[email protected]'
55-
- run: yarn ng-dev perf workflows --name ${{ matrix.workflow }} --commit-sha ${{github.sha}}
55+
- run: pnpm run ng-dev perf workflows --name ${{ matrix.workflow }} --commit-sha ${{github.sha}}

.github/workflows/pr.yml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -41,30 +41,30 @@ jobs:
4141
path: .eslintcache
4242
key: ${{ runner.os }}-${{ hashFiles('.eslintrc.json') }}
4343
- name: Install node modules
44-
run: yarn install --immutable
44+
run: pnpm install --frozen-lockfile
4545
- name: Generate JSON schema types
4646
# Schema types are required to correctly lint the TypeScript code
47-
run: yarn admin build-schema
47+
run: pnpm run admin build-schema
4848
- name: Run ESLint
49-
run: yarn lint --cache-strategy content
49+
run: pnpm run lint --cache-strategy content
5050
- name: Validate NgBot Configuration
51-
run: yarn ng-dev ngbot verify
51+
run: pnpm run ng-dev ngbot verify
5252
- name: Validate Circular Dependencies
53-
run: yarn ts-circular-deps check
53+
run: pnpm run ts-circular-deps check
5454
- name: Run Validation
55-
run: yarn admin validate
55+
run: pnpm run admin validate
5656
- name: Check Package Licenses
5757
uses: angular/dev-infra/github-actions/linting/licenses@60ad70b4632945a3014cf26e045530f8ae2e6e18
5858
- name: Check tooling setup
59-
run: yarn check-tooling-setup
59+
run: pnpm run check-tooling-setup
6060
- name: Check commit message
6161
# Commit message validation is only done on pull requests as its too late to validate once
6262
# it has been merged.
63-
run: yarn ng-dev commit-message validate-range ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }}
63+
run: pnpm run ng-dev commit-message validate-range ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }}
6464
- name: Check code format
6565
# Code formatting checks are only done on pull requests as its too late to validate once
6666
# it has been merged.
67-
run: yarn ng-dev format changed --check ${{ github.event.pull_request.base.sha }}
67+
run: pnpm run ng-dev format changed --check ${{ github.event.pull_request.base.sha }}
6868

6969
build:
7070
runs-on: ubuntu-latest
@@ -76,9 +76,9 @@ jobs:
7676
- name: Setup Bazel RBE
7777
uses: angular/dev-infra/github-actions/bazel/configure-remote@60ad70b4632945a3014cf26e045530f8ae2e6e18
7878
- name: Install node modules
79-
run: yarn install --immutable
79+
run: pnpm install --frozen-lockfile
8080
- name: Build release targets
81-
run: yarn ng-dev release build
81+
run: pnpm run ng-dev release build
8282
- name: Store PR release packages
8383
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
8484
with:
@@ -97,9 +97,9 @@ jobs:
9797
- name: Setup Bazel RBE
9898
uses: angular/dev-infra/github-actions/bazel/configure-remote@60ad70b4632945a3014cf26e045530f8ae2e6e18
9999
- name: Install node modules
100-
run: yarn install --immutable
100+
run: pnpm install --frozen-lockfile
101101
- name: Run module and package tests
102-
run: yarn bazel test //modules/... //packages/...
102+
run: pnpm run bazel test //modules/... //packages/...
103103
env:
104104
ASPECT_RULES_JS_FROZEN_PNPM_LOCK: '1'
105105

@@ -117,13 +117,13 @@ jobs:
117117
- name: Initialize environment
118118
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@60ad70b4632945a3014cf26e045530f8ae2e6e18
119119
- name: Install node modules
120-
run: yarn install --immutable
120+
run: pnpm install --frozen-lockfile
121121
- name: Setup Bazel
122122
uses: angular/dev-infra/github-actions/bazel/setup@60ad70b4632945a3014cf26e045530f8ae2e6e18
123123
- name: Setup Bazel RBE
124124
uses: angular/dev-infra/github-actions/bazel/configure-remote@60ad70b4632945a3014cf26e045530f8ae2e6e18
125125
- name: Run CLI E2E tests
126-
run: yarn bazel test --test_env=E2E_SHARD_TOTAL=6 --test_env=E2E_SHARD_INDEX=${{ matrix.shard }} --config=e2e //tests/legacy-cli:e2e.${{ matrix.subset }}_node${{ matrix.node }}
126+
run: pnpm run bazel test --test_env=E2E_SHARD_TOTAL=6 --test_env=E2E_SHARD_INDEX=${{ matrix.shard }} --config=e2e //tests/legacy-cli:e2e.${{ matrix.subset }}_node${{ matrix.node }}
127127

128128
e2e-windows-subset:
129129
needs: build
@@ -151,13 +151,13 @@ jobs:
151151
- name: Initialize environment
152152
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@60ad70b4632945a3014cf26e045530f8ae2e6e18
153153
- name: Install node modules
154-
run: yarn install --immutable
154+
run: pnpm install --frozen-lockfile
155155
- name: Setup Bazel
156156
uses: angular/dev-infra/github-actions/bazel/setup@60ad70b4632945a3014cf26e045530f8ae2e6e18
157157
- name: Setup Bazel RBE
158158
uses: angular/dev-infra/github-actions/bazel/configure-remote@60ad70b4632945a3014cf26e045530f8ae2e6e18
159159
- name: Run CLI E2E tests
160-
run: yarn bazel test --test_env=E2E_SHARD_TOTAL=3 --test_env=E2E_SHARD_INDEX=${{ matrix.shard }} --config=e2e //tests/legacy-cli:e2e.${{ matrix.subset }}_node${{ matrix.node }}
160+
run: pnpm run bazel test --test_env=E2E_SHARD_TOTAL=3 --test_env=E2E_SHARD_INDEX=${{ matrix.shard }} --config=e2e //tests/legacy-cli:e2e.${{ matrix.subset }}_node${{ matrix.node }}
161161

162162
e2e-snapshots:
163163
needs: [analyze, build]
@@ -174,10 +174,10 @@ jobs:
174174
- name: Initialize environment
175175
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@60ad70b4632945a3014cf26e045530f8ae2e6e18
176176
- name: Install node modules
177-
run: yarn install --immutable
177+
run: pnpm install --frozen-lockfile
178178
- name: Setup Bazel
179179
uses: angular/dev-infra/github-actions/bazel/setup@60ad70b4632945a3014cf26e045530f8ae2e6e18
180180
- name: Setup Bazel RBE
181181
uses: angular/dev-infra/github-actions/bazel/configure-remote@60ad70b4632945a3014cf26e045530f8ae2e6e18
182182
- name: Run CLI E2E tests
183-
run: yarn bazel test --test_env=E2E_SHARD_TOTAL=6 --test_env=E2E_SHARD_INDEX=${{ matrix.shard }} --config=e2e //tests/legacy-cli:e2e.snapshots.${{ matrix.subset }}_node${{ matrix.node }}
183+
run: pnpm run bazel test --test_env=E2E_SHARD_TOTAL=6 --test_env=E2E_SHARD_INDEX=${{ matrix.shard }} --config=e2e //tests/legacy-cli:e2e.snapshots.${{ matrix.subset }}_node${{ matrix.node }}

.gitignore

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,6 @@ test-project-host-*
44
dist/
55
dist-schema/
66

7-
# Yarn
8-
.yarn/*
9-
!.yarn/patches
10-
!.yarn/plugins
11-
!.yarn/releases
12-
!.yarn/sdks
13-
!.yarn/versions
14-
157
# IDEs
168
jsconfig.json
179

.husky/commit-msg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
yarn ng-dev commit-message pre-commit-validate --file $1;
1+
pnpm run ng-dev commit-message pre-commit-validate --file $1;

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
yarn ng-dev format staged;
1+
pnpm run ng-dev format staged;

.husky/prepare-commit-msg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
yarn ng-dev commit-message restore-commit-message-draft $1 $2;
1+
pnpm run ng-dev commit-message restore-commit-message-draft $1 $2;

0 commit comments

Comments
 (0)