Skip to content

Commit 05fe4c6

Browse files
authored
Upgrade commander (github#28613)
* Upgrade commander * Change import
1 parent 03e2cf2 commit 05fe4c6

28 files changed

+35
-50
lines changed

package-lock.json

Lines changed: 8 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119
"babel-preset-env": "^1.7.0",
120120
"chalk": "^5.0.1",
121121
"change-case": "^4.1.2",
122-
"commander": "^8.3.0",
122+
"commander": "^9.3.0",
123123
"cross-env": "^7.0.3",
124124
"csp-parse": "0.0.2",
125125
"dedent": "^0.7.0",

script/check-english-links.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { fileURLToPath } from 'url'
1414
import path from 'path'
1515
import fs from 'fs'
1616
import { LinkChecker } from 'linkinator'
17-
import program from 'commander'
17+
import { program } from 'commander'
1818
import { pull, uniq } from 'lodash-es'
1919
import rimraf from 'rimraf'
2020
import mkdirp from 'mkdirp'

script/early-access/symlink-from-local-repo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import rimraf from 'rimraf'
1212
import fs from 'fs'
1313
import path from 'path'
14-
import program from 'commander'
14+
import { program } from 'commander'
1515

1616
// Early Access details
1717
const earlyAccessRepo = 'docs-early-access'

script/early-access/update-data-and-image-paths.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
import fs from 'fs'
1111
import path from 'path'
12-
import program from 'commander'
12+
import { program } from 'commander'
1313
import walk from 'walk-sync'
1414
import { escapeRegExp, last } from 'lodash-es'
1515
import yaml from 'js-yaml'

script/enterprise-server-deprecations/archive-version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import fs from 'fs'
2323
import { execSync } from 'child_process'
2424
import createApp from '../../lib/app.js'
2525
import scrape from 'website-scraper'
26-
import program from 'commander'
26+
import { program } from 'commander'
2727
import rimraf from 'rimraf'
2828
import EnterpriseServerReleases from '../../lib/enterprise-server-releases.js'
2929
import loadRedirects from '../../lib/redirects/precompile.js'

script/enterprise-server-deprecations/remove-redirects.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
import fs from 'fs'
1111
import path from 'path'
12-
import program from 'commander'
12+
import { program } from 'commander'
1313
import readJsonFile from '../../lib/read-json-file.js'
1414
import { deprecated } from '../../lib/enterprise-server-releases.js'
1515
const DEVELOPER_REDIRECTS_FILEPATH = 'lib/redirects/static/developer.json'

script/enterprise-server-deprecations/remove-version-markup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// [end-readme]
99

1010
import fs from 'fs'
11-
import program from 'commander'
11+
import { program } from 'commander'
1212
import frontmatter from '../../lib/read-frontmatter.js'
1313
import removeLiquidStatements from '../../script/helpers/remove-liquid-statements.js'
1414
import removeDeprecatedFrontmatter from '../../script/helpers/remove-deprecated-frontmatter.js'

script/enterprise-server-releases/add-ghec-to-fpt.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import fs from 'fs'
1212
import path from 'path'
1313
import walk from 'walk-sync'
14-
import program from 'commander'
14+
import { program } from 'commander'
1515
import { escapeRegExp } from 'lodash-es'
1616
import frontmatter from '../../lib/read-frontmatter.js'
1717
import { getLiquidConditionals } from '../helpers/get-liquid-conditionals.js'

script/enterprise-server-releases/create-graphql-files.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
import fs from 'fs/promises'
1010
import path from 'path'
11-
import program from 'commander'
11+
import { program } from 'commander'
1212
import mkdirp from 'mkdirp'
1313
import { allVersions } from '../../lib/all-versions.js'
1414

0 commit comments

Comments
 (0)