Class NpmConfig

  • All Implemented Interfaces:
    software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

    @Generated(value="jsii-pacmak/1.96.0 (build 921e240)",
               date="2024-03-28T21:16:43.199Z")
    @Stability(Experimental)
    public class NpmConfig
    extends Component
    (experimental) File representing the local NPM config in .npmrc.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  NpmConfig.Builder
      (experimental) A fluent builder for NpmConfig.
      • Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

        software.amazon.jsii.JsiiObject.InitializationMode
      • Nested classes/interfaces inherited from interface software.constructs.IConstruct

        software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$Proxy
    • Constructor Detail

      • NpmConfig

        protected NpmConfig​(software.amazon.jsii.JsiiObjectRef objRef)
      • NpmConfig

        protected NpmConfig​(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
      • NpmConfig

        @Stability(Experimental)
        public NpmConfig​(@NotNull
                         NodeProject project,
                         @Nullable
                         NpmConfigOptions options)
        Parameters:
        project - This parameter is required.
        options -
      • NpmConfig

        @Stability(Experimental)
        public NpmConfig​(@NotNull
                         NodeProject project)
        Parameters:
        project - This parameter is required.
    • Method Detail

      • addConfig

        @Stability(Experimental)
        public void addConfig​(@NotNull
                              String name,
                              @NotNull
                              String value)
        (experimental) configure a generic property.

        Parameters:
        name - the name of the property. This parameter is required.
        value - the value of the property. This parameter is required.
      • addRegistry

        @Stability(Experimental)
        public void addRegistry​(@NotNull
                                String url,
                                @Nullable
                                String scope)
        (experimental) configure a scoped registry.

        Parameters:
        url - the URL of the registry to use. This parameter is required.
        scope - the scope the registry is used for;.
      • addRegistry

        @Stability(Experimental)
        public void addRegistry​(@NotNull
                                String url)
        (experimental) configure a scoped registry.

        Parameters:
        url - the URL of the registry to use. This parameter is required.