Skip to content

Commit 1398416

Browse files
committed
Add 'pnpm' to 'PackageManager'
1 parent b15137d commit 1398416

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ plugins {
2828

2929
allprojects {
3030
group = "software.amazon.smithy.typescript"
31-
version = "0.34.0"
31+
version = "0.34.1"
3232
}
3333

3434
// The root project doesn't produce a JAR.

smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/TypeScriptSettings.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,8 @@ public static RequiredMemberMode fromString(String s) {
635635

636636
public enum PackageManager {
637637
YARN("yarn"),
638-
NPM("npm");
638+
NPM("npm"),
639+
PNPM("pnpm");
639640

640641
private final String command;
641642

@@ -654,6 +655,9 @@ public static PackageManager fromString(String s) {
654655
if ("npm".equals(s)) {
655656
return NPM;
656657
}
658+
if ("pnpm".equals(s)) {
659+
return PNPM;
660+
}
657661
throw new CodegenException(String.format("Unsupported package manager: %s", s));
658662
}
659663
}

0 commit comments

Comments
 (0)