Skip to content

Commit 085ee48

Browse files
committed
fix: migrate package manager to pnpm
1 parent 39c8a2b commit 085ee48

11 files changed

Lines changed: 5152 additions & 3817 deletions

File tree

.github/workflows/adev-preview-build.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,12 @@ jobs:
2323
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2424
with:
2525
submodules: true
26+
- name: setup pnpm
27+
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # 4.1.0
2628
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
2729
with:
2830
node-version-file: '.node-version'
29-
cache: yarn
31+
cache: pnpm
3032
- uses: bazel-contrib/setup-bazel@e403ad507104847c3539436f64a9e9eecc73eeec # 0.8.5
3133
with:
3234
bazelisk-cache: true
@@ -43,8 +45,8 @@ jobs:
4345
4446
# CI supports colors but Bazel does not detect it.
4547
common --color=yes
46-
- run: yarn install
47-
- run: yarn build
48+
- run: pnpm install --frozen-lockfile
49+
- run: pnpm run build
4850
- uses: angular/dev-infra/github-actions/previews/pack-and-upload-artifact@01c8c16f830d02110c28640aea16f145a7937080
4951
with:
5052
workflow-artifact-name: 'adev-preview'

.github/workflows/adev-production-deploy.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@ jobs:
1515
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1616
with:
1717
submodules: true
18+
- name: setup pnpm
19+
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # 4.1.0
1820
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
1921
with:
2022
node-version-file: '.node-version'
21-
cache: yarn
23+
cache: pnpm
2224
- uses: bazel-contrib/setup-bazel@e403ad507104847c3539436f64a9e9eecc73eeec # 0.8.5
2325
with:
2426
bazelisk-cache: true
@@ -35,8 +37,8 @@ jobs:
3537
3638
# CI supports colors but Bazel does not detect it.
3739
common --color=yes
38-
- run: yarn install
39-
- run: yarn build
40+
- run: pnpm install --frozen-lockfile
41+
- run: pnpm run build
4042
- name: Deploy to Firebase Hosting
4143
uses: FirebaseExtended/action-hosting-deploy@0cbcac4740c2bfb00d632f0b863b57713124eb5a # v0.9.0
4244
with:

.github/workflows/ci.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,30 +12,34 @@ jobs:
1212
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1313
with:
1414
submodules: true
15+
- name: setup pnpm
16+
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # 4.1.0
1517
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
1618
with:
1719
node-version-file: '.node-version'
18-
cache: yarn
19-
- run: yarn install
20-
- run: yarn lint
21-
- run: yarn test
20+
cache: pnpm
21+
- run: pnpm install
22+
- run: pnpm run lint
23+
- run: pnpm run test
2224
build-ubuntu:
2325
runs-on: ubuntu-latest
2426
steps:
2527
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2628
with:
2729
submodules: true
30+
- name: setup pnpm
31+
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # 4.1.0
2832
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
2933
with:
3034
node-version-file: '.node-version'
31-
cache: yarn
35+
cache: pnpm
3236
- uses: bazel-contrib/setup-bazel@0.15.0 # 0.15.0
3337
with:
3438
bazelisk-cache: true
3539
disk-cache: true
3640
repository-cache: true
37-
- run: yarn install
38-
- run: yarn build
41+
- run: pnpm install
42+
- run: pnpm run build
3943
# build-windows:
4044
# runs-on: windows-latest
4145
# steps:

CONTRIBUTING.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,16 @@ $ git clone git@github.com:angular/angular-ja.git
5050
このリポジトリではsubmoduleを使って翻訳元リポジトリと統合しています。初回のビルド時にsubmoduleの同期やビルドディレクトリの初期化が行われます。15分ほどかかることがあるため、気長にお待ちください。
5151

5252
```
53-
$ yarn install
54-
$ yarn build
53+
$ pnpm install
54+
$ pnpm build
5555
```
5656

5757
### 開発用サーバーを使った作業
5858

5959
開発用ローカルサーバーを起動すると、ビルド結果を確認しながら翻訳作業ができます。
6060

6161
```
62-
$ yarn start
62+
$ pnpm start
6363
```
6464

6565
- デフォルトでは `http://localhost:4200` でサーバーが立ち上がります
@@ -68,15 +68,15 @@ $ yarn start
6868
`start` コマンドでは、翻訳用にパッチが適用されたアプリケーションコードを含む `build` ディレクトリを初期化せずに再利用します。初期化して開始したい場合は、 `--init` オプションを指定してください。
6969

7070
```
71-
$ yarn start --init
71+
$ pnpm start --init
7272
```
7373

7474
### 文体チェック・自動修正
7575

7676
textlintを使って文体チェックを行うことができます。次のコマンドで文体チェックを行い、自動修正を行うことができます。
7777

7878
```
79-
$ yarn lint [--fix]
79+
$ pnpm lint [--fix]
8080
```
8181

8282

@@ -85,7 +85,7 @@ $ yarn lint [--fix]
8585
次のコマンドでデプロイ可能な生成物をビルドします。
8686

8787
```
88-
$ yarn build
88+
$ pnpm build
8989
```
9090

9191
ビルドが完了すると、 `build/dist/bin/adev/build` ディレクトリにビルド結果が出力されます。

UPDATE_ORIGIN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ GitHub上で `angular/angular` リポジトリのコミットハッシュを入
1717
1で入手したコミットハッシュを指定して、`angular/angular` リポジトリを更新します。
1818

1919
```sh
20-
$ yarn update-origin <commit-hash>
20+
$ pnpm update-origin <commit-hash>
2121
```
2222

2323
コミットハッシュを指定しない場合は、originの更新は行わず、現在のsubmoduleからファイルのコピーを再度実行します。

docs/TRANSLATION_WITH_AI.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
AI翻訳スクリプトの実装は `tools/translator` に配置されています。AI翻訳は以下の手順で実行します。
88

99
```
10-
$ yarn translate <翻訳元ファイル・ディレクトリ> [--write]
10+
$ pnpm translate <翻訳元ファイル・ディレクトリ> [--write]
1111
```
1212

1313
`--write` オプションを指定すると、確認なしに翻訳結果をファイルに書き出します。指定しない場合は、翻訳結果が標準出力に表示されたうえで、保存するかどうかを確認します。
1414

1515
例えば、以下のように実行します。
1616

1717
```
18-
$ yarn translate adev-ja/src/content/guide/components/content-projection.en.md
18+
$ pnpm translate adev-ja/src/content/guide/components/content-projection.en.md
1919
```
2020

2121
入力されたファイルが `*.en.md` である場合、出力されるファイルは `*.md` になります。すでにファイルがある場合は上書きされます。翻訳元ファイルが `*.md` である場合、出力は同じファイルになります。

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "angular-ja",
33
"version": "0.0.1",
4-
"main": "index.js",
4+
"type": "module",
55
"repository": "https://github.com/angular/angular-ja",
66
"author": "Suguru Inatomi <suguru.inatomi@gmail.com>",
77
"license": "MIT",
@@ -10,12 +10,12 @@
1010
"start": "tsx tools/watch.ts",
1111
"build": "tsx tools/build.ts",
1212
"lint": "tsx tools/lint.ts",
13-
"test": "yarn test:patch",
13+
"test": "pnpm run test:patch",
1414
"test:patch": "git apply -v --check --directory origin ./tools/adev-patches/*.patch",
1515
"update-origin": "tsx tools/update-origin.ts",
1616
"translate": "tsx --env-file=.env tools/translator/main.ts"
1717
},
18-
"packageManager": "yarn@1.22.10",
18+
"packageManager": "pnpm@10.15.0",
1919
"devDependencies": {
2020
"@langchain/core": "0.3.58",
2121
"@langchain/google-genai": "0.2.12",

0 commit comments

Comments
 (0)