-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the release script for React 18 support (#898)
- Loading branch information
Showing
1 changed file
with
6 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -97,9 +97,12 @@ const checkNPMDepsInstall = () => { | |
} | ||
process.chdir(path.join(__dirname, '../../dependency-check-app')); | ||
spawnOrFail('npm', ['init -y']); | ||
// Currently, install 17 version as this now install 18.0.0 which we do not support yet. | ||
spawnOrFail('npm', ['install [email protected] [email protected]']); | ||
spawnOrFail('npm', [`install amazon-chime-sdk-js@${latestNPMJSSdkVersion} styled-components styled-system`]); | ||
spawnOrFail('npm', ['install react react-dom']); | ||
|
||
// As of June 5, 2023, running `npm install styled-components` fails due to this issue. | ||
// https://github.com/styled-components/styled-components/issues/3998 | ||
// You must specify the version using `@version`. | ||
spawnOrFail('npm', [`install amazon-chime-sdk-js@${latestNPMJSSdkVersion} [email protected] styled-system`]); | ||
checkWarning('npm', [`install -q ../amazon-chime-sdk-component-library-react/amazon-chime-sdk-component-library-react-${currentVersion}.tgz`], null, 'amazon-chime-sdk-component-library-react'); | ||
process.chdir(path.join(__dirname, '..')); | ||
spawnOrFail('rm', ['-rf ../dependency-check-app']); | ||
|