Skip to content

Commit 231fe87

Browse files
committed
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 - Update docs
1 parent 558ebb4 commit 231fe87

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ npm install redis
5252
| [`@redis/json`](./packages/json) | [Redis JSON](https://redis.io/docs/data-types/json/) commands |
5353
| [`@redis/search`](./packages/search) | [RediSearch](https://redis.io/docs/interact/search-and-query/) commands |
5454
| [`@redis/time-series`](./packages/time-series) | [Redis Time-Series](https://redis.io/docs/data-types/timeseries/) commands |
55+
| [`@redis/entraid`](./packages/entraid) | Secure token-based authentication for Redis clients using Microsoft Entra ID |
5556

5657
> Looking for a high-level library to handle object mapping? See [redis-om-node](https://github.com/redis/redis-om-node)!
5758

packages/entraid/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ The first step to using @redis/entraid is choosing the right credentials provide
3636

3737
```typescript
3838
import { createClient } from '@redis/client';
39-
import { EntraIdCredentialsProviderFactory } from '@redis/entraid/dist/lib/entra-id-credentials-provider-factory';
39+
import { EntraIdCredentialsProviderFactory } from '@redis/entraid';
4040

4141
const provider = EntraIdCredentialsProviderFactory.createForClientCredentials({
4242
clientId: 'your-client-id',

packages/entraid/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './lib/index'

0 commit comments

Comments
 (0)