Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: use pnpm catalog feature to dedupe examples' deps #179

Merged
merged 3 commits into from
Oct 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,22 @@ jobs:
node-version: [22.x]

steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Checkout code
uses: actions/checkout@v3

- name: Install pnpm
uses: pnpm/[email protected]
with:
version: 9
- name: Install pnpm
uses: pnpm/[email protected]
with:
version: 9.12.2

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"

- name: Install dependencies
run: pnpm install
- name: Install dependencies
run: pnpm install

- name: Run tests
run: pnpm test
- name: Run tests
run: pnpm test
6 changes: 3 additions & 3 deletions examples/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"devDependencies": {
"vite": "^5.4.8",
"vite": "catalog:",
"zx": "^7.2.3"
},
"scripts": {
"test:all": "zx run-all-tests.mjs"
},
"dependencies": {
"fastify": "5.0.0"
"fastify": "catalog:"
}
}
}
10 changes: 5 additions & 5 deletions examples/react-hydration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
},
"dependencies": {
"@fastify/vite": "workspace:^",
"devalue": "^4.3.3",
"fastify": "5.0.0",
"devalue": "catalog:",
"fastify": "catalog:",
"jotai": "^2.9.3",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react": "catalog:",
"react-dom": "catalog:",
"react-router-dom": "^6.26.2"
},
"devDependencies": {
Expand All @@ -30,6 +30,6 @@
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.6.0",
"eslint-plugin-react": "^7.35.2",
"vite": "^5.4.4"
"vite": "catalog:"
}
}
10 changes: 5 additions & 5 deletions examples/react-next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
},
"dependencies": {
"@fastify/vite": "workspace:^",
"devalue": "^4.3.3",
"fastify": "5.0.0",
"devalue": "catalog:",
"fastify": "catalog:",
"jotai": "^2.9.3",
"ky": "^0.33.3",
"ky-universal": "^0.11.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react": "catalog:",
"react-dom": "catalog:",
"react-router-dom": "^6.26.2",
"undici": "^5.28.4"
},
Expand All @@ -33,6 +33,6 @@
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.6.0",
"eslint-plugin-react": "^7.35.2",
"vite": "^5.4.4"
"vite": "catalog:"
}
}
10 changes: 5 additions & 5 deletions examples/react-streaming/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
},
"dependencies": {
"@fastify/vite": "workspace:^",
"devalue": "^4.3.3",
"fastify": "5.0.0",
"devalue": "catalog:",
"fastify": "catalog:",
"jotai": "^2.9.3",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react": "catalog:",
"react-dom": "catalog:",
"react-router-dom": "^6.26.2"
},
"devDependencies": {
Expand All @@ -30,6 +30,6 @@
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.6.0",
"eslint-plugin-react": "^7.35.2",
"vite": "^5.4.4"
"vite": "catalog:"
}
}
8 changes: 4 additions & 4 deletions examples/react-vanilla-spa/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
},
"dependencies": {
"@fastify/vite": "workspace:^",
"fastify": "5.0.0",
"react": "^18.3.1",
"react-dom": "^18.3.1"
"fastify": "catalog:",
"react": "catalog:",
"react-dom": "catalog:"
},
"devDependencies": {
"@babel/core": "^7.25.2",
Expand All @@ -25,6 +25,6 @@
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.6.0",
"eslint-plugin-react": "^7.35.2",
"vite": "^5.4.4"
"vite": "catalog:"
}
}
8 changes: 4 additions & 4 deletions examples/react-vanilla/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
},
"dependencies": {
"@fastify/vite": "workspace:^",
"fastify": "5.0.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"fastify": "catalog:",
"react": "catalog:",
"react-dom": "catalog:",
"ws": "^8.18.0"
},
"devDependencies": {
Expand All @@ -28,6 +28,6 @@
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.6.0",
"eslint-plugin-react": "^7.35.2",
"vite": "^5.4.4"
"vite": "catalog:"
}
}
8 changes: 4 additions & 4 deletions examples/solid-hydration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"dependencies": {
"@fastify/vite": "workspace:^",
"@solidjs/router": "^0.9.1",
"devalue": "^4.3.3",
"fastify": "5.0.0",
"solid-js": "^1.8.22"
"devalue": "catalog:",
"fastify": "catalog:",
"solid-js": "catalog:"
},
"devDependencies": {
"@babel/core": "^7.25.2",
Expand All @@ -27,7 +27,7 @@
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.6.0",
"eslint-plugin-solid": "^0.9.4",
"vite": "^5.4.4",
"vite": "catalog:",
"vite-plugin-solid": "^2.10.2"
}
}
6 changes: 3 additions & 3 deletions examples/solid-vanilla/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
},
"dependencies": {
"@fastify/vite": "workspace:^",
"fastify": "5.0.0",
"solid-js": "^1.8.22"
"fastify": "catalog:",
"solid-js": "catalog:"
},
"devDependencies": {
"@babel/core": "^7.25.2",
Expand All @@ -25,7 +25,7 @@
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.6.0",
"eslint-plugin-solid": "^0.9.4",
"vite": "^5.4.4",
"vite": "catalog:",
"vite-plugin-solid": "^2.10.2"
}
}
6 changes: 3 additions & 3 deletions examples/svelte-hydration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
},
"dependencies": {
"@fastify/vite": "workspace:^",
"devalue": "^4.3.3",
"fastify": "5.0.0",
"devalue": "catalog:",
"fastify": "catalog:",
"svelte": "^4.2.19",
"svelte-navigator": "^3.2.2"
},
Expand All @@ -27,6 +27,6 @@
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.6.0",
"eslint-plugin-svelte": "^2.43.0",
"vite": "^5.4.4"
"vite": "catalog:"
}
}
4 changes: 2 additions & 2 deletions examples/svelte-vanilla/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"dependencies": {
"@sveltejs/vite-plugin-svelte": "^2.5.3",
"fastify": "5.0.0",
"fastify": "catalog:",
"svelte": "^4.2.19"
},
"devDependencies": {
Expand All @@ -25,6 +25,6 @@
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.6.0",
"eslint-plugin-svelte": "^2.43.0",
"vite": "^5.4.4"
"vite": "catalog:"
}
}
4 changes: 2 additions & 2 deletions examples/typescript-vanilla/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
},
"dependencies": {
"@fastify/vite": "workspace:^",
"fastify": "^5.0.0"
"fastify": "catalog:"
},
"devDependencies": {
"@biomejs/biome": "^1.5.3",
"@types/node": "^20.14.11",
"@vitejs/plugin-react": "^4.3.1",
"typescript": "^5.5.3",
"vite": "^5.3.4"
"vite": "catalog:"
}
}
10 changes: 5 additions & 5 deletions examples/vue-hydration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
"@fastify/one-line-logger": "^1.4.0",
"@fastify/vite": "workspace:^",
"@vue/server-renderer": "^3.5.4",
"devalue": "^4.3.3",
"fastify": "5.0.0",
"vue": "^3.5.4",
"vue-router": "^4.4.4"
"devalue": "catalog:",
"fastify": "catalog:",
"vue": "catalog:",
"vue-router": "catalog:"
},
"devDependencies": {
"@babel/core": "^7.25.2",
Expand All @@ -29,6 +29,6 @@
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.6.0",
"eslint-plugin-vue": "^9.28.0",
"vite": "^5.4.4"
"vite": "catalog:"
}
}
10 changes: 5 additions & 5 deletions examples/vue-next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
"dependencies": {
"@fastify/vite": "workspace:^",
"@vue/server-renderer": "^3.5.4",
"devalue": "^4.3.3",
"fastify": "5.0.0",
"devalue": "catalog:",
"fastify": "catalog:",
"ky": "^0.33.3",
"ky-universal": "^0.11.0",
"vue": "^3.5.4",
"vue-router": "^4.4.4"
"vue": "catalog:",
"vue-router": "catalog:"
},
"devDependencies": {
"@babel/core": "^7.25.2",
Expand All @@ -30,6 +30,6 @@
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.6.0",
"eslint-plugin-vue": "^9.28.0",
"vite": "^5.4.4"
"vite": "catalog:"
}
}
10 changes: 5 additions & 5 deletions examples/vue-streaming/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
},
"dependencies": {
"@fastify/vite": "workspace:^",
"devalue": "^4.3.3",
"fastify": "5.0.0",
"vue": "^3.5.4",
"vue-router": "^4.4.4"
"devalue": "catalog:",
"fastify": "catalog:",
"vue": "catalog:",
"vue-router": "catalog:"
},
"devDependencies": {
"@babel/core": "^7.25.2",
Expand All @@ -27,6 +27,6 @@
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.6.0",
"eslint-plugin-vue": "^9.28.0",
"vite": "^5.4.4"
"vite": "catalog:"
}
}
8 changes: 4 additions & 4 deletions examples/vue-vanilla-spa/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
},
"dependencies": {
"@fastify/vite": "workspace:^",
"fastify": "5.0.0",
"react": "^18.3.1",
"react-dom": "^18.3.1"
"fastify": "catalog:",
"react": "catalog:",
"react-dom": "catalog:"
},
"devDependencies": {
"@vitejs/plugin-vue": "^5.1.4",
"vite": "^5.4.4"
"vite": "catalog:"
}
}
6 changes: 3 additions & 3 deletions examples/vue-vanilla/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
},
"dependencies": {
"@fastify/vite": "workspace:^",
"fastify": "5.0.0",
"vue": "^3.5.4"
"fastify": "catalog:",
"vue": "catalog:"
},
"devDependencies": {
"@babel/core": "^7.25.2",
Expand All @@ -25,6 +25,6 @@
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.6.0",
"eslint-plugin-vue": "^9.28.0",
"vite": "^5.4.4"
"vite": "catalog:"
}
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@
"typescript"
]
}
}
},
"packageManager": "[email protected]"
}
Loading
Loading