Skip to content

Commit d3dcd9a

Browse files
authored
chore(FR-1524): add pnpm catalog for centralized dependency version management (#5477)
1 parent 2da2e68 commit d3dcd9a

7 files changed

Lines changed: 31789 additions & 130 deletions

File tree

package.json

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -43,24 +43,24 @@
4343
"winston": "^3.19.0"
4444
},
4545
"devDependencies": {
46-
"@babel/core": "^7.28.6",
46+
"@babel/core": "catalog:",
4747
"@babel/parser": "^7.28.6",
4848
"@babel/plugin-proposal-class-properties": "^7.18.6",
4949
"@babel/plugin-proposal-decorators": "^7.28.6",
5050
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
51-
"@babel/preset-typescript": "^7.28.5",
51+
"@babel/preset-typescript": "catalog:",
5252
"@babel/types": "^7.28.6",
5353
"@electron/packager": "^18.4.4",
54-
"@eslint/js": "^9.39.2",
55-
"@jest/expect": "30.0.5",
56-
"@jest/globals": "30.0.5",
54+
"@eslint/js": "catalog:",
55+
"@jest/expect": "catalog:",
56+
"@jest/globals": "catalog:",
5757
"@playwright/test": "^1.58.0",
58-
"@trivago/prettier-plugin-sort-imports": "^6.0.2",
58+
"@trivago/prettier-plugin-sort-imports": "catalog:",
5959
"@types/estree": "1.0.5",
6060
"@types/hammerjs": "^2.0.46",
61-
"@types/jest": "^30.0.0",
62-
"@types/lodash": "^4.17.23",
63-
"@types/node": "^22.19.7",
61+
"@types/jest": "catalog:",
62+
"@types/lodash": "catalog:",
63+
"@types/node": "catalog:",
6464
"@typescript-eslint/eslint-plugin": "^7.18.0",
6565
"@typescript-eslint/parser": "^7.18.0",
6666
"@yao-pkg/pkg": "^6.12.0",
@@ -71,28 +71,28 @@
7171
"cors": "^2.8.6",
7272
"crypto-es": "^2.1.0",
7373
"electron": "^35.7.5",
74-
"eslint": "^9.18.0",
74+
"eslint": "catalog:",
7575
"eslint-config-bai": "workspace:*",
7676
"eslint-config-google": "^0.14.0",
7777
"eslint-config-prettier": "^9.1.2",
78-
"eslint-plugin-json-schema-validator": "^5.5.1",
78+
"eslint-plugin-json-schema-validator": "catalog:",
7979
"eslint-plugin-prettier": "^5.5.5",
8080
"express": "^4.22.1",
81-
"globals": "^16.5.0",
81+
"globals": "catalog:",
8282
"husky": "^9.1.7",
8383
"i18next-scanner": "^4.6.0",
84-
"jest": "^30.2.0",
85-
"jsonc-eslint-parser": "^2.4.2",
84+
"jest": "catalog:",
85+
"jsonc-eslint-parser": "catalog:",
8686
"lint-staged": "^15.5.2",
87-
"lodash": "^4.17.21",
88-
"prettier": "^3.8.1",
89-
"prettier-plugin-sort-json": "^4.2.0",
90-
"relay-compiler": "^20.1.1",
87+
"lodash": "catalog:",
88+
"prettier": "catalog:",
89+
"prettier-plugin-sort-json": "catalog:",
90+
"relay-compiler": "catalog:",
9191
"serve": "^14.2.5",
92-
"ts-jest": "^29.4.6",
92+
"ts-jest": "catalog:",
9393
"tslib": "^2.8.1",
9494
"typescript": "~5.5.4",
95-
"webpack": "^5.104.1",
95+
"webpack": "catalog:",
9696
"webpack-cli": "^6.0.1",
9797
"workbox-expiration": "^7.4.0",
9898
"workbox-routing": "^7.4.0",

packages/backend.ai-ui/package.json

Lines changed: 50 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -44,76 +44,76 @@
4444
"prepublishOnly": "pnpm lint && pnpm test && pnpm build"
4545
},
4646
"peerDependencies": {
47-
"@ant-design/icons": "^6.1.0",
48-
"@tanstack/react-query": "^5.90.19",
49-
"ahooks": "^3.9.6",
50-
"antd": "^6.2.1",
51-
"antd-style": "^3.7.1",
52-
"graphql": "^16.12.0",
53-
"i18next": "^25.8.0",
54-
"react": "^19.2.3",
55-
"react-dom": "^19.2.3",
56-
"react-i18next": "^16.5.3",
57-
"react-relay": "^20.1.1",
58-
"react-router-dom": "^6.30.3",
59-
"relay-runtime": "^20.1.1"
47+
"@ant-design/icons": "catalog:",
48+
"@tanstack/react-query": "catalog:",
49+
"ahooks": "catalog:",
50+
"antd": "catalog:",
51+
"antd-style": "catalog:",
52+
"graphql": "catalog:",
53+
"i18next": "catalog:",
54+
"react": "catalog:",
55+
"react-dom": "catalog:",
56+
"react-i18next": "catalog:",
57+
"react-relay": "catalog:",
58+
"react-router-dom": "catalog:",
59+
"relay-runtime": "catalog:"
6060
},
6161
"dependencies": {
6262
"@dnd-kit/core": "^6.3.1",
6363
"@dnd-kit/modifiers": "^9.0.0",
6464
"@dnd-kit/sortable": "^10.0.0",
6565
"@dnd-kit/utilities": "^3.2.2",
66-
"big.js": "^7.0.1",
67-
"classnames": "^2.5.1",
68-
"dayjs": "^1.11.19",
69-
"lodash": "^4.17.23",
70-
"lucide-react": "^0.552.0",
71-
"react-copy-to-clipboard": "^5.1.0",
66+
"big.js": "catalog:",
67+
"classnames": "catalog:",
68+
"dayjs": "catalog:",
69+
"lodash": "catalog:",
70+
"lucide-react": "catalog:",
71+
"react-copy-to-clipboard": "catalog:",
7272
"react-draggable": "^4.5.0",
7373
"react-error-boundary": "^6.1.0",
7474
"react-resizable": "^3.1.3"
7575
},
7676
"devDependencies": {
77-
"@eslint/js": "^9.18.0",
78-
"@jest/expect": "30.2.0",
79-
"@jest/globals": "30.2.0",
77+
"eslint-config-bai": "workspace:*",
78+
"@eslint/js": "catalog:",
79+
"@jest/expect": "catalog:",
80+
"@jest/globals": "catalog:",
8081
"@storybook/addon-docs": "^10.1.11",
8182
"@storybook/addon-onboarding": "^10.1.11",
8283
"@storybook/react-vite": "^10.1.11",
83-
"@testing-library/jest-dom": "^6.9.1",
84-
"@testing-library/react": "^16.3.2",
85-
"@testing-library/user-event": "^14.6.1",
86-
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
87-
"@types/big.js": "^6.2.2",
88-
"@types/lodash": "^4.17.23",
89-
"@types/react": "^19.2.9",
90-
"@types/react-copy-to-clipboard": "^5.0.7",
91-
"@types/react-dom": "^19.2.3",
92-
"@types/react-relay": "^18.2.1",
84+
"@testing-library/jest-dom": "catalog:",
85+
"@testing-library/react": "catalog:",
86+
"@testing-library/user-event": "catalog:",
87+
"@trivago/prettier-plugin-sort-imports": "catalog:",
88+
"@types/big.js": "catalog:",
89+
"@types/lodash": "catalog:",
90+
"@types/react": "catalog:",
91+
"@types/react-copy-to-clipboard": "catalog:",
92+
"@types/react-dom": "catalog:",
93+
"@types/react-relay": "catalog:",
9394
"@types/react-resizable": "^3.0.8",
94-
"@types/relay-runtime": "^19.0.3",
95-
"@types/relay-test-utils": "^19.0.0",
95+
"@types/relay-runtime": "catalog:",
96+
"@types/relay-test-utils": "catalog:",
9697
"@vitejs/plugin-react": "^4.7.0",
9798
"@vueless/storybook-dark-mode": "^10.0.6",
98-
"babel-jest": "^30.2.0",
99-
"babel-plugin-react-compiler": "^1.0.0",
100-
"eslint": "^9.18.0",
101-
"eslint-config-bai": "workspace:*",
102-
"eslint-plugin-import": "^2.31.0",
103-
"eslint-plugin-react": "^7.37.5",
104-
"eslint-plugin-react-hooks": "^7.0.1",
105-
"eslint-plugin-json-schema-validator": "^5.5.1",
99+
"babel-jest": "catalog:",
100+
"babel-plugin-react-compiler": "catalog:",
101+
"eslint": "catalog:",
102+
"eslint-plugin-import": "catalog:",
103+
"eslint-plugin-react": "catalog:",
104+
"eslint-plugin-react-hooks": "catalog:",
105+
"eslint-plugin-json-schema-validator": "catalog:",
106106
"eslint-plugin-storybook": "^10.1.11",
107-
"globals": "^16.0.0",
108-
"jsonc-eslint-parser": "^2.4.2",
109-
"typescript-eslint": "^8.23.0",
107+
"globals": "catalog:",
108+
"jsonc-eslint-parser": "catalog:",
109+
"typescript-eslint": "catalog:",
110110
"fast-glob": "^3.3.3",
111-
"jest": "^29.7.0",
112-
"jest-environment-jsdom": "^29.7.0",
113-
"prettier-plugin-sort-json": "^4.2.0",
114-
"relay-test-utils": "^20.1.1",
111+
"jest": "catalog:",
112+
"jest-environment-jsdom": "catalog:",
113+
"prettier-plugin-sort-json": "catalog:",
114+
"relay-test-utils": "catalog:",
115115
"storybook": "^10.2.10",
116-
"ts-jest": "^29.4.6",
116+
"ts-jest": "catalog:",
117117
"typescript": "^5.9.3",
118118
"vite": "^6.4.1",
119119
"vite-plugin-dts": "^4.5.4",

packages/backend.ai-ui/src/components/BAICard.test.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ describe('BAICard', () => {
3131
<BAICard style={{ backgroundColor: 'red' }}>Content</BAICard>,
3232
);
3333
const card = container.querySelector('.ant-card');
34-
expect(card).toHaveStyle({ backgroundColor: 'red' });
34+
expect(card).toBeTruthy();
35+
expect(card?.getAttribute('style')).toContain('background-color: red');
3536
});
3637
});
3738

packages/eslint-config-bai/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
],
1313
"peerDependencies": {
1414
"eslint": "^9.0.0",
15-
"@eslint/js": "^9.18.0",
16-
"typescript-eslint": "^8.23.0",
17-
"eslint-plugin-react": "^7.37.5",
18-
"eslint-plugin-react-hooks": "^7.0.1",
19-
"eslint-plugin-import": "^2.31.0"
15+
"@eslint/js": "catalog:",
16+
"typescript-eslint": "catalog:",
17+
"eslint-plugin-react": "catalog:",
18+
"eslint-plugin-react-hooks": "catalog:",
19+
"eslint-plugin-import": "catalog:"
2020
}
2121
}

0 commit comments

Comments
 (0)