Skip to content

Per VSCode team request, move vscode to devDependencies #1608

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

Merged
merged 1 commit into from
Nov 16, 2018

Conversation

rkeithhill
Copy link
Contributor

Closes #1604

PR Summary

PR Checklist

Note: Tick the boxes below that apply to this pull request by putting an x between the square brackets.
Please mark anything not applicable to this PR NA.

  • PR has a meaningful title
  • Summarized changes
  • PR has tests
  • This PR is ready to merge and is not work in progress
    • If the PR is work in progress, please add the prefix WIP: to the beginning of the title and remove the prefix when the PR is ready

Copy link
Contributor

@rjmholt rjmholt left a comment

Choose a reason for hiding this comment

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

LGTM!

I assume our versions are still up to date?

@rkeithhill
Copy link
Contributor Author

@TylerLeonhardt @rjmholt What do you think about this one? Merge it?

@rjmholt rjmholt merged commit 6f576e4 into master Nov 16, 2018
@TylerLeonhardt TylerLeonhardt deleted the rkeithhill/move-vscode-to-dev-dependency branch November 16, 2018 06:25
@TylerLeonhardt
Copy link
Member

TylerLeonhardt commented Nov 16, 2018

Sorry I meant to call out to try removing your node_modules and doing:

npm install --production

docs

then try running the extension. This will tell us if we're relying on what should be a dev dependency in our code.

@rkeithhill
Copy link
Contributor Author

rkeithhill commented Nov 16, 2018

Hmm, npm install --production fails on my machine. Not a great sign but wouldn't the builds catch such a problem?

@TylerLeonhardt
Copy link
Member

Looks like we run regular npm install which means devDependencies have been shipping with the extension for probably ever. 😥

https://github.com/PowerShell/vscode-powershell/blob/master/vscode-powershell.build.ps1#L69

@alexdima
Copy link

@TylerLeonhardt If you are publishing using vsce, that is smart enough to only package production dependencies.

@TylerLeonhardt
Copy link
Member

Good to know! In that case, @rkeithhill can you test the VSIX that CI generated to make sure it still works?

@rkeithhill
Copy link
Contributor Author

Yes, I'll test it tonight.

@rkeithhill
Copy link
Contributor Author

Um yeah … wow! AFAICT with some basic smoke testing (code analysis & debugging) the extension works and this change takes us from an installed size of 62.1 MB to 12.9 MB. And the VSIX size goes from 7 MB to 3.5 MB.

@alexandrudima good call. Thanks!

@TylerLeonhardt
Copy link
Member

That's amazing!!

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.

Please do not use vscode in the dependencies section of package.json
4 participants