Skip to content

Conversation

@francoischalifour
Copy link
Contributor

This enables to share code between packages by introducing a new package: @algolia/autocomplete-shared.

This package is only compiled to ESM (no UMD) because it's meant to stay internal. We could have not transpiled it at all (i.e., shipping TypeScript files) but we might break apps using the ESM imports of our libs that don't transpile TS files.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Nov 5, 2020

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit d6ec55e:

Sandbox Source
@algolia/js-example Configuration

"@algolia/autocomplete-shared": "1.0.0-alpha.34"
},
"devDependencies": {
"@algolia/client-search": "4.5.1",
Copy link
Contributor

Choose a reason for hiding this comment

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

is this one only used in tests? otherwise it should be also in peerDependencies; even if it's a transitive dependency (I think).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor Author

@francoischalifour francoischalifour Nov 5, 2020

Choose a reason for hiding this comment

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

Added in d6ec55e.

Copy link
Contributor

@Haroenv Haroenv left a comment

Choose a reason for hiding this comment

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

looks good now!

@francoischalifour francoischalifour merged commit af04ae1 into next Nov 5, 2020
@francoischalifour francoischalifour deleted the feat/autocomplete-shared branch November 5, 2020 16:54
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