Skip to content

Commit abe8dfa

Browse files
committed
chore: migrate to pnpm
1 parent 1dc5332 commit abe8dfa

10 files changed

Lines changed: 2701 additions & 4163 deletions

File tree

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
crowdin.yaml @FabricMC/developers
66
netlify.toml @FabricMC/developers
77
package.json @FabricMC/developers
8-
package-lock.json @FabricMC/developers
8+
pnpm-*.yaml @FabricMC/developers

.github/workflows/build.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ jobs:
2121
- uses: actions/setup-node@v4
2222
with:
2323
node-version-file: .nvmrc
24-
- run: npm ci
25-
- run: npm run build
24+
- uses: pnpm/action-setup@58e6119fe4f3092a76a7771efb55e04d25b6b26f
25+
with:
26+
run_install: true
27+
- run: pnpm build
2628
- if: github.event_name != 'pull_request'
2729
uses: actions/configure-pages@v4
2830
- if: github.event_name != 'pull_request'

.github/workflows/format.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ jobs:
2323
- uses: actions/setup-node@v4
2424
with:
2525
node-version-file: .nvmrc
26-
- run: npm ci
26+
- uses: pnpm/action-setup@58e6119fe4f3092a76a7771efb55e04d25b6b26f
27+
with:
28+
run_install: true
2729
- uses: FabricMCBot/markdownlint-cli2-action@b4c9feab76d8025d1e83c653fa3990936df0e6c8
2830
with:
2931
config: .markdownlint-cli2.yaml
@@ -42,7 +44,9 @@ jobs:
4244
- uses: actions/setup-node@v4
4345
with:
4446
node-version-file: .nvmrc
45-
- run: npm ci
47+
- uses: pnpm/action-setup@58e6119fe4f3092a76a7771efb55e04d25b6b26f
48+
with:
49+
run_install: true
4650
- run: npx prettier --write .
4751
- run: |
4852
readarray -d '' files < <(git ls-files --modified --others --exclude-standard -z)

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
.DS_Store
1111

1212
# Alternative Package Locks
13-
pnpm-lock.yaml
14-
pnpm-workspace.yaml
13+
package-lock.json
1514
yarn.lock
1615

1716
# LanguageTool Dictionaries and False Positives

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.vitepress/sidebars/versioned
2+
pnpm-lock.yaml
23
reference/*.*
34
reference/latest/src/main/generated
45
translated

contributing.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,20 +61,20 @@ git clone https://github.com/your-username/fabric-docs.git
6161

6262
#### Installing Dependencies {#install-dependencies}
6363

64-
If you want to preview your changes locally, you will need to install [Node.js 18+](https://nodejs.org/en/).
64+
If you want to preview your changes locally, you will need to install [Node.js 18+](https://nodejs.org/en/) and [pnpm](https://pnpm.io/).
6565

6666
After that, make sure to install all dependencies with:
6767

6868
```sh
69-
npm install
69+
pnpm install
7070
```
7171

7272
#### Running the Development Server {#run-the-development-server}
7373

7474
This will allow you to preview your changes locally at `localhost:5173` and will automatically reload the page when you make changes.
7575

7676
```sh
77-
npm run dev
77+
pnpm dev
7878
```
7979

8080
Now you can open and browse the website from the browser by visiting `http://localhost:5173`.
@@ -84,15 +84,15 @@ Now you can open and browse the website from the browser by visiting `http://loc
8484
This will compile all Markdown files into static HTML files and place them in `.vitepress/dist`:
8585

8686
```sh
87-
npm run build
87+
pnpm build
8888
```
8989

9090
#### Previewing the Built Website {#previewing-the-built-website}
9191

9292
This will start a local server on port `4173` serving the content found in `.vitepress/dist`:
9393

9494
```sh
95-
npm run preview
95+
pnpm preview
9696
```
9797

9898
#### Opening a Pull Request {#opening-a-pull-request}

0 commit comments

Comments
 (0)