Skip to content

Commit

Permalink
fix: fixes for monorepo
Browse files Browse the repository at this point in the history
  • Loading branch information
christophehurpeau committed Mar 12, 2022
1 parent f8b0420 commit 28b13e3
Show file tree
Hide file tree
Showing 11 changed files with 97 additions and 26 deletions.
4 changes: 4 additions & 0 deletions dist/check-package-with-workspaces.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ interface OnlyWarnsForInMonorepoPackageCheckPackageRecommendedOption extends Onl
duplicateDirectDependency: OnlyWarnsForInDependencyCheckPackageRecommendedOption['duplicateDirectDependency'];
}
declare type OnlyWarnsForInMonorepoPackagesCheckPackageRecommendedOption = Record<'*' | string, OnlyWarnsForInMonorepoPackageCheckPackageRecommendedOption>;
declare type OnlyWarnsForInMonorepoPackagesDependenciesCheckPackageRecommendedOption = Record<string, OnlyWarnsForInDependenciesCheckPackageRecommendedOption>;
export interface CheckPackageWithWorkspacesRecommendedOptions {
isLibrary?: (pkgName: string) => boolean;
allowRangeVersionsInLibraries?: boolean;
Expand All @@ -15,7 +16,10 @@ export interface CheckPackageWithWorkspacesRecommendedOptions {
monorepoDirectDuplicateDependenciesOnlyWarnsFor?: OnlyWarnsForOptionalDependencyMapping;
onlyWarnsForInRootPackage?: OnlyWarnsForInPackageCheckPackageRecommendedOption;
onlyWarnsForInMonorepoPackages?: OnlyWarnsForInMonorepoPackagesCheckPackageRecommendedOption;
/** @deprecated use onlyWarnsForInRootDependencies */
onlyWarnsForInDependencies?: OnlyWarnsForInDependenciesCheckPackageRecommendedOption;
onlyWarnsForInRootDependencies?: OnlyWarnsForInDependenciesCheckPackageRecommendedOption;
onlyWarnsForInMonorepoPackagesDependencies?: OnlyWarnsForInMonorepoPackagesDependenciesCheckPackageRecommendedOption;
checkResolutionMessage?: CheckResolutionMessage;
}
export interface CheckPackageWithWorkspacesApi {
Expand Down
2 changes: 1 addition & 1 deletion dist/check-package-with-workspaces.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions dist/check-package.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,16 @@ export interface CheckRecommendedOptions {
directDuplicateDependenciesOnlyWarnsFor?: OnlyWarnsFor;
/** @deprecated use onlyWarnsForInPackage option */
exactVersionsOnlyWarnsFor?: OnlyWarnsFor;
/** @internal */
internalExactVersionsIgnore?: OnlyWarnsFor;
/** function to check the value in the "resolutionExplained" key in package.json */
checkResolutionMessage?: CheckResolutionMessage;
}
export interface CheckExactVersionsOptions {
allowRangeVersionsInDependencies?: boolean;
onlyWarnsFor?: OnlyWarnsFor;
/** @internal */
internalExactVersionsIgnore?: OnlyWarnsFor;
}
export interface CheckPackageApi {
/** @internal */
Expand Down
2 changes: 1 addition & 1 deletion dist/check-package.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions dist/checks/checkExactVersions.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import type { GetDependencyPackageJson } from '../utils/createGetDependencyPackageJson';
import type { PackageJson, DependencyTypes } from '../utils/packageTypes';
import type { OnlyWarnsForCheck } from '../utils/warnForUtils';
import type { OnlyWarnsFor, OnlyWarnsForCheck } from '../utils/warnForUtils';
export interface CheckExactVersionsOptions {
getDependencyPackageJson?: GetDependencyPackageJson;
onlyWarnsForCheck: OnlyWarnsForCheck;
internalExactVersionsIgnore?: OnlyWarnsFor;
tryToAutoFix?: boolean;
}
export declare function checkExactVersions(pkg: PackageJson, pkgPathName: string, types: DependencyTypes[], { getDependencyPackageJson, onlyWarnsForCheck, tryToAutoFix, }: CheckExactVersionsOptions): void;
export declare function checkExactVersions(pkg: PackageJson, pkgPathName: string, types: DependencyTypes[], { getDependencyPackageJson, onlyWarnsForCheck, internalExactVersionsIgnore, tryToAutoFix, }: CheckExactVersionsOptions): void;
//# sourceMappingURL=checkExactVersions.d.ts.map
2 changes: 1 addition & 1 deletion dist/checks/checkExactVersions.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 23 additions & 7 deletions dist/index-node14.cjs.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index-node14.cjs.js.map

Large diffs are not rendered by default.

0 comments on commit 28b13e3

Please sign in to comment.