Skip to content

Commit

Permalink
Update the release script for React 18 support (#898)
Browse files Browse the repository at this point in the history
  • Loading branch information
simmkyu authored Jun 5, 2023
1 parent 01bca2b commit 9db02cd
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions scripts/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand Down

0 comments on commit 9db02cd

Please sign in to comment.