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

Cleans up the root package.json #312

Merged
merged 1 commit into from
Nov 23, 2023
Merged

Cleans up the root package.json #312

merged 1 commit into from
Nov 23, 2023

Conversation

azatsarynnyy
Copy link
Member

@azatsarynnyy azatsarynnyy commented Nov 23, 2023

What does this PR do?

In this PR, I suggest removing the redundant fields from the root package.json that I overlooked while reviewing the recently merged patch. See the details in the inlined code comments below ⬇️

What issues does this PR fix?

fixes eclipse-che/che#22686

How to test this PR?

Actually, the PR changes nothing except cleaning up the part of the root package.json that may confuse the developer.

Signed-off-by: Artem Zatsarynnyi <azatsary@redhat.com>
Copy link

github-actions bot commented Nov 23, 2023

Click here to review and test in web IDE: Contribute

Copy link

Pull Request Dev image published:
👉 quay.io/che-incubator-pull-requests/che-code-dev:pr-312-dev-amd64

@@ -10,13 +10,5 @@
"build:min": "cd code && yarn gulp vscode-reh-web-linux-x64-min",
"rebuild-native-modules": "cd code && npm rebuild"
},
"license": "EPL-2.0",
"dependencies": {
"node-gyp": "^9.4.1"
Copy link
Member Author

Choose a reason for hiding this comment

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

Removing node-gyp from npm was a breaking change introduced in npm/cli#6932.
They already fixed the problem in npm/cli#6932.

While a new version of Node.js with the fixed npm has not yet been released, the only temporary workaround that we need on the Che-Code side is installing node-gyp globally to allow any transitive dependency rely on it. Once we update to a newer Node.js, we can get rid of that ^^ workaround.

Anyway, if it was even decided that node-gyp was no longer part of npm, we don't need to declare any transitive dependency of VS Code in Che-Code's root package.json.

"dependencies": {
"node-gyp": "^9.4.1"
},
"engines": {
Copy link
Member Author

@azatsarynnyy azatsarynnyy Nov 23, 2023

Choose a reason for hiding this comment

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

VS Code build has a custom check of the node/yarn versions on the preinstall phase. I believe there's not much sense in introducing one more very similar verification. So, I suggest relying only on the verification script from upstream.

Copy link
Collaborator

Choose a reason for hiding this comment

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

moreover: it broke the che-in-che development: eclipse-che/che#22686

Copy link

Pull Request Che-Code image published:
👉 quay.io/che-incubator-pull-requests/che-code:pr-312-amd64

@azatsarynnyy azatsarynnyy merged commit 1b2aef9 into main Nov 23, 2023
@azatsarynnyy azatsarynnyy deleted the cleanup-package-json branch November 23, 2023 13:36
@devstudio-release
Copy link

Build 3.11 :: code_3.x/1017: Console, Changes, Git Data

@devstudio-release
Copy link

@devstudio-release
Copy link

@devstudio-release
Copy link

@devstudio-release
Copy link

@devstudio-release
Copy link

Build 3.11 :: code_3.x/1017: SUCCESS

Upstream sync done; /DS_CI/sync-to-downstream_3.x/5362 triggered

@devstudio-release
Copy link

@devstudio-release
Copy link

@devstudio-release
Copy link

@devstudio-release
Copy link

@devstudio-release
Copy link

@devstudio-release
Copy link

Build 3.11 :: copyIIBsToQuay/2191: Console, Changes, Git Data

@devstudio-release
Copy link

Build 3.11 :: sync-to-downstream_3.x/5363: SUCCESS

Build container: devspaces-operator-bundle synced; /DS_CI/get-sources-rhpkg-container-build_3.x/5235 triggered; /job/DS_CI/job/dsc_3.x triggered;

@devstudio-release
Copy link

Build 3.11 :: operator-bundle_3.x/2317: SUCCESS

Upstream sync done; /DS_CI/sync-to-downstream_3.x/5363 triggered

@devstudio-release
Copy link

Build 3.11 :: dsc_3.x/1583: Console, Changes, Git Data

@devstudio-release
Copy link

Build 3.11 :: update-digests_3.x/4992: SUCCESS

Detected new images: rebuild operator-bundle
* code; /DS_CI/operator-bundle_3.x/2317 triggered

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.

Che-in-Che development is broken
3 participants