From 2926896be6724a157483fc785b8509134f40559d Mon Sep 17 00:00:00 2001 From: Pedro Nauck Date: Thu, 18 Jul 2019 13:29:59 -0400 Subject: [PATCH] fix: resizable props import --- core/docz-core/package.json | 1 - core/docz-core/src/utils/create-deps.ts | 6 +++++- core/gatsby-theme-docz/src/components/Playground/index.js | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/core/docz-core/package.json b/core/docz-core/package.json index be85172bb..5da55dd33 100644 --- a/core/docz-core/package.json +++ b/core/docz-core/package.json @@ -51,7 +51,6 @@ }, "devDependencies": { "@types/cross-spawn": "^6.0.0", - "@types/find-up": "^4.0.0", "@types/resolve": "^0.0.8", "@types/shelljs": "^0.8.5", "@types/signale": "^1.2.1", diff --git a/core/docz-core/src/utils/create-deps.ts b/core/docz-core/src/utils/create-deps.ts index 90344ccf5..e01268908 100644 --- a/core/docz-core/src/utils/create-deps.ts +++ b/core/docz-core/src/utils/create-deps.ts @@ -8,7 +8,11 @@ import { ServerMachineCtx } from '../bundler/machine/context' const CORE_DEV_DEPS = ['gatsby-theme-docz'] const LOCAL_DEV_DEPS = ['gatsby-plugin-compile-es6-packages', 'p-reduce'] -const REQUIRED_DEV_DEPS = ['gatsby', 'gatsby-plugin-typescript'] +const REQUIRED_DEV_DEPS = [ + 'gatsby', + 'gatsby-plugin-typescript', + 'gatsby-plugin-eslint', +] const depsFromPairs = async (deps: any[], callback: (dep: string) => any) => { return fromPairs(await Promise.all(deps.map(callback))) diff --git a/core/gatsby-theme-docz/src/components/Playground/index.js b/core/gatsby-theme-docz/src/components/Playground/index.js index 349e83ce9..3a2ab9800 100644 --- a/core/gatsby-theme-docz/src/components/Playground/index.js +++ b/core/gatsby-theme-docz/src/components/Playground/index.js @@ -4,7 +4,7 @@ import { useState } from 'react' import { useConfig } from 'docz' import { LiveProvider, LiveError, LivePreview, LiveEditor } from 'react-live' import { merge } from 'lodash/fp' -import Resizable from 're-resizable' +import { Resizable } from 're-resizable' import copy from 'copy-text-to-clipboard' import { usePrismTheme } from '~utils/theme'