Debian Codegraph @

workspaces/arborist/test/fixtures/reify-cases/link-dep.js

raw
1 // generated from test/fixtures/link-dep
2 module.exports = t => {
3 const path = t.testdir({
4 "node_modules": {
5 "linked-dep": t.fixture('symlink', "../target")
6 },
7 "package-lock.json": JSON.stringify({
8 "name": "@isaacs/testing-link-dep",
9 "version": "1.0.0",
10 "lockfileVersion": 1,
11 "requires": true,
12 "dependencies": {
13 "linked-dep": {
14 "version": "file:target"
15 }
16 }
17 }),
18 "package.json": JSON.stringify({
19 "name": "@isaacs/testing-link-dep",
20 "version": "2.0.0",
21 "dependencies": {
22 "linked-dep": "file:target"
23 }
24 }),
25 "target": {
26 "package.json": JSON.stringify({
27 "name": "linked-dep",
28 "version": "1.2.3"
29 })
30 }
31 })
32 return path
33 }