-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Migrate to node 16, npm 7. #3773
Conversation
…o dkru/migrate-node16
…o dkru/migrate-node16
Hi @bsekachev, |
@dvkruchinin , @bsekachev , I will suggest to replace node-sass. What do you think? Warning: LibSass and Node Sass are deprecated. While they will continue to receive maintenance releases indefinitely, there are no plans to add additional features or compatibility with any new CSS or Sass features. Projects that still use it should move onto Dart Sass. |
@dvkruchinin Can you do it? |
I`ll take a look. In case of problems, I will contact you. |
…o dkru/migrate-node16
To fix it, I used https://sass-lang.com/documentation/breaking-changes/slash-div#automatic-migration |
76589cc
to
84038b5
Compare
Hi, We need to define workspaces (actually it was the key idea of migration).
After that we need only one |
Also with new And describe all of them in |
Added |
Hi @dvkruchinin The patch looks fine, but I come across one issue. When I open typescript files from cvat-canvas, cvat-canvas3d,
If I do some changes in these files, they are automatically linted on precommit hook and linter fails with the same error, so, I can't commit if these files are changed. Could you please look into this? |
RUN npm ci | ||
# Install common dependencies | ||
WORKDIR /tmp/ | ||
RUN npm ci --ignore-scripts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you need --ignore-scripts
flag?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without this flag I got an error rm: cannot remove '.husky/pre-commit': No such file or directory
Hi @bsekachev, Error |
Resolve #2742
Motivation and context
Migration to node version 16 and npm version 7.
Transferring commonly used packages to the root package.json (if possible).
Updating Dockerfile to use the root package.json. Updating Dockerfile.ci. Updating Dockerfile.ui to use stretch image which uses node 16.
Updating pipeline files. Updating CONTRIBUTING guide.
How has this been tested?
Checklist
develop
branchcvat-core, cvat-data and cvat-ui)
License
Feel free to contact the maintainers if that's a concern.