Skip to content

@angular/bazel always generates WORKSPACE with yarn_install even if ng used npm #30164

Closed

Description

@alexeagle

By default I do ng new, ng add @angular/bazel, I have a package-lock.json file but bazel fails because it looks for yarn.lock instead

Activity

  1. added this to the version 8 milestone on Apr 27, 2019
  2. m-henderson commented on Apr 27, 2019

    @m-henderson

    so basically we should check to see if npm was used and if it was we need to look for a package-lock.json instead of yarn.lock?

  3. alexeagle commented on Apr 29, 2019

    @alexeagle
    ContributorAuthor

    Workaround is to create projects with yarn
    ng config -g cli.packageManager yarn
    or manually change the WORKSPACE file produced by the @angular/bazel schematic to use npm_install in place of yarn_install

    The fix is for the schematic to be written with an npm_install rule if npm was used, yes

  4. angular-automatic-lock-bot commented on Sep 15, 2019

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  5. locked and limited conversation to collaborators on Sep 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions