| 1 |
// generated from test/fixtures/prune-lockfile-omit-dev |
| 2 |
module.exports = t => { |
| 3 |
const path = t.testdir({ |
| 4 |
"package-lock.json": JSON.stringify({ |
| 5 |
"name": "prune-actual", |
| 6 |
"version": "1.0.0", |
| 7 |
"lockfileVersion": 2, |
| 8 |
"requires": true, |
| 9 |
"packages": { |
| 10 |
"": { |
| 11 |
"name": "prune-actual", |
| 12 |
"version": "1.0.0", |
| 13 |
"devDependencies": { |
| 14 |
"once": "^1.4.0" |
| 15 |
} |
| 16 |
}, |
| 17 |
"node_modules/abbrev": { |
| 18 |
"version": "1.1.1", |
| 19 |
"extraneous": true |
| 20 |
}, |
| 21 |
"node_modules/once": { |
| 22 |
"version": "1.4.0", |
| 23 |
"dev": true |
| 24 |
}, |
| 25 |
"node_modules/wrappy": { |
| 26 |
"version": "1.0.2", |
| 27 |
"extraneous": true |
| 28 |
} |
| 29 |
}, |
| 30 |
"dependencies": { |
| 31 |
"abbrev": { |
| 32 |
"version": "1.1.1", |
| 33 |
"extraneous": true |
| 34 |
}, |
| 35 |
"once": { |
| 36 |
"version": "1.4.0", |
| 37 |
"dev": true |
| 38 |
}, |
| 39 |
"wrappy": { |
| 40 |
"version": "1.0.2", |
| 41 |
"extraneous": true |
| 42 |
} |
| 43 |
} |
| 44 |
}), |
| 45 |
"package.json": JSON.stringify({ |
| 46 |
"name": "prune-actual", |
| 47 |
"version": "1.0.0", |
| 48 |
"devDependencies": { |
| 49 |
"once": "^1.4.0" |
| 50 |
} |
| 51 |
}) |
| 52 |
}) |
| 53 |
return path |
| 54 |
} |