SAP / ui5-typescript

Tooling to enable TypeScript support in SAPUI5/OpenUI5 projects
https://sap.github.io/ui5-typescript
Apache License 2.0
201 stars 28 forks source link

feat: add dependenciesTypePackagesForCheck option #451

Closed akudev closed 4 months ago

akudev commented 4 months ago

Basically this adds the "types:" option in the tsc run during the compile check. This was not needed in the standard UI5 build environment, but when run elsewhere:

  1. the OpenUI5 types need to be added as dependencies and doing this via npm package name is cleaner than pointing into the node_modules folder using the dependencyDTSFilesForCheck option and

  2. tsc may automatically pick up other type packages which happen to be around and report errors or missing dependencies inside them. Setting "types" means only these types are considered.