-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(javascript): import type for bundler #4020
Conversation
✔️ Code generated!
📊 Benchmark resultsBenchmarks performed on the method using a mock server, the results might not reflect the real-world performance.
|
seems like |
@@ -6,8 +6,7 @@ | |||
"packages/*" | |||
], | |||
"scripts": { | |||
"build:all": "lerna run build --include-dependencies", | |||
"build:many": "lerna run build --scope 'algoliasearch' --scope '@algolia/requester-testing' --scope '@algolia/logger-console' --scope ${0:-'{@algolia/*,algoliasearch}'} --include-dependencies", | |||
"build": "lerna run build --scope '@algolia/requester-testing' --scope '@algolia/logger-console' --scope 'algoliasearch' --include-dependencies", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
now that algoliasearch has everything as a deps, we don't need to select what to run, just ask for algoliasearch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤞🏼
Co-authored-by: Clément Vannicatte <[email protected]>
algolia/api-clients-automation#4020 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
🧭 What and Why
🎟 JIRA Ticket: https://algolia.atlassian.net/browse/DI-3102
Changes included:
close algolia/algoliasearch-client-javascript#1565
close algolia/algoliasearch-client-javascript#1562
seems like tsup doesn't remove type imports if the statement doesn't include
type
in it, leading to javascript files with type imports... see https://www.npmjs.com/package/algoliasearch?activeTab=code in/algoliasearch/dist/node.js
L53-L54 for examplealso add https://www.typescriptlang.org/tsconfig/#verbatimModuleSyntax to enforce import types consistency