Skip to content

Commit

Permalink
feat(storybook): adding environment variable for storybook to find co…
Browse files Browse the repository at this point in the history
…rrect angular project target
  • Loading branch information
hiepxanh authored and juristr committed Nov 30, 2020
1 parent b9791a3 commit ae434af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ async function findOrCreateConfig(
config: StorybookConfig,
context: BuilderContext
): Promise<string> {
process.env.STORYBOOK_ANGULAR_PROJECT = context.target.project;
if (config.configFolder && statSync(config.configFolder).isDirectory()) {
return config.configFolder;
} else if (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ async function findOrCreateConfig(
config: StorybookConfig,
context: BuilderContext
): Promise<string> {
process.env.STORYBOOK_ANGULAR_PROJECT = context.target.project;
const host = new NodeJsSyncHost();
const sourceRoot = await getRoot(context, host);

Expand Down

0 comments on commit ae434af

Please sign in to comment.