From c7aab00507b20e9723d95535342f99349f011dec Mon Sep 17 00:00:00 2001 From: Gregor Vostrak Date: Sun, 25 Aug 2024 20:22:45 +0200 Subject: [PATCH] expose createApiClient method in api package to public --- .github/workflows/npm-publish-api.yml | 2 +- resources/js/packages/api/src/index.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/npm-publish-api.yml b/.github/workflows/npm-publish-api.yml index 3d77aa76..5e056d76 100644 --- a/.github/workflows/npm-publish-api.yml +++ b/.github/workflows/npm-publish-api.yml @@ -1,6 +1,6 @@ name: Publish API package to NPM on: - workflow_dispatch + push jobs: build: runs-on: ubuntu-latest diff --git a/resources/js/packages/api/src/index.ts b/resources/js/packages/api/src/index.ts index 0a3de950..40a43960 100644 --- a/resources/js/packages/api/src/index.ts +++ b/resources/js/packages/api/src/index.ts @@ -134,4 +134,6 @@ export type MyMemberships = ZodiosResponseByAlias< export type MyMembership = MyMemberships[0]; -export const api = createApiClient('/api', { validate: 'none' }); +const api = createApiClient('/api', { validate: 'none' }); + +export { createApiClient, api };