Enum NodePackageManager
- java.lang.Object
-
- java.lang.Enum<NodePackageManager>
-
- io.github.cdklabs.projen.javascript.NodePackageManager
-
- All Implemented Interfaces:
Serializable,Comparable<NodePackageManager>
@Generated(value="jsii-pacmak/1.96.0 (build 921e240)", date="2024-03-28T21:16:43.176Z") @Stability(Experimental) public enum NodePackageManager extends Enum<NodePackageManager>
(experimental) The node package manager to use.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BUN(experimental) Usebunas the package manager.NPM(experimental) Usenpmas the package manager.PNPM(experimental) Usepnpmas the package manager.YARNDeprecated.Foryarn1.x useYARN_CLASSICforyarn>= 2 useYARN_BERRY.YARN_BERRY(experimental) Useyarnversions >= 2 as the package manager.YARN_CLASSIC(experimental) Useyarn1.x as the package manager.YARN2Deprecated.use YARN_BERRY instead
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NodePackageManagervalueOf(String name)Returns the enum constant of this type with the specified name.static NodePackageManager[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
YARN
@Stability(Deprecated) @Deprecated public static final NodePackageManager YARN
Deprecated.Foryarn1.x useYARN_CLASSICforyarn>= 2 useYARN_BERRY. Currently,NodePackageManager.YARNmeansYARN_CLASSIC. In the future, we might repurpose it to meanYARN_BERRY.(deprecated) Useyarnas the package manager.
-
YARN2
@Stability(Deprecated) @Deprecated public static final NodePackageManager YARN2
Deprecated.use YARN_BERRY instead(deprecated) Useyarnversions >= 2 as the package manager.
-
YARN_CLASSIC
@Stability(Experimental) public static final NodePackageManager YARN_CLASSIC
(experimental) Useyarn1.x as the package manager.
-
YARN_BERRY
@Stability(Experimental) public static final NodePackageManager YARN_BERRY
(experimental) Useyarnversions >= 2 as the package manager.
-
NPM
@Stability(Experimental) public static final NodePackageManager NPM
(experimental) Usenpmas the package manager.
-
PNPM
@Stability(Experimental) public static final NodePackageManager PNPM
(experimental) Usepnpmas the package manager.
-
BUN
@Stability(Experimental) public static final NodePackageManager BUN
(experimental) Usebunas the package manager.
-
-
Method Detail
-
values
public static NodePackageManager[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (NodePackageManager c : NodePackageManager.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NodePackageManager valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-