Skip to content

Commit e2d47be

Browse files
authored
fix: strict package deps (#4547)
1 parent 799fe7a commit e2d47be

File tree

56 files changed

+934
-1202
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+934
-1202
lines changed

.npmrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1+
# Keep peer-deps lenient for now (existing behavior)
12
legacy-peer-deps=true
3+
4+
# Enforce strict per-package dependency graph
5+
node-linker=isolated
6+
shamefully-hoist=false
7+
28
no-fund=true
39
no-audit=true
410
registry=https://registry.npmjs.org/

apps/next-app-router/next-app-router-4000/app/api/og/route.tsx

Lines changed: 25 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -18,38 +18,36 @@ export async function GET(req: NextRequest): Promise<Response | ImageResponse> {
1818
: 'App Router Playground';
1919

2020
return new ImageResponse(
21-
(
21+
<div
22+
style={{
23+
position: 'relative',
24+
display: 'flex',
25+
justifyContent: 'center',
26+
alignItems: 'center',
27+
}}
28+
>
29+
{isLight ? <LightSvg /> : <DarkSvg />}
2230
<div
2331
style={{
24-
position: 'relative',
25-
display: 'flex',
26-
justifyContent: 'center',
27-
alignItems: 'center',
32+
position: 'absolute',
33+
fontFamily: 'Inter',
34+
fontSize: '48px',
35+
fontWeight: '600',
36+
letterSpacing: '-0.04em',
37+
color: isLight ? 'black' : 'white',
38+
top: '250px',
39+
left: '50%',
40+
transform: 'translateX(-50%)',
41+
whiteSpace: 'pre-wrap',
42+
maxWidth: '750px',
43+
textAlign: 'center',
44+
wordWrap: 'break-word',
45+
overflowWrap: 'break-word',
2846
}}
2947
>
30-
{isLight ? <LightSvg /> : <DarkSvg />}
31-
<div
32-
style={{
33-
position: 'absolute',
34-
fontFamily: 'Inter',
35-
fontSize: '48px',
36-
fontWeight: '600',
37-
letterSpacing: '-0.04em',
38-
color: isLight ? 'black' : 'white',
39-
top: '250px',
40-
left: '50%',
41-
transform: 'translateX(-50%)',
42-
whiteSpace: 'pre-wrap',
43-
maxWidth: '750px',
44-
textAlign: 'center',
45-
wordWrap: 'break-word',
46-
overflowWrap: 'break-word',
47-
}}
48-
>
49-
{title}
50-
</div>
48+
{title}
5149
</div>
52-
),
50+
</div>,
5351
{
5452
width: 843,
5553
height: 441,

apps/next-app-router/next-app-router-4001/app/api/og/route.tsx

Lines changed: 25 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -18,38 +18,36 @@ export async function GET(req: NextRequest): Promise<Response | ImageResponse> {
1818
: 'App Router Playground';
1919

2020
return new ImageResponse(
21-
(
21+
<div
22+
style={{
23+
position: 'relative',
24+
display: 'flex',
25+
justifyContent: 'center',
26+
alignItems: 'center',
27+
}}
28+
>
29+
{isLight ? <LightSvg /> : <DarkSvg />}
2230
<div
2331
style={{
24-
position: 'relative',
25-
display: 'flex',
26-
justifyContent: 'center',
27-
alignItems: 'center',
32+
position: 'absolute',
33+
fontFamily: 'Inter',
34+
fontSize: '48px',
35+
fontWeight: '600',
36+
letterSpacing: '-0.04em',
37+
color: isLight ? 'black' : 'white',
38+
top: '250px',
39+
left: '50%',
40+
transform: 'translateX(-50%)',
41+
whiteSpace: 'pre-wrap',
42+
maxWidth: '750px',
43+
textAlign: 'center',
44+
wordWrap: 'break-word',
45+
overflowWrap: 'break-word',
2846
}}
2947
>
30-
{isLight ? <LightSvg /> : <DarkSvg />}
31-
<div
32-
style={{
33-
position: 'absolute',
34-
fontFamily: 'Inter',
35-
fontSize: '48px',
36-
fontWeight: '600',
37-
letterSpacing: '-0.04em',
38-
color: isLight ? 'black' : 'white',
39-
top: '250px',
40-
left: '50%',
41-
transform: 'translateX(-50%)',
42-
whiteSpace: 'pre-wrap',
43-
maxWidth: '750px',
44-
textAlign: 'center',
45-
wordWrap: 'break-word',
46-
overflowWrap: 'break-word',
47-
}}
48-
>
49-
{title}
50-
</div>
48+
{title}
5149
</div>
52-
),
50+
</div>,
5351
{
5452
width: 843,
5553
height: 441,

apps/node-remote/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
This is the example application for Module Federation core.
44

5-
65
## Usage
76

87
Run the development server and navigate to the provided localhost URL.
@@ -40,4 +39,4 @@ This package demonstrates a specific use case of Module Federation within the ec
4039

4140
---
4241

43-
*Optimized by Aiden*
42+
_Optimized by Aiden_

apps/react-ts-host/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
This is the example application for Module Federation core.
44

5-
65
## Installation
76

87
```bash
@@ -23,4 +22,4 @@ Output will be located in the `dist` or `.next` folder.
2322

2423
## Links
2524

26-
- [Module Federation Docs](https://module-federation.io/)
25+
- [Module Federation Docs](https://module-federation.io/)

apps/react-ts-nested-remote/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
This is the example application for Module Federation core.
44

5-
65
## Features
76

87
- Remote loading
@@ -23,4 +22,4 @@ Clear `.nx` cache if you encounter unexpected build issues.
2322

2423
## Links
2524

26-
- [Module Federation Docs](https://module-federation.io/)
25+
- [Module Federation Docs](https://module-federation.io/)

apps/reactRemoteUI/README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22

33
This is the example application for Module Federation core.
44

5-
65
---
76

8-
*Optimized by Aiden*
7+
_Optimized by Aiden_
98

109
## Troubleshooting
1110

@@ -26,4 +25,4 @@ This package demonstrates a specific use case of Module Federation within the ec
2625

2726
## Links
2827

29-
- [Module Federation Docs](https://module-federation.io/)
28+
- [Module Federation Docs](https://module-federation.io/)

apps/reactStorybook/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
This is the example application for Module Federation core.
44

5-
65
## Description
76

87
This package demonstrates a specific use case of Module Federation within the ecosystem.
@@ -11,4 +10,4 @@ This package demonstrates a specific use case of Module Federation within the ec
1110

1211
```bash
1312
pnpm install
14-
```
13+
```

apps/router-demo/router-remote6-2006/src/App.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.remote6-app {
2-
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
3-
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
4-
sans-serif;
2+
font-family:
3+
-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu',
4+
'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
55
-webkit-font-smoothing: antialiased;
66
-moz-osx-font-smoothing: grayscale;
77
}

apps/website-new/README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
This is the example application for Module Federation core.
44

5-
65
## Usage
76

87
Run the development server and navigate to the provided localhost URL.
@@ -36,10 +35,10 @@ This package demonstrates a specific use case of Module Federation within the ec
3635

3736
---
3837

39-
*Optimized by Aiden*
38+
_Optimized by Aiden_
4039

4140
## Installation
4241

4342
```bash
4443
pnpm install
45-
```
44+
```

0 commit comments

Comments
 (0)