There was an error while loading. Please reload this page.
The makeYarn() target emulates the workspace packaging behavior of modern Yarn (Berry v2+).
makeYarn()
src/targets/yarn.ts
@yarnpkg/plugin-pack
Modern Yarn uses @yarnpkg/plugin-pack to package workspaces:
README*
LICENSE*
CHANGELOG*
.npmignore
.gitignore
.yarnrc.yml
.yarn
.tgz
.pnpm-store
files
package.json
view-ignored
main
module
bin
browser
To verify view-ignored results against Yarn Berry:
yarn pack --dry-run
Diagnostic CLI command:
vign-diff yarn
import * as vign from "view-ignored" import { makeYarn } from "view-ignored/targets" const ctx = await vign.scan({ target: makeYarn(), }) console.log(ctx.paths.has(".yarnrc.yml")) // false (ignored) console.log(ctx.paths.has("package.json")) // true