mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 07:21:17 +08:00
add a resolution for playwright to ensure that all sandboxes use the same version as the docker image
This commit is contained in:
parent
5ebd0c2a58
commit
ab8c3a49fa
@ -20,7 +20,11 @@ export const addPackageResolutions = async ({ cwd, dryRun }: YarnOptions) => {
|
|||||||
|
|
||||||
const packageJsonPath = path.join(cwd, 'package.json');
|
const packageJsonPath = path.join(cwd, 'package.json');
|
||||||
const packageJson = await readJSON(packageJsonPath);
|
const packageJson = await readJSON(packageJsonPath);
|
||||||
packageJson.resolutions = { ...storybookVersions, 'enhanced-resolve': '~5.10.0' };
|
packageJson.resolutions = {
|
||||||
|
...storybookVersions,
|
||||||
|
'enhanced-resolve': '~5.10.0', // TODO, remove this
|
||||||
|
playwright: '1.30.0', // this is for our CI test, ensure we use the same version as docker image
|
||||||
|
};
|
||||||
await writeJSON(packageJsonPath, packageJson, { spaces: 2 });
|
await writeJSON(packageJsonPath, packageJson, { spaces: 2 });
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user