Skip to content

Conversation

@kinyoklion
Copy link
Member

@kinyoklion kinyoklion commented Jun 13, 2023

No description provided.

@kinyoklion kinyoklion force-pushed the rlamb/exports-paths branch from b6b5e5f to 4b4dfbc Compare June 13, 2023 23:18
@kinyoklion kinyoklion changed the base branch from rlamb/implement-dynamodb-store to main June 13, 2023 23:18
@kinyoklion kinyoklion marked this pull request as draft June 13, 2023 23:21
"type": "commonjs",
"main": "./dist/src/index.js",
"types": "./dist/src/index.d.ts",
"exports": {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to make everything happy. I tried require and import in JS with node, and I tried import in TS with node. Everything worked and showed types. I needed the "typesVersions" before vscode intellisense worked correctly for integrations.

I have not done this much, so I am not a domain expert here.

import { TestData } from '@launchdarkly/node-server-sdk/integrations';

I am still exporting integrations from the main package. Probably safe for now.

@kinyoklion kinyoklion changed the title chore: Allow imports from paths. feat: Allow imports from paths. Jun 13, 2023
@kinyoklion kinyoklion marked this pull request as ready for review June 13, 2023 23:46
@kinyoklion kinyoklion merged commit 0f8f601 into main Jun 15, 2023
@kinyoklion kinyoklion deleted the rlamb/exports-paths branch June 15, 2023 21:32
@github-actions github-actions bot mentioned this pull request Jun 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants