Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "command-add-bun-with-workspace",
"version": "1.0.0",
"workspaces": ["packages/*"],
"packageManager": "bun@1.4.0"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"name": "app"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"name": "@vite-plus-test/utils",
"version": "1.0.0",
"private": true
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[[case]]
name = "command_add_bun_with_workspace"
vp = "global"
skip-platforms = ["windows"]
steps = [
{ argv = ["vp", "add", "testnpm2", "--filter", "app", "--", "--silent"], comment = "should add package to packages/app" },
{ argv = ["vpt", "print-file", "packages/app/package.json"], continue-on-failure = true },
{ argv = ["vp", "add", "test-vite-plus-package", "--save-catalog", "--", "--silent"], comment = "should add package to the default catalog" },
{ argv = ["vpt", "print-file", "package.json"], continue-on-failure = true },
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# command_add_bun_with_workspace

## `vp add testnpm2 --filter app -- --silent`

should add package to packages/app

```
```

## `vpt print-file packages/app/package.json`

```
{
"name": "app",
"dependencies": {
"testnpm2": "^1.0.1"
}
}
```

## `vp add test-vite-plus-package --save-catalog -- --silent`

should add package to the default catalog

```
```

## `vpt print-file package.json`

```
{
"name": "command-add-bun-with-workspace",
"version": "1.0.0",
"workspaces": ["packages/*"],
"packageManager": "bun@1.4.0",
"dependencies": {
"test-vite-plus-package": "catalog:"
},
"catalog": {
"test-vite-plus-package": "^1.0.0"
}
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "command-prune-bun",
"version": "1.0.0",
"dependencies": {
"testnpm2": "1.0.1"
},
"devDependencies": {
"test-vite-plus-package": "1.0.0"
},
"packageManager": "bun@1.4.0"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[[case]]
name = "command_prune_bun"
vp = "global"
steps = [
{ argv = ["vp", "install", "--", "--silent"], comment = "should install packages first", continue-on-failure = true },
{ argv = ["vp", "pm", "prune"], comment = "should prune extraneous dependencies" },
{ argv = ["vp", "pm", "prune", "--prod"], comment = "should prune dev dependencies" },
{ argv = ["vp", "pm", "prune", "--no-optional"], comment = "should warn because bun prune has no optional flag" },
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# command_prune_bun

## `vp install -- --silent`

should install packages first

```
VITE+ - The Unified Toolchain for the Web
```

## `vp pm prune`

should prune extraneous dependencies

```
bun prune <version> (<hash>)
Done! Checked 2 packages across 1 folder (nothing to prune) [<duration>]
```

## `vp pm prune --prod`

should prune dev dependencies

```
bun prune <version> (<hash>)
- test-vite-plus-package@1.0.0
1 package removed (checked 2) [<duration>]
```

## `vp pm prune --no-optional`

should warn because bun prune has no optional flag

```
warn: bun does not support --no-optional.
bun prune <version> (<hash>)
Done! Checked 1 package across 1 folder (nothing to prune) [<duration>]
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "command-remove-bun-with-workspace",
"version": "1.0.0",
"workspaces": ["packages/*"],
"packageManager": "bun@1.4.0"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "app",
"dependencies": {
"testnpm2": "^1.0.1"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[[case]]
name = "command_remove_bun_with_workspace"
vp = "global"
skip-platforms = ["windows"]
steps = [
{ argv = ["vp", "install", "--", "--silent"], comment = "should install packages first", continue-on-failure = true },
{ argv = ["vp", "remove", "testnpm2", "--filter", "app", "--", "--silent"], comment = "should remove package from packages/app" },
{ argv = ["vpt", "print-file", "packages/app/package.json"], continue-on-failure = true },
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# command_remove_bun_with_workspace

## `vp install -- --silent`

should install packages first

```
VITE+ - The Unified Toolchain for the Web
```

## `vp remove testnpm2 --filter app -- --silent`

should remove package from packages/app

```
```

## `vpt print-file packages/app/package.json`

```
{
"name": "app"
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "command-update-bun-with-workspace",
"version": "1.0.0",
"workspaces": ["packages/*"],
"packageManager": "bun@1.4.0"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "app",
"dependencies": {
"testnpm2": "^1.0.0"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[[case]]
name = "command_update_bun_with_workspace"
vp = "global"
skip-platforms = ["windows"]
steps = [
{ argv = ["vp", "install", "--", "--silent"], comment = "should install packages first", continue-on-failure = true },
{ argv = ["vp", "update", "testnpm2", "--filter", "app", "--", "--silent"], comment = "should update package in packages/app" },
{ argv = ["vpt", "print-file", "packages/app/package.json"], continue-on-failure = true },
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# command_update_bun_with_workspace

## `vp install -- --silent`

should install packages first

```
VITE+ - The Unified Toolchain for the Web
```

## `vp update testnpm2 --filter app -- --silent`

should update package in packages/app

```
```

## `vpt print-file packages/app/package.json`

```
{
"name": "app",
"dependencies": {
"testnpm2": "^1.0.1"
}
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "command-audit-bun",
"version": "1.0.0",
"dependencies": {
"testnpm2": "1.0.1"
},
"packageManager": "bun@1.4.0"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[[case]]
name = "pm_audit_bun"
vp = "global"
cwd = "bun"
steps = [
{ argv = ["vp", "install", "--", "--silent"], comment = "should install packages first", continue-on-failure = true },
{ argv = ["vp", "pm", "audit"], comment = "should audit dependencies" },
{ argv = ["vp", "pm", "audit", "--fix"], comment = "bun 1.4 runs bun audit fix" },
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# pm_audit_bun

## `vp install -- --silent`

should install packages first

```
VITE+ - The Unified Toolchain for the Web
```

## `vp pm audit`

should audit dependencies

```
bun audit <version> (<hash>)

No vulnerabilities found (checked 1 package) [<duration>]
```

## `vp pm audit --fix`

bun 1.4 runs bun audit fix

```
bun audit fix <version> (<hash>)

No vulnerabilities found (checked 1 package) [<duration>]
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "pm-dedupe-bun-1-4",
"version": "1.0.0",
"private": true,
"license": "MIT",
"dependencies": {
"testnpm2": "1.0.1"
},
"packageManager": "bun@1.4.0"
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,13 @@ steps = [
{ argv = ["vp", "dedupe", "--", "--silent"], comment = "Bun falls back to install because it does not support dedupe" },
{ argv = ["vpt", "print-file", "package.json"], comment = "verify Bun completed" },
]

[[case]]
name = "pm_dedupe_bun_1_4"
vp = "global"
cwd = "bun_1_4"
steps = [
{ argv = ["vp", "install", "--", "--silent"], comment = "install to create the lockfile" },
{ argv = ["vp", "dedupe"], comment = "bun 1.4 runs bun dedupe directly" },
{ argv = ["vp", "dedupe", "--check"], comment = "check mode reports without changing the lockfile" },
]
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Bun falls back to install because it does not support dedupe

```
warn: bun does not support dedupe, falling back to bun install
warn: bun dedupe requires bun >= 1.4, falling back to bun install
```

## `vpt print-file package.json`
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# pm_dedupe_bun_1_4

## `vp install -- --silent`

install to create the lockfile

```
VITE+ - The Unified Toolchain for the Web
```

## `vp dedupe`

bun 1.4 runs bun dedupe directly

```
bun dedupe <version> (<hash>)
🎉 No duplicates — checked 2 packages, every one already resolves to a single version [<duration>]
```

## `vp dedupe --check`

check mode reports without changing the lockfile

```
bun dedupe <version> (<hash>)
🎉 No duplicates — checked 2 packages, every one already resolves to a single version [<duration>]
```
Loading
Loading