mirror of
https://github.com/oven-sh/bun
synced 2026-02-11 11:29:02 +00:00
### What does this PR do? Sometimes packages will use very large numbers exceeding max u32 for major/minor/patch (usually patch). This pr changes each core number in bun to u64. Because we serialize package information to disk for the binary lockfile and package manifests, this pr bumps the version of each. We don't need to change anything other than the version for serialized package manifests because they will invalidate and save the new version. For old binary lockfiles, this pr adds logic for migrating to the new version. Even if there are no changes, migrating will always save the new lockfile. Unfortunately means there will be a one time invisible diff for binary lockfile users, but this is better than installs failing to work. fixes #22881 fixes #21793 fixes #16041 fixes #22891 resolves BUN-7MX, BUN-R4Q, BUN-WRB ### How did you verify your code works? Manually, and added a test for migrating from an older binary lockfile. --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2145 lines
42 KiB
Plaintext
2145 lines
42 KiB
Plaintext
// Bun Snapshot v1, https://bun.sh/docs/test/snapshots
|
|
|
|
exports[`dependency on workspace without version in package.json: version: * 1`] = `
|
|
"{
|
|
"format": "v3",
|
|
"meta_hash": "0000000000000000000000000000000000000000000000000000000000000000",
|
|
"package_index": {
|
|
"no-deps": 2,
|
|
"foo": 0,
|
|
"bar": 1
|
|
},
|
|
"trees": [
|
|
{
|
|
"id": 0,
|
|
"path": "node_modules",
|
|
"depth": 0,
|
|
"dependencies": {
|
|
"bar": {
|
|
"id": 0,
|
|
"package_id": 1
|
|
},
|
|
"no-deps": {
|
|
"id": 1,
|
|
"package_id": 2
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"dependencies": [
|
|
{
|
|
"name": "bar",
|
|
"literal": "",
|
|
"workspace": "packages/bar",
|
|
"package_id": 1,
|
|
"behavior": {
|
|
"workspace": true
|
|
},
|
|
"id": 0
|
|
},
|
|
{
|
|
"name": "no-deps",
|
|
"literal": "",
|
|
"workspace": "packages/mono",
|
|
"package_id": 2,
|
|
"behavior": {
|
|
"workspace": true
|
|
},
|
|
"id": 1
|
|
},
|
|
{
|
|
"name": "no-deps",
|
|
"literal": "*",
|
|
"workspace": "packages/mono",
|
|
"package_id": 2,
|
|
"behavior": {
|
|
"prod": true
|
|
},
|
|
"id": 2
|
|
}
|
|
],
|
|
"packages": [
|
|
{
|
|
"id": 0,
|
|
"name": "foo",
|
|
"name_hash": "14841791273925386894",
|
|
"resolution": {
|
|
"tag": "root",
|
|
"value": "",
|
|
"resolved": ""
|
|
},
|
|
"dependencies": [
|
|
0,
|
|
1
|
|
],
|
|
"integrity": null,
|
|
"man_dir": "",
|
|
"origin": "local",
|
|
"bin": null,
|
|
"scripts": {}
|
|
},
|
|
{
|
|
"id": 1,
|
|
"name": "bar",
|
|
"name_hash": "11592711315645265694",
|
|
"resolution": {
|
|
"tag": "workspace",
|
|
"value": "workspace:packages/bar",
|
|
"resolved": "workspace:packages/bar"
|
|
},
|
|
"dependencies": [
|
|
2
|
|
],
|
|
"integrity": null,
|
|
"man_dir": "",
|
|
"origin": "npm",
|
|
"bin": null,
|
|
"scripts": {}
|
|
},
|
|
{
|
|
"id": 2,
|
|
"name": "no-deps",
|
|
"name_hash": "5128161233225832376",
|
|
"resolution": {
|
|
"tag": "workspace",
|
|
"value": "workspace:packages/mono",
|
|
"resolved": "workspace:packages/mono"
|
|
},
|
|
"dependencies": [],
|
|
"integrity": null,
|
|
"man_dir": "",
|
|
"origin": "npm",
|
|
"bin": null,
|
|
"scripts": {}
|
|
}
|
|
],
|
|
"workspace_paths": {
|
|
"11592711315645265694": "packages/bar",
|
|
"5128161233225832376": "packages/mono"
|
|
},
|
|
"workspace_versions": {
|
|
"11592711315645265694": "1.0.0"
|
|
}
|
|
}"
|
|
`;
|
|
|
|
exports[`dependency on workspace without version in package.json: version: *.*.* 1`] = `
|
|
"{
|
|
"format": "v3",
|
|
"meta_hash": "0000000000000000000000000000000000000000000000000000000000000000",
|
|
"package_index": {
|
|
"no-deps": 2,
|
|
"foo": 0,
|
|
"bar": 1
|
|
},
|
|
"trees": [
|
|
{
|
|
"id": 0,
|
|
"path": "node_modules",
|
|
"depth": 0,
|
|
"dependencies": {
|
|
"bar": {
|
|
"id": 0,
|
|
"package_id": 1
|
|
},
|
|
"no-deps": {
|
|
"id": 1,
|
|
"package_id": 2
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"dependencies": [
|
|
{
|
|
"name": "bar",
|
|
"literal": "",
|
|
"workspace": "packages/bar",
|
|
"package_id": 1,
|
|
"behavior": {
|
|
"workspace": true
|
|
},
|
|
"id": 0
|
|
},
|
|
{
|
|
"name": "no-deps",
|
|
"literal": "",
|
|
"workspace": "packages/mono",
|
|
"package_id": 2,
|
|
"behavior": {
|
|
"workspace": true
|
|
},
|
|
"id": 1
|
|
},
|
|
{
|
|
"name": "no-deps",
|
|
"literal": "*.*.*",
|
|
"workspace": "packages/mono",
|
|
"package_id": 2,
|
|
"behavior": {
|
|
"prod": true
|
|
},
|
|
"id": 2
|
|
}
|
|
],
|
|
"packages": [
|
|
{
|
|
"id": 0,
|
|
"name": "foo",
|
|
"name_hash": "14841791273925386894",
|
|
"resolution": {
|
|
"tag": "root",
|
|
"value": "",
|
|
"resolved": ""
|
|
},
|
|
"dependencies": [
|
|
0,
|
|
1
|
|
],
|
|
"integrity": null,
|
|
"man_dir": "",
|
|
"origin": "local",
|
|
"bin": null,
|
|
"scripts": {}
|
|
},
|
|
{
|
|
"id": 1,
|
|
"name": "bar",
|
|
"name_hash": "11592711315645265694",
|
|
"resolution": {
|
|
"tag": "workspace",
|
|
"value": "workspace:packages/bar",
|
|
"resolved": "workspace:packages/bar"
|
|
},
|
|
"dependencies": [
|
|
2
|
|
],
|
|
"integrity": null,
|
|
"man_dir": "",
|
|
"origin": "npm",
|
|
"bin": null,
|
|
"scripts": {}
|
|
},
|
|
{
|
|
"id": 2,
|
|
"name": "no-deps",
|
|
"name_hash": "5128161233225832376",
|
|
"resolution": {
|
|
"tag": "workspace",
|
|
"value": "workspace:packages/mono",
|
|
"resolved": "workspace:packages/mono"
|
|
},
|
|
"dependencies": [],
|
|
"integrity": null,
|
|
"man_dir": "",
|
|
"origin": "npm",
|
|
"bin": null,
|
|
"scripts": {}
|
|
}
|
|
],
|
|
"workspace_paths": {
|
|
"11592711315645265694": "packages/bar",
|
|
"5128161233225832376": "packages/mono"
|
|
},
|
|
"workspace_versions": {
|
|
"11592711315645265694": "1.0.0"
|
|
}
|
|
}"
|
|
`;
|
|
|
|
exports[`dependency on workspace without version in package.json: version: =* 1`] = `
|
|
"{
|
|
"format": "v3",
|
|
"meta_hash": "0000000000000000000000000000000000000000000000000000000000000000",
|
|
"package_index": {
|
|
"no-deps": 2,
|
|
"foo": 0,
|
|
"bar": 1
|
|
},
|
|
"trees": [
|
|
{
|
|
"id": 0,
|
|
"path": "node_modules",
|
|
"depth": 0,
|
|
"dependencies": {
|
|
"bar": {
|
|
"id": 0,
|
|
"package_id": 1
|
|
},
|
|
"no-deps": {
|
|
"id": 1,
|
|
"package_id": 2
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"dependencies": [
|
|
{
|
|
"name": "bar",
|
|
"literal": "",
|
|
"workspace": "packages/bar",
|
|
"package_id": 1,
|
|
"behavior": {
|
|
"workspace": true
|
|
},
|
|
"id": 0
|
|
},
|
|
{
|
|
"name": "no-deps",
|
|
"literal": "",
|
|
"workspace": "packages/mono",
|
|
"package_id": 2,
|
|
"behavior": {
|
|
"workspace": true
|
|
},
|
|
"id": 1
|
|
},
|
|
{
|
|
"name": "no-deps",
|
|
"literal": "=*",
|
|
"workspace": "packages/mono",
|
|
"package_id": 2,
|
|
"behavior": {
|
|
"prod": true
|
|
},
|
|
"id": 2
|
|
}
|
|
],
|
|
"packages": [
|
|
{
|
|
"id": 0,
|
|
"name": "foo",
|
|
"name_hash": "14841791273925386894",
|
|
"resolution": {
|
|
"tag": "root",
|
|
"value": "",
|
|
"resolved": ""
|
|
},
|
|
"dependencies": [
|
|
0,
|
|
1
|
|
],
|
|
"integrity": null,
|
|
"man_dir": "",
|
|
"origin": "local",
|
|
"bin": null,
|
|
"scripts": {}
|
|
},
|
|
{
|
|
"id": 1,
|
|
"name": "bar",
|
|
"name_hash": "11592711315645265694",
|
|
"resolution": {
|
|
"tag": "workspace",
|
|
"value": "workspace:packages/bar",
|
|
"resolved": "workspace:packages/bar"
|
|
},
|
|
"dependencies": [
|
|
2
|
|
],
|
|
"integrity": null,
|
|
"man_dir": "",
|
|
"origin": "npm",
|
|
"bin": null,
|
|
"scripts": {}
|
|
},
|
|
{
|
|
"id": 2,
|
|
"name": "no-deps",
|
|
"name_hash": "5128161233225832376",
|
|
"resolution": {
|
|
"tag": "workspace",
|
|
"value": "workspace:packages/mono",
|
|
"resolved": "workspace:packages/mono"
|
|
},
|
|
"dependencies": [],
|
|
"integrity": null,
|
|
"man_dir": "",
|
|
"origin": "npm",
|
|
"bin": null,
|
|
"scripts": {}
|
|
}
|
|
],
|
|
"workspace_paths": {
|
|
"11592711315645265694": "packages/bar",
|
|
"5128161233225832376": "packages/mono"
|
|
},
|
|
"workspace_versions": {
|
|
"11592711315645265694": "1.0.0"
|
|
}
|
|
}"
|
|
`;
|
|
|
|
exports[`dependency on workspace without version in package.json: version: kjwoehcojrgjoj 1`] = `
|
|
"{
|
|
"format": "v3",
|
|
"meta_hash": "0000000000000000000000000000000000000000000000000000000000000000",
|
|
"package_index": {
|
|
"no-deps": 2,
|
|
"foo": 0,
|
|
"bar": 1
|
|
},
|
|
"trees": [
|
|
{
|
|
"id": 0,
|
|
"path": "node_modules",
|
|
"depth": 0,
|
|
"dependencies": {
|
|
"bar": {
|
|
"id": 0,
|
|
"package_id": 1
|
|
},
|
|
"no-deps": {
|
|
"id": 1,
|
|
"package_id": 2
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"dependencies": [
|
|
{
|
|
"name": "bar",
|
|
"literal": "",
|
|
"workspace": "packages/bar",
|
|
"package_id": 1,
|
|
"behavior": {
|
|
"workspace": true
|
|
},
|
|
"id": 0
|
|
},
|
|
{
|
|
"name": "no-deps",
|
|
"literal": "",
|
|
"workspace": "packages/mono",
|
|
"package_id": 2,
|
|
"behavior": {
|
|
"workspace": true
|
|
},
|
|
"id": 1
|
|
},
|
|
{
|
|
"name": "no-deps",
|
|
"literal": "kjwoehcojrgjoj",
|
|
"workspace": "packages/mono",
|
|
"package_id": 2,
|
|
"behavior": {
|
|
"prod": true
|
|
},
|
|
"id": 2
|
|
}
|
|
],
|
|
"packages": [
|
|
{
|
|
"id": 0,
|
|
"name": "foo",
|
|
"name_hash": "14841791273925386894",
|
|
"resolution": {
|
|
"tag": "root",
|
|
"value": "",
|
|
"resolved": ""
|
|
},
|
|
"dependencies": [
|
|
0,
|
|
1
|
|
],
|
|
"integrity": null,
|
|
"man_dir": "",
|
|
"origin": "local",
|
|
"bin": null,
|
|
"scripts": {}
|
|
},
|
|
{
|
|
"id": 1,
|
|
"name": "bar",
|
|
"name_hash": "11592711315645265694",
|
|
"resolution": {
|
|
"tag": "workspace",
|
|
"value": "workspace:packages/bar",
|
|
"resolved": "workspace:packages/bar"
|
|
},
|
|
"dependencies": [
|
|
2
|
|
],
|
|
"integrity": null,
|
|
"man_dir": "",
|
|
"origin": "npm",
|
|
"bin": null,
|
|
"scripts": {}
|
|
},
|
|
{
|
|
"id": 2,
|
|
"name": "no-deps",
|
|
"name_hash": "5128161233225832376",
|
|
"resolution": {
|
|
"tag": "workspace",
|
|
"value": "workspace:packages/mono",
|
|
"resolved": "workspace:packages/mono"
|
|
},
|
|
"dependencies": [],
|
|
"integrity": null,
|
|
"man_dir": "",
|
|
"origin": "npm",
|
|
"bin": null,
|
|
"scripts": {}
|
|
}
|
|
],
|
|
"workspace_paths": {
|
|
"11592711315645265694": "packages/bar",
|
|
"5128161233225832376": "packages/mono"
|
|
},
|
|
"workspace_versions": {
|
|
"11592711315645265694": "1.0.0"
|
|
}
|
|
}"
|
|
`;
|
|
|
|
exports[`dependency on workspace without version in package.json: version: *.1.* 1`] = `
|
|
"{
|
|
"format": "v3",
|
|
"meta_hash": "0000000000000000000000000000000000000000000000000000000000000000",
|
|
"package_index": {
|
|
"no-deps": 2,
|
|
"foo": 0,
|
|
"bar": 1
|
|
},
|
|
"trees": [
|
|
{
|
|
"id": 0,
|
|
"path": "node_modules",
|
|
"depth": 0,
|
|
"dependencies": {
|
|
"bar": {
|
|
"id": 0,
|
|
"package_id": 1
|
|
},
|
|
"no-deps": {
|
|
"id": 1,
|
|
"package_id": 2
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"dependencies": [
|
|
{
|
|
"name": "bar",
|
|
"literal": "",
|
|
"workspace": "packages/bar",
|
|
"package_id": 1,
|
|
"behavior": {
|
|
"workspace": true
|
|
},
|
|
"id": 0
|
|
},
|
|
{
|
|
"name": "no-deps",
|
|
"literal": "",
|
|
"workspace": "packages/mono",
|
|
"package_id": 2,
|
|
"behavior": {
|
|
"workspace": true
|
|
},
|
|
"id": 1
|
|
},
|
|
{
|
|
"name": "no-deps",
|
|
"literal": "*.1.*",
|
|
"workspace": "packages/mono",
|
|
"package_id": 2,
|
|
"behavior": {
|
|
"prod": true
|
|
},
|
|
"id": 2
|
|
}
|
|
],
|
|
"packages": [
|
|
{
|
|
"id": 0,
|
|
"name": "foo",
|
|
"name_hash": "14841791273925386894",
|
|
"resolution": {
|
|
"tag": "root",
|
|
"value": "",
|
|
"resolved": ""
|
|
},
|
|
"dependencies": [
|
|
0,
|
|
1
|
|
],
|
|
"integrity": null,
|
|
"man_dir": "",
|
|
"origin": "local",
|
|
"bin": null,
|
|
"scripts": {}
|
|
},
|
|
{
|
|
"id": 1,
|
|
"name": "bar",
|
|
"name_hash": "11592711315645265694",
|
|
"resolution": {
|
|
"tag": "workspace",
|
|
"value": "workspace:packages/bar",
|
|
"resolved": "workspace:packages/bar"
|
|
},
|
|
"dependencies": [
|
|
2
|
|
],
|
|
"integrity": null,
|
|
"man_dir": "",
|
|
"origin": "npm",
|
|
"bin": null,
|
|
"scripts": {}
|
|
},
|
|
{
|
|
"id": 2,
|
|
"name": "no-deps",
|
|
"name_hash": "5128161233225832376",
|
|
"resolution": {
|
|
"tag": "workspace",
|
|
"value": "workspace:packages/mono",
|
|
"resolved": "workspace:packages/mono"
|
|
},
|
|
"dependencies": [],
|
|
"integrity": null,
|
|
"man_dir": "",
|
|
"origin": "npm",
|
|
"bin": null,
|
|
"scripts": {}
|
|
}
|
|
],
|
|
"workspace_paths": {
|
|
"11592711315645265694": "packages/bar",
|
|
"5128161233225832376": "packages/mono"
|
|
},
|
|
"workspace_versions": {
|
|
"11592711315645265694": "1.0.0"
|
|
}
|
|
}"
|
|
`;
|
|
|
|
exports[`dependency on workspace without version in package.json: version: *-pre 1`] = `
|
|
"{
|
|
"format": "v3",
|
|
"meta_hash": "0000000000000000000000000000000000000000000000000000000000000000",
|
|
"package_index": {
|
|
"no-deps": 2,
|
|
"foo": 0,
|
|
"bar": 1
|
|
},
|
|
"trees": [
|
|
{
|
|
"id": 0,
|
|
"path": "node_modules",
|
|
"depth": 0,
|
|
"dependencies": {
|
|
"bar": {
|
|
"id": 0,
|
|
"package_id": 1
|
|
},
|
|
"no-deps": {
|
|
"id": 1,
|
|
"package_id": 2
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"dependencies": [
|
|
{
|
|
"name": "bar",
|
|
"literal": "",
|
|
"workspace": "packages/bar",
|
|
"package_id": 1,
|
|
"behavior": {
|
|
"workspace": true
|
|
},
|
|
"id": 0
|
|
},
|
|
{
|
|
"name": "no-deps",
|
|
"literal": "",
|
|
"workspace": "packages/mono",
|
|
"package_id": 2,
|
|
"behavior": {
|
|
"workspace": true
|
|
},
|
|
"id": 1
|
|
},
|
|
{
|
|
"name": "no-deps",
|
|
"literal": "*-pre",
|
|
"workspace": "packages/mono",
|
|
"package_id": 2,
|
|
"behavior": {
|
|
"prod": true
|
|
},
|
|
"id": 2
|
|
}
|
|
],
|
|
"packages": [
|
|
{
|
|
"id": 0,
|
|
"name": "foo",
|
|
"name_hash": "14841791273925386894",
|
|
"resolution": {
|
|
"tag": "root",
|
|
"value": "",
|
|
"resolved": ""
|
|
},
|
|
"dependencies": [
|
|
0,
|
|
1
|
|
],
|
|
"integrity": null,
|
|
"man_dir": "",
|
|
"origin": "local",
|
|
"bin": null,
|
|
"scripts": {}
|
|
},
|
|
{
|
|
"id": 1,
|
|
"name": "bar",
|
|
"name_hash": "11592711315645265694",
|
|
"resolution": {
|
|
"tag": "workspace",
|
|
"value": "workspace:packages/bar",
|
|
"resolved": "workspace:packages/bar"
|
|
},
|
|
"dependencies": [
|
|
2
|
|
],
|
|
"integrity": null,
|
|
"man_dir": "",
|
|
"origin": "npm",
|
|
"bin": null,
|
|
"scripts": {}
|
|
},
|
|
{
|
|
"id": 2,
|
|
"name": "no-deps",
|
|
"name_hash": "5128161233225832376",
|
|
"resolution": {
|
|
"tag": "workspace",
|
|
"value": "workspace:packages/mono",
|
|
"resolved": "workspace:packages/mono"
|
|
},
|
|
"dependencies": [],
|
|
"integrity": null,
|
|
"man_dir": "",
|
|
"origin": "npm",
|
|
"bin": null,
|
|
"scripts": {}
|
|
}
|
|
],
|
|
"workspace_paths": {
|
|
"11592711315645265694": "packages/bar",
|
|
"5128161233225832376": "packages/mono"
|
|
},
|
|
"workspace_versions": {
|
|
"11592711315645265694": "1.0.0"
|
|
}
|
|
}"
|
|
`;
|
|
|
|
exports[`dependency on workspace without version in package.json: version: 1 1`] = `
|
|
"{
|
|
"format": "v3",
|
|
"meta_hash": "0000000000000000000000000000000000000000000000000000000000000000",
|
|
"package_index": {
|
|
"no-deps": [
|
|
2,
|
|
3
|
|
],
|
|
"foo": 0,
|
|
"bar": 1
|
|
},
|
|
"trees": [
|
|
{
|
|
"id": 0,
|
|
"path": "node_modules",
|
|
"depth": 0,
|
|
"dependencies": {
|
|
"bar": {
|
|
"id": 0,
|
|
"package_id": 1
|
|
},
|
|
"no-deps": {
|
|
"id": 1,
|
|
"package_id": 2
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": 1,
|
|
"path": "node_modules/bar/node_modules",
|
|
"depth": 1,
|
|
"dependencies": {
|
|
"no-deps": {
|
|
"id": 2,
|
|
"package_id": 3
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"dependencies": [
|
|
{
|
|
"name": "bar",
|
|
"literal": "",
|
|
"workspace": "packages/bar",
|
|
"package_id": 1,
|
|
"behavior": {
|
|
"workspace": true
|
|
},
|
|
"id": 0
|
|
},
|
|
{
|
|
"name": "no-deps",
|
|
"literal": "",
|
|
"workspace": "packages/mono",
|
|
"package_id": 2,
|
|
"behavior": {
|
|
"workspace": true
|
|
},
|
|
"id": 1
|
|
},
|
|
{
|
|
"name": "no-deps",
|
|
"literal": "1",
|
|
"npm": {
|
|
"name": "no-deps",
|
|
"version": "<2.0.0 >=1.0.0"
|
|
},
|
|
"package_id": 3,
|
|
"behavior": {
|
|
"prod": true
|
|
},
|
|
"id": 2
|
|
}
|
|
],
|
|
"packages": [
|
|
{
|
|
"id": 0,
|
|
"name": "foo",
|
|
"name_hash": "14841791273925386894",
|
|
"resolution": {
|
|
"tag": "root",
|
|
"value": "",
|
|
"resolved": ""
|
|
},
|
|
"dependencies": [
|
|
0,
|
|
1
|
|
],
|
|
"integrity": null,
|
|
"man_dir": "",
|
|
"origin": "local",
|
|
"bin": null,
|
|
"scripts": {}
|
|
},
|
|
{
|
|
"id": 1,
|
|
"name": "bar",
|
|
"name_hash": "11592711315645265694",
|
|
"resolution": {
|
|
"tag": "workspace",
|
|
"value": "workspace:packages/bar",
|
|
"resolved": "workspace:packages/bar"
|
|
},
|
|
"dependencies": [
|
|
2
|
|
],
|
|
"integrity": null,
|
|
"man_dir": "",
|
|
"origin": "npm",
|
|
"bin": null,
|
|
"scripts": {}
|
|
},
|
|
{
|
|
"id": 2,
|
|
"name": "no-deps",
|
|
"name_hash": "5128161233225832376",
|
|
"resolution": {
|
|
"tag": "workspace",
|
|
"value": "workspace:packages/mono",
|
|
"resolved": "workspace:packages/mono"
|
|
},
|
|
"dependencies": [],
|
|
"integrity": null,
|
|
"man_dir": "",
|
|
"origin": "npm",
|
|
"bin": null,
|
|
"scripts": {}
|
|
},
|
|
{
|
|
"id": 3,
|
|
"name": "no-deps",
|
|
"name_hash": "5128161233225832376",
|
|
"resolution": {
|
|
"tag": "npm",
|
|
"value": "1.1.0",
|
|
"resolved": "http://localhost:1234/no-deps/-/no-deps-1.1.0.tgz"
|
|
},
|
|
"dependencies": [],
|
|
"integrity": "sha512-ebG2pipYAKINcNI3YxdsiAgFvNGp2gdRwxAKN2LYBm9+YxuH/lHH2sl+GKQTuGiNfCfNZRMHUyyLPEJD6HWm7w==",
|
|
"man_dir": "",
|
|
"origin": "npm",
|
|
"bin": null,
|
|
"scripts": {}
|
|
}
|
|
],
|
|
"workspace_paths": {
|
|
"11592711315645265694": "packages/bar",
|
|
"5128161233225832376": "packages/mono"
|
|
},
|
|
"workspace_versions": {
|
|
"11592711315645265694": "1.0.0"
|
|
}
|
|
}"
|
|
`;
|
|
|
|
exports[`dependency on workspace without version in package.json: version: 1.* 1`] = `
|
|
"{
|
|
"format": "v3",
|
|
"meta_hash": "0000000000000000000000000000000000000000000000000000000000000000",
|
|
"package_index": {
|
|
"no-deps": [
|
|
2,
|
|
3
|
|
],
|
|
"foo": 0,
|
|
"bar": 1
|
|
},
|
|
"trees": [
|
|
{
|
|
"id": 0,
|
|
"path": "node_modules",
|
|
"depth": 0,
|
|
"dependencies": {
|
|
"bar": {
|
|
"id": 0,
|
|
"package_id": 1
|
|
},
|
|
"no-deps": {
|
|
"id": 1,
|
|
"package_id": 2
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": 1,
|
|
"path": "node_modules/bar/node_modules",
|
|
"depth": 1,
|
|
"dependencies": {
|
|
"no-deps": {
|
|
"id": 2,
|
|
"package_id": 3
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"dependencies": [
|
|
{
|
|
"name": "bar",
|
|
"literal": "",
|
|
"workspace": "packages/bar",
|
|
"package_id": 1,
|
|
"behavior": {
|
|
"workspace": true
|
|
},
|
|
"id": 0
|
|
},
|
|
{
|
|
"name": "no-deps",
|
|
"literal": "",
|
|
"workspace": "packages/mono",
|
|
"package_id": 2,
|
|
"behavior": {
|
|
"workspace": true
|
|
},
|
|
"id": 1
|
|
},
|
|
{
|
|
"name": "no-deps",
|
|
"literal": "1.*",
|
|
"npm": {
|
|
"name": "no-deps",
|
|
"version": "<2.0.0 >=1.0.0"
|
|
},
|
|
"package_id": 3,
|
|
"behavior": {
|
|
"prod": true
|
|
},
|
|
"id": 2
|
|
}
|
|
],
|
|
"packages": [
|
|
{
|
|
"id": 0,
|
|
"name": "foo",
|
|
"name_hash": "14841791273925386894",
|
|
"resolution": {
|
|
"tag": "root",
|
|
"value": "",
|
|
"resolved": ""
|
|
},
|
|
"dependencies": [
|
|
0,
|
|
1
|
|
],
|
|
"integrity": null,
|
|
"man_dir": "",
|
|
"origin": "local",
|
|
"bin": null,
|
|
"scripts": {}
|
|
},
|
|
{
|
|
"id": 1,
|
|
"name": "bar",
|
|
"name_hash": "11592711315645265694",
|
|
"resolution": {
|
|
"tag": "workspace",
|
|
"value": "workspace:packages/bar",
|
|
"resolved": "workspace:packages/bar"
|
|
},
|
|
"dependencies": [
|
|
2
|
|
],
|
|
"integrity": null,
|
|
"man_dir": "",
|
|
"origin": "npm",
|
|
"bin": null,
|
|
"scripts": {}
|
|
},
|
|
{
|
|
"id": 2,
|
|
"name": "no-deps",
|
|
"name_hash": "5128161233225832376",
|
|
"resolution": {
|
|
"tag": "workspace",
|
|
"value": "workspace:packages/mono",
|
|
"resolved": "workspace:packages/mono"
|
|
},
|
|
"dependencies": [],
|
|
"integrity": null,
|
|
"man_dir": "",
|
|
"origin": "npm",
|
|
"bin": null,
|
|
"scripts": {}
|
|
},
|
|
{
|
|
"id": 3,
|
|
"name": "no-deps",
|
|
"name_hash": "5128161233225832376",
|
|
"resolution": {
|
|
"tag": "npm",
|
|
"value": "1.1.0",
|
|
"resolved": "http://localhost:1234/no-deps/-/no-deps-1.1.0.tgz"
|
|
},
|
|
"dependencies": [],
|
|
"integrity": "sha512-ebG2pipYAKINcNI3YxdsiAgFvNGp2gdRwxAKN2LYBm9+YxuH/lHH2sl+GKQTuGiNfCfNZRMHUyyLPEJD6HWm7w==",
|
|
"man_dir": "",
|
|
"origin": "npm",
|
|
"bin": null,
|
|
"scripts": {}
|
|
}
|
|
],
|
|
"workspace_paths": {
|
|
"11592711315645265694": "packages/bar",
|
|
"5128161233225832376": "packages/mono"
|
|
},
|
|
"workspace_versions": {
|
|
"11592711315645265694": "1.0.0"
|
|
}
|
|
}"
|
|
`;
|
|
|
|
exports[`dependency on workspace without version in package.json: version: 1.1.* 1`] = `
|
|
"{
|
|
"format": "v3",
|
|
"meta_hash": "0000000000000000000000000000000000000000000000000000000000000000",
|
|
"package_index": {
|
|
"no-deps": [
|
|
2,
|
|
3
|
|
],
|
|
"foo": 0,
|
|
"bar": 1
|
|
},
|
|
"trees": [
|
|
{
|
|
"id": 0,
|
|
"path": "node_modules",
|
|
"depth": 0,
|
|
"dependencies": {
|
|
"bar": {
|
|
"id": 0,
|
|
"package_id": 1
|
|
},
|
|
"no-deps": {
|
|
"id": 1,
|
|
"package_id": 2
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": 1,
|
|
"path": "node_modules/bar/node_modules",
|
|
"depth": 1,
|
|
"dependencies": {
|
|
"no-deps": {
|
|
"id": 2,
|
|
"package_id": 3
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"dependencies": [
|
|
{
|
|
"name": "bar",
|
|
"literal": "",
|
|
"workspace": "packages/bar",
|
|
"package_id": 1,
|
|
"behavior": {
|
|
"workspace": true
|
|
},
|
|
"id": 0
|
|
},
|
|
{
|
|
"name": "no-deps",
|
|
"literal": "",
|
|
"workspace": "packages/mono",
|
|
"package_id": 2,
|
|
"behavior": {
|
|
"workspace": true
|
|
},
|
|
"id": 1
|
|
},
|
|
{
|
|
"name": "no-deps",
|
|
"literal": "1.1.*",
|
|
"npm": {
|
|
"name": "no-deps",
|
|
"version": "<1.2.0 >=1.1.0"
|
|
},
|
|
"package_id": 3,
|
|
"behavior": {
|
|
"prod": true
|
|
},
|
|
"id": 2
|
|
}
|
|
],
|
|
"packages": [
|
|
{
|
|
"id": 0,
|
|
"name": "foo",
|
|
"name_hash": "14841791273925386894",
|
|
"resolution": {
|
|
"tag": "root",
|
|
"value": "",
|
|
"resolved": ""
|
|
},
|
|
"dependencies": [
|
|
0,
|
|
1
|
|
],
|
|
"integrity": null,
|
|
"man_dir": "",
|
|
"origin": "local",
|
|
"bin": null,
|
|
"scripts": {}
|
|
},
|
|
{
|
|
"id": 1,
|
|
"name": "bar",
|
|
"name_hash": "11592711315645265694",
|
|
"resolution": {
|
|
"tag": "workspace",
|
|
"value": "workspace:packages/bar",
|
|
"resolved": "workspace:packages/bar"
|
|
},
|
|
"dependencies": [
|
|
2
|
|
],
|
|
"integrity": null,
|
|
"man_dir": "",
|
|
"origin": "npm",
|
|
"bin": null,
|
|
"scripts": {}
|
|
},
|
|
{
|
|
"id": 2,
|
|
"name": "no-deps",
|
|
"name_hash": "5128161233225832376",
|
|
"resolution": {
|
|
"tag": "workspace",
|
|
"value": "workspace:packages/mono",
|
|
"resolved": "workspace:packages/mono"
|
|
},
|
|
"dependencies": [],
|
|
"integrity": null,
|
|
"man_dir": "",
|
|
"origin": "npm",
|
|
"bin": null,
|
|
"scripts": {}
|
|
},
|
|
{
|
|
"id": 3,
|
|
"name": "no-deps",
|
|
"name_hash": "5128161233225832376",
|
|
"resolution": {
|
|
"tag": "npm",
|
|
"value": "1.1.0",
|
|
"resolved": "http://localhost:1234/no-deps/-/no-deps-1.1.0.tgz"
|
|
},
|
|
"dependencies": [],
|
|
"integrity": "sha512-ebG2pipYAKINcNI3YxdsiAgFvNGp2gdRwxAKN2LYBm9+YxuH/lHH2sl+GKQTuGiNfCfNZRMHUyyLPEJD6HWm7w==",
|
|
"man_dir": "",
|
|
"origin": "npm",
|
|
"bin": null,
|
|
"scripts": {}
|
|
}
|
|
],
|
|
"workspace_paths": {
|
|
"11592711315645265694": "packages/bar",
|
|
"5128161233225832376": "packages/mono"
|
|
},
|
|
"workspace_versions": {
|
|
"11592711315645265694": "1.0.0"
|
|
}
|
|
}"
|
|
`;
|
|
|
|
exports[`dependency on workspace without version in package.json: version: 1.1.0 1`] = `
|
|
"{
|
|
"format": "v3",
|
|
"meta_hash": "0000000000000000000000000000000000000000000000000000000000000000",
|
|
"package_index": {
|
|
"no-deps": [
|
|
2,
|
|
3
|
|
],
|
|
"foo": 0,
|
|
"bar": 1
|
|
},
|
|
"trees": [
|
|
{
|
|
"id": 0,
|
|
"path": "node_modules",
|
|
"depth": 0,
|
|
"dependencies": {
|
|
"bar": {
|
|
"id": 0,
|
|
"package_id": 1
|
|
},
|
|
"no-deps": {
|
|
"id": 1,
|
|
"package_id": 2
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": 1,
|
|
"path": "node_modules/bar/node_modules",
|
|
"depth": 1,
|
|
"dependencies": {
|
|
"no-deps": {
|
|
"id": 2,
|
|
"package_id": 3
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"dependencies": [
|
|
{
|
|
"name": "bar",
|
|
"literal": "",
|
|
"workspace": "packages/bar",
|
|
"package_id": 1,
|
|
"behavior": {
|
|
"workspace": true
|
|
},
|
|
"id": 0
|
|
},
|
|
{
|
|
"name": "no-deps",
|
|
"literal": "",
|
|
"workspace": "packages/mono",
|
|
"package_id": 2,
|
|
"behavior": {
|
|
"workspace": true
|
|
},
|
|
"id": 1
|
|
},
|
|
{
|
|
"name": "no-deps",
|
|
"literal": "1.1.0",
|
|
"npm": {
|
|
"name": "no-deps",
|
|
"version": "==1.1.0"
|
|
},
|
|
"package_id": 3,
|
|
"behavior": {
|
|
"prod": true
|
|
},
|
|
"id": 2
|
|
}
|
|
],
|
|
"packages": [
|
|
{
|
|
"id": 0,
|
|
"name": "foo",
|
|
"name_hash": "14841791273925386894",
|
|
"resolution": {
|
|
"tag": "root",
|
|
"value": "",
|
|
"resolved": ""
|
|
},
|
|
"dependencies": [
|
|
0,
|
|
1
|
|
],
|
|
"integrity": null,
|
|
"man_dir": "",
|
|
"origin": "local",
|
|
"bin": null,
|
|
"scripts": {}
|
|
},
|
|
{
|
|
"id": 1,
|
|
"name": "bar",
|
|
"name_hash": "11592711315645265694",
|
|
"resolution": {
|
|
"tag": "workspace",
|
|
"value": "workspace:packages/bar",
|
|
"resolved": "workspace:packages/bar"
|
|
},
|
|
"dependencies": [
|
|
2
|
|
],
|
|
"integrity": null,
|
|
"man_dir": "",
|
|
"origin": "npm",
|
|
"bin": null,
|
|
"scripts": {}
|
|
},
|
|
{
|
|
"id": 2,
|
|
"name": "no-deps",
|
|
"name_hash": "5128161233225832376",
|
|
"resolution": {
|
|
"tag": "workspace",
|
|
"value": "workspace:packages/mono",
|
|
"resolved": "workspace:packages/mono"
|
|
},
|
|
"dependencies": [],
|
|
"integrity": null,
|
|
"man_dir": "",
|
|
"origin": "npm",
|
|
"bin": null,
|
|
"scripts": {}
|
|
},
|
|
{
|
|
"id": 3,
|
|
"name": "no-deps",
|
|
"name_hash": "5128161233225832376",
|
|
"resolution": {
|
|
"tag": "npm",
|
|
"value": "1.1.0",
|
|
"resolved": "http://localhost:1234/no-deps/-/no-deps-1.1.0.tgz"
|
|
},
|
|
"dependencies": [],
|
|
"integrity": "sha512-ebG2pipYAKINcNI3YxdsiAgFvNGp2gdRwxAKN2LYBm9+YxuH/lHH2sl+GKQTuGiNfCfNZRMHUyyLPEJD6HWm7w==",
|
|
"man_dir": "",
|
|
"origin": "npm",
|
|
"bin": null,
|
|
"scripts": {}
|
|
}
|
|
],
|
|
"workspace_paths": {
|
|
"11592711315645265694": "packages/bar",
|
|
"5128161233225832376": "packages/mono"
|
|
},
|
|
"workspace_versions": {
|
|
"11592711315645265694": "1.0.0"
|
|
}
|
|
}"
|
|
`;
|
|
|
|
exports[`dependency on workspace without version in package.json: version: *-pre+build 1`] = `
|
|
"{
|
|
"format": "v3",
|
|
"meta_hash": "0000000000000000000000000000000000000000000000000000000000000000",
|
|
"package_index": {
|
|
"no-deps": [
|
|
2,
|
|
3
|
|
],
|
|
"foo": 0,
|
|
"bar": 1
|
|
},
|
|
"trees": [
|
|
{
|
|
"id": 0,
|
|
"path": "node_modules",
|
|
"depth": 0,
|
|
"dependencies": {
|
|
"bar": {
|
|
"id": 0,
|
|
"package_id": 1
|
|
},
|
|
"no-deps": {
|
|
"id": 1,
|
|
"package_id": 2
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": 1,
|
|
"path": "node_modules/bar/node_modules",
|
|
"depth": 1,
|
|
"dependencies": {
|
|
"no-deps": {
|
|
"id": 2,
|
|
"package_id": 3
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"dependencies": [
|
|
{
|
|
"name": "bar",
|
|
"literal": "",
|
|
"workspace": "packages/bar",
|
|
"package_id": 1,
|
|
"behavior": {
|
|
"workspace": true
|
|
},
|
|
"id": 0
|
|
},
|
|
{
|
|
"name": "no-deps",
|
|
"literal": "",
|
|
"workspace": "packages/mono",
|
|
"package_id": 2,
|
|
"behavior": {
|
|
"workspace": true
|
|
},
|
|
"id": 1
|
|
},
|
|
{
|
|
"name": "no-deps",
|
|
"literal": "*-pre+build",
|
|
"npm": {
|
|
"name": "no-deps",
|
|
"version": ">=0.0.0"
|
|
},
|
|
"package_id": 3,
|
|
"behavior": {
|
|
"prod": true
|
|
},
|
|
"id": 2
|
|
}
|
|
],
|
|
"packages": [
|
|
{
|
|
"id": 0,
|
|
"name": "foo",
|
|
"name_hash": "14841791273925386894",
|
|
"resolution": {
|
|
"tag": "root",
|
|
"value": "",
|
|
"resolved": ""
|
|
},
|
|
"dependencies": [
|
|
0,
|
|
1
|
|
],
|
|
"integrity": null,
|
|
"man_dir": "",
|
|
"origin": "local",
|
|
"bin": null,
|
|
"scripts": {}
|
|
},
|
|
{
|
|
"id": 1,
|
|
"name": "bar",
|
|
"name_hash": "11592711315645265694",
|
|
"resolution": {
|
|
"tag": "workspace",
|
|
"value": "workspace:packages/bar",
|
|
"resolved": "workspace:packages/bar"
|
|
},
|
|
"dependencies": [
|
|
2
|
|
],
|
|
"integrity": null,
|
|
"man_dir": "",
|
|
"origin": "npm",
|
|
"bin": null,
|
|
"scripts": {}
|
|
},
|
|
{
|
|
"id": 2,
|
|
"name": "no-deps",
|
|
"name_hash": "5128161233225832376",
|
|
"resolution": {
|
|
"tag": "workspace",
|
|
"value": "workspace:packages/mono",
|
|
"resolved": "workspace:packages/mono"
|
|
},
|
|
"dependencies": [],
|
|
"integrity": null,
|
|
"man_dir": "",
|
|
"origin": "npm",
|
|
"bin": null,
|
|
"scripts": {}
|
|
},
|
|
{
|
|
"id": 3,
|
|
"name": "no-deps",
|
|
"name_hash": "5128161233225832376",
|
|
"resolution": {
|
|
"tag": "npm",
|
|
"value": "2.0.0",
|
|
"resolved": "http://localhost:1234/no-deps/-/no-deps-2.0.0.tgz"
|
|
},
|
|
"dependencies": [],
|
|
"integrity": "sha512-W3duJKZPcMIG5rA1io5cSK/bhW9rWFz+jFxZsKS/3suK4qHDkQNxUTEXee9/hTaAoDCeHWQqogukWYKzfr6X4g==",
|
|
"man_dir": "",
|
|
"origin": "npm",
|
|
"bin": null,
|
|
"scripts": {}
|
|
}
|
|
],
|
|
"workspace_paths": {
|
|
"11592711315645265694": "packages/bar",
|
|
"5128161233225832376": "packages/mono"
|
|
},
|
|
"workspace_versions": {
|
|
"11592711315645265694": "1.0.0"
|
|
}
|
|
}"
|
|
`;
|
|
|
|
exports[`dependency on workspace without version in package.json: version: *+build 1`] = `
|
|
"{
|
|
"format": "v3",
|
|
"meta_hash": "0000000000000000000000000000000000000000000000000000000000000000",
|
|
"package_index": {
|
|
"no-deps": [
|
|
2,
|
|
3
|
|
],
|
|
"foo": 0,
|
|
"bar": 1
|
|
},
|
|
"trees": [
|
|
{
|
|
"id": 0,
|
|
"path": "node_modules",
|
|
"depth": 0,
|
|
"dependencies": {
|
|
"bar": {
|
|
"id": 0,
|
|
"package_id": 1
|
|
},
|
|
"no-deps": {
|
|
"id": 1,
|
|
"package_id": 2
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": 1,
|
|
"path": "node_modules/bar/node_modules",
|
|
"depth": 1,
|
|
"dependencies": {
|
|
"no-deps": {
|
|
"id": 2,
|
|
"package_id": 3
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"dependencies": [
|
|
{
|
|
"name": "bar",
|
|
"literal": "",
|
|
"workspace": "packages/bar",
|
|
"package_id": 1,
|
|
"behavior": {
|
|
"workspace": true
|
|
},
|
|
"id": 0
|
|
},
|
|
{
|
|
"name": "no-deps",
|
|
"literal": "",
|
|
"workspace": "packages/mono",
|
|
"package_id": 2,
|
|
"behavior": {
|
|
"workspace": true
|
|
},
|
|
"id": 1
|
|
},
|
|
{
|
|
"name": "no-deps",
|
|
"literal": "*+build",
|
|
"npm": {
|
|
"name": "no-deps",
|
|
"version": ">=0.0.0"
|
|
},
|
|
"package_id": 3,
|
|
"behavior": {
|
|
"prod": true
|
|
},
|
|
"id": 2
|
|
}
|
|
],
|
|
"packages": [
|
|
{
|
|
"id": 0,
|
|
"name": "foo",
|
|
"name_hash": "14841791273925386894",
|
|
"resolution": {
|
|
"tag": "root",
|
|
"value": "",
|
|
"resolved": ""
|
|
},
|
|
"dependencies": [
|
|
0,
|
|
1
|
|
],
|
|
"integrity": null,
|
|
"man_dir": "",
|
|
"origin": "local",
|
|
"bin": null,
|
|
"scripts": {}
|
|
},
|
|
{
|
|
"id": 1,
|
|
"name": "bar",
|
|
"name_hash": "11592711315645265694",
|
|
"resolution": {
|
|
"tag": "workspace",
|
|
"value": "workspace:packages/bar",
|
|
"resolved": "workspace:packages/bar"
|
|
},
|
|
"dependencies": [
|
|
2
|
|
],
|
|
"integrity": null,
|
|
"man_dir": "",
|
|
"origin": "npm",
|
|
"bin": null,
|
|
"scripts": {}
|
|
},
|
|
{
|
|
"id": 2,
|
|
"name": "no-deps",
|
|
"name_hash": "5128161233225832376",
|
|
"resolution": {
|
|
"tag": "workspace",
|
|
"value": "workspace:packages/mono",
|
|
"resolved": "workspace:packages/mono"
|
|
},
|
|
"dependencies": [],
|
|
"integrity": null,
|
|
"man_dir": "",
|
|
"origin": "npm",
|
|
"bin": null,
|
|
"scripts": {}
|
|
},
|
|
{
|
|
"id": 3,
|
|
"name": "no-deps",
|
|
"name_hash": "5128161233225832376",
|
|
"resolution": {
|
|
"tag": "npm",
|
|
"value": "2.0.0",
|
|
"resolved": "http://localhost:1234/no-deps/-/no-deps-2.0.0.tgz"
|
|
},
|
|
"dependencies": [],
|
|
"integrity": "sha512-W3duJKZPcMIG5rA1io5cSK/bhW9rWFz+jFxZsKS/3suK4qHDkQNxUTEXee9/hTaAoDCeHWQqogukWYKzfr6X4g==",
|
|
"man_dir": "",
|
|
"origin": "npm",
|
|
"bin": null,
|
|
"scripts": {}
|
|
}
|
|
],
|
|
"workspace_paths": {
|
|
"11592711315645265694": "packages/bar",
|
|
"5128161233225832376": "packages/mono"
|
|
},
|
|
"workspace_versions": {
|
|
"11592711315645265694": "1.0.0"
|
|
}
|
|
}"
|
|
`;
|
|
|
|
exports[`dependency on workspace without version in package.json: version: latest 1`] = `
|
|
"{
|
|
"format": "v3",
|
|
"meta_hash": "0000000000000000000000000000000000000000000000000000000000000000",
|
|
"package_index": {
|
|
"no-deps": [
|
|
2,
|
|
3
|
|
],
|
|
"foo": 0,
|
|
"bar": 1
|
|
},
|
|
"trees": [
|
|
{
|
|
"id": 0,
|
|
"path": "node_modules",
|
|
"depth": 0,
|
|
"dependencies": {
|
|
"bar": {
|
|
"id": 0,
|
|
"package_id": 1
|
|
},
|
|
"no-deps": {
|
|
"id": 1,
|
|
"package_id": 2
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": 1,
|
|
"path": "node_modules/bar/node_modules",
|
|
"depth": 1,
|
|
"dependencies": {
|
|
"no-deps": {
|
|
"id": 2,
|
|
"package_id": 3
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"dependencies": [
|
|
{
|
|
"name": "bar",
|
|
"literal": "",
|
|
"workspace": "packages/bar",
|
|
"package_id": 1,
|
|
"behavior": {
|
|
"workspace": true
|
|
},
|
|
"id": 0
|
|
},
|
|
{
|
|
"name": "no-deps",
|
|
"literal": "",
|
|
"workspace": "packages/mono",
|
|
"package_id": 2,
|
|
"behavior": {
|
|
"workspace": true
|
|
},
|
|
"id": 1
|
|
},
|
|
{
|
|
"name": "no-deps",
|
|
"literal": "latest",
|
|
"dist_tag": {
|
|
"name": "no-deps",
|
|
"tag": "no-deps"
|
|
},
|
|
"package_id": 3,
|
|
"behavior": {
|
|
"prod": true
|
|
},
|
|
"id": 2
|
|
}
|
|
],
|
|
"packages": [
|
|
{
|
|
"id": 0,
|
|
"name": "foo",
|
|
"name_hash": "14841791273925386894",
|
|
"resolution": {
|
|
"tag": "root",
|
|
"value": "",
|
|
"resolved": ""
|
|
},
|
|
"dependencies": [
|
|
0,
|
|
1
|
|
],
|
|
"integrity": null,
|
|
"man_dir": "",
|
|
"origin": "local",
|
|
"bin": null,
|
|
"scripts": {}
|
|
},
|
|
{
|
|
"id": 1,
|
|
"name": "bar",
|
|
"name_hash": "11592711315645265694",
|
|
"resolution": {
|
|
"tag": "workspace",
|
|
"value": "workspace:packages/bar",
|
|
"resolved": "workspace:packages/bar"
|
|
},
|
|
"dependencies": [
|
|
2
|
|
],
|
|
"integrity": null,
|
|
"man_dir": "",
|
|
"origin": "npm",
|
|
"bin": null,
|
|
"scripts": {}
|
|
},
|
|
{
|
|
"id": 2,
|
|
"name": "no-deps",
|
|
"name_hash": "5128161233225832376",
|
|
"resolution": {
|
|
"tag": "workspace",
|
|
"value": "workspace:packages/mono",
|
|
"resolved": "workspace:packages/mono"
|
|
},
|
|
"dependencies": [],
|
|
"integrity": null,
|
|
"man_dir": "",
|
|
"origin": "npm",
|
|
"bin": null,
|
|
"scripts": {}
|
|
},
|
|
{
|
|
"id": 3,
|
|
"name": "no-deps",
|
|
"name_hash": "5128161233225832376",
|
|
"resolution": {
|
|
"tag": "npm",
|
|
"value": "2.0.0",
|
|
"resolved": "http://localhost:1234/no-deps/-/no-deps-2.0.0.tgz"
|
|
},
|
|
"dependencies": [],
|
|
"integrity": "sha512-W3duJKZPcMIG5rA1io5cSK/bhW9rWFz+jFxZsKS/3suK4qHDkQNxUTEXee9/hTaAoDCeHWQqogukWYKzfr6X4g==",
|
|
"man_dir": "",
|
|
"origin": "npm",
|
|
"bin": null,
|
|
"scripts": {}
|
|
}
|
|
],
|
|
"workspace_paths": {
|
|
"11592711315645265694": "packages/bar",
|
|
"5128161233225832376": "packages/mono"
|
|
},
|
|
"workspace_versions": {
|
|
"11592711315645265694": "1.0.0"
|
|
}
|
|
}"
|
|
`;
|
|
|
|
exports[`dependency on workspace without version in package.json: version: 1`] = `
|
|
"{
|
|
"format": "v3",
|
|
"meta_hash": "0000000000000000000000000000000000000000000000000000000000000000",
|
|
"package_index": {
|
|
"no-deps": [
|
|
2,
|
|
3
|
|
],
|
|
"foo": 0,
|
|
"bar": 1
|
|
},
|
|
"trees": [
|
|
{
|
|
"id": 0,
|
|
"path": "node_modules",
|
|
"depth": 0,
|
|
"dependencies": {
|
|
"bar": {
|
|
"id": 0,
|
|
"package_id": 1
|
|
},
|
|
"no-deps": {
|
|
"id": 1,
|
|
"package_id": 2
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": 1,
|
|
"path": "node_modules/bar/node_modules",
|
|
"depth": 1,
|
|
"dependencies": {
|
|
"no-deps": {
|
|
"id": 2,
|
|
"package_id": 3
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"dependencies": [
|
|
{
|
|
"name": "bar",
|
|
"literal": "",
|
|
"workspace": "packages/bar",
|
|
"package_id": 1,
|
|
"behavior": {
|
|
"workspace": true
|
|
},
|
|
"id": 0
|
|
},
|
|
{
|
|
"name": "no-deps",
|
|
"literal": "",
|
|
"workspace": "packages/mono",
|
|
"package_id": 2,
|
|
"behavior": {
|
|
"workspace": true
|
|
},
|
|
"id": 1
|
|
},
|
|
{
|
|
"name": "no-deps",
|
|
"literal": "",
|
|
"dist_tag": {
|
|
"name": "no-deps",
|
|
"tag": "no-deps"
|
|
},
|
|
"package_id": 3,
|
|
"behavior": {
|
|
"prod": true
|
|
},
|
|
"id": 2
|
|
}
|
|
],
|
|
"packages": [
|
|
{
|
|
"id": 0,
|
|
"name": "foo",
|
|
"name_hash": "14841791273925386894",
|
|
"resolution": {
|
|
"tag": "root",
|
|
"value": "",
|
|
"resolved": ""
|
|
},
|
|
"dependencies": [
|
|
0,
|
|
1
|
|
],
|
|
"integrity": null,
|
|
"man_dir": "",
|
|
"origin": "local",
|
|
"bin": null,
|
|
"scripts": {}
|
|
},
|
|
{
|
|
"id": 1,
|
|
"name": "bar",
|
|
"name_hash": "11592711315645265694",
|
|
"resolution": {
|
|
"tag": "workspace",
|
|
"value": "workspace:packages/bar",
|
|
"resolved": "workspace:packages/bar"
|
|
},
|
|
"dependencies": [
|
|
2
|
|
],
|
|
"integrity": null,
|
|
"man_dir": "",
|
|
"origin": "npm",
|
|
"bin": null,
|
|
"scripts": {}
|
|
},
|
|
{
|
|
"id": 2,
|
|
"name": "no-deps",
|
|
"name_hash": "5128161233225832376",
|
|
"resolution": {
|
|
"tag": "workspace",
|
|
"value": "workspace:packages/mono",
|
|
"resolved": "workspace:packages/mono"
|
|
},
|
|
"dependencies": [],
|
|
"integrity": null,
|
|
"man_dir": "",
|
|
"origin": "npm",
|
|
"bin": null,
|
|
"scripts": {}
|
|
},
|
|
{
|
|
"id": 3,
|
|
"name": "no-deps",
|
|
"name_hash": "5128161233225832376",
|
|
"resolution": {
|
|
"tag": "npm",
|
|
"value": "2.0.0",
|
|
"resolved": "http://localhost:1234/no-deps/-/no-deps-2.0.0.tgz"
|
|
},
|
|
"dependencies": [],
|
|
"integrity": "sha512-W3duJKZPcMIG5rA1io5cSK/bhW9rWFz+jFxZsKS/3suK4qHDkQNxUTEXee9/hTaAoDCeHWQqogukWYKzfr6X4g==",
|
|
"man_dir": "",
|
|
"origin": "npm",
|
|
"bin": null,
|
|
"scripts": {}
|
|
}
|
|
],
|
|
"workspace_paths": {
|
|
"11592711315645265694": "packages/bar",
|
|
"5128161233225832376": "packages/mono"
|
|
},
|
|
"workspace_versions": {
|
|
"11592711315645265694": "1.0.0"
|
|
}
|
|
}"
|
|
`;
|
|
|
|
exports[`dependency on same name as workspace and dist-tag: with version 1`] = `
|
|
"{
|
|
"format": "v3",
|
|
"meta_hash": "0000000000000000000000000000000000000000000000000000000000000000",
|
|
"package_index": {
|
|
"no-deps": [
|
|
2,
|
|
3
|
|
],
|
|
"foo": 0,
|
|
"bar": 1
|
|
},
|
|
"trees": [
|
|
{
|
|
"id": 0,
|
|
"path": "node_modules",
|
|
"depth": 0,
|
|
"dependencies": {
|
|
"bar": {
|
|
"id": 0,
|
|
"package_id": 1
|
|
},
|
|
"no-deps": {
|
|
"id": 1,
|
|
"package_id": 2
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": 1,
|
|
"path": "node_modules/bar/node_modules",
|
|
"depth": 1,
|
|
"dependencies": {
|
|
"no-deps": {
|
|
"id": 2,
|
|
"package_id": 3
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"dependencies": [
|
|
{
|
|
"name": "bar",
|
|
"literal": "",
|
|
"workspace": "packages/bar",
|
|
"package_id": 1,
|
|
"behavior": {
|
|
"workspace": true
|
|
},
|
|
"id": 0
|
|
},
|
|
{
|
|
"name": "no-deps",
|
|
"literal": "",
|
|
"workspace": "packages/mono",
|
|
"package_id": 2,
|
|
"behavior": {
|
|
"workspace": true
|
|
},
|
|
"id": 1
|
|
},
|
|
{
|
|
"name": "no-deps",
|
|
"literal": "latest",
|
|
"dist_tag": {
|
|
"name": "no-deps",
|
|
"tag": "no-deps"
|
|
},
|
|
"package_id": 3,
|
|
"behavior": {
|
|
"prod": true
|
|
},
|
|
"id": 2
|
|
}
|
|
],
|
|
"packages": [
|
|
{
|
|
"id": 0,
|
|
"name": "foo",
|
|
"name_hash": "14841791273925386894",
|
|
"resolution": {
|
|
"tag": "root",
|
|
"value": "",
|
|
"resolved": ""
|
|
},
|
|
"dependencies": [
|
|
0,
|
|
1
|
|
],
|
|
"integrity": null,
|
|
"man_dir": "",
|
|
"origin": "local",
|
|
"bin": null,
|
|
"scripts": {}
|
|
},
|
|
{
|
|
"id": 1,
|
|
"name": "bar",
|
|
"name_hash": "11592711315645265694",
|
|
"resolution": {
|
|
"tag": "workspace",
|
|
"value": "workspace:packages/bar",
|
|
"resolved": "workspace:packages/bar"
|
|
},
|
|
"dependencies": [
|
|
2
|
|
],
|
|
"integrity": null,
|
|
"man_dir": "",
|
|
"origin": "npm",
|
|
"bin": null,
|
|
"scripts": {}
|
|
},
|
|
{
|
|
"id": 2,
|
|
"name": "no-deps",
|
|
"name_hash": "5128161233225832376",
|
|
"resolution": {
|
|
"tag": "workspace",
|
|
"value": "workspace:packages/mono",
|
|
"resolved": "workspace:packages/mono"
|
|
},
|
|
"dependencies": [],
|
|
"integrity": null,
|
|
"man_dir": "",
|
|
"origin": "npm",
|
|
"bin": null,
|
|
"scripts": {}
|
|
},
|
|
{
|
|
"id": 3,
|
|
"name": "no-deps",
|
|
"name_hash": "5128161233225832376",
|
|
"resolution": {
|
|
"tag": "npm",
|
|
"value": "2.0.0",
|
|
"resolved": "http://localhost:1234/no-deps/-/no-deps-2.0.0.tgz"
|
|
},
|
|
"dependencies": [],
|
|
"integrity": "sha512-W3duJKZPcMIG5rA1io5cSK/bhW9rWFz+jFxZsKS/3suK4qHDkQNxUTEXee9/hTaAoDCeHWQqogukWYKzfr6X4g==",
|
|
"man_dir": "",
|
|
"origin": "npm",
|
|
"bin": null,
|
|
"scripts": {}
|
|
}
|
|
],
|
|
"workspace_paths": {
|
|
"11592711315645265694": "packages/bar",
|
|
"5128161233225832376": "packages/mono"
|
|
},
|
|
"workspace_versions": {
|
|
"11592711315645265694": "1.0.0",
|
|
"5128161233225832376": "4.17.21"
|
|
}
|
|
}"
|
|
`;
|