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

build: use NPM to install node_modules #1007

Merged
merged 1 commit into from
Dec 7, 2020

Commits on Dec 7, 2020

  1. build: use NPM to install node_modules

    `semver` is a prod dependency of `vscode-languageclient`.
    In the old build pipeline, `vscode-languageclient` is declared in
    `client/package.json`.
    When yarn installs dependencies in the `client` directory, it will put `semver`
    next to `vscode-languageclient` in `client/node_modules`.
    
    In the new build pipeline, `vscode-languageclient` is declared in root
    `package.json`.
    When yarn installs dependencies in the root directory, it chooses not to hoist
    `semver`, instead puts it in a nested node_modules under
    `node_modules/vscode-languageclient/node_modules`.
    
    There is a bug in vsce that causes it to ignore nested `node_modules`,
    resulting in a `vsix` build that is broken. The issue is trackeed
    [here](microsoft/vscode-vsce#432), but it does not
    look like a fix will come any time soon.
    
    For now we should install our dependencies using NPM.
    Keen Yee Liau committed Dec 7, 2020
    Configuration menu
    Copy the full SHA
    d79df2e View commit details
    Browse the repository at this point in the history