Skip to content

Commit e6c7804

Browse files
committed
Create pnpm catalog for docs/mui-docs
1 parent f321e7d commit e6c7804

File tree

5 files changed

+54
-28
lines changed

5 files changed

+54
-28
lines changed

docs/next.config.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -259,15 +259,6 @@ export default withDocsInfra({
259259

260260
return map;
261261
},
262-
redirects: async () => {
263-
return [
264-
{
265-
source: '/base-ui/',
266-
destination: 'https://base-ui.com',
267-
permanent: true,
268-
},
269-
];
270-
},
271262
// Used to signal we run pnpm build
272263
...(process.env.NODE_ENV === 'production'
273264
? {
@@ -283,5 +274,14 @@ export default withDocsInfra({
283274
{ source: `/static/x/:rest*`, destination: 'http://0.0.0.0:3001/static/x/:rest*' },
284275
];
285276
},
277+
redirects: async () => {
278+
return [
279+
{
280+
source: '/base-ui/',
281+
destination: 'https://base-ui.com',
282+
permanent: true,
283+
},
284+
];
285+
},
286286
}),
287287
} satisfies NextConfig);

docs/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
"@babel/runtime": "^7.28.6",
2222
"@base-ui/react": "^1.2.0",
2323
"@docsearch/react": "^3.9.0",
24-
"@emotion/cache": "^11.14.0",
25-
"@emotion/react": "^11.14.0",
26-
"@emotion/server": "^11.11.0",
27-
"@emotion/styled": "^11.14.1",
24+
"@emotion/cache": "catalog:docs",
25+
"@emotion/react": "catalog:docs",
26+
"@emotion/server": "catalog:docs",
27+
"@emotion/styled": "catalog:docs",
2828
"@fortawesome/fontawesome-svg-core": "^6.7.2",
2929
"@fortawesome/free-solid-svg-icons": "^6.7.2",
3030
"@fortawesome/react-fontawesome": "^0.2.6",
@@ -99,7 +99,7 @@
9999
"react-window": "^2.2.7",
100100
"rimraf": "^6.1.3",
101101
"styled-components": "^6.3.11",
102-
"stylis": "4.2.0",
102+
"stylis": "catalog:docs",
103103
"use-count-up": "^3.0.1",
104104
"webpack-bundle-analyzer": "^5.2.0"
105105
},

packages/mui-docs/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"fg-loadcss": "^3.1.0",
3737
"nprogress": "^0.2.0",
3838
"prop-types": "^15.8.1",
39-
"stylis": "4.2.0"
39+
"stylis": "catalog:docs"
4040
},
4141
"devDependencies": {
4242
"@mui/icons-material": "workspace:*",
@@ -51,9 +51,9 @@
5151
"react": "19.2.4"
5252
},
5353
"peerDependencies": {
54-
"@emotion/cache": "^11.11.0",
55-
"@emotion/react": "^11.11.4",
56-
"@emotion/styled": "^11.11.0",
54+
"@emotion/cache": "catalog:docs",
55+
"@emotion/react": "catalog:docs",
56+
"@emotion/styled": "catalog:docs",
5757
"@mui/base": "^5.0.0 || ^5.0.0-beta || ^7.0.0 || ^7.0.0-beta",
5858
"@mui/icons-material": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^7.0.0-beta",
5959
"@mui/material": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^7.0.0-beta",
@@ -64,7 +64,7 @@
6464
"@types/stylis": "^4.2.7",
6565
"chai": "^6.0.1",
6666
"csstype": "^3.1.3",
67-
"next": "^13.5.1 || ^14 || ^15.0.0",
67+
"next": "^13.5.1 || ^14 || ^15.0.0 || ^16.0.0",
6868
"react": "^17.0.0 || ^18.0.0 || ^19.0.0"
6969
},
7070
"peerDependenciesMeta": {

pnpm-lock.yaml

Lines changed: 27 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,11 @@ onlyBuiltDependencies:
1313
- '@vvago/vale'
1414

1515
engineStrict: true
16+
17+
catalogs:
18+
docs:
19+
stylis: '4.2.0'
20+
'@emotion/cache': '^11.14.0'
21+
'@emotion/react': '^11.14.0'
22+
'@emotion/server': '^11.11.0'
23+
'@emotion/styled': '^11.14.1'

0 commit comments

Comments
 (0)