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

feat: switch to npm as default package manager #226927

Merged
merged 48 commits into from
Sep 6, 2024
Merged

Conversation

deepak1556
Copy link
Collaborator

Fixes #196795

@deepak1556 deepak1556 added this to the September 2024 milestone Aug 28, 2024
@deepak1556 deepak1556 self-assigned this Aug 28, 2024
Copy link
Member

@joaomoreno joaomoreno left a comment

Choose a reason for hiding this comment

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

Good to merge once ready for me, once suggested changes are adopted. Also, let's go ahead and delete the yarn.lock files in the same PR.

I will be out so please someone else give Deepak the official green checkbox when it's time to merge.

.devcontainer/README.md Outdated Show resolved Hide resolved
.devcontainer/README.md Outdated Show resolved Hide resolved
.devcontainer/post-create.sh Outdated Show resolved Hide resolved
.github/workflows/check-clean-git-state.sh Outdated Show resolved Hide resolved
test/integration/browser/README.md Outdated Show resolved Hide resolved
test/monaco/README.md Outdated Show resolved Hide resolved
test/smoke/README.md Outdated Show resolved Hide resolved
test/smoke/README.md Outdated Show resolved Hide resolved
test/smoke/README.md Outdated Show resolved Hide resolved
@deepak1556 deepak1556 marked this pull request as ready for review September 1, 2024 20:33
@deepak1556 deepak1556 marked this pull request as draft September 1, 2024 20:41
@deepak1556 deepak1556 force-pushed the robo/yarn_2_npm branch 6 times, most recently from 7a80822 to 11edb3d Compare September 5, 2024 12:04
bpasero
bpasero previously approved these changes Sep 5, 2024
```
✘ [ERROR] Could not resolve "punycode"

    extensions/markdown-language-features/node_modules/markdown-it/lib/index.js:14:27:
      14 │ var punycode     = require('punycode');
         ╵                            ~~~~~~~~~~

  The package "punycode" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
```

Adds missing userland package based on markdown-it/markdown-it@beed9ae,
can be removed once we update markdown-it >= 14.1.0
We can disable it in a separate PR to keep the required
checks happy and also need workflow edit perms.
@deepak1556 deepak1556 merged commit b5a6aa1 into main Sep 6, 2024
7 checks passed
@deepak1556 deepak1556 deleted the robo/yarn_2_npm branch September 6, 2024 13:18
@jwoo0122
Copy link

jwoo0122 commented Sep 7, 2024

We should change the contribution guide. It still directs contributors to use yarn.

Edit: I made a PR for wiki. microsoft/vscode-wiki#291

@brjsp
Copy link

brjsp commented Sep 9, 2024

Speaking as a downstream redistributor, that's precisely the kind of change that warrants bumping up the major version of your software.

@deepak1556
Copy link
Collaborator Author

deepak1556 commented Sep 10, 2024

I can't speak for the versioning, you should still be able to use the yarn version of commands to launch any of the scripts that were previously used for building packages. The only command that needs a change is the dependency installation yarn -> npm i due to lockfile format change, if you want to keep the changes minimal following this PR. Let me know if you are facing any other issues due to the transition and I can help were possible.

@liamlows
Copy link

liamlows commented Sep 13, 2024

Is there a planned tag release for this change? We are also using vscode-web custom deployment and would like to use npm when building but the latest tag (1.93.1) seems to still use yarn.

@deepak1556
Copy link
Collaborator Author

@liamlows it will be available from 1.94.0

shokerm added a commit to shokerm/code-blocks-displayer that referenced this pull request Sep 19, 2024
inclyc added a commit to inclyc/flakes that referenced this pull request Oct 10, 2024
The "Code - OSS" repository has altered its dependency manager to "npm"
which caused numerous issues for nixpkgs.
The most critical issue is the offline cache produced by npm is
completely non-reproducible.
As a result, it is currently challenging to update the version of
"code-oss" (build-from-source version).

For now, I am switching from "code-oss" to "vscodium" the binary
releases maintained by the community.


Link: microsoft/vscode#196795
Link: microsoft/vscode#226927
Link: NixOS/nixpkgs#318673
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.

Investigate moving from yarn back to npm
7 participants