-
Notifications
You must be signed in to change notification settings - Fork 16
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
Project generated with sapui5 gets @openui5/types devDependency (+ bonus type questions 🐱 ) #33
Comments
Hi,
|
Actually, looking at the template, it is hard to imagine how TWO UI5 types could end up in the dev dependencies: https://github.com/ui5-community/generator-ui5-ts-app/blob/main/generators/app/templates/package.json#L23 And actually, when trying it locally and watching package.json closely, then first only the correct types are there. Then, something else runs and does stuff in |
That's a good hint @akudev I had a look at the generator and it basically just does |
Probably... just want to avoid a ping-pong between the two repos. |
Done. Let's close this one and hope for the best 🤞🏻 |
Oh yes, good catch and sorry for being late to the party. This must be fixed in the wdi5 generator. There the types must be detected and ignored if present already. THX, Peter |
Cc: @vobu |
ACK. Further tracking in ui5-community/create-wdi5#11 |
Hey hey 👋🏻
I just generated a ts app for sapui5 1.120.11 and noticed that I got two types devDependencies
I would have expected only the
@sapui5/types
one. Is this intended or is this a bug?Speaking about types I'm also missing the respective qunit types that come with sap/ui/thirdparty/qunit-2 (
"@types/qunit": "2.5.4"
afaik). In case you want to use Hooks in the qunit module definition you should be type supported by the version that comes with ui5 instead of the latest version to avoid conflicts during runtime.Same is valid for sap/ui/thirdparty/sinon (
"@types/sinon": "10.0.16"
afaik) in case you want to e.g. stub something in your unit tests likeconst messageBoxStub = sinon.stub(MessageBox, "success") as SinonStub<[text: string], MessageBox>;
you should get the type support for the respective sinon version that comes with sapui5The text was updated successfully, but these errors were encountered: