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: add engine field to limit pnpm version #1990

Merged
merged 8 commits into from
May 31, 2022
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 3 additions & 2 deletions .codesandbox/ci.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"buildCommand": "build",
"sandboxes": ["swr-basic-p7dg6", "swr-states-4une7", "swr-infinite-jb5bm", "swr-ssr-j9b2y"],
"node": "14"
"node": "16",
"installCommand": "csb:install",
"buildCommand": "csb:build"
}
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 14

- uses: pnpm/action-setup@v2.0.1
name: Install pnpm
Expand Down
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@
"homepage": "https://swr.vercel.app",
"license": "MIT",
"scripts": {
"csb:install": "pnpm i -g pnpm@7",
"csb:build": "pnpm install && pnpm build",
"clean": "turbo run clean",
"build": "turbo run build",
"watch": "turbo run watch --parallel",
Expand Down Expand Up @@ -142,6 +144,9 @@
"arrowParens": "avoid",
"trailingComma": "none"
},
"engines": {
"pnpm": "7"
huozhi marked this conversation as resolved.
Show resolved Hide resolved
},
"dependencies": {
"use-sync-external-store": "^1.1.0"
}
Expand Down