v1.0.0
New unordered-dependencies rule
Dependencies should be ordered alphabetically to prevent complex diffs when installing a new dependency via a package manager. This rule is auto-fixable with --fix:
Automatically run your package manager's install command when autofixing
When running Sherif with --fix, your lockfile might need to be refreshed (e.g. when a dependency version is updated, or moved from normal dependencies to devDependencies). Sherif will now automatically run your package manager's install command for you.
Your package manager is auto-detected based on its lockfile - if none is found, Sherif will ask you to choose one. The following package managers are supported:
- NPM
- PNPM
- Yarn
- Bun
This feature is disabled in CI environments, and can be disabled with the --no-install flag.
Support nested packages in the workspace using **
Sherif now supports expanding packages defined in the workspace using **. For example, packages/**/* is now a supported syntax:
What's Changed
- fix: nested ignored packages by @QuiiBz in #91
- feat: expand nested packages by @QuiiBz in #92
- feat: new
unordered-dependenciesrule by @QuiiBz in #94 - feat: automatic package manager
installwhen autofixing by @Willem-Jaap in #71
Full Changelog: v0.11.0...v1.0.0
{ "name": "example-workspace", "workspaces": [ "packages/*", // already supported "packages/**/*" // new! ] }