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

Commit 714ba28

Browse files
committed
Switch to pnpm & remove useless type definitions
1 parent 70f90ec commit 714ba28

File tree

11 files changed

+4416
-4214
lines changed

11 files changed

+4416
-4214
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
src/luogu-api-docs/
12
dist/
23
venv/

.github/workflows/node.js.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,26 @@ jobs:
3636
steps:
3737
- name: Check out repository code
3838
uses: actions/checkout@v3
39+
with:
40+
submodules: true
41+
- name: Setup pnpm
42+
uses: pnpm/action-setup@v2
43+
with:
44+
version: 7
3945
- name: Use Node.js ${{ matrix.node-version }}
4046
uses: actions/setup-node@v3
4147
with:
4248
node-version: ${{ matrix.node-version }}
43-
cache: 'yarn'
49+
cache: 'pnpm'
4450
- name: Install dependencies
4551
run: |
46-
yarn install --frozen-lockfile
47-
yarn global add codecov
52+
pnpm install
53+
pnpm add -g codecov
4854
- name: Build
49-
run: yarn build
55+
run: pnpm run build
5056
- name: Lint with ESLint
51-
run: yarn lint
57+
run: pnpm run lint
5258
- name: Test with Jest
5359
run: |
54-
yarn test --ci --coverage
60+
pnpm run test --ci --coverage
5561
codecov

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "luogu-api-docs"]
2+
path = src/luogu-api-docs
3+
url = ../../sjx233/luogu-api-docs

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
yarn lint
4+
pnpm run lint

package.json

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.0.1",
44
"description": "Back End of EXLG",
55
"main": "dist/index.js",
6-
"repository": "https://github.com/wxh06/exlg-backend.git",
6+
"repository": "https://github.com/extend-luogu/exlg-backend.git",
77
"author": "汪心禾 <[email protected]>",
88
"license": "MIT",
99
"private": false,
@@ -16,26 +16,25 @@
1616
},
1717
"dependencies": {
1818
"axios": "^0.26.1",
19-
"express": "^4.17.3",
20-
"nanoid": "^3.3.2",
21-
"redis": "^4.0.6",
19+
"express": "^4.18.1",
20+
"nanoid": "^3.3.4",
21+
"redis": "^4.1.0",
2222
"validate-color": "^2.2.1"
2323
},
2424
"devDependencies": {
2525
"@types/express": "^4.17.13",
26-
"@types/jest": "^27.4.1",
26+
"@types/jest": "^27.5.2",
2727
"@types/supertest": "^2.0.12",
28-
"@typescript-eslint/eslint-plugin": "^5.18.0",
29-
"@typescript-eslint/parser": "^5.18.0",
30-
"eslint": "^7.32.0 || ^8.2.0",
28+
"@typescript-eslint/eslint-plugin": "^5.27.1",
29+
"@typescript-eslint/parser": "^5.27.1",
30+
"eslint": "^8.17.0",
3131
"eslint-config-airbnb-base": "^15.0.0",
3232
"eslint-config-airbnb-typescript": "^17.0.0",
33-
"eslint-plugin-import": "^2.25.2",
34-
"husky": "^7.0.0",
33+
"eslint-plugin-import": "^2.26.0",
34+
"husky": "^7.0.4",
3535
"jest": "^27.5.1",
36-
"luogu-api-docs": "sjx233/luogu-api-docs",
37-
"supertest": "^6.2.2",
38-
"ts-jest": "^27.1.4",
39-
"typescript": "^4.6.3"
36+
"supertest": "^6.2.3",
37+
"ts-jest": "^27.1.5",
38+
"typescript": "^4.7.3"
4039
}
4140
}

0 commit comments

Comments
 (0)