From 37813555e08895f1346c427f63eb6731f7576020 Mon Sep 17 00:00:00 2001 From: Filipp Riabchun Date: Thu, 12 Dec 2019 12:24:12 +0100 Subject: [PATCH] Move back to original jscodeshift package --- lib/codemod/package.json | 2 +- .../transforms/__tests__/transforms.tests.js | 3 +-- yarn.lock | 24 +++++++++++++++++++ 3 files changed, 26 insertions(+), 3 deletions(-) diff --git a/lib/codemod/package.json b/lib/codemod/package.json index bb1eeebf9051..3e16ed9845f3 100644 --- a/lib/codemod/package.json +++ b/lib/codemod/package.json @@ -27,7 +27,6 @@ "prepare": "node ../../scripts/prepare.js" }, "dependencies": { - "@hypnosphi/jscodeshift": "^0.6.4", "@mdx-js/mdx": "^1.5.1", "@storybook/csf": "0.0.1", "@storybook/node-logger": "5.3.0-beta.21", @@ -35,6 +34,7 @@ "cross-spawn": "^7.0.0", "globby": "^10.0.1", "jest-specific-snapshot": "^2.0.0", + "jscodeshift": "^0.7.0", "lodash": "^4.17.15", "prettier": "^1.16.4", "recast": "^0.16.1", diff --git a/lib/codemod/src/transforms/__tests__/transforms.tests.js b/lib/codemod/src/transforms/__tests__/transforms.tests.js index aa607a3c0912..2ac56a0a3852 100644 --- a/lib/codemod/src/transforms/__tests__/transforms.tests.js +++ b/lib/codemod/src/transforms/__tests__/transforms.tests.js @@ -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'); diff --git a/yarn.lock b/yarn.lock index 4ffe2d437476..d68e7eeb9285 100644 --- a/yarn.lock +++ b/yarn.lock @@ -18165,6 +18165,30 @@ jscodeshift@^0.6.3: temp "^0.8.1" write-file-atomic "^2.3.0" +jscodeshift@^0.7.0: + version "0.7.0" + resolved "https://registry.yarnpkg.com/jscodeshift/-/jscodeshift-0.7.0.tgz#4eee7506fd4fdacbd80340287d61575af991fdab" + integrity sha512-Kt6rpTa1HVhAWagD6J0y6qxxqRmDgkFvczerLgOsDNSGoUZSmq2CO1vFRcda9OV1BaZKSHCIh+VREPts5tB/Ig== + dependencies: + "@babel/core" "^7.1.6" + "@babel/parser" "^7.1.6" + "@babel/plugin-proposal-class-properties" "^7.1.0" + "@babel/plugin-proposal-object-rest-spread" "^7.0.0" + "@babel/preset-env" "^7.1.6" + "@babel/preset-flow" "^7.0.0" + "@babel/preset-typescript" "^7.1.0" + "@babel/register" "^7.0.0" + babel-core "^7.0.0-bridge.0" + colors "^1.1.2" + flow-parser "0.*" + graceful-fs "^4.1.11" + micromatch "^3.1.10" + neo-async "^2.5.0" + node-dir "^0.1.17" + recast "^0.18.1" + temp "^0.8.1" + write-file-atomic "^2.3.0" + jsdom@^11.5.1: version "11.12.0" resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-11.12.0.tgz#1a80d40ddd378a1de59656e9e6dc5a3ba8657bc8"