22name = " command_update_bun_with_workspace"
33vp = " global"
44skip-platforms = [" windows" ]
5- # Each case downloads Bun into a fresh home before the update commands.
65steps = [
7- { argv = [" vp" , " install" , " --" , " --silent" ], comment = " should install packages first" , timeout = 180000 , continue-on-failure = true },
6+ { argv = [" vp" , " install" , " --" , " --silent" ], comment = " should install packages first" , continue-on-failure = true },
87 { argv = [" vp" , " update" , " testnpm2" , " --filter" , " app" , " --" , " --silent" ], comment = " should update package in packages/app" },
98 { argv = [" vpt" , " print-file" , " packages/app/package.json" ], continue-on-failure = true },
109]
@@ -19,7 +18,7 @@ steps = [
1918 { argv = [" vpt" , " write-file" , " packages/app/package.json" , ' {"name":"app","version":"1.0.0","dependencies":{"is-number":"6.0.0"}}' ], snapshot = false },
2019 { argv = [" vpt" , " mkdir" , " packages/utils" ], snapshot = false },
2120 { argv = [" vpt" , " write-file" , " packages/utils/package.json" , ' {"name":"utils","version":"1.0.0","dependencies":{"is-number":"6.0.0"}}' ], snapshot = false },
22- { argv = [" vp" , " install" , " --ignore-scripts" ], snapshot = false , timeout = 180000 },
21+ { argv = [" vp" , " install" , " --ignore-scripts" ], snapshot = false },
2322 { argv = [" vp" , " update" , " --recursive" , " is-number@7.0.0" , " --" , " --ignore-scripts" ], cwd = " packages/app" , comment = " Bun 1.4 updates the root and both workspaces even when invoked from a child" },
2423 [" vpt" , " print-file" , " package.json" , " packages/app/package.json" , " packages/utils/package.json" ],
2524 [" vpt" , " print-file" , " bun.lock" ],
@@ -35,7 +34,7 @@ steps = [
3534 { argv = [" vpt" , " write-file" , " packages/app/package.json" , ' {"name":"app","version":"1.0.0","dependencies":{"is-number":"6.0.0"}}' ], snapshot = false },
3635 { argv = [" vpt" , " mkdir" , " packages/utils" ], snapshot = false },
3736 { argv = [" vpt" , " write-file" , " packages/utils/package.json" , ' {"name":"utils","version":"1.0.0","dependencies":{"is-number":"6.0.0"}}' ], snapshot = false },
38- { argv = [" vp" , " install" , " --ignore-scripts" ], snapshot = false , timeout = 180000 },
37+ { argv = [" vp" , " install" , " --ignore-scripts" ], snapshot = false },
3938 { argv = [" vp" , " update" , " --recursive" , " --filter" , " utils" , " is-number@7.0.0" , " --" , " --ignore-scripts" ], cwd = " packages/app" , comment = " an explicit filter limits recursive updates to the selected workspace" },
4039 [" vpt" , " print-file" , " package.json" , " packages/app/package.json" , " packages/utils/package.json" ],
4140 [" vpt" , " print-file" , " bun.lock" ],
0 commit comments