MCPcopy
hub / github.com/lowdefy/lowdefy / createWorkspace

Function createWorkspace

scripts/lib/createWorkspace.mjs:20–25  ·  view source on GitHub ↗
({ targetDir })

Source from the content-addressed store, hash-verified

18import path from 'node:path';
19
20function 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
27export default createWorkspace;

Callers 2

dev.mjsFile · 0.85
build.mjsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected