diff --git a/test/fixtures/cli-750/app/package.json b/test/fixtures/cli-750/app/package.json new file mode 100644 index 000000000..d7c01f197 --- /dev/null +++ b/test/fixtures/cli-750/app/package.json @@ -0,0 +1,6 @@ +{ + "name": "app", + "dependencies": { + "lib": "file:../lib" + } +} diff --git a/test/fixtures/cli-750/lib/package.json b/test/fixtures/cli-750/lib/package.json new file mode 100644 index 000000000..f5ff35859 --- /dev/null +++ b/test/fixtures/cli-750/lib/package.json @@ -0,0 +1,3 @@ +{ + "name": "lib" +} diff --git a/test/fixtures/cli-750/node_modules/app b/test/fixtures/cli-750/node_modules/app new file mode 120000 index 000000000..5df94d993 --- /dev/null +++ b/test/fixtures/cli-750/node_modules/app @@ -0,0 +1 @@ +../app \ No newline at end of file diff --git a/test/fixtures/cli-750/node_modules/lib b/test/fixtures/cli-750/node_modules/lib new file mode 120000 index 000000000..dc598c56d --- /dev/null +++ b/test/fixtures/cli-750/node_modules/lib @@ -0,0 +1 @@ +../lib \ No newline at end of file diff --git a/test/fixtures/cli-750/package-lock.json b/test/fixtures/cli-750/package-lock.json new file mode 100644 index 000000000..ec01e75ef --- /dev/null +++ b/test/fixtures/cli-750/package-lock.json @@ -0,0 +1,38 @@ +{ + "name": "monorepo", + "lockfileVersion": 2, + "requires": true, + "packages": { + "": { + "name": "monorepo", + "dependencies": { + "app": "file:./app" + } + }, + "app": { + "name": "app", + "dependencies": { + "lib": "file:../lib" + } + }, + "lib": { + "name": "lib" + }, + "node_modules/app": { + "resolved": "app", + "link": true + }, + "node_modules/lib": { + "resolved": "lib", + "link": true + } + }, + "dependencies": { + "app": { + "version": "file:app" + }, + "lib": { + "version": "file:lib" + } + } +} diff --git a/test/fixtures/cli-750/package.json b/test/fixtures/cli-750/package.json new file mode 100644 index 000000000..a6fcd0623 --- /dev/null +++ b/test/fixtures/cli-750/package.json @@ -0,0 +1,6 @@ +{ + "name": "monorepo", + "dependencies": { + "app": "file:./app" + } +} diff --git a/test/fixtures/external-link-dep/package-lock.json b/test/fixtures/external-link-dep/package-lock.json new file mode 100644 index 000000000..373fff641 --- /dev/null +++ b/test/fixtures/external-link-dep/package-lock.json @@ -0,0 +1,54 @@ +{ + "name": "external-link-dep", + "lockfileVersion": 2, + "requires": true, + "packages": { + "": { + "dependencies": { + "aaaaaa": "file:./node_modules/abbrev", + "abbrev": "*", + "monorepo": "../cli-750", + "zzzzzz": "file:./node_modules/abbrev" + } + }, + "../cli-750": { + "name": "monorepo", + "dependencies": { + "app": "file:./app" + } + }, + "node_modules/aaaaaa": { + "resolved": "node_modules/abbrev", + "link": true + }, + "node_modules/abbrev": { + "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", + "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==" + }, + "node_modules/monorepo": { + "resolved": "../cli-750", + "link": true + }, + "node_modules/zzzzzz": { + "resolved": "node_modules/abbrev", + "link": true + } + }, + "dependencies": { + "aaaaaa": { + "version": "file:node_modules/abbrev" + }, + "abbrev": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", + "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", + "extraneous": true + }, + "monorepo": { + "version": "file:../cli-750" + }, + "zzzzzz": { + "version": "file:node_modules/abbrev" + } + } +} diff --git a/test/fixtures/external-link-dep/package.json b/test/fixtures/external-link-dep/package.json new file mode 100644 index 000000000..8af6566d1 --- /dev/null +++ b/test/fixtures/external-link-dep/package.json @@ -0,0 +1,8 @@ +{ + "dependencies": { + "aaaaaa": "file:./node_modules/abbrev", + "abbrev": "*", + "monorepo": "../cli-750", + "zzzzzz": "file:./node_modules/abbrev" + } +} diff --git a/test/fixtures/reify-cases/cli-750-fresh.js b/test/fixtures/reify-cases/cli-750-fresh.js new file mode 100644 index 000000000..f9f2750f8 --- /dev/null +++ b/test/fixtures/reify-cases/cli-750-fresh.js @@ -0,0 +1,22 @@ +// generated from test/fixtures/cli-750 +module.exports = t => ({ + "app": { + "package.json": JSON.stringify({ + "name": "app", + "dependencies": { + "lib": "file:../lib" + } + }) + }, + "lib": { + "package.json": JSON.stringify({ + "name": "lib" + }) + }, + "package.json": JSON.stringify({ + "name": "monorepo", + "dependencies": { + "app": "file:./app" + } + }) +}) diff --git a/test/fixtures/reify-cases/cli-750.js b/test/fixtures/reify-cases/cli-750.js new file mode 100644 index 000000000..5b4a8d9ca --- /dev/null +++ b/test/fixtures/reify-cases/cli-750.js @@ -0,0 +1,64 @@ +// generated from test/fixtures/cli-750 +module.exports = t => ({ + "app": { + "package.json": JSON.stringify({ + "name": "app", + "dependencies": { + "lib": "file:../lib" + } + }) + }, + "lib": { + "package.json": JSON.stringify({ + "name": "lib" + }) + }, + "node_modules": { + "app": t.fixture('symlink', "../app"), + "lib": t.fixture('symlink', "../lib") + }, + "package-lock.json": JSON.stringify({ + "name": "monorepo", + "lockfileVersion": 2, + "requires": true, + "packages": { + "": { + "name": "monorepo", + "dependencies": { + "app": "file:./app" + } + }, + "app": { + "name": "app", + "dependencies": { + "lib": "file:../lib" + } + }, + "lib": { + "name": "lib" + }, + "node_modules/app": { + "resolved": "app", + "link": true + }, + "node_modules/lib": { + "resolved": "lib", + "link": true + } + }, + "dependencies": { + "app": { + "version": "file:app" + }, + "lib": { + "version": "file:lib" + } + } + }), + "package.json": JSON.stringify({ + "name": "monorepo", + "dependencies": { + "app": "file:./app" + } + }) +})