Skip to content

Commit

Permalink
Migrate to pnpm catalogs
Browse files Browse the repository at this point in the history
  • Loading branch information
mbeckem committed Sep 26, 2024
1 parent 4d19f46 commit c314e82
Show file tree
Hide file tree
Showing 19 changed files with 372 additions and 563 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/test-and-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ jobs:
- name: Install
uses: ./.github/actions/install

- name: Lint dependencies
run: pnpm lint-shared-versions

- name: Run tests
run: pnpm ci:test

Expand Down
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ if [ "$NO_VERIFY" ]; then
exit 0
fi

echo '--- checking for consistent dependencies across packages ---'
pnpm lint-shared-versions

echo '--- check code style ---'
pnpm exec lint-staged

Expand Down
51 changes: 0 additions & 51 deletions .syncpackrc.cjs

This file was deleted.

94 changes: 40 additions & 54 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
"prettier": "pnpm prettier:common -w",
"prettier:common": "prettier ./src ./docs --ignore-path .eslintignore --cache",
"test": "vitest",
"lint-shared-versions": "syncpack list-mismatches",
"update-shared-versions": "syncpack fix-mismatches",
"prepare": "husky",
"ci:test": "pnpm run clean && pnpm run lint && pnpm run check-types && vitest run",
"ci:version": "pnpm changeset version && pnpm exec prettier './src/**/CHANGELOG.md' --write --ignore-path .eslintignore && pnpm install",
Expand Down Expand Up @@ -65,60 +63,48 @@
}
}
},
"dependencies": {
"@chakra-ui/icons": "^2.1.1",
"@chakra-ui/react": "^2.8.2",
"@chakra-ui/system": "^2.6.2",
"@emotion/cache": "^11.13.0",
"@emotion/react": "^11.13.0",
"@emotion/styled": "^11.13.0",
"@formatjs/intl": "^2.10.4",
"framer-motion": ">=4.0.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-use": "^17.5.1"
},
"devDependencies": {
"@changesets/cli": "^2.27.1",
"@open-pioneer/build-package-cli": "^2.1.0",
"@open-pioneer/build-support": "^2.0.2",
"@changesets/cli": "catalog:",
"@open-pioneer/build-package-cli": "catalog:",
"@open-pioneer/build-support": "catalog:",
"@open-pioneer/runtime": "workspace:^",
"@open-pioneer/tag-current-versions": "^2.0.2",
"@open-pioneer/vite-plugin-pioneer": "^3.0.4",
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "^6.4.8",
"@testing-library/react": "^16.0.0",
"@testing-library/user-event": "^14.5.2",
"@types/js-yaml": "^4.0.9",
"@types/node": "^18.19.41",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@typescript-eslint/eslint-plugin": "^7.17.0",
"@typescript-eslint/parser": "^7.17.0",
"@vitejs/plugin-react-swc": "^3.7.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-header": "^3.1.1",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-react": "^7.35.0",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-unused-imports": "^3.2.0",
"fast-glob": "^3.3.2",
"handlebars": "^4.7.8",
"happy-dom": "^14.12.3",
"husky": "^9.1.1",
"js-yaml": "^4.1.0",
"lint-staged": "^15.2.7",
"prettier": "^3.3.3",
"rimraf": "^5.0.9",
"sass": "^1.77.8",
"syncpack": "12.3.0",
"typedoc": "^0.26.5",
"typescript": "~5.5.4",
"vite": "^5.3.4",
"vite-plugin-eslint": "^1.8.1",
"vitest": "^2.0.4"
"@open-pioneer/tag-current-versions": "catalog:",
"@open-pioneer/vite-plugin-pioneer": "catalog:",
"@testing-library/dom": "catalog:",
"@testing-library/jest-dom": "catalog:",
"@testing-library/react": "catalog:",
"@testing-library/user-event": "catalog:",
"@types/js-yaml": "catalog:",
"@types/node": "catalog:",
"@types/react": "catalog:",
"@types/react-dom": "catalog:",
"@typescript-eslint/eslint-plugin": "catalog:",
"@typescript-eslint/parser": "catalog:",
"@vitejs/plugin-react-swc": "catalog:",
"eslint": "catalog:",
"eslint-config-prettier": "catalog:",
"eslint-import-resolver-typescript": "catalog:",
"eslint-plugin-header": "catalog:",
"eslint-plugin-import": "catalog:",
"eslint-plugin-react": "catalog:",
"eslint-plugin-react-hooks": "catalog:",
"eslint-plugin-unused-imports": "catalog:",
"fast-glob": "catalog:",
"handlebars": "catalog:",
"happy-dom": "catalog:",
"husky": "catalog:",
"js-yaml": "catalog:",
"lint-staged": "catalog:",
"prettier": "catalog:",
"react": "catalog:",
"react-dom": "catalog:",
"rimraf": "catalog:",
"sass": "catalog:",
"typedoc": "catalog:",
"typescript": "catalog:",
"vite": "catalog:",
"vite-plugin-eslint": "catalog:",
"vitest": "catalog:"
},
"engines": {
"node": ">= 18",
Expand Down
Loading

0 comments on commit c314e82

Please sign in to comment.