| 1 |
// generated from test/fixtures/optional-dep-preinstall-fail |
| 2 |
module.exports = t => { |
| 3 |
const path = t.testdir({ |
| 4 |
"node_modules": { |
| 5 |
"@isaacs": { |
| 6 |
"testing-fail-postinstall": { |
| 7 |
"package.json": JSON.stringify({ |
| 8 |
"_from": "@isaacs/testing-fail-postinstall", |
| 9 |
"_id": "@isaacs/[email protected]", |
| 10 |
"_inBundle": false, |
| 11 |
"_integrity": "sha512-dOoHClc0+gQ+GYiFLinkdH6G7mfSdjex+iiDhN26/h/WA+t7rax4Vg+TOB/VXjIuHawfiS5RllIxtPt7Fyqv+g==", |
| 12 |
"_location": "/@isaacs/testing-fail-postinstall", |
| 13 |
"_phantomChildren": {}, |
| 14 |
"_requested": { |
| 15 |
"type": "tag", |
| 16 |
"registry": true, |
| 17 |
"raw": "@isaacs/testing-fail-postinstall", |
| 18 |
"name": "@isaacs/testing-fail-postinstall", |
| 19 |
"escapedName": "@isaacs%2ftesting-fail-postinstall", |
| 20 |
"scope": "@isaacs", |
| 21 |
"rawSpec": "", |
| 22 |
"saveSpec": null, |
| 23 |
"fetchSpec": "latest" |
| 24 |
}, |
| 25 |
"_requiredBy": [ |
| 26 |
"#USER", |
| 27 |
"/" |
| 28 |
], |
| 29 |
"_resolved": "https://registry.npmjs.org/@isaacs/testing-fail-postinstall/-/testing-fail-postinstall-1.0.0.tgz", |
| 30 |
"_shasum": "0ee96aa4b99c1640446ba5809d554a6e1f2a052a", |
| 31 |
"_spec": "@isaacs/testing-fail-postinstall", |
| 32 |
"_where": "/Users/isaacs/dev/npm/arborist/test/fixtures/optional-dep-postinstall-fail", |
| 33 |
"bundleDependencies": false, |
| 34 |
"deprecated": false, |
| 35 |
"license": "ISC", |
| 36 |
"name": "@isaacs/testing-fail-postinstall", |
| 37 |
"scripts": { |
| 38 |
"postinstall": "exit 1" |
| 39 |
}, |
| 40 |
"version": "1.0.0" |
| 41 |
}) |
| 42 |
} |
| 43 |
} |
| 44 |
}, |
| 45 |
"package-lock.json": JSON.stringify({ |
| 46 |
"name": "optional-dep-postinstall-fail", |
| 47 |
"version": "1.0.0", |
| 48 |
"lockfileVersion": 2, |
| 49 |
"requires": true, |
| 50 |
"packages": { |
| 51 |
"": { |
| 52 |
"name": "optional-dep-postinstall-fail", |
| 53 |
"version": "1.0.0", |
| 54 |
"license": "ISC", |
| 55 |
"dependencies": { |
| 56 |
"@isaacs/testing-fail-postinstall": "^1.0.0" |
| 57 |
}, |
| 58 |
"optionalDependencies": { |
| 59 |
"@isaacs/testing-fail-postinstall": "^1.0.0" |
| 60 |
} |
| 61 |
}, |
| 62 |
"node_modules/@isaacs/testing-fail-postinstall": { |
| 63 |
"version": "1.0.0", |
| 64 |
"resolved": "https://registry.npmjs.org/@isaacs/testing-fail-postinstall/-/testing-fail-postinstall-1.0.0.tgz", |
| 65 |
"integrity": "sha512-dOoHClc0+gQ+GYiFLinkdH6G7mfSdjex+iiDhN26/h/WA+t7rax4Vg+TOB/VXjIuHawfiS5RllIxtPt7Fyqv+g==", |
| 66 |
"optional": true |
| 67 |
} |
| 68 |
}, |
| 69 |
"dependencies": { |
| 70 |
"@isaacs/testing-fail-postinstall": { |
| 71 |
"version": "1.0.0", |
| 72 |
"resolved": "https://registry.npmjs.org/@isaacs/testing-fail-postinstall/-/testing-fail-postinstall-1.0.0.tgz", |
| 73 |
"integrity": "sha512-dOoHClc0+gQ+GYiFLinkdH6G7mfSdjex+iiDhN26/h/WA+t7rax4Vg+TOB/VXjIuHawfiS5RllIxtPt7Fyqv+g==", |
| 74 |
"optional": true |
| 75 |
} |
| 76 |
} |
| 77 |
}), |
| 78 |
"package.json": JSON.stringify({ |
| 79 |
"name": "optional-dep-preinstall-fail", |
| 80 |
"version": "1.0.0", |
| 81 |
"description": "an optional dependency that fails to install", |
| 82 |
"license": "ISC", |
| 83 |
"optionalDependencies": { |
| 84 |
"@isaacs/testing-fail-preinstall": "^1.0.0" |
| 85 |
} |
| 86 |
}) |
| 87 |
}) |
| 88 |
return path |
| 89 |
} |