Debian Codegraph @

workspaces/arborist/test/fixtures/reify-cases/workspaces-need-update.js

raw
1 // generated from test/fixtures/workspaces-need-update
2 module.exports = t => {
3 const path = t.testdir({
4 "a": {
5 "package.json": JSON.stringify({
6 "dependencies": {
7 "abbrev": "^1.0.4",
8 "once": "^1.3.2"
9 }
10 })
11 },
12 "b": {
13 "package.json": JSON.stringify({
14 "dependencies": {
15 "abbrev": "^1.0.4"
16 }
17 })
18 },
19 "package-lock.json": JSON.stringify({
20 "name": "workspaces-need-update",
21 "lockfileVersion": 2,
22 "requires": true,
23 "packages": {
24 "": {
25 "workspaces": [
26 "a",
27 "b"
28 ],
29 "dependencies": {
30 "abbrev": "^1.0.4"
31 }
32 },
33 "a": {
34 "dependencies": {
35 "abbrev": "^1.0.4",
36 "once": "^1.3.2"
37 }
38 },
39 "b": {
40 "dependencies": {
41 "abbrev": "^1.0.4"
42 }
43 },
44 "node_modules/a": {
45 "resolved": "a",
46 "link": true
47 },
48 "node_modules/abbrev": {
49 "version": "1.0.4",
50 "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.0.4.tgz",
51 "integrity": "sha1-vVWuXkE7oXIu5Mq6H26hBBSlns0="
52 },
53 "node_modules/b": {
54 "resolved": "b",
55 "link": true
56 },
57 "node_modules/once": {
58 "version": "1.3.2",
59 "resolved": "https://registry.npmjs.org/once/-/once-1.3.2.tgz",
60 "integrity": "sha1-2P7sqTsDnsHc3ud0HJK9rF4oCBs=",
61 "dependencies": {
62 "wrappy": "1"
63 }
64 },
65 "node_modules/wrappy": {
66 "version": "1.0.2",
67 "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
68 "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8="
69 }
70 }
71 }),
72 "package.json": JSON.stringify({
73 "dependencies": {
74 "abbrev": "^1.0.4"
75 },
76 "workspaces": [
77 "a",
78 "b"
79 ]
80 })
81 })
82 return path
83 }