You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(linter): add peerDepsVersionStrategy option to dependency-checks (#33417)
Adds a new peerDepsVersionStrategy option that allows configuring how
peer dependencies versions are set when auto-fixing. When set to
'workspace', peer dependencies will use 'workspace:*' instead of the
installed or root package version. Defaults to 'installed' to maintain
backward compatibility.
## Current Behavior
A concrete peer dependency version is being fixed.
## Expected Behavior
User can choose between `installed` and `workspace` version strategies.
---------
Co-authored-by: Jack Hsu <jack.hsu@gmail.com>
| buildTargets | _Array<string>_ | _["build"]_ | List of build target names |
159
-
| checkMissingDependencies | _boolean_ | _true_ | Disable to skip checking for missing dependencies |
160
-
| checkObsoleteDependencies | _boolean_ | _true_ | Disable to skip checking for unused dependencies |
161
-
| checkVersionMismatches | _boolean_ | _true_ | Disable to skip checking if version specifier matches installed version |
162
-
| ignoredDependencies | _Array<string>_ | _[]_ | List of dependencies to ignore for checks |
163
-
| ignoredFiles | _Array<string>_ | N/A | List of files to ignore when collecting dependencies. The default value will be set based on the selected executor during the generation. |
164
-
| includeTransitiveDependencies | _boolean_ | _false_ | Enable to collect dependencies of children projects |
165
-
| useLocalPathsForWorkspaceDependencies | _boolean_ | _false_ | Set workspace dependencies as relative file:// paths. Useful for monorepos that link via file:// in package.json files. |
166
-
| runtimeHelpers | _Array<string>_ | _[]_ | List of helper packages used by the built output (e.g. `tslib` when using `tsc` and `importHelpers` is set to `true`). The rule already detects some of them in some scenarios, but this option can be used to detect them when it doesn't happen automatically. |
| buildTargets | _Array<string>_ | _["build"]_ | List of build target names |
161
+
| checkMissingDependencies | _boolean_ | _true_ | Disable to skip checking for missing dependencies |
162
+
| checkObsoleteDependencies | _boolean_ | _true_ | Disable to skip checking for unused dependencies |
163
+
| checkVersionMismatches | _boolean_ | _true_ | Disable to skip checking if version specifier matches installed version |
164
+
| ignoredDependencies | _Array<string>_ | _[]_ | List of dependencies to ignore for checks |
165
+
| ignoredFiles | _Array<string>_ | N/A | List of files to ignore when collecting dependencies. The default value will be set based on the selected executor during the generation. |
166
+
| includeTransitiveDependencies | _boolean_ | _false_ | Enable to collect dependencies of children projects |
167
+
| useLocalPathsForWorkspaceDependencies | _boolean_ | _false_ | Set workspace dependencies as relative file:// paths. Useful for monorepos that link via file:// in package.json files. |
168
+
| peerDepsVersionStrategy | _"installed" \| "workspace"_ | _"installed"_ | Strategy for version specifiers in peer dependencies. Use `"installed"` to use the installed version, or `"workspace"` to use `workspace:*` protocol for monorepo packages. |
169
+
| runtimeHelpers | _Array<string>_ | _[]_ | List of helper packages used by the built output (e.g. `tslib` when using `tsc` and `importHelpers` is set to `true`). The rule already detects some of them in some scenarios, but this option can be used to detect them when it doesn't happen automatically. |
0 commit comments