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,2 @@
# Recursive pack writes child archives here while the root package is scanned.
*.tgz
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@ steps = [
{ argv = ["vp", "pm", "pack"], comment = "should pack current workspace root" },
{ argv = ["vpt", "rm", "-f", "command-pack-pnpm11-with-workspace-1.0.0.tgz", "app-1.0.0.tgz", "vite-plus-test-utils-1.0.0.tgz"], snapshot = false, continue-on-failure = true },
{ argv = ["node", "-e", "const {execFileSync}=require('node:child_process');const out=JSON.parse(execFileSync('vp',['pm','pack','--recursive','--json'],{encoding:'utf8'}));out.sort((a,b)=>a.name<b.name?-1:a.name>b.name?1:0);console.log(JSON.stringify(out,null,2));"], comment = "should pack all packages in workspace (sorted by name for determinism)" },
["vpt", "print-file", "out.json"],
{ argv = ["vpt", "rm", "-f", "command-pack-pnpm11-with-workspace-1.0.0.tgz", "app-1.0.0.tgz", "vite-plus-test-utils-1.0.0.tgz"], snapshot = false, continue-on-failure = true },
{ argv = ["vp", "pm", "pack", "--filter", "app"], comment = "should pack specific package (uses --filter app pack)" },
{ argv = ["vpt", "rm", "-f", "command-pack-pnpm11-with-workspace-1.0.0.tgz", "app-1.0.0.tgz", "vite-plus-test-utils-1.0.0.tgz"], snapshot = false, continue-on-failure = true },
{ argv = ["node", "-e", "const {execFileSync}=require('node:child_process');const out=JSON.parse(execFileSync('vp',['pm','pack','--filter','app','--filter','@vite-plus-test/utils','--json'],{encoding:'utf8'}));out.sort((a,b)=>a.name<b.name?-1:a.name>b.name?1:0);console.log(JSON.stringify(out,null,2));"], comment = "should pack multiple packages (sorted by name for determinism)" },
["vpt", "print-file", "out.json"],
{ argv = ["vpt", "rm", "-f", "command-pack-pnpm11-with-workspace-1.0.0.tgz", "app-1.0.0.tgz", "vite-plus-test-utils-1.0.0.tgz"], snapshot = false, continue-on-failure = true },
{ argv = ["vp", "pm", "pack", "--out", "./dist/package.tgz"], comment = "should pack with output file" },
{ argv = ["vpt", "rm", "-rf", "./dist"], continue-on-failure = true },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,8 @@ should pack all packages in workspace (sorted by name for determinism)
]
```

## `vpt print-file out.json`

**Exit code:** 1

```
out.json: not found
missing file
```
## `vpt rm -f command-pack-pnpm11-with-workspace-1.0.0.tgz app-1.0.0.tgz vite-plus-test-utils-1.0.0.tgz`

*(skipped 1 step(s) to the next line boundary: step failed)*

## `vp pm pack --filter app`

Expand Down Expand Up @@ -121,16 +113,8 @@ should pack multiple packages (sorted by name for determinism)
]
```

## `vpt print-file out.json`

**Exit code:** 1

```
out.json: not found
missing file
```
## `vpt rm -f command-pack-pnpm11-with-workspace-1.0.0.tgz app-1.0.0.tgz vite-plus-test-utils-1.0.0.tgz`

*(skipped 1 step(s) to the next line boundary: step failed)*

## `vp pm pack --out ./dist/package.tgz`

Expand All @@ -139,12 +123,10 @@ should pack with output file
```
package: command-pack-pnpm11-with-workspace@1.0.0
Tarball Contents
app-1.0.0.tgz
package.json
packages/app/package.json
packages/utils/package.json
pnpm-workspace.yaml
vite-plus-test-utils-1.0.0.tgz
Tarball Details
<workspace>/dist/package.tgz
```
Expand All @@ -161,12 +143,10 @@ should pack with destination
```
package: command-pack-pnpm11-with-workspace@1.0.0
Tarball Contents
app-1.0.0.tgz
package.json
packages/app/package.json
packages/utils/package.json
pnpm-workspace.yaml
vite-plus-test-utils-1.0.0.tgz
Tarball Details
<workspace>/dist/command-pack-pnpm11-with-workspace-1.0.0.tgz
```
Expand All @@ -183,12 +163,10 @@ should pack with gzip compression level
```
package: command-pack-pnpm11-with-workspace@1.0.0
Tarball Contents
app-1.0.0.tgz
package.json
packages/app/package.json
packages/utils/package.json
pnpm-workspace.yaml
vite-plus-test-utils-1.0.0.tgz
Tarball Details
command-pack-pnpm11-with-workspace-1.0.0.tgz
```
Expand Down
Loading