Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

Commit daae318

Browse files
committed
build: update yarn to v4.4.0
1 parent f69f69e commit daae318

File tree

10 files changed

+18773
-13072
lines changed

10 files changed

+18773
-13072
lines changed

.aspect/rules/external_repository_action_cache/npm_translate_lock_LTE4Nzc1MDcwNjU=

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
# Input hashes for repository rule npm_translate_lock(name = "npm", pnpm_lock = "//:pnpm-lock.yaml").
33
# This file should be checked into version control along with the pnpm-lock.yaml file.
44
.npmrc=-1306950124
5-
pnpm-lock.yaml=-1501812944
6-
yarn.lock=-587809900
7-
package.json=-931066933
5+
pnpm-lock.yaml=1345633539
6+
yarn.lock=-2024993586
7+
package.json=-2093305059

.circleci/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ var_4: &save_cache
3333
var_5: &yarn_install
3434
run:
3535
name: 'Installing project dependencies'
36-
command: yarn install --frozen-lockfile --non-interactive
36+
command: yarn install --immutable
3737
no_output_timeout: 20m
3838

3939
# https://circleci.com/docs/2.0/workflows/#using-workspaces-to-share-data-among-jobs

.github/workflows/pr.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Initialize environment
2626
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@db91da4e742cd081bfba01db2edc4e816018419b
2727
- name: Install node modules
28-
run: yarn install
28+
run: yarn install --immutable
2929
- name: Execute Linting
3030
run: yarn bazel test --test_tag_filters=lint //...
3131

@@ -35,7 +35,7 @@ jobs:
3535
- name: Initialize environment
3636
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@db91da4e742cd081bfba01db2edc4e816018419b
3737
- name: Install node modules
38-
run: yarn install
38+
run: yarn install --immutable
3939
- name: Execute Build
4040
run: yarn bazel build //...
4141

@@ -45,7 +45,7 @@ jobs:
4545
- name: Initialize environment
4646
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@db91da4e742cd081bfba01db2edc4e816018419b
4747
- name: Install node modules
48-
run: yarn install
48+
run: yarn install --immutable
4949
- name: Execute Tests
5050
run: yarn bazel test --test_tag_filters=-lint,-e2e,-audit //...
5151
- name: Store Test Logs
@@ -61,7 +61,7 @@ jobs:
6161
- name: Initialize environment
6262
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@db91da4e742cd081bfba01db2edc4e816018419b
6363
- name: Install node modules
64-
run: yarn install
64+
run: yarn install --immutable
6565
- name: Execute Lighthouse Audit
6666
run: yarn bazel test --test_tag_filters=audit //...
6767
- name: Store Audit Logs

.gitignore

+8
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@
1313
# dependencies
1414
/node_modules
1515

16+
# Yarn
17+
.yarn/*
18+
!.yarn/patches
19+
!.yarn/plugins
20+
!.yarn/releases
21+
!.yarn/sdks
22+
!.yarn/versions
23+
1624
# profiling files
1725
chrome-profiler-events*.json
1826
speed-measure-plugin*.json

.yarn/releases/yarn-4.4.0.cjs

+925
Large diffs are not rendered by default.

.yarnrc.yml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
nodeLinker: node-modules
2+
3+
yarnPath: .yarn/releases/yarn-4.4.0.cjs

package.json

+7-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "material-angular-io",
33
"version": "0.0.0",
44
"license": "MIT",
5-
"angular-cli": {},
5+
"private": true,
66
"scripts": {
77
"ng": "ng",
88
"start": "ng serve",
@@ -18,7 +18,6 @@
1818
"build:content": "yarn upgrade @angular/components-examples",
1919
"build:sm": "ng build --configuration production --source-map",
2020
"prod-build": "ng build --configuration production",
21-
"preinstall": "node ./tools/npm/check-npm.js",
2221
"publish-prod": "bash ./tools/deploy.sh stable prod",
2322
"publish-dev": "bash ./tools/deploy.sh",
2423
"publish-beta": "bash ./tools/deploy.sh stable beta",
@@ -28,7 +27,10 @@
2827
"test:audit:bazel": "node tools/audit-docs $(bazel cquery --output=files //:build.production)",
2928
"test:audit:ci": "node tools/audit-docs ../dist/material-angular-io"
3029
},
31-
"private": true,
30+
"engines": {
31+
"node": "^18.19.1 || ^20.11.1 || >=22.0.0",
32+
"npm": "Please use yarn instead of NPM to install dependencies"
33+
},
3234
"dependencies": {
3335
"@angular/animations": "^18.2.0",
3436
"@angular/cdk": "^18.2.0",
@@ -99,5 +101,6 @@
99101
"shelljs": "^0.8.4",
100102
"ts-node": "^8.10.2",
101103
"typescript": "~5.5.2"
102-
}
104+
},
105+
"packageManager": "[email protected]"
103106
}

pnpm-lock.yaml

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/npm/check-npm.js

-13
This file was deleted.

0 commit comments

Comments
 (0)