| 1 |
// generated from test/fixtures/workspace4 |
| 2 |
module.exports = t => { |
| 3 |
const path = t.testdir({ |
| 4 |
"README.md": "an example where a workspace needs a duplicated nested dep\n", |
| 5 |
"package.json": JSON.stringify({ |
| 6 |
"dependencies": { |
| 7 |
"foo": "file:packages/foo", |
| 8 |
"bar": "file:packages/bar" |
| 9 |
} |
| 10 |
}), |
| 11 |
"packages": { |
| 12 |
"bar": { |
| 13 |
"package.json": JSON.stringify({ |
| 14 |
"name": "bar", |
| 15 |
"version": "1.2.3", |
| 16 |
"dependencies": { |
| 17 |
"mkdirp": "0.x" |
| 18 |
} |
| 19 |
}) |
| 20 |
}, |
| 21 |
"foo": { |
| 22 |
"package.json": JSON.stringify({ |
| 23 |
"name": "foo", |
| 24 |
"version": "1.2.3", |
| 25 |
"dependencies": { |
| 26 |
"mkdirp": "1", |
| 27 |
"bar": "^1.0.0" |
| 28 |
} |
| 29 |
}) |
| 30 |
} |
| 31 |
} |
| 32 |
}) |
| 33 |
return path |
| 34 |
} |