From d34999ae7bf2f05ec5e02a003aee356416dab620 Mon Sep 17 00:00:00 2001 From: borislav ivanov Date: Thu, 30 Jan 2025 12:57:01 +0200 Subject: [PATCH] fix(entraid): correct package entry point structure Add root index.ts to properly expose package exports through `@redis/entraid` rather than requiring users to import through `@redis/entraid/dist/lib`. This maintains backward compatibility while providing the correct package structure where all exports are available from the package root. - Add /index.ts that re-exports all from /lib/index.ts - Preserve existing /lib/index.ts structure --- packages/entraid/README.md | 2 +- packages/entraid/index.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 packages/entraid/index.ts diff --git a/packages/entraid/README.md b/packages/entraid/README.md index 131935fe61..e9c7956022 100644 --- a/packages/entraid/README.md +++ b/packages/entraid/README.md @@ -36,7 +36,7 @@ The first step to using @redis/entraid is choosing the right credentials provide ```typescript import { createClient } from '@redis/client'; -import { EntraIdCredentialsProviderFactory } from '@redis/entraid/dist/lib/entra-id-credentials-provider-factory'; +import { EntraIdCredentialsProviderFactory } from '@redis/entraid'; const provider = EntraIdCredentialsProviderFactory.createForClientCredentials({ clientId: 'your-client-id', diff --git a/packages/entraid/index.ts b/packages/entraid/index.ts new file mode 100644 index 0000000000..303b5dc6e1 --- /dev/null +++ b/packages/entraid/index.ts @@ -0,0 +1 @@ +export * from './lib/index' \ No newline at end of file