-
Notifications
You must be signed in to change notification settings - Fork 12
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): build #867
Conversation
✅ Deploy Preview for api-clients-automation canceled.
|
✗ The generated branch has been deleted.If the PR has been merged, you can check the generated code on the |
cc @millotp if you want to check when you come back |
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.
Why not 👍🏻
I could not test
~ yarn build:all 0 [16:01:45]
lerna notice cli v5.3.0
lerna info versioning independent
lerna notice filter excluding "{@algolia/requester-*,@algolia/client-common}"
lerna info filter [ '!{@algolia/requester-*,@algolia/client-common}' ]
lerna success run No packages found with the lifecycle script 'build'
clients/algoliasearch-client-javascript/packages/client-common/rollup.config.js
Show resolved
Hide resolved
I've added in the PR body |
Yep this is the one I tried and didn't work. It might require additional generation? |
Hm it shouldn't 🤔 that's the same that is used on the CI and for my tests. Maybe a edit: seems to work correctly on my side |
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.
not sure what changed but works now 👍🏻
nothing related to how the build works but glad to hear it :D |
🧭 What and Why
🎟 JIRA Ticket: https://algolia.atlassian.net/browse/APIC-618
Problem
algoliasearch/lite
client is not correct (double nested folder)Changes included:
Leverage Lerna + Nx as our building tool for the JavaScript client, which allow us to:
algoliasearch
client, resulting in duplicate types and nestedlite/lite
folderCache does not seem to trigger on the CI but time seems to be more consistent.
Rollup config:
There is build-related changes in the rollup config other than the map logic to save previously built types (
checkForTypes
). The core logic that previously was inclients/algoliasearch-client-javascript/rollup.config.js
have been merged with thebase.rollup.config
, and some logic have changed to handle the per-client build logic.🧪 Test
generated/fix/js-build
cd clients/algoliasearch-client-javascript && yarn build:all