Files
bun.sh/test/cli/install/__snapshots__/bun-install.test.ts.snap
Dylan Conway 0601eb0007 Make --linker=isolated the default for bun install (#23311)
### What does this PR do?
Makes isolated installs the default install strategy for projects with
workspaces in Bun v1.3.

Also fixes creating patches with `bun patch` and `--linker isolated`

Fixes #22693

### How did you verify your code works?
Added tests for node_modules renaming `bun patch` with isolated install.

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Claude Bot <claude-bot@bun.sh>
Co-authored-by: Claude <noreply@anthropic.com>
2025-10-08 18:00:38 -07:00

37 lines
1.2 KiB
Plaintext

// Bun Snapshot v1, https://bun.sh/docs/test/snapshots
exports[`should report error on invalid format for package.json 1`] = `
"1 | foo
^
error: Unexpected foo
at [dir]/package.json:1:1
ParserError: failed to parse '[dir]/package.json'
"
`;
exports[`should report error on invalid format for dependencies 1`] = `
"1 | {"name":"foo","version":"0.0.1","dependencies":[]}
^
error: dependencies expects a map of specifiers, e.g.
"dependencies": {
<green>"bun"<r>: <green>"latest"<r>
}
at [dir]/package.json:1:33
"
`;
exports[`should report error on invalid format for workspaces 1`] = `
"1 | {"name":"foo","version":"0.0.1","workspaces":{"packages":{"bar":true}}}
^
error: "workspaces.packages" expects an array of strings, e.g.
"workspaces": {
"packages": [
"path/to/package"
]
}
at [dir]/package.json:1:58
"
`;
exports[`should handle modified git resolutions in bun.lock 1`] = `"{"lockfileVersion":0,"workspaces":{"":{"dependencies":{"jquery":"3.7.1"}}},"packages":{"jquery":["jquery@git+ssh://git@github.com/dylan-conway/install-test-8.git#3a1288830817d13da39e9231302261896f8721ea",{},"3a1288830817d13da39e9231302261896f8721ea"]}}"`;