-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dc09430
commit 21d7c3d
Showing
3 changed files
with
134 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
import { spawn } from 'child_process'; | ||
// eslint-disable-next-line depend/ban-dependencies | ||
import { execa } from 'execa'; | ||
|
||
const $ = execa({ | ||
preferLocal: true, | ||
stdio: 'inherit', | ||
// we stream the stderr to the console | ||
reject: false, | ||
}); | ||
|
||
export default async function postInstall() { | ||
await new Promise<void>((resolve) => { | ||
const child = spawn('npx', ['storybook', 'automigrate', 'addonA11yAddonTest'], { | ||
stdio: 'inherit', | ||
}); | ||
child.on('close', (code) => { | ||
resolve(); | ||
}); | ||
}); | ||
await $`storybook automigrate addonA11yAddonTest`; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters