Skip to content

Extensions are not npm_shrinkwrap'ed #8570

Closed

Description

We have extensions that have npm dependencies, like css or json. We don't shrink-wrap them which means each build from the same commit has a chance of being different.

@Microsoft/vscode

Activity

  1. added
    important
    on Jun 30, 2016
  2. bpasero commented on Jun 30, 2016

    @bpasero
    Contributor

    The list of extensions with node_modules folder:

    All of these need shrinkwrap and maybe a smoke test after that.

  3. bpasero commented on Jun 30, 2016

    @bpasero
    Contributor

    Also, if you have recently moved code to a new extension, please make sure you have removed the dependency of your extension from our package.json and shrinkwrap file.

  4. jrieken commented on Jun 30, 2016

    @jrieken
    ContributorAuthor

    Benjamin Pasero (@bpasero) Can you give pointers how to create the shrink_wrap file?

  5. bpasero commented on Jun 30, 2016

    @bpasero
    Contributor

    What I typically do is:

    • Make sure to have npm 3 installed (to get a flat shrinkwrap file)
    • Copy the package.json to a new, empty folder outside VSCode
    • Delete all devDependencies from the package.json file
    • Open a prompt in that new folder
    • Run "npm install" and wait for it to finish without errors
    • Run "npm shrinkwrap" and wait for it to finish without errors
    • Copy the npm-shrinkwrap.json file into same location as the package.json file in the extension
  6. jrieken commented on Jul 1, 2016

    @jrieken
    ContributorAuthor

    Since Martin Aeschlimann (@aeschli) is out, pls someone jump in. Also, we might need to run the OSS tool after this again 👻

  7. isidorn commented on Jul 1, 2016

    @isidorn

    I can do it instead of Martin Aeschlimann (@aeschli)

  8. bpasero commented on Jul 1, 2016

    @bpasero
    Contributor

    I updated the description with this important step:

    • Copy the npm-shrinkwrap.json file into same location as the package.json file in the extension
  9. dbaeumer commented on Jul 1, 2016

    @dbaeumer
    Member

    Done for TypeScript

  10. isidorn commented on Jul 1, 2016

    @isidorn

    Seems to be done for all -> closing

  11. locked and limited conversation to collaborators on Nov 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

important

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions