({ targetDir })
| 18 | import path from 'node:path'; |
| 19 | |
| 20 | function createWorkspace({ targetDir }) { |
| 21 | fs.writeFileSync(path.join(targetDir, 'pnpm-workspace.yaml'), 'packages: []\n'); |
| 22 | if (!fs.existsSync(path.join(targetDir, '.npmrc'))) { |
| 23 | fs.writeFileSync(path.join(targetDir, '.npmrc'), 'strict-peer-dependencies=false\n'); |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | export default createWorkspace; |