Skip to content

Commit 243aec6

Browse files
committed
chore(deps): upgrade to pnpm
1 parent 3b332f4 commit 243aec6

File tree

6 files changed

+6145
-5637
lines changed

6 files changed

+6145
-5637
lines changed

.github/workflows/lint.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Checkout
11-
uses: actions/checkout@v2.3.4
11+
uses: actions/checkout@v3
1212
- uses: dorny/paths-filter@v2
1313
id: filter
1414
with:
@@ -25,15 +25,19 @@ jobs:
2525
runs-on: ubuntu-latest
2626
steps:
2727
- name: Checkout
28-
uses: actions/checkout@v2.3.4
29-
- name: Setup Node 16.x
30-
uses: actions/setup-node@v2
28+
uses: actions/checkout@v3
29+
- name: Install pnpm
30+
uses: pnpm/action-setup@v2
3131
with:
32-
node-version: '16.x'
32+
version: 7
33+
- name: Setup Node.js
34+
uses: actions/setup-node@v3
35+
with:
36+
node-version: 18
3337
- name: Install dependencies
3438
working-directory: './WebUI'
35-
run: yarn install
39+
run: pnpm install --frozen-lockfile
3640
- name: Build
3741
working-directory: './WebUI'
3842
run: |
39-
yarn build
43+
pnpm build

.github/workflows/release.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,23 @@ jobs:
1919
runs-on: windows-latest
2020
steps:
2121
- name: Checkout
22-
uses: actions/checkout@v2.3.4
23-
- name: Setup Node 16.x
24-
uses: actions/setup-node@v2
22+
uses: actions/checkout@v3
23+
- name: Install pnpm
24+
uses: pnpm/action-setup@v2
2525
with:
26-
node-version: '16.x'
26+
version: 7
27+
- name: Setup Node.js
28+
uses: actions/setup-node@v3
29+
with:
30+
node-version: 18
2731
- name: Install dependencies
2832
working-directory: './WebUI'
29-
run: yarn install
33+
run: pnpm install --frozen-lockfile
3034
- name: Build
3135
working-directory: './WebUI'
3236
run: |
3337
$env:VERSION='${{ github.event.inputs.version }}'
34-
yarn build
38+
pnpm build
3539
- name: Upload WebUI Artifact
3640
uses: actions/upload-artifact@v2
3741
with:
@@ -43,7 +47,7 @@ jobs:
4347
runs-on: ubuntu-latest
4448
steps:
4549
- name: Checkout
46-
uses: actions/checkout@v2
50+
uses: actions/checkout@v3
4751
with:
4852
submodules: recursive
4953
- name: Rename Config .release files

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,11 @@ This will install the mod in the `Mods` folder and update your `modllist.txt` to
2121
Alternatively, the mod can be installed manually by downloading the zip file attached in each [release version](https://github.com/BF3RM/MapEditor/releases).
2222

2323
## Developer set-up
24-
- Install [nodejs](https://nodejs.org/en/).
25-
- Install [yarn](https://yarnpkg.com/).
24+
- Install [pnpm](https://pnpm.io/installation/).
2625
- Download MapEditor files and place them in ``.../Server/Admin/Mods``. Path should look like ``.../Server/Admin/Mods/MapEditor``.
2726
- Add ``mapeditor`` to your ``modlist.txt`` file.
28-
- Open cmd, cd to ``.../Server/Admin/Mods/MapEditor/WebUI`` and run yarn.
29-
- After all the dependencies are installed run ``yarn build``.
27+
- Open cmd, cd to ``.../Server/Admin/Mods/MapEditor/WebUI`` and run `pnpm i`.
28+
- After all the dependencies are installed run ``pnpm build``.
3029

3130
## Controls:
3231

WebUI/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,14 @@
4141
"prettier": "^2.7.1",
4242
"sass": "^1.53.0",
4343
"sass-loader": "^13.0.2",
44+
"tslib": "^2.4.1",
4445
"typescript": "^4.7.4",
4546
"vextpack": "^0.1.5",
4647
"vue-template-compiler": "^2.6.14",
4748
"webpack": "5.73.0"
4849
},
4950
"scripts": {
51+
"preinstall": "npx only-allow pnpm",
5052
"serve": "vue-cli-service serve --mode development",
5153
"build": "vue-cli-service build",
5254
"build_debug": "vue-cli-service build --mode development",

0 commit comments

Comments
 (0)