forked from TanStack/query
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: switch from npm workspaces to pnpm
RELEASE_ALL * chore(pnpm): update lockfile * chore(pnpm): add pnpm * chore(pnpm): get rid of private:true which was only needed for yarn workspaces; also, remove the csb workaround, because it didn't work with private:true * chore(pnpm): switch to workspace:* dependencies because pnpm will replace them automatically during publish * chore(pnpm): use ^ dependencies for examples we will always get the latest version as there is no lockfile for them * chore(pnpm): update publish script to use pnpm this also means we don't need to update package.json at all because we use workspace dependencies now * chore(pnpm): devtools need react-error-boundary * chore(pnpm): replace lerna with pnpm * chore(pnpm): use pnpm to install in CI * chore(pnpm): fix install in ci * chore(pnpm): fix yml syntax * chore(pnpm): add jest-dom to react-query * chore(pnpm): add jest-dom to types * chore(pnpm): explicitly add jest-dom typings * chore(pnpm): revert jest-com changes * chore(pnpm): ok prettier, whatever * chore(pnpm): go to pnpm v7 * chore(pnpm): use stricter node version * chore(pnpm): oh boy * chore(pnpm): remove engines because codesandbox-ci has a different version * chore(pnpm): restore updating version in publish script * chore(pnpm): filter pnpm scripts and installs down to ./packages so that we exclude examples * chore(pnpm): remove filtering from installs as it doesn't install top-level dependencies; also, --frozen-lockfile is the default for CI environments
- Loading branch information
Showing
43 changed files
with
20,290 additions
and
71,015 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,15 +16,16 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: pnpm/[email protected] | ||
with: | ||
fetch-depth: '0' | ||
version: 7 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 16.14.2 | ||
registry-url: https://registry.npmjs.org/ | ||
cache: 'npm' | ||
cache: 'pnpm' | ||
- run: | | ||
npm i | ||
pnpm install | ||
git config --global user.name 'Tanner Linsley' | ||
git config --global user.email '[email protected]' | ||
npm run cipublish | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,21 +10,23 @@ jobs: | |
react: [17, 18] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: pnpm/[email protected] | ||
with: | ||
version: 7 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
cache: 'pnpm' | ||
- name: Install dependencies | ||
uses: bahmutov/npm-install@v1 | ||
with: | ||
install-command: npm install | ||
run: pnpm install | ||
- run: | | ||
npm run test:ci | ||
npm run test:size | ||
pnpm run test:ci | ||
pnpm run test:size | ||
if: matrix.react == '18' | ||
env: | ||
REACTJS_VERSION: ${{ matrix.react }} | ||
BUNDLEWATCH_GITHUB_TOKEN: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }} | ||
- run: npm run test:jest | ||
- run: pnpm run test:jest | ||
if: matrix.react == '17' | ||
env: | ||
REACTJS_VERSION: ${{ matrix.react }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.