From 695e71301e514cfa1aa298b0b625ebe69ce4ae92 Mon Sep 17 00:00:00 2001 From: El-Fitz <8971906+El-Fitz@users.noreply.github.com> Date: Fri, 23 Aug 2024 12:11:44 +0200 Subject: [PATCH] fix: attempt to expose a bin cli to run using bunx --- action.yml | 2 +- package.json | 2 +- src/bin/provision-private-keys.mts | 2 ++ tsconfig.bin.json | 4 +--- tsconfig.json | 4 +--- 5 files changed, 6 insertions(+), 8 deletions(-) diff --git a/action.yml b/action.yml index c30dea8..38e5fde 100644 --- a/action.yml +++ b/action.yml @@ -28,7 +28,7 @@ runs: run: bun install - name: "Run script with Bun" shell: bash - run: bunx @csbnlu/jawks-private-keys-provisioner@0.0.9 + run: bunx @csbnlu/jawks-private-keys-provisioner env: ACCESS_TOKEN_SECRET_ARN: ${{ inputs.accessTokenSecretARN }} REFRESH_TOKEN_SECRET_ARN: ${{ inputs.refreshTokenSecretARN }} diff --git a/package.json b/package.json index 1655c1f..9307a2c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@csbnlu/jawks-private-keys-provisioner", - "version": "0.0.9", + "version": "0.0.10", "devDependencies": { "@types/aws-lambda": "^8.10.143", "@types/node": "^22.5.0", diff --git a/src/bin/provision-private-keys.mts b/src/bin/provision-private-keys.mts index e723a0e..0dc7698 100644 --- a/src/bin/provision-private-keys.mts +++ b/src/bin/provision-private-keys.mts @@ -1,3 +1,5 @@ +#!/usr/bin/env bun + import { Bindings } from "../private-keys-provisioner/index.js"; import { z } from "zod"; diff --git a/tsconfig.bin.json b/tsconfig.bin.json index 4b34248..98b9d6b 100644 --- a/tsconfig.bin.json +++ b/tsconfig.bin.json @@ -13,7 +13,5 @@ "strict": true, "declarationMap": true }, - "files": [ - "src/bin/provision-private-keys.mts" - ] + "files": ["src/bin/provision-private-keys.mts"] } diff --git a/tsconfig.json b/tsconfig.json index 4d3da63..02063aa 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -12,7 +12,5 @@ "strict": true, "declarationMap": true }, - "files": [ - "src/index.ts" - ] + "files": ["src/index.ts"] }