generated from storybookjs/addon-kit
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: print post install announcement with nodejs instead of bash
- Loading branch information
1 parent
6d946e1
commit 68a7a84
Showing
3 changed files
with
24 additions
and
15 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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
const colorEscape = '\x1b[97;103m'; | ||
const resetEscape = '\x1b[0m'; | ||
|
||
function colorize(text) { | ||
return `${colorEscape}${text}${resetEscape}`; | ||
} | ||
|
||
const lines = [ | ||
'#------------------------------------------------------------------------------------------#', | ||
'# Storybook Addon React Router v6 #', | ||
'# #', | ||
"# The package has been renamed 'storybook-addon-remix-react-router'. #", | ||
'# This is to better reflect the content of this addon. #', | ||
'# #', | ||
'# If you want to use this addon with Storybook 8. You have to use the new package. #', | ||
'# #', | ||
'# npm uninstall storybook-addon-react-router-v6 #', | ||
'# npm i -D storybook-addon-remix-react-router #', | ||
'#------------------------------------------------------------------------------------------#', | ||
]; | ||
|
||
lines.forEach((line) => console.log(colorize(line))); |
This file was deleted.
Oops, something went wrong.