You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Clone any genezio example - e.g. the typescript getting started example[1].
Create a new .ts file on the server side and write something that generates a typescript error in it - for example:
exportclassTaskService{constructor(){this.fail();// this method is not declared, so it will fail}}
Run genezio deploy.
The process will fail:
Bundling your code...
| [2023-10-23T14:36:33.672Z] DEBUG: The bundling process has started for file ./task.ts...
[2023-10-23T14:36:33.947Z] DEBUG: Typechecking Typescript files...
bug.ts(3,14): error TS2339: Property 'fail' does not exist on type 'TaskService'.
Typescript compilation failed.
This is not the expected behavior.
The deployment process should successfully end because the newly created file/class is not included in the genezio.yaml, hence it shouldn't be part of the deployment bundle.
andreia-oca
changed the title
[Bug fix task]: At deployment, exclude source code files that are not used
[Bug fix]: At deployment, exclude source code files that are not used
Oct 23, 2023
Describe your task
This task is a bug fix.
Steps to reproduce the bug:
.ts
file on the server side and write something that generates a typescript error in it - for example:genezio deploy
.This is not the expected behavior.
The deployment process should successfully end because the newly created file/class is not included in the
genezio.yaml
, hence it shouldn't be part of the deployment bundle.[1] https://github.com/Genez-io/genezio-examples/tree/main/typescript/getting-started
The text was updated successfully, but these errors were encountered: