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 d34999a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
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 d34999a

Please sign in to comment.