Skip to content

Commit 9db02cd

Browse files
authored
Update the release script for React 18 support (#898)
1 parent 01bca2b commit 9db02cd

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

scripts/release.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,12 @@ const checkNPMDepsInstall = () => {
9797
}
9898
process.chdir(path.join(__dirname, '../../dependency-check-app'));
9999
spawnOrFail('npm', ['init -y']);
100-
// Currently, install 17 version as this now install 18.0.0 which we do not support yet.
101-
spawnOrFail('npm', ['install [email protected] [email protected]']);
102-
spawnOrFail('npm', [`install amazon-chime-sdk-js@${latestNPMJSSdkVersion} styled-components styled-system`]);
100+
spawnOrFail('npm', ['install react react-dom']);
101+
102+
// As of June 5, 2023, running `npm install styled-components` fails due to this issue.
103+
// https://github.com/styled-components/styled-components/issues/3998
104+
// You must specify the version using `@version`.
105+
spawnOrFail('npm', [`install amazon-chime-sdk-js@${latestNPMJSSdkVersion} [email protected] styled-system`]);
103106
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');
104107
process.chdir(path.join(__dirname, '..'));
105108
spawnOrFail('rm', ['-rf ../dependency-check-app']);

0 commit comments

Comments
 (0)