Skip to content

Commit

Permalink
Merge pull request #10786 from RuneKR/next
Browse files Browse the repository at this point in the history
  • Loading branch information
ndelangen authored May 14, 2020
2 parents ef7a72e + 809bd4e commit dd66456
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/core/src/server/presets.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import dedent from 'ts-dedent';
import { join } from 'path';
import { logger } from '@storybook/node-logger';
import fs from 'fs'
import { resolveFile } from './utils/resolve-file';

const isObject = (val) => val != null && typeof val === 'object' && Array.isArray(val) === false;
Expand Down Expand Up @@ -39,7 +40,7 @@ const resolvePresetFunction = (input, presetOptions, storybookOptions) => {
return [];
};

const isLocalFileImport = (packageName) => /^[./]/.test(packageName);
const isLocalFileImport = (packageName) => fs.existsSync(packageName);

/**
* Parse an addon into either a managerEntry or a preset. Throw on invalid input.
Expand Down

0 comments on commit dd66456

Please sign in to comment.