Skip to content
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

Make npm run build also trigger npm run build:types #5768

Merged
merged 3 commits into from
Oct 26, 2023

Conversation

kungfooman
Copy link
Collaborator

Since we rimraf /build/ we don't rebuild the types, which makes cd examples && npm run build fail (because Monaco editor depends on build/playcanvas.d.ts).

Solution is quite easy (simply trigger npm run build:types), but side-effects for example could be increased RAM usage, so the build could fail on cheap/overused VPS servers (which struggle with RAM).

I confirm I have read the contributing guidelines and signed the Contributor License Agreement.

@willeastcott willeastcott self-assigned this Oct 26, 2023
@willeastcott willeastcott merged commit f78052e into playcanvas:main Oct 26, 2023
7 checks passed
@willeastcott
Copy link
Contributor

Thanks for this! 🙏

marklundin pushed a commit that referenced this pull request Nov 3, 2023
* Make `npm run build` also trigger `npm run build:types`

* fix lint

* fix lint 2nd time
@kungfooman kungfooman deleted the rollupBuildAllFix branch November 11, 2023 10:17
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.

2 participants