Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade Frontend dependencies #1874

Closed

Conversation

Dhwaniartefact
Copy link
Contributor

Frontend dependencies are upgraded by removing yarn packages and installing npm version 9.

overrides feature of npm is used to upgrade specific version of devDependencies and dependencies.

Reference : https://docs.npmjs.com/cli/v9/configuring-npm/package-json#overrides

hack/Dockerfile Outdated Show resolved Hide resolved
hack/Dockerfile Outdated Show resolved Hide resolved
src/dashboard/frontend/package.json Outdated Show resolved Hide resolved
@Dhwaniartefact Dhwaniartefact force-pushed the dev/issue-Update-fronend-dependecies-take-two branch from 7c3b21c to 8dd5d01 Compare November 20, 2023 21:36
@Dhwaniartefact Dhwaniartefact force-pushed the dev/issue-Update-fronend-dependecies-take-two branch from 8dd5d01 to f179b83 Compare November 21, 2023 18:25
@Dhwaniartefact Dhwaniartefact added AMAUAT Issues relating to the improvement of the AM Automated Acceptance tests and removed AMAUAT Issues relating to the improvement of the AM Automated Acceptance tests labels Nov 21, 2023
@Dhwaniartefact Dhwaniartefact force-pushed the dev/issue-Update-fronend-dependecies-take-two branch from f179b83 to 117181f Compare November 22, 2023 15:00
Copy link
Member

@sevein sevein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't tested but this looks good to me. I defer to Douglas for the final decision. It would be great if we can use the latest LTS available.

Comment on lines +62 to +64
"webpack": {
"loader-utils": "1.4.2"
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't know overrides can do this, cool.

@@ -51,25 +51,18 @@ RUN set -ex \
&& add-apt-repository --no-update --yes "deb http://archive.ubuntu.com/ubuntu/ jammy multiverse" \
&& add-apt-repository --no-update --yes "deb http://archive.ubuntu.com/ubuntu/ jammy-security universe" \
&& add-apt-repository --no-update --yes "deb http://archive.ubuntu.com/ubuntu/ jammy-updates multiverse" \
&& curl -sS https://deb.nodesource.com/setup_14.x | bash - \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use 18.x or 20.x? Related: https://endoflife.date/nodejs.

Comment on lines +139 to +140
RUN set ex \
&& npm install -g [email protected]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why 9.8.1 and not the latest 9.x, e.g. 9.9.2?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you and noted all your suggestions. I made changes accordingly in #1875

@Dhwaniartefact
Copy link
Contributor Author

Closing this PR since npm and node are upgraded in #1875

@Dhwaniartefact Dhwaniartefact deleted the dev/issue-Update-fronend-dependecies-take-two branch November 22, 2023 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants