Created
September 20, 2023 21:02
-
-
Save nickcherry/815da69a53fe82b06422726600581478 to your computer and use it in GitHub Desktop.
reinstall-deps.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { readFileSync } = require('fs'); | |
const oldPkgPath = | |
'/Users/nickcherry/src/nickcherry/farcaster-monorepo/apps/farcaster-mobile/package.json'; | |
const pkg = JSON.parse(readFileSync(oldPkgPath, 'utf-8')); | |
console.log( | |
`yarn add --dev ${Object.keys(pkg.devDependencies) | |
.filter((dep) => !['sharp-cli'].includes(dep)) | |
.join(' \\\n ')}`, | |
); | |
console.log( | |
`yarn add ${Object.keys(pkg.dependencies) | |
.filter( | |
(dep) => | |
![ | |
'farcaster-client-data', | |
'farcaster-client-hooks', | |
'farcaster-cryptography-react-native', | |
'farcaster-cryptography', | |
].includes(dep), | |
) | |
.join(' \\\n ')}`, | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment