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

Commit 0e8c2d2

Browse files
committed
feat: add syncpack
1 parent dbbcdaa commit 0e8c2d2

File tree

4 files changed

+705
-2
lines changed

4 files changed

+705
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
pull_request:
9+
10+
jobs:
11+
syncpack:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
17+
- name: Install pnpm
18+
uses: pnpm/action-setup@v4
19+
20+
- name: Install Node.js
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: 22.14.0
24+
cache: "pnpm"
25+
26+
- name: Install dependencies
27+
run: pnpm install
28+
29+
- name: Run syncpack
30+
run: pnpm syncpack lint

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
{
2+
"devDependencies": {
3+
"syncpack": "13.0.2"
4+
},
25
"engines": {
36
"node": ">=22.14.0",
47
"pnpm": ">=10.6.1"
58
},
69
"packageManager": "pnpm@10.6.1+sha512.40ee09af407fa9fbb5fbfb8e1cb40fbb74c0af0c3e10e9224d7b53c7658528615b2c92450e74cfad91e3a2dcafe3ce4050d80bda71d757756d2ce2b66213e9a3",
710
"scripts": {
8-
"preinstall": "npx only-allow pnpm"
11+
"preinstall": "npx only-allow pnpm",
12+
"syncpack-fix-mismatches": "syncpack fix-mismatches",
13+
"syncpack-format": "syncpack format"
914
}
1015
}

0 commit comments

Comments
 (0)