Debian Codegraph @

workspaces/arborist/test/fixtures/reify-cases/workspaces-with-overrides.js

raw
1 // generated from test/fixtures/workspaces-with-overrides
2 module.exports = t => {
3 const path = t.testdir({
4 "package-lock.json": JSON.stringify({
5 "name": "workspace-with-overrides",
6 "lockfileVersion": 3,
7 "requires": true,
8 "packages": {
9 "": {
10 "name": "workspace-with-overrides",
11 "workspaces": [
12 "ws"
13 ]
14 },
15 "node_modules/a": {
16 "resolved": "ws",
17 "link": true
18 },
19 "node_modules/arg": {
20 "version": "4.1.3",
21 "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz",
22 "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==",
23 "license": "MIT"
24 },
25 "ws": {
26 "name": "a",
27 "version": "1.0.0",
28 "dependencies": {
29 "arg": "4.1.2"
30 }
31 }
32 }
33 }),
34 "package.json": JSON.stringify({
35 "name": "workspace-with-overrides",
36 "workspaces": [
37 "ws"
38 ],
39 "overrides": {
40 "arg": "4.1.3"
41 }
42 }),
43 "ws": {
44 "package.json": JSON.stringify({
45 "name": "a",
46 "version": "1.0.0",
47 "dependencies": {
48 "arg": "4.1.2"
49 }
50 })
51 }
52 })
53 return path
54 }