Skip to content

chore: fix JavaScript build #975

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

Merged
merged 4 commits into from
Aug 30, 2022
Merged

chore: fix JavaScript build #975

merged 4 commits into from
Aug 30, 2022

Conversation

shortcuts
Copy link
Member

🧭 What and Why

🎟 JIRA Ticket: -

Changes included:

See build error in #974

Glob pattern match does not work with single match (unless we add a trailing comma). We can use regular scope syntax when there's a single element to prevent this error.

This throw:

cd clients/algoliasearch-client-javascript && yarn build:many '{@algolia/predict}'

This does not:

cd clients/algoliasearch-client-javascript && yarn build:many @algolia/predict
// OR
cd clients/algoliasearch-client-javascript && yarn build:many '{@algolia/predict,}'

@shortcuts shortcuts requested a review from millotp August 30, 2022 11:09
@shortcuts shortcuts self-assigned this Aug 30, 2022
@netlify
Copy link

netlify bot commented Aug 30, 2022

Deploy Preview for api-clients-automation canceled.

Name Link
🔨 Latest commit 2ad4b59
🔍 Latest deploy log https://app.netlify.com/sites/api-clients-automation/deploys/630dff1df8f7260008c0b1e2

@shortcuts shortcuts enabled auto-merge (squash) August 30, 2022 11:09
@algolia-bot
Copy link
Collaborator

algolia-bot commented Aug 30, 2022

✗ The generated branch has been deleted.

If the PR has been merged, you can check the generated code on the main branch.
You can still access the code generated on main via this commit.

)
.join(',');
);
const toRun =
Copy link
Collaborator

Choose a reason for hiding this comment

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

interesting bug, maybe it's easier to always use the {name,} syntax in both cases, that way you don't need the if (unless {name1,name2,} isn't valid syntax)

Copy link
Member Author

Choose a reason for hiding this comment

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

ah it should work yes

Copy link
Collaborator

@millotp millotp left a comment

Choose a reason for hiding this comment

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

nice !

@shortcuts shortcuts merged commit 4914844 into main Aug 30, 2022
@shortcuts shortcuts deleted the chore/build-js branch August 30, 2022 12:26
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