| 1 |
// generated from test/fixtures/link-meta-deps |
| 2 |
module.exports = t => { |
| 3 |
const path = t.testdir({ |
| 4 |
"node_modules": { |
| 5 |
"@isaacs": { |
| 6 |
"testing-link-dep": { |
| 7 |
"node_modules": { |
| 8 |
"linked-dep": t.fixture('symlink', "../target") |
| 9 |
}, |
| 10 |
"package.json": JSON.stringify({ |
| 11 |
"_from": "@isaacs/[email protected]", |
| 12 |
"_id": "@isaacs/[email protected]", |
| 13 |
"_inBundle": false, |
| 14 |
"_integrity": "sha512-pcFALrJNXI/F0WXRtSUdyJEwdmUV6IwQrTmFwDASfNTv6/fZTyUgXpUtmKGrpFnvzj+mU/2U12lKOVjSErlFNg==", |
| 15 |
"_location": "/@isaacs/testing-link-dep", |
| 16 |
"_phantomChildren": {}, |
| 17 |
"_requested": { |
| 18 |
"type": "version", |
| 19 |
"registry": true, |
| 20 |
"raw": "@isaacs/[email protected]", |
| 21 |
"name": "@isaacs/testing-link-dep", |
| 22 |
"escapedName": "@isaacs%2ftesting-link-dep", |
| 23 |
"scope": "@isaacs", |
| 24 |
"rawSpec": "1.0.0", |
| 25 |
"saveSpec": null, |
| 26 |
"fetchSpec": "1.0.0" |
| 27 |
}, |
| 28 |
"_requiredBy": [ |
| 29 |
"/" |
| 30 |
], |
| 31 |
"_resolved": "https://registry.npmjs.org/@isaacs/testing-link-dep/-/testing-link-dep-1.0.0.tgz", |
| 32 |
"_shasum": "1c207f922d6e7f2299aa5c2bf2617d560077457d", |
| 33 |
"_spec": "@isaacs/[email protected]", |
| 34 |
"_where": "/Users/isaacs/dev/npm/arborist/test/fixtures/link-meta-deps", |
| 35 |
"bundleDependencies": false, |
| 36 |
"dependencies": { |
| 37 |
"linked-dep": "file:target" |
| 38 |
}, |
| 39 |
"deprecated": false, |
| 40 |
"name": "@isaacs/testing-link-dep", |
| 41 |
"version": "1.0.0" |
| 42 |
}), |
| 43 |
"target": { |
| 44 |
"package.json": JSON.stringify({ |
| 45 |
"name": "linked-dep", |
| 46 |
"version": "1.2.3" |
| 47 |
}) |
| 48 |
} |
| 49 |
}, |
| 50 |
"testing-link-dev-dep": { |
| 51 |
"package.json": JSON.stringify({ |
| 52 |
"_from": "@isaacs/testing-link-dev-dep@^1.0.1", |
| 53 |
"_id": "@isaacs/[email protected]", |
| 54 |
"_inBundle": false, |
| 55 |
"_integrity": "sha512-SHkefZXrqvzneMjVmbQym9s8GkljDZgFQpVBEQXM9uPhkzdC8vs4AidNDdBGJgGbDzAMdGA+YGt0p2d/YcnAtA==", |
| 56 |
"_location": "/@isaacs/testing-link-dev-dep", |
| 57 |
"_phantomChildren": {}, |
| 58 |
"_requested": { |
| 59 |
"type": "range", |
| 60 |
"registry": true, |
| 61 |
"raw": "@isaacs/testing-link-dev-dep@^1.0.1", |
| 62 |
"name": "@isaacs/testing-link-dev-dep", |
| 63 |
"escapedName": "@isaacs%2ftesting-link-dev-dep", |
| 64 |
"scope": "@isaacs", |
| 65 |
"rawSpec": "^1.0.1", |
| 66 |
"saveSpec": null, |
| 67 |
"fetchSpec": "^1.0.1" |
| 68 |
}, |
| 69 |
"_requiredBy": [ |
| 70 |
"/" |
| 71 |
], |
| 72 |
"_resolved": "https://registry.npmjs.org/@isaacs/testing-link-dev-dep/-/testing-link-dev-dep-1.0.1.tgz", |
| 73 |
"_shasum": "9711f576ef11f03c2e3373614d2690f13bc589dc", |
| 74 |
"_spec": "@isaacs/testing-link-dev-dep@^1.0.1", |
| 75 |
"_where": "/Users/isaacs/dev/npm/arborist/test/fixtures/link-meta-deps", |
| 76 |
"bundleDependencies": false, |
| 77 |
"deprecated": false, |
| 78 |
"devDependencies": { |
| 79 |
"linked-dev-dep": "file:target" |
| 80 |
}, |
| 81 |
"name": "@isaacs/testing-link-dev-dep", |
| 82 |
"version": "1.0.1" |
| 83 |
}), |
| 84 |
"target": { |
| 85 |
"package.json": JSON.stringify({ |
| 86 |
"name": "linked-dep", |
| 87 |
"version": "1.2.3" |
| 88 |
}) |
| 89 |
} |
| 90 |
} |
| 91 |
} |
| 92 |
}, |
| 93 |
"package-lock.json": JSON.stringify({ |
| 94 |
"requires": true, |
| 95 |
"lockfileVersion": 1, |
| 96 |
"dependencies": { |
| 97 |
"@isaacs/testing-link-dep": { |
| 98 |
"version": "1.0.0", |
| 99 |
"resolved": "https://registry.npmjs.org/@isaacs/testing-link-dep/-/testing-link-dep-1.0.0.tgz", |
| 100 |
"integrity": "sha512-pcFALrJNXI/F0WXRtSUdyJEwdmUV6IwQrTmFwDASfNTv6/fZTyUgXpUtmKGrpFnvzj+mU/2U12lKOVjSErlFNg==", |
| 101 |
"requires": { |
| 102 |
"linked-dep": "file:node_modules/@isaacs/testing-link-dep/target" |
| 103 |
}, |
| 104 |
"dependencies": { |
| 105 |
"linked-dep": { |
| 106 |
"version": "file:node_modules/@isaacs/testing-link-dep/target" |
| 107 |
} |
| 108 |
} |
| 109 |
}, |
| 110 |
"@isaacs/testing-link-dev-dep": { |
| 111 |
"version": "1.0.1", |
| 112 |
"resolved": "https://registry.npmjs.org/@isaacs/testing-link-dev-dep/-/testing-link-dev-dep-1.0.1.tgz", |
| 113 |
"integrity": "sha512-SHkefZXrqvzneMjVmbQym9s8GkljDZgFQpVBEQXM9uPhkzdC8vs4AidNDdBGJgGbDzAMdGA+YGt0p2d/YcnAtA==" |
| 114 |
} |
| 115 |
} |
| 116 |
}), |
| 117 |
"package.json": JSON.stringify({ |
| 118 |
"dependencies": { |
| 119 |
"@isaacs/testing-link-dep": "^1.0.0", |
| 120 |
"@isaacs/testing-link-dev-dep": "^1.0.1" |
| 121 |
} |
| 122 |
}) |
| 123 |
}) |
| 124 |
return path |
| 125 |
} |