Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

[next-adapter] update RNW peer, remove deprecated types #3377

Merged
merged 3 commits into from
Apr 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/dev-tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"devDependencies": {
"@babel/plugin-proposal-decorators": "^7.8.3",
"@expo/babel-preset-cli": "0.2.19",
"@types/react": "^16.9.56",
"anser": "^1.4.7",
"apollo-cache-inmemory": "^1.1.12",
"apollo-client": "^2.2.8",
Expand All @@ -48,7 +49,7 @@
"graphql-tag": "^2.9.1",
"has-ansi": "^3.0.0",
"http-proxy-middleware": "^0.18.0",
"next": "^8.0.0",
"next": "^9.0.0",
"p-timeout": "3.1.0",
"qrcode.react": "0.8.0",
"react": "^16.8.1",
Expand Down
3 changes: 1 addition & 2 deletions packages/next-adapter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,14 @@
"devDependencies": {
"@expo/babel-preset-cli": "0.2.19",
"@types/fs-extra": "^9.0.1",
"@types/next": "*8.0.6",
"@types/node-fetch": "^2.5.8",
"@types/prompts": "^2.0.6",
"rimraf": "^3.0.2"
},
"peerDependencies": {
"next": "^9",
"react": "^16",
"react-native-web": "^0.11.7"
"react-native-web": "^0.13.12"
},
"publishConfig": {
"access": "public"
Expand Down
3 changes: 1 addition & 2 deletions packages/next-adapter/src/withExpo.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { getBareExtensions } from '@expo/config/paths';
import { withUnimodules } from '@expo/webpack-config/addons';
import { AnyConfiguration } from '@expo/webpack-config/webpack/types';
import { NextConfig } from 'next';

export default function withExpo(nextConfig: NextConfig = {}): NextConfig {
export default function withExpo(nextConfig: any = {}): any {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol ok

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can change it in next PR to Record<string, any> if you want, but probably we cannot go more strict than that, without writing the types by hand. 😉

return {
...nextConfig,
pageExtensions: getBareExtensions(['web']),
Expand Down
Loading