Skip to content
This repository was archived by the owner on Nov 21, 2025. It is now read-only.

Commit 63c6418

Browse files
committed
build: change from yarn to pnpm as the package manager for the repo
1 parent 8886055 commit 63c6418

File tree

18 files changed

+44
-11603
lines changed

18 files changed

+44
-11603
lines changed

.bazelrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Release configuration
2-
build:release --workspace_status_command="yarn -s ng-dev release build-env-stamp --mode=release"
2+
build:release --workspace_status_command="pnpm --silent ng-dev release build-env-stamp --mode=release"
33
build:release --stamp
44

55
# ======================================================================================================================
@@ -44,7 +44,7 @@ test --nolegacy_external_runfiles
4444
# in Bazel 0.21.0 but turned off again in 0.22.0. Follow
4545
# https://github.com/bazelbuild/bazel/issues/7026 for more details.
4646
# This flag is needed to so that the bazel cache is not invalidated
47-
# when running bazel via `yarn bazel`.
47+
# when running bazel via `bazel`.
4848
# See https://github.com/angular/angular/issues/27514.
4949
build --incompatible_strict_action_env
5050
run --incompatible_strict_action_env

.circleci/config.yml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,7 @@ jobs:
1616
steps:
1717
- checkout
1818
- node/install-packages:
19-
pkg-manager: yarn
20-
- node/install-packages:
21-
app-dir: integration/project
22-
pkg-manager: yarn
23-
- node/install-packages:
24-
app-dir: integration/pre_apf_project
25-
pkg-manager: yarn
26-
- node/install-packages:
27-
app-dir: integration/pre_standalone_project
28-
pkg-manager: yarn
29-
- node/install-packages:
30-
app-dir: integration/workspace
31-
pkg-manager: yarn
19+
pkg-manager: pnpm
3220
- run: scripts/lint.sh
3321
- run: scripts/format.sh
3422
- run: scripts/build.sh << parameters.dependency_type >>

.github/workflows/node.js.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,10 @@ jobs:
2121
uses: actions/setup-node@v2
2222
with:
2323
node-version: 14.x
24-
- run: yarn install
25-
- run: yarn install --cwd integration/project
24+
- run: pnpm install
2625
- run: cd integration/project
2726
- run: scripts/build.sh package.json
28-
- run: xvfb-run -a yarn run test:e2e
27+
- run: xvfb-run -a pnpm run test:e2e
2928
if: runner.os == 'Linux'
30-
- run: yarn run test:e2e
29+
- run: pnpm run test:e2e
3130
if: runner.os != 'Linux'

.vscode/recommended-settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"tslint.enable": true,
44
"typescript.tsc.autoDetect": "off",
55
"typescript.preferences.quoteStyle": "single",
6-
"//format-on-save-comment": "Format ts files on save with `clang-format.executable`. If `clang-format.executable` is not being used, this setting should be removed. You can instead run `yarn format` to manually format your code.",
6+
"//format-on-save-comment": "Format ts files on save with `clang-format.executable`. If `clang-format.executable` is not being used, this setting should be removed. You can instead run `pnpm format` to manually format your code.",
77
"[typescript]": {
88
"editor.formatOnSave": true
99
},

DEVELOPER.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ The dependencies of the `server` need to be duplicated in the root [`package.jso
99
Therefore, if a new prod dependency is added to the server, it needs to be
1010
added to both [`package.json`](package.json) and [`server/package.json`](server/package.json).
1111

12-
Note that we do not install the dependencies in [`server`](server),
13-
hence there should not be a `yarn.lock` file.
14-
1512
## Navigating Projects in IDE
1613

1714
This repository contains multiple TypeScript projects, each with its own `tsconfig.json`.
@@ -20,7 +17,7 @@ As a result, some projects depend on the `.d.ts` output of their dependencies, l
2017
and `server` depend on `common`. In order to navigate the projects in your IDE,
2118
you need to first build them by running
2219
```shell
23-
yarn compile
20+
pnpm compile
2421
```
2522

2623
If you'd like to force a clean build, you can delete the existing build artifacts
@@ -34,7 +31,7 @@ by running
3431
This repository uses the [NPM distribution](https://www.npmjs.com/package/clang-format) of
3532
[`clang-format`](http://clang.llvm.org/docs/ClangFormat.html) to format source code.
3633

37-
Code is automatically formatted by running `yarn format`. You can also set up your IDE to format
34+
Code is automatically formatted by running `pnpm format`. You can also set up your IDE to format
3835
files on each save.
3936

4037
### VS Code

MODULE.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ npm.npm_translate_lock(
5656
5757
},
5858
verify_node_modules_ignored = "//:.bazelignore",
59-
yarn_lock = "//:yarn.lock",
6059
)
6160
use_repo(npm, "npm")
6261

client/yarn.lock

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

0 commit comments

Comments
 (0)