Skip to content

Commit

Permalink
fix(entraid): correct package entry point structure
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bobymicroby committed Jan 30, 2025
1 parent 558ebb4 commit a1663c0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ npm install redis
| [`@redis/json`](./packages/json) | [Redis JSON](https://redis.io/docs/data-types/json/) commands |
| [`@redis/search`](./packages/search) | [RediSearch](https://redis.io/docs/interact/search-and-query/) commands |
| [`@redis/time-series`](./packages/time-series) | [Redis Time-Series](https://redis.io/docs/data-types/timeseries/) commands |
| [`@redis/entraid`](./packages/entraid) | Secure token-based authentication for Redis clients using Microsoft Entra ID |

> Looking for a high-level library to handle object mapping? See [redis-om-node](https://github.com/redis/redis-om-node)!
Expand Down
2 changes: 1 addition & 1 deletion packages/entraid/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
1 change: 1 addition & 0 deletions packages/entraid/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './lib/index'

0 comments on commit a1663c0

Please sign in to comment.