Skip to content

Commit 7b2ba82

Browse files
authored
chore: Merge PR #53 from feat/upgrade-babel-nextjs-13.5.6
2 parents bead934 + 4505b5f commit 7b2ba82

File tree

15 files changed

+982
-466
lines changed

15 files changed

+982
-466
lines changed

.storybook/main.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ module.exports = {
7979
core: {
8080
builder: 'webpack5',
8181
},
82+
typescript: {
83+
reactDocgen: 'react-docgen-typescript-plugin'
84+
},
8285
features: {
8386
previewMdx2: true, // 👈 MDX 2 enabled here (https://storybook.js.org/docs/react/writing-docs/mdx#mdx-2)
8487
},

apps/expo/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,14 @@
4646
"react-native-safe-area-context": "4.6.3",
4747
"react-native-screens": "3.22.1",
4848
"react-native-svg": "13.9.0",
49-
"react-native-web": "~0.19.6",
49+
"react-native-web": "~0.19.9",
5050
"registries": "*"
5151
},
5252
"devDependencies": {
5353
"@expo/webpack-config": "^0.17.2",
54-
"@types/react": "18.0.28",
54+
"@types/react": "18.2.34",
5555
"dotenv": "^16.3.1",
56-
"typescript": "^4.9.5"
56+
"typescript": "^5.2.2"
5757
},
5858
"expo": {
5959
"install": {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
'use client'
22
// -i- Automatically generated by 'yarn link-routes', do not modify manually
3-
export { default, dynamic, generateStaticParams } from 'links-page/routes/bio/[slug]'
3+
export { default, dynamic } from 'links-page/routes/bio/[slug]'

apps/next/next.config.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ const workspaceResolutions = require('registries/workspaceResolutions.generated.
1313
/* --- Transpiled Modules ---------------------------------------------------------------------- */
1414

1515
const transpiledModules = require('config/transpiledModules')
16-
const withTM = require('next-transpile-modules')(transpiledModules)
1716

1817
/* --- Automation Scripts ---------------------------------------------------------------------- */
1918
// -i- This will run the aetherspace automation scripts on local dev builds (comment out what you don't need)
@@ -93,15 +92,14 @@ const nextConfig = {
9392
},
9493
// App dir support
9594
reactStrictMode: true,
96-
experimental: {
97-
// transpilePackages: transpiledModules,
98-
},
95+
transpilePackages: transpiledModules,
96+
experimental: {},
9997
}
10098

10199
// Apply plugins to next config, avoiding next-compose-plugins:
102100
// -i- https://github.com/cyrilwanner/next-compose-plugins/issues/59#issuecomment-1209152211
103101
// -i- https://github.com/cyrilwanner/next-compose-plugins/issues/59#issuecomment-1220739666
104-
const plugins = [withTM, withFonts, withImages, withPWA, [withExpo, { projectRoot: workspaceRoot }]]
102+
const plugins = [withFonts, withImages, withPWA, [withExpo, { projectRoot: workspaceRoot }]]
105103
const withPlugins = (_phase /*, { defaultConfig } */) => {
106104
// Build final config
107105
const finalConfig = plugins.reduce(

apps/next/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,10 @@
1919
"app": "*",
2020
"encoding": "^0.1.13",
2121
"expo-asset-web": "npm:expo-asset@8.7.0",
22-
"next": "13.4.8",
22+
"next": "13.5.6",
2323
"next-fonts": "^1.5.1",
2424
"next-images": "^1.8.5",
2525
"next-pwa": "^5.6.0",
26-
"next-transpile-modules": "^10.0.0",
2726
"raf": "^3.4.1",
2827
"registries": "*",
2928
"setimmediate": "^1.0.5",

features/app-core/hooks/useLoadFonts.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ const useLoadFonts = () => {
2828
Roboto700: Roboto_700Bold,
2929
Roboto800: Roboto_900Black, // Fallback
3030
Roboto900: Roboto_900Black,
31-
// - Icon Fonts -
32-
AntDesign: require('@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/AntDesign.ttf'),
3331
}
3432

3533
const [googleFontsLoaded, googleFontsError] = useFonts(fontsToLoad)

features/cv-page/icons/registry.tsx

Lines changed: 0 additions & 17 deletions
This file was deleted.

features/cv-page/screens/ResumeScreen.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -267,11 +267,7 @@ export const ResumeScreenRouteDataConfig = {
267267
/* --- Route Segments -------------------------------------------------------------------------- */
268268

269269
// -i- https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config
270-
export const dynamic = 'force-static' // 'auto' | 'force-dynamic' | 'error' | 'force-static'
271-
272-
export const generateStaticParams = async (): Promise<TResumeScreenParams[]> => {
273-
return [{ slug: 'codinsonn' }]
274-
}
270+
export const dynamic = 'auto' // 'auto' | 'force-dynamic' | 'error' | 'force-static'
275271

276272
/* --- <ResumeScreen/> ------------------------------------------------------------------------- */
277273

features/links-page/routes/bio/[slug].tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,5 @@ const PageScreen = (props: bioScreen.BioScreenProps) => (
1313
/* --- Exports --------------------------------------------------------------------------------- */
1414

1515
export const dynamic = bioScreen.dynamic
16-
export const generateStaticParams = bioScreen.generateStaticParams
1716

1817
export default PageScreen

features/links-page/screens/BioScreen.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ const getBioScreenProps = async (queryKey: string, queryVariables?: BioScreenPar
8585
const queryData = queryKey || getScreenDataQuery
8686
const queryInput = queryVariables || getBioScreenArgs() // Use defaults if not defined
8787
const { data } = await fetchAetherProps(queryData, queryInput)
88-
return data.getUserBio as TUserBio
88+
return data.getUserBio as TUserBio // satisfies TUserBio
8989
}
9090

9191
export const screenConfig = {
@@ -100,11 +100,7 @@ export const screenConfig = {
100100

101101
/* --- Segments -------------------------------------------------------------------------------- */
102102

103-
export const dynamic = 'force-static' // 'auto' | 'force-dynamic' | 'error' | 'force-static'
104-
105-
export const generateStaticParams = async (): Promise<BioScreenParams[]> => {
106-
return [{ slug: 'codinsonn' }]
107-
}
103+
export const dynamic = 'auto' // 'auto' | 'force-dynamic' | 'error' | 'force-static'
108104

109105
/* --- <BioScreen/> ---------------------------------------------------------------------------- */
110106

0 commit comments

Comments
 (0)