Skip to content

Commit d34999a

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
1 parent 558ebb4 commit d34999a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/entraid/README.md

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './lib/index'

0 commit comments

Comments
 (0)