Skip to content

Commit

Permalink
Merge pull request #17265 from storybookjs/17261-fix-jscodeshift-colo…
Browse files Browse the repository at this point in the history
…rsjs-dep

Upgrade jscodeshift dependency for colors.js bug
  • Loading branch information
shilman committed Jan 18, 2022
2 parents 3848171 + 37da183 commit 3eabcf9
Show file tree
Hide file tree
Showing 5 changed files with 445 additions and 61 deletions.
2 changes: 1 addition & 1 deletion lib/cli/package.json
Expand Up @@ -64,7 +64,7 @@
"fs-extra": "^9.0.1",
"get-port": "^5.1.1",
"globby": "^11.0.2",
"jscodeshift": "^0.11.0",
"jscodeshift": "^0.13.1",
"json5": "^2.1.3",
"leven": "^3.1.0",
"prompts": "^2.4.0",
Expand Down
2 changes: 1 addition & 1 deletion lib/codemod/package.json
Expand Up @@ -49,7 +49,7 @@
"core-js": "^3.8.2",
"cross-spawn": "^7.0.3",
"globby": "^11.0.2",
"jscodeshift": "^0.7.0",
"jscodeshift": "^0.13.1",
"lodash": "^4.17.21",
"prettier": ">=2.2.1 <=2.3.0",
"recast": "^0.19.0",
Expand Down
4 changes: 2 additions & 2 deletions lib/postinstall/package.json
Expand Up @@ -44,9 +44,9 @@
"core-js": "^3.8.2"
},
"devDependencies": {
"@hypnosphi/jscodeshift": "^0.6.4",
"jest": "^26.6.3",
"jest-specific-snapshot": "^4.0.0"
"jest-specific-snapshot": "^4.0.0",
"jscodeshift": "^0.13.1"
},
"publishConfig": {
"access": "public"
Expand Down
3 changes: 1 addition & 2 deletions lib/postinstall/src/codemods.test.ts
@@ -1,8 +1,7 @@
import path from 'path';
import fs from 'fs';
import 'jest-specific-snapshot';
// TODO move back to original 'jscodeshift' package as soon as https://github.com/facebook/jscodeshift/pull/297 is released
import { applyTransform } from '@hypnosphi/jscodeshift/dist/testUtils';
import { applyTransform } from 'jscodeshift/dist/testUtils';

jest.mock('@storybook/node-logger');

Expand Down

0 comments on commit 3eabcf9

Please sign in to comment.