{
  "name": "GiftedChat",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "node_modules/react-native/packager/packager.sh",
    "sync": "rm -rf ./node_modules/react-native-gifted-chat; sane '/usr/bin/rsync -v -a --exclude .git --exclude example --exclude __tests__ --exclude node_modules ../ ./node_modules/react-native-gifted-chat/' .. --glob='{**/*.json,**/*.js}'"
  },
  "dependencies": {
    "react": "16.0.0-alpha.12",
    "react-native": "0.45.1",
    "react-native-camera-roll-picker": "1.1.7",
    "react-native-gifted-chat": "file:..",
    "react-native-nav": "1.1.4"
  },
  "devDependencies": {
    "babel-preset-react-native": "2.1.0",
    "sane": "2.0.0"
  }
}

{
  "name": "GiftedChat",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "postinstall": "yarn run clean:example; yarn run clean:babelrc",
    "clean:example": "rm -rf node_modules/react-native-gifted-chat/{node_modules,example,.git}",
    "clean:babelrc": "(find node_modules -type f -name .babelrc | grep -v /react-native/ | xargs rm) || true",
    "start": "node_modules/react-native/packager/packager.sh",
    "sync": "rm -rf ./node_modules/react-native-gifted-chat; sane '/usr/bin/rsync -v -a --exclude .git --exclude example --exclude __tests__ --exclude node_modules ../ ./node_modules/react-native-gifted-chat/' .. --glob='{**/*.json,**/*.js}'"
  },
  "dependencies": {
    "react": "16.0.0-alpha.12",
    "react-native": "0.45.1",
    "react-native-camera-roll-picker": "1.1.7",
    "react-native-gifted-chat": "file:..",
    "react-native-nav": "1.1.4"
  },
  "devDependencies": {
    "babel-preset-react-native": "2.1.0",
    "sane": "2.0.0"
  }
}

Remove extraneous files when installing
[Example] Remove extraneous files when installing

They get copied by Yarn, or libraries that publish their babel configs
