Skip to content

Commit

Permalink
fix dedupe deps for sdk 44
Browse files Browse the repository at this point in the history
  • Loading branch information
nandorojo committed Dec 15, 2021
1 parent 4383563 commit f100138
Show file tree
Hide file tree
Showing 11 changed files with 675 additions and 723 deletions.
13 changes: 0 additions & 13 deletions examples/with-expo/__generated__/AppEntry.js

This file was deleted.

17 changes: 11 additions & 6 deletions examples/with-expo/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
import { registerRootComponent } from "expo";
// @generated by expo-yarn-workspaces

import App from "./src/App";
import 'expo/build/Expo.fx'
import { activateKeepAwake } from 'expo-keep-awake'
import registerRootComponent from 'expo/build/launch/registerRootComponent'

// registerRootComponent calls AppRegistry.registerComponent('main', () => App);
// It also ensures that whether you load the app in the Expo client or in a native build,
// the environment is set up appropriately
registerRootComponent(App);
import App from './App'

if (__DEV__) {
activateKeepAwake()
}

registerRootComponent(App)
27 changes: 24 additions & 3 deletions examples/with-expo/metro.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,25 @@
/* eslint-disable @typescript-eslint/no-var-requires */
const { createMetroConfiguration } = require('expo-yarn-workspaces')
// Learn more https://docs.expo.io/guides/customizing-metro
/**
* @type {import('expo/metro-config')}
*/
const { getDefaultConfig } = require('expo/metro-config')
const path = require('path')

module.exports = createMetroConfiguration(__dirname)
const projectRoot = __dirname
const workspaceRoot = path.resolve(__dirname, '../..')

const config = getDefaultConfig(__dirname)

config.watchFolders = [workspaceRoot]
config.resolver.nodeModulesPath = [
path.resolve(projectRoot, 'node_modules'),
path.resolve(workspaceRoot, 'node_modules'),
]

// config.transformer = {
// ...config.transformer,
// minifierPath: 'metro-minify-esbuild',
// minifierConfig: {},
// }

module.exports = config
4 changes: 1 addition & 3 deletions examples/with-expo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@
"description": "Example app for moti",
"version": "0.16.1",
"private": true,
"main": "__generated__/AppEntry.js",
"scripts": {
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web",
"start": "expo start",
"test": "jest",
"postinstall": "expo-yarn-workspaces postinstall"
"test": "jest"
},
"dependencies": {
"@motify/interactions": "^0.16.1",
Expand Down
2 changes: 1 addition & 1 deletion examples/with-expo/src/Moti.HelloWorld.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default function HelloWorld() {

return (
<Pressable onPress={toggle} style={styles.container}>
{visible && <Shape />}
{/* {visible && <Shape />} */}
</Pressable>
)
}
Expand Down
13 changes: 0 additions & 13 deletions examples/with-next/__generated__/AppEntry.js

This file was deleted.

4 changes: 0 additions & 4 deletions examples/with-next/metro.config.js

This file was deleted.

10 changes: 4 additions & 6 deletions examples/with-next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@
"next-compose-plugins": "^2.2.0",
"next-transpile-modules": "3.3.0",
"raf": "^3.4.1",
"react": "~16.13.1",
"react-dom": "~16.13.1",
"react-native": "0.63.4",
"react-native-reanimated": "~2.2.0",
"react": "17.0.1",
"react-dom": "17.0.1",
"react-native-reanimated": "~2.3.0",
"react-native-unimodules": "~0.9.0",
"react-native-web": "0.15.3"
},
Expand All @@ -24,8 +23,7 @@
"android": "expo start --android",
"ios": "expo start --ios",
"web": "yarn next dev",
"eject": "expo eject",
"postinstall": "expo-yarn-workspaces postinstall"
"eject": "expo eject"
},
"private": true
}
7 changes: 0 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@
"example": "yarn --cwd example",
"prepare": "lerna run prepare"
},
"resolutions": {
"react": "17.0.1",
"react-native": "0.63.4",
"@types/react": "17.0.1"
},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
Expand Down Expand Up @@ -90,11 +85,9 @@
"commitlint": "^11.0.0",
"eslint": "^7.18.0",
"eslint-config-nando": "^1.0.10",
"expo-yarn-workspaces": "^1.3.1",
"husky": "^4.3.8",
"jest": "^26.6.1",
"lerna": "^3.22.1",
"metro-react-native-babel-preset": "^0.63.0",
"prettier": "^2.2.1",
"typescript": "^4.0.3"
},
Expand Down
3 changes: 1 addition & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,12 @@
"devDependencies": {
"@react-spring/native": "^9.0.0-rc.3",
"@testing-library/react-native": "^7.1.0",
"@types/react": "^16.9.53",
"@types/react": "17.0.1",
"@types/react-dom": "^16.9.8",
"@types/react-native": "^0.63.30",
"expo": "^40.0.0-beta.5",
"react": "17.0.1",
"react-dom": "17.0.1",
"react-native": "0.63.4",
"react-native-builder-bob": "^0.17.0",
"react-native-gesture-handler": "~2.1.0",
"react-native-reanimated": "~2.3.0",
Expand Down
Loading

0 comments on commit f100138

Please sign in to comment.