From 31ca0939aa2286ec2a819704fda19986081a93c5 Mon Sep 17 00:00:00 2001 From: William Will <10997562+willwill96@users.noreply.github.com> Date: Wed, 29 Mar 2023 18:07:43 -0600 Subject: [PATCH 1/2] fix: pass only strings to trimIndent --- src/bin/tools/jar.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/tools/jar.ts b/src/bin/tools/jar.ts index 0bd91837..ca84ed0a 100644 --- a/src/bin/tools/jar.ts +++ b/src/bin/tools/jar.ts @@ -35,7 +35,7 @@ export default async function jar({ groupId, artifactId, version, rootPath, targ const pomProps: ZipSource = { path: `META-INF/maven/${groupId}/${artifactId}/pom.properties`, data: Buffer.from(trimIndent`# Generated by keycloakify - # ${new Date()} + # ${new Date().toString()} artifactId=${artifactId} groupId=${groupId} version=${version} From eafb75a9584db53eb3ac9721476b4b65f5ea4900 Mon Sep 17 00:00:00 2001 From: William Will <10997562+willwill96@users.noreply.github.com> Date: Wed, 29 Mar 2023 18:48:10 -0600 Subject: [PATCH 2/2] fix: do not swallow errors --- src/bin/tools/jar.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/tools/jar.ts b/src/bin/tools/jar.ts index ca84ed0a..a87f4a52 100644 --- a/src/bin/tools/jar.ts +++ b/src/bin/tools/jar.ts @@ -90,5 +90,5 @@ if (require.main === module) { groupId: process.env.GROUP_ID ?? "group", version: process.env.VERSION ?? "1.0.0" }); - main().catch(e => console.error(e)); + main(); }