Skip to content

Commit

Permalink
Merge pull request #18817 from storybookjs/fix/yarn-build-command
Browse files Browse the repository at this point in the history
fix yarn build command
  • Loading branch information
yannbf authored Jul 29, 2022
2 parents 428a768 + 2adb153 commit 3151f37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/build-package.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const { resolve } = require('path');
const { readJSON } = require('fs-extra');

const getStorybookPackages = async () => {
const workspaceJSON = await readJSON(resolve(__dirname, '..', 'workspace.json'));
const workspaceJSON = await readJSON(resolve(__dirname, '..', 'code', 'workspace.json'));
return Object.entries(workspaceJSON.projects).map(([k, v]) => ({
location: v.root,
name: k,
Expand Down Expand Up @@ -114,7 +114,7 @@ async function run() {

selection?.filter(Boolean).forEach(async (v) => {
const commmand = (await readJSON(resolve(v.location, 'package.json'))).scripts.prepare;
const cwd = resolve(__dirname, '..', v.location);
const cwd = resolve(__dirname, '..', 'code', v.location);
const sub = require('execa').command(
`yarn ${commmand}${watchMode ? ' --watch' : ''}${prodMode ? ' --optimized' : ''}`,
{
Expand Down

0 comments on commit 3151f37

Please sign in to comment.