Skip to content

Commit

Permalink
chore: add engine field to limit pnpm version (#1990)
Browse files Browse the repository at this point in the history
* chore: add engine field to limit pnpm version

* update configs

* use node 16 for cbx ci

* switch to pnpm in csb

* force install pnpm 7

* Chore/add engine (#2004)

* chore: update csb config

* update

* stick install version

* rm node engine

Co-authored-by: Yixuan Xu <yixuanxu94@outlook.com>
  • Loading branch information
huozhi and promer94 committed May 31, 2022
1 parent bcc3932 commit 7aaf5be
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
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"
},
"dependencies": {
"use-sync-external-store": "^1.1.0"
}
Expand Down

0 comments on commit 7aaf5be

Please sign in to comment.