Skip to content

Setting registry not being reflected from nx executor options #499

@ozee

Description

@ozee

I am trying to use the registry option to define our private npm repository but it seems like no matter what I do, it doesn't recognize that the option is being set. I have also tried setting it via $HOME/.npmrc prior to running the nx deploy script both as a scoped registry and a catch-all. I also have my publishConfig set in my package.json that is in the dist folder being deployed but I think that is also ignored or being overwritten. The strange part is that it is getting set somewhere because our proxy the npm registry is being set, but I am unable to publish to that, we have an internal url for publishing to. Here is the relevant nx target:

"deploy": {
  "executor": "ngx-deploy-npm:deploy",
  "options": {
    "access": "public",
    "dryRun": true,
    "noBuild": true,
    "distFolderPath": "dist/packages/somePackage/",
    "registry": "https://****-internal-npm/"
  }
},

Any help would be greatly appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions