Skip to content

Commit

Permalink
fix(deps): update dependency jscodeshift to v0.16.1 (#11051)
Browse files Browse the repository at this point in the history
See: #11019.

The config used for jscodeshift used to specify a specific extension of
`js` but this now causes problems. Some of our code uses temporary
target files with no extension.

After facebook/jscodeshift#584 jscodeshift
handles a set of default extensions anyway which cover all our current
usage.

I have therefore removed the specific config and let jscodeshift do it's
default behaviour.

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • Loading branch information
Josh-Walker-GM and renovate[bot] authored Jul 22, 2024
1 parent a82319d commit d86f0a9
Show file tree
Hide file tree
Showing 6 changed files with 85 additions and 102 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"@types/babel__generator": "7.6.8",
"@types/fs-extra": "11.0.4",
"@types/jest": "29.5.12",
"@types/jscodeshift": "0.11.6",
"@types/jscodeshift": "0.11.11",
"@types/ncp": "2.0.8",
"@types/prompts": "2.4.9",
"all-contributors-cli": "6.26.1",
Expand All @@ -93,7 +93,7 @@
"fs-extra": "11.2.0",
"human-id": "^4.1.1",
"jest": "29.7.0",
"jscodeshift": "0.15.0",
"jscodeshift": "0.16.1",
"lerna": "8.1.7",
"listr2": "6.6.1",
"make-dir-cli": "4.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"fast-glob": "3.3.2",
"fs-extra": "11.2.0",
"humanize-string": "2.1.0",
"jscodeshift": "0.15.0",
"jscodeshift": "0.16.1",
"latest-version": "5.1.0",
"listr2": "6.6.1",
"lodash": "4.17.21",
Expand Down
1 change: 0 additions & 1 deletion packages/cli/src/testLib/runTransform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ const defaultJscodeshiftOpts = {
dry: false,
print: false,
babel: true,
extensions: 'js',
ignorePattern: '**/node_modules/**',
ignoreConfig: [],
runInBand: false,
Expand Down
4 changes: 2 additions & 2 deletions packages/codemods/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"execa": "5.1.1",
"fast-glob": "3.3.2",
"graphql": "16.9.0",
"jscodeshift": "0.15.0",
"jscodeshift": "0.16.1",
"pascalcase": "1.0.0",
"prettier": "3.3.3",
"tasuku": "2.0.1",
Expand All @@ -50,7 +50,7 @@
"devDependencies": {
"@types/babel__core": "7.20.5",
"@types/fs-extra": "11.0.4",
"@types/jscodeshift": "0.11.6",
"@types/jscodeshift": "0.11.11",
"@types/yargs": "17.0.32",
"fs-extra": "11.2.0",
"tempy": "1.0.1",
Expand Down
1 change: 0 additions & 1 deletion packages/codemods/src/lib/runTransform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ const defaultJscodeshiftOpts = {
dry: false,
print: false,
babel: true,
extensions: 'js',
ignorePattern: '**/node_modules/**',
ignoreConfig: [],
runInBand: false,
Expand Down
Loading

0 comments on commit d86f0a9

Please sign in to comment.