Skip to content

Commit 6c7b6d2

Browse files
chore: add Typescript deps to serverExternalPackages config in Next.js + bump Next.js
1 parent bdee76b commit 6c7b6d2

File tree

5 files changed

+20
-202
lines changed

5 files changed

+20
-202
lines changed

.yarn/install-state.gz

-14.1 KB
Binary file not shown.

examples/app-router/next.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/** @type {import('next').NextConfig} */
22
const nextConfig = {
3-
serverExternalPackages: ['@shikijs/twoslash'],
3+
serverExternalPackages: ['@shikijs/twoslash', '@typescript/vfs', 'typescript'],
44
};
55

66
module.exports = nextConfig;
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
/** @type {import('next').NextConfig} */
2-
const nextConfig = {};
2+
const nextConfig = {
3+
serverExternalPackages: ['@shikijs/twoslash', '@typescript/vfs', 'typescript'],
4+
};
35

46
module.exports = nextConfig;

examples/pages-router/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
},
1111
"dependencies": {
1212
"@mintlify/mdx": "workspace:^",
13-
"next": "14.0.4",
14-
"react": "^18",
15-
"react-dom": "^18"
13+
"next": "15.4.2",
14+
"react": "18.3.1",
15+
"react-dom": "18.3.1"
1616
},
1717
"devDependencies": {
1818
"@tailwindcss/typography": "^0.5.10",

yarn.lock

Lines changed: 13 additions & 197 deletions
Original file line numberDiff line numberDiff line change
@@ -706,13 +706,6 @@ __metadata:
706706
languageName: node
707707
linkType: hard
708708

709-
"@next/env@npm:14.0.4":
710-
version: 14.0.4
711-
resolution: "@next/env@npm:14.0.4"
712-
checksum: 10c0/59b893d30aea0556379a24f6e4eac830677feb149bd8416b72383ea2600ce194fa22a79b2dd86e0b295c4a8f0702e461f48edaff1ac9173eddef42a4cce7fd98
713-
languageName: node
714-
linkType: hard
715-
716709
"@next/env@npm:15.4.2":
717710
version: 15.4.2
718711
resolution: "@next/env@npm:15.4.2"
@@ -729,118 +722,55 @@ __metadata:
729722
languageName: node
730723
linkType: hard
731724

732-
"@next/swc-darwin-arm64@npm:14.0.4":
733-
version: 14.0.4
734-
resolution: "@next/swc-darwin-arm64@npm:14.0.4"
735-
conditions: os=darwin & cpu=arm64
736-
languageName: node
737-
linkType: hard
738-
739725
"@next/swc-darwin-arm64@npm:15.4.2":
740726
version: 15.4.2
741727
resolution: "@next/swc-darwin-arm64@npm:15.4.2"
742728
conditions: os=darwin & cpu=arm64
743729
languageName: node
744730
linkType: hard
745731

746-
"@next/swc-darwin-x64@npm:14.0.4":
747-
version: 14.0.4
748-
resolution: "@next/swc-darwin-x64@npm:14.0.4"
749-
conditions: os=darwin & cpu=x64
750-
languageName: node
751-
linkType: hard
752-
753732
"@next/swc-darwin-x64@npm:15.4.2":
754733
version: 15.4.2
755734
resolution: "@next/swc-darwin-x64@npm:15.4.2"
756735
conditions: os=darwin & cpu=x64
757736
languageName: node
758737
linkType: hard
759738

760-
"@next/swc-linux-arm64-gnu@npm:14.0.4":
761-
version: 14.0.4
762-
resolution: "@next/swc-linux-arm64-gnu@npm:14.0.4"
763-
conditions: os=linux & cpu=arm64 & libc=glibc
764-
languageName: node
765-
linkType: hard
766-
767739
"@next/swc-linux-arm64-gnu@npm:15.4.2":
768740
version: 15.4.2
769741
resolution: "@next/swc-linux-arm64-gnu@npm:15.4.2"
770742
conditions: os=linux & cpu=arm64 & libc=glibc
771743
languageName: node
772744
linkType: hard
773745

774-
"@next/swc-linux-arm64-musl@npm:14.0.4":
775-
version: 14.0.4
776-
resolution: "@next/swc-linux-arm64-musl@npm:14.0.4"
777-
conditions: os=linux & cpu=arm64 & libc=musl
778-
languageName: node
779-
linkType: hard
780-
781746
"@next/swc-linux-arm64-musl@npm:15.4.2":
782747
version: 15.4.2
783748
resolution: "@next/swc-linux-arm64-musl@npm:15.4.2"
784749
conditions: os=linux & cpu=arm64 & libc=musl
785750
languageName: node
786751
linkType: hard
787752

788-
"@next/swc-linux-x64-gnu@npm:14.0.4":
789-
version: 14.0.4
790-
resolution: "@next/swc-linux-x64-gnu@npm:14.0.4"
791-
conditions: os=linux & cpu=x64 & libc=glibc
792-
languageName: node
793-
linkType: hard
794-
795753
"@next/swc-linux-x64-gnu@npm:15.4.2":
796754
version: 15.4.2
797755
resolution: "@next/swc-linux-x64-gnu@npm:15.4.2"
798756
conditions: os=linux & cpu=x64 & libc=glibc
799757
languageName: node
800758
linkType: hard
801759

802-
"@next/swc-linux-x64-musl@npm:14.0.4":
803-
version: 14.0.4
804-
resolution: "@next/swc-linux-x64-musl@npm:14.0.4"
805-
conditions: os=linux & cpu=x64 & libc=musl
806-
languageName: node
807-
linkType: hard
808-
809760
"@next/swc-linux-x64-musl@npm:15.4.2":
810761
version: 15.4.2
811762
resolution: "@next/swc-linux-x64-musl@npm:15.4.2"
812763
conditions: os=linux & cpu=x64 & libc=musl
813764
languageName: node
814765
linkType: hard
815766

816-
"@next/swc-win32-arm64-msvc@npm:14.0.4":
817-
version: 14.0.4
818-
resolution: "@next/swc-win32-arm64-msvc@npm:14.0.4"
819-
conditions: os=win32 & cpu=arm64
820-
languageName: node
821-
linkType: hard
822-
823767
"@next/swc-win32-arm64-msvc@npm:15.4.2":
824768
version: 15.4.2
825769
resolution: "@next/swc-win32-arm64-msvc@npm:15.4.2"
826770
conditions: os=win32 & cpu=arm64
827771
languageName: node
828772
linkType: hard
829773

830-
"@next/swc-win32-ia32-msvc@npm:14.0.4":
831-
version: 14.0.4
832-
resolution: "@next/swc-win32-ia32-msvc@npm:14.0.4"
833-
conditions: os=win32 & cpu=ia32
834-
languageName: node
835-
linkType: hard
836-
837-
"@next/swc-win32-x64-msvc@npm:14.0.4":
838-
version: 14.0.4
839-
resolution: "@next/swc-win32-x64-msvc@npm:14.0.4"
840-
conditions: os=win32 & cpu=x64
841-
languageName: node
842-
linkType: hard
843-
844774
"@next/swc-win32-x64-msvc@npm:15.4.2":
845775
version: 15.4.2
846776
resolution: "@next/swc-win32-x64-msvc@npm:15.4.2"
@@ -1047,15 +977,6 @@ __metadata:
1047977
languageName: node
1048978
linkType: hard
1049979

1050-
"@swc/helpers@npm:0.5.2":
1051-
version: 0.5.2
1052-
resolution: "@swc/helpers@npm:0.5.2"
1053-
dependencies:
1054-
tslib: "npm:^2.4.0"
1055-
checksum: 10c0/b6fa49bcf6c00571d0eb7837b163f8609960d4d77538160585e27ed167361e9776bd6e5eb9646ffac2fb4d43c58df9ca50dab9d96ab097e6591bc82a75fd1164
1056-
languageName: node
1057-
linkType: hard
1058-
1059980
"@tailwindcss/typography@npm:^0.5.10":
1060981
version: 0.5.15
1061982
resolution: "@tailwindcss/typography@npm:0.5.15"
@@ -1883,15 +1804,6 @@ __metadata:
18831804
languageName: node
18841805
linkType: hard
18851806

1886-
"busboy@npm:1.6.0":
1887-
version: 1.6.0
1888-
resolution: "busboy@npm:1.6.0"
1889-
dependencies:
1890-
streamsearch: "npm:^1.1.0"
1891-
checksum: 10c0/fa7e836a2b82699b6e074393428b91ae579d4f9e21f5ac468e1b459a244341d722d2d22d10920cdd849743dbece6dca11d72de939fb75a7448825cf2babfba1f
1892-
languageName: node
1893-
linkType: hard
1894-
18951807
"cacache@npm:^19.0.1":
18961808
version: 19.0.1
18971809
resolution: "cacache@npm:19.0.1"
@@ -1958,20 +1870,20 @@ __metadata:
19581870
languageName: node
19591871
linkType: hard
19601872

1961-
"caniuse-lite@npm:^1.0.30001406, caniuse-lite@npm:^1.0.30001646, caniuse-lite@npm:^1.0.30001688":
1962-
version: 1.0.30001689
1963-
resolution: "caniuse-lite@npm:1.0.30001689"
1964-
checksum: 10c0/51cf99751dddfba24e13556ae0e0f38c062f76d49f2e24cce3d28e71a0325ca6fe04fe51b4a0e8467d601d94e72fea84f160bf577e7cbb5677f14ac673b6da20
1965-
languageName: node
1966-
linkType: hard
1967-
19681873
"caniuse-lite@npm:^1.0.30001579":
19691874
version: 1.0.30001743
19701875
resolution: "caniuse-lite@npm:1.0.30001743"
19711876
checksum: 10c0/1bd730ca10d881a1ca9f55ce864d34c3b18501718c03976e0d3419f4694b715159e13fdef6d58ad47b6d2445d315940f3a01266658876828c820a3331aac021d
19721877
languageName: node
19731878
linkType: hard
19741879

1880+
"caniuse-lite@npm:^1.0.30001646, caniuse-lite@npm:^1.0.30001688":
1881+
version: 1.0.30001689
1882+
resolution: "caniuse-lite@npm:1.0.30001689"
1883+
checksum: 10c0/51cf99751dddfba24e13556ae0e0f38c062f76d49f2e24cce3d28e71a0325ca6fe04fe51b4a0e8467d601d94e72fea84f160bf577e7cbb5677f14ac673b6da20
1884+
languageName: node
1885+
linkType: hard
1886+
19751887
"ccount@npm:^2.0.0":
19761888
version: 2.0.1
19771889
resolution: "ccount@npm:2.0.1"
@@ -3281,13 +3193,6 @@ __metadata:
32813193
languageName: node
32823194
linkType: hard
32833195

3284-
"glob-to-regexp@npm:^0.4.1":
3285-
version: 0.4.1
3286-
resolution: "glob-to-regexp@npm:0.4.1"
3287-
checksum: 10c0/0486925072d7a916f052842772b61c3e86247f0a80cc0deb9b5a3e8a1a9faad5b04fb6f58986a09f34d3e96cd2a22a24b7e9882fb1cf904c31e9a310de96c429
3288-
languageName: node
3289-
linkType: hard
3290-
32913196
"glob@npm:7.1.7":
32923197
version: 7.1.7
32933198
resolution: "glob@npm:7.1.7"
@@ -3394,7 +3299,7 @@ __metadata:
33943299
languageName: node
33953300
linkType: hard
33963301

3397-
"graceful-fs@npm:^4.1.2, graceful-fs@npm:^4.2.11, graceful-fs@npm:^4.2.4, graceful-fs@npm:^4.2.6":
3302+
"graceful-fs@npm:^4.2.4, graceful-fs@npm:^4.2.6":
33983303
version: 4.2.11
33993304
resolution: "graceful-fs@npm:4.2.11"
34003305
checksum: 10c0/386d011a553e02bc594ac2ca0bd6d9e4c22d7fa8cfbfc448a6d148c59ea881b092db9dbe3547ae4b88e55f1b01f7c4a2ecc53b310c042793e63aa44cf6c257f2
@@ -5347,62 +5252,6 @@ __metadata:
53475252
languageName: node
53485253
linkType: hard
53495254

5350-
"next@npm:14.0.4":
5351-
version: 14.0.4
5352-
resolution: "next@npm:14.0.4"
5353-
dependencies:
5354-
"@next/env": "npm:14.0.4"
5355-
"@next/swc-darwin-arm64": "npm:14.0.4"
5356-
"@next/swc-darwin-x64": "npm:14.0.4"
5357-
"@next/swc-linux-arm64-gnu": "npm:14.0.4"
5358-
"@next/swc-linux-arm64-musl": "npm:14.0.4"
5359-
"@next/swc-linux-x64-gnu": "npm:14.0.4"
5360-
"@next/swc-linux-x64-musl": "npm:14.0.4"
5361-
"@next/swc-win32-arm64-msvc": "npm:14.0.4"
5362-
"@next/swc-win32-ia32-msvc": "npm:14.0.4"
5363-
"@next/swc-win32-x64-msvc": "npm:14.0.4"
5364-
"@swc/helpers": "npm:0.5.2"
5365-
busboy: "npm:1.6.0"
5366-
caniuse-lite: "npm:^1.0.30001406"
5367-
graceful-fs: "npm:^4.2.11"
5368-
postcss: "npm:8.4.31"
5369-
styled-jsx: "npm:5.1.1"
5370-
watchpack: "npm:2.4.0"
5371-
peerDependencies:
5372-
"@opentelemetry/api": ^1.1.0
5373-
react: ^18.2.0
5374-
react-dom: ^18.2.0
5375-
sass: ^1.3.0
5376-
dependenciesMeta:
5377-
"@next/swc-darwin-arm64":
5378-
optional: true
5379-
"@next/swc-darwin-x64":
5380-
optional: true
5381-
"@next/swc-linux-arm64-gnu":
5382-
optional: true
5383-
"@next/swc-linux-arm64-musl":
5384-
optional: true
5385-
"@next/swc-linux-x64-gnu":
5386-
optional: true
5387-
"@next/swc-linux-x64-musl":
5388-
optional: true
5389-
"@next/swc-win32-arm64-msvc":
5390-
optional: true
5391-
"@next/swc-win32-ia32-msvc":
5392-
optional: true
5393-
"@next/swc-win32-x64-msvc":
5394-
optional: true
5395-
peerDependenciesMeta:
5396-
"@opentelemetry/api":
5397-
optional: true
5398-
sass:
5399-
optional: true
5400-
bin:
5401-
next: dist/bin/next
5402-
checksum: 10c0/e6c829fd473d8c3605b2b62d15e1bf41e9d90cf59a2c213b4adeadff2846999bc9a653ffef18f6aa13cc9f5d6de02469c222acf5a4184901a4690a4504bd468f
5403-
languageName: node
5404-
linkType: hard
5405-
54065255
"next@npm:15.4.2":
54075256
version: 15.4.2
54085257
resolution: "next@npm:15.4.2"
@@ -5693,10 +5542,10 @@ __metadata:
56935542
autoprefixer: "npm:^10.0.1"
56945543
eslint: "npm:^8"
56955544
eslint-config-next: "npm:14.0.4"
5696-
next: "npm:14.0.4"
5545+
next: "npm:15.4.2"
56975546
postcss: "npm:^8"
5698-
react: "npm:^18"
5699-
react-dom: "npm:^18"
5547+
react: "npm:18.3.1"
5548+
react-dom: "npm:18.3.1"
57005549
tailwindcss: "npm:^3.3.0"
57015550
typescript: "npm:^5"
57025551
languageName: unknown
@@ -6072,7 +5921,7 @@ __metadata:
60725921
languageName: node
60735922
linkType: hard
60745923

6075-
"react-dom@npm:18.3.1, react-dom@npm:^18, react-dom@npm:^18.3.1":
5924+
"react-dom@npm:18.3.1, react-dom@npm:^18.3.1":
60765925
version: 18.3.1
60775926
resolution: "react-dom@npm:18.3.1"
60785927
dependencies:
@@ -6091,7 +5940,7 @@ __metadata:
60915940
languageName: node
60925941
linkType: hard
60935942

6094-
"react@npm:18.3.1, react@npm:^18, react@npm:^18.3.1":
5943+
"react@npm:18.3.1, react@npm:^18.3.1":
60955944
version: 18.3.1
60965945
resolution: "react@npm:18.3.1"
60975946
dependencies:
@@ -6871,13 +6720,6 @@ __metadata:
68716720
languageName: node
68726721
linkType: hard
68736722

6874-
"streamsearch@npm:^1.1.0":
6875-
version: 1.1.0
6876-
resolution: "streamsearch@npm:1.1.0"
6877-
checksum: 10c0/fbd9aecc2621364384d157f7e59426f4bfd385e8b424b5aaa79c83a6f5a1c8fd2e4e3289e95de1eb3511cb96bb333d6281a9919fafce760e4edb35b2cd2facab
6878-
languageName: node
6879-
linkType: hard
6880-
68816723
"string-width-cjs@npm:string-width@^4.2.0, string-width@npm:^4.1.0":
68826724
version: 4.2.3
68836725
resolution: "string-width@npm:4.2.3"
@@ -7039,22 +6881,6 @@ __metadata:
70396881
languageName: node
70406882
linkType: hard
70416883

7042-
"styled-jsx@npm:5.1.1":
7043-
version: 5.1.1
7044-
resolution: "styled-jsx@npm:5.1.1"
7045-
dependencies:
7046-
client-only: "npm:0.0.1"
7047-
peerDependencies:
7048-
react: ">= 16.8.0 || 17.x.x || ^18.0.0-0"
7049-
peerDependenciesMeta:
7050-
"@babel/core":
7051-
optional: true
7052-
babel-plugin-macros:
7053-
optional: true
7054-
checksum: 10c0/42655cdadfa5388f8a48bb282d6b450df7d7b8cf066ac37038bd0499d3c9f084815ebd9ff9dfa12a218fd4441338851db79603498d7557207009c1cf4d609835
7055-
languageName: node
7056-
linkType: hard
7057-
70586884
"styled-jsx@npm:5.1.6":
70596885
version: 5.1.6
70606886
resolution: "styled-jsx@npm:5.1.6"
@@ -7613,16 +7439,6 @@ __metadata:
76137439
languageName: node
76147440
linkType: hard
76157441

7616-
"watchpack@npm:2.4.0":
7617-
version: 2.4.0
7618-
resolution: "watchpack@npm:2.4.0"
7619-
dependencies:
7620-
glob-to-regexp: "npm:^0.4.1"
7621-
graceful-fs: "npm:^4.1.2"
7622-
checksum: 10c0/c5e35f9fb9338d31d2141d9835643c0f49b5f9c521440bb648181059e5940d93dd8ed856aa8a33fbcdd4e121dad63c7e8c15c063cf485429cd9d427be197fe62
7623-
languageName: node
7624-
linkType: hard
7625-
76267442
"web-namespaces@npm:^2.0.0":
76277443
version: 2.0.1
76287444
resolution: "web-namespaces@npm:2.0.1"

0 commit comments

Comments
 (0)