Skip to content

Instantly share code, notes, and snippets.

@nickcherry
Created September 20, 2023 21:02
Show Gist options
  • Save nickcherry/815da69a53fe82b06422726600581478 to your computer and use it in GitHub Desktop.
Save nickcherry/815da69a53fe82b06422726600581478 to your computer and use it in GitHub Desktop.
reinstall-deps.js
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