Skip to content

Commit 31ce233

Browse files
committed
fix: add better hint for before and clean up description
1 parent 9a12be6 commit 31ce233

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

workspaces/config/lib/definitions/definitions.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,12 +230,13 @@ const definitions = {
230230
}),
231231
before: new Definition('before', {
232232
default: null,
233+
hint: '<date>',
233234
type: [null, Date],
234235
description: `
235236
If passed to \`npm install\`, will rebuild the npm tree such that only
236-
versions that were available **on or before** the \`--before\` time get
237-
installed. If there's no versions available for the current set of
238-
direct dependencies, the command will error.
237+
versions that were available **on or before** the given date are
238+
installed. If there are no versions available for the current set of
239+
dependencies, the command will error.
239240
240241
If the requested version is a \`dist-tag\` and the given tag does not
241242
pass the \`--before\` filter, the most recent version less than or equal

0 commit comments

Comments
 (0)