cli
cli copied to clipboard
dcl build - doesn't return exit code on error
Using command dcl build
in CI/CD doesn't return exit code on error.
> dcl build
Decentraland CLI sends anonymous usage stats to improve their products, if you want to disable it change the configuration at ~/.dclinfo
Building project using "npm run build"
> [email protected] build /home/runner/work/test-project/test-project
> build-ecs
> Working directory: /home/runner/work/test-project/test-project
> processing /src/game.ts
Error /src/modules/overlay/OverlayUI.ts (16,7): Cannot find name 'setInterval'.
Error /src/modules/poker/Ball.ts (106,11): Cannot find name 'setTimeout'.
> writing /bin/game.js
> writing /bin/game.js.lib
as result automated build continue and deploy scene with errors.
Command dcl
must return exit, so build will fail and then devs can fix problem and re-commit.