build: migrate project to use pnpm

Signed-off-by: Alfi Maulana <alfi.maulana.f@gmail.com>
This commit is contained in:
Alfi Maulana 2025-03-15 22:28:25 +07:00
parent 7f678753cb
commit 2cb00640ed
No known key found for this signature in database
GPG Key ID: 2242A64C2A8DF5A4
9 changed files with 2377 additions and 3459 deletions

2
.gitattributes vendored
View File

@ -1,2 +1,2 @@
dist/** -diff linguist-generated
yarn.lock -diff linguist-generated
pnpm-lock.yaml -diff linguist-generated

View File

@ -17,11 +17,14 @@ jobs:
with:
node-version-file: .nvmrc
- name: Setup Yarn
uses: threeal/setup-yarn-action@v2.0.0
- name: Setup pnpm
uses: threeal/setup-pnpm-action@v1.0.0
- name: Install Dependencies
run: pnpm install
- name: Build Package
run: yarn build
run: pnpm build
- name: Check Diff
run: git diff && git diff-index --quiet --exit-code HEAD

View File

@ -17,14 +17,17 @@ jobs:
with:
node-version-file: .nvmrc
- name: Setup Yarn
uses: threeal/setup-yarn-action@v2.0.0
- name: Setup pnpm
uses: threeal/setup-pnpm-action@v1.0.0
- name: Install Dependencies
run: pnpm install
- name: Check Formatting
run: yarn format
run: pnpm format
- name: Check Diff
run: git diff && git diff-index --quiet --exit-code HEAD
- name: Check Lint
run: yarn lint
run: pnpm lint

View File

@ -17,11 +17,14 @@ jobs:
with:
node-version-file: .nvmrc
- name: Setup Yarn
uses: threeal/setup-yarn-action@v2.0.0
- name: Setup pnpm
uses: threeal/setup-pnpm-action@v1.0.0
- name: Install Dependencies
run: pnpm install
- name: Test Package
run: yarn test
run: pnpm test
test-action:
name: Test Action

1
.gitignore vendored
View File

@ -1,5 +1,6 @@
.*
!.git*
!.nvmrc
!.prettierignore
node_modules/

1
.prettierignore Normal file
View File

@ -0,0 +1 @@
pnpm-lock.yaml

View File

@ -25,5 +25,9 @@
"typescript-eslint": "^8.26.1",
"vitest": "^3.0.8"
},
"packageManager": "yarn@4.6.0"
"pnpm": {
"onlyBuiltDependencies": [
"esbuild"
]
}
}

2350
pnpm-lock.yaml generated Normal file

File diff suppressed because it is too large Load Diff

3447
yarn.lock

File diff suppressed because it is too large Load Diff