Skip to content

replace deprecated 'typings' field with standard 'types' in package.json#21371

Merged
macjohnny merged 2 commits intoOpenAPITools:masterfrom
kaizencode-art:fix/replace-typings-field
Sep 25, 2025
Merged

replace deprecated 'typings' field with standard 'types' in package.json#21371
macjohnny merged 2 commits intoOpenAPITools:masterfrom
kaizencode-art:fix/replace-typings-field

Conversation

@kaizencode-art
Copy link
Copy Markdown
Contributor

Description

Replaces deprecated "typings" field with "types" in package.json.

Without this fix, some IDEs (e.g., VS Code) fail to resolve type definitions correctly when using this package, due to "typings" being ignored in favor of the standard "types" field.

@wing328
Copy link
Copy Markdown
Member

wing328 commented Jun 3, 2025

please follow step 3 to update the samples

@kaizencode-art
Copy link
Copy Markdown
Contributor Author

@wing328 any idea what's the ci issue ?

@wing328 wing328 closed this Sep 25, 2025
@wing328 wing328 reopened this Sep 25, 2025
@wing328
Copy link
Copy Markdown
Member

wing328 commented Sep 25, 2025

cc @TiFu (2017/07) @taxpon (2017/07) @sebastianhaas (2017/07) @kenisteward (2017/07) @Vrolijkx (2017/09) @macjohnny (2018/01) @topce (2018/10) @akehir (2019/07) @petejohansonxo (2019/11) @amakhrov (2020/02) @davidgamero (2022/03) @mkusaka (2022/04) @joscha (2024/10)

@joscha
Copy link
Copy Markdown
Contributor

joscha commented Sep 25, 2025

@wing328 any idea what's the ci issue ?

I can't seem to open the CircleCI page for some reason - what's the message in there?

@wing328
Copy link
Copy Markdown
Member

wing328 commented Sep 25, 2025

me neither - i got "page not found"

anyway node 0 tests in circleci is not related to typescript: https://github.com/OpenAPITools/openapi-generator/blob/master/CI/circle_parallel.sh#L116

so it can be ignored for this change

@macjohnny
Copy link
Copy Markdown
Member

@kaizencode-art thanks for this contribution!

@macjohnny macjohnny merged commit dc0d5c6 into OpenAPITools:master Sep 25, 2025
25 of 26 checks passed
@wing328 wing328 added this to the 7.16.0 milestone Sep 28, 2025
rajvesh pushed a commit to rajvesh/openapi-generator that referenced this pull request Dec 25, 2025
…son (OpenAPITools#21371)

* replace deprecated 'typings' field with standard 'types' in package.json

* regenerate samples after replacing 'typings' with 'types' field

---------

Co-authored-by: winiga <winiga@rocketmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants