Skip to content

Commit

Permalink
Merge pull request #19942 from storybookjs/revert/temp-webpack-workar…
Browse files Browse the repository at this point in the history
…ound

remove the fix we added when enhanced-resolve was broken for us
  • Loading branch information
ndelangen authored Nov 23, 2022
2 parents 6b6a860 + a14d905 commit 587aec7
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions code/lib/cli/src/link.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import fse, { readJSON, writeJSON } from 'fs-extra';
import fse from 'fs-extra';
import path from 'path';
import { sync as spawnSync } from 'cross-spawn';
import { logger } from '@storybook/node-logger';
Expand Down Expand Up @@ -51,12 +51,6 @@ export const link = async ({ target, local, start }: LinkOptions) => {
logger.info(`Linking ${reproDir}`);
await exec(`yarn link --all ${storybookDir}`, { cwd: reproDir });

// TODO remove this once https://github.com/webpack/enhanced-resolve/issues/362 is resolved
const packageJsonPath = path.join(reproDir, 'package.json');
const packageJson = await readJSON(packageJsonPath);
packageJson.resolutions = { ...packageJson.resolutions, 'enhanced-resolve': '~5.10.0' };
await writeJSON(packageJsonPath, packageJson, { spaces: 2 });

logger.info(`Installing ${reproName}`);
await exec(`yarn install`, { cwd: reproDir });

Expand Down

0 comments on commit 587aec7

Please sign in to comment.