-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add postinstall deprecation warning to old packages (#13304)
* chore: add postinstall deprecation warning to old packages * Update packages/carbon-components-react/scripts/postinstall.js Co-authored-by: Taylor Jones <tay1orjones@users.noreply.github.com> * Update packages/carbon-components/scripts/postinstall.js Co-authored-by: Taylor Jones <tay1orjones@users.noreply.github.com> --------- Co-authored-by: Taylor Jones <tay1orjones@users.noreply.github.com>
- Loading branch information
1 parent
fe45a38
commit 843ff10
Showing
9 changed files
with
74 additions
and
4 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,15 @@ | ||
'use strict'; | ||
|
||
const chalk = require('chalk'); | ||
|
||
console.warn( | ||
chalk.yellow('Warning: ') + | ||
chalk.cyan('carbon-components-react') + | ||
" will soon be deprecated and no longer receive updates. We recommend to move to it's replacement, " + | ||
chalk.cyan('@carbon/react') + | ||
' at your earliest convenience. Please visit ' + | ||
chalk.dim.underline.italic( | ||
'https://github.com/carbon-design-system/carbon/discussions/12179' | ||
) + | ||
' for more information on the package strategy, deprecation, and plan of action.' | ||
); |
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,15 @@ | ||
'use strict'; | ||
|
||
const chalk = require('chalk'); | ||
|
||
console.warn( | ||
chalk.yellow('Warning: ') + | ||
chalk.cyan('carbon-components') + | ||
" will soon be deprecated and no longer receive updates. We recommend to move to it's replacement, " + | ||
chalk.cyan('@carbon/styles') + | ||
' at your earliest convenience. Please visit ' + | ||
chalk.dim.underline.italic( | ||
'https://github.com/carbon-design-system/carbon/discussions/12179' | ||
) + | ||
' for more information on the package strategy, deprecation, and plan of action.' | ||
); |
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