Skip to content

fix: pick the start script for node projects before main property #787

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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

vladfrangu
Copy link
Member

This solves a regression that was caused by the cleanup of project detections, where we would default to the main property of the package.json instead of the start script like we used to. This was shown to be an issue in apify/actor-templates#392, which had a template with a main script that was invalid and incompatible with the runtime, while the start script would have worked.

I've also added test fixtures to ensure certain issues that we've kept having no longer happen (windows + spaced paths breaking, invalid entrypoint configs correctly throw the expected errors or handle gracefully)

This solves a regression that was caused by the cleanup of project detections
@vladfrangu vladfrangu added the adhoc Ad-hoc unplanned task added during the sprint. label Apr 24, 2025
@vladfrangu vladfrangu requested a review from B4nan as a code owner April 24, 2025 16:42
@github-actions github-actions bot added this to the 113rd sprint - Tooling team milestone Apr 24, 2025
@github-actions github-actions bot added t-tooling Issues with this label are in the ownership of the tooling team. tested Temporary label used only programatically for some analytics. labels Apr 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
adhoc Ad-hoc unplanned task added during the sprint. t-tooling Issues with this label are in the ownership of the tooling team. tested Temporary label used only programatically for some analytics.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant