Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IPublishConfig

This is a set of config values that will be used at publish-time. It's especially handy if you want to set the tag, registry or access, so that you can ensure that a given package is not tagged with “latest”, published to the global public registry or that a scoped module is private by default. Any config values can be overridden, but only "tag", "registry" and "access" probably matter for the purposes of publishing. See npm-config to see the list of config options that can be overridden.

  • Public Registry
{
  "publishConfig":{
    "registry":"https://registry.npmjs.org"
  }
}
  • Your Private Registry
{
  "publishConfig":{
    "registry":"http://your-registry.local"
  }
}
see

https://docs.npmjs.com/files/package.json#publishconfig

see

https://yarnpkg.com/en/docs/package-json#toc-publishconfig

Hierarchy

  • IPublishConfig

Index

Properties

Properties

Optional access

access: undefined | string

Optional registry

registry: undefined | string

Optional tag

tag: undefined | string

Generated using TypeDoc