glideapps / quicktype

Generate types and converters from JSON, Schema, and GraphQL
https://app.quicktype.io
Apache License 2.0
11.76k stars 1.04k forks source link

fix: Restores old build output by removing package.json import #2596

Closed inferrinizzard closed 1 month ago

inferrinizzard commented 1 month ago

Description

Reverts the package.json import from import to require Removes resolveJsonModules from tsconfig.json

Motivation and Context

Fixes #2593

By including resolveJsonModules: true and using import for the package.json in the index.ts for the cli dir, we ended up introducing an extra level into the build output as including the json import hoisted the src dir into dist.

Fixed by restoring the previous code and ignoring the lint error. Will follow-up with a new PR to get the version text in a different manner

Previous Behaviour / Output

Old dist output: image

New Behaviour / Output

Current output: image

How Has This Been Tested?

Screenshots (if appropriate):