Skip to content

Commit

Permalink
fix: allow undefined in all option keys
Browse files Browse the repository at this point in the history
  • Loading branch information
voxpelli committed Mar 22, 2024
1 parent 307ddca commit 0734e0f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/check-version-range.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export function checkVersionRange (pkg, key, installed, options) {
};
}

/** @typedef {VersionRangeOptions & { defaultKeys?: string[] }} VersionRangesOptions */
/** @typedef {VersionRangeOptions & { defaultKeys?: string[]|undefined }} VersionRangesOptions */

/**
* @param {import('./lookup-types.d.ts').PackageJsonLike} pkg
Expand Down
2 changes: 1 addition & 1 deletion lib/installed-check.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { workspaceLookup } from 'list-installed';

import { performInstalledCheck } from './perform-installed-check.js';

/** @typedef {Omit<import('list-installed').WorkspaceLookupOptions, 'path'> & { cwd?: string }} LookupOptions */
/** @typedef {Omit<import('list-installed').WorkspaceLookupOptions, 'path'> & { cwd?: string|undefined }} LookupOptions */

const ROOT = Symbol('workspace root');

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"@voxpelli/semver-set": "^5.0.2",
"@voxpelli/typed-utils": "^1.6.0",
"is-glob": "^4.0.3",
"list-installed": "^5.1.0",
"list-installed": "^5.1.1",
"picomatch": "^4.0.1",
"semver": "^7.6.0"
},
Expand Down

0 comments on commit 0734e0f

Please sign in to comment.