Skip to content

Commit

Permalink
Lock typescript and typescript-json-schema versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
raineorshine committed Aug 28, 2023
1 parent e13e974 commit e3b9e73
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
6 changes: 6 additions & 0 deletions .ncurc.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,11 @@ module.exports = {
'makdownlint-cli',
// manually keep in alignment with pacote's version of make-fetch-happen
'make-fetch-happen',
// 5.2.0 breaks moduleResolution
// Need to upgrade module and moduleResolution together (high risk)
'typescript',
// v0.60.0 breaks cli option description output
// https://github.com/YousefED/typescript-json-schema/issues/568
'typescript-json-schema',
],
}
4 changes: 2 additions & 2 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@
"sinon": "^15.2.0",
"strip-ansi": "^7.1.0",
"ts-node": "^10.9.1",
"typescript": "^5.1.6",
"typescript-json-schema": "^0.59.0",
"typescript": "5.1.6",
"typescript-json-schema": "0.59.0",
"yarn": "^1.22.19"
},
"files": [
Expand Down
8 changes: 4 additions & 4 deletions src/cli-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ import table from './lib/table'
import CLIOption from './types/CLIOption'
import ExtendedHelp from './types/ExtendedHelp'
import { Index } from './types/IndexType'
import { supportedVersionTargets } from './types/Target'

/** Valid strings for the --target option. Indicates the desired version to upgrade to. */
const supportedVersionTargets = ['latest', 'newest', 'greatest', 'minor', 'patch', 'semver']

/** Pads the left side of each line in a string. */
const padLeft = (s: string, n: number) =>
Expand Down Expand Up @@ -701,9 +703,7 @@ const cliOptions: CLIOption[] = [
long: 'target',
short: 't',
arg: 'value',
description: `Determines the version to upgrade to: ${supportedVersionTargets.join(
', ',
)}, @[tag], or [function]. (default: latest)`,
description: `Determines the version to upgrade to: latest, newest, greatest, minor, patch, semver, @[tag], or [function]. (default: latest)`,
help: extendedHelpTarget,
// eslint-disable-next-line no-template-curly-in-string
type: `${supportedVersionTargets.map(s => `'${s}'`).join(' | ')} | ${'`@${string}`'} | TargetFunction`,
Expand Down

0 comments on commit e3b9e73

Please sign in to comment.