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:
New Behaviour / Output
Current output:
How Has This Been Tested?
[x] Check that build succeeds and that the src dir is not in the build output
Description
Reverts the package.json import from
import
torequire
RemovesresolveJsonModules
fromtsconfig.json
Motivation and Context
Fixes #2593
By including
resolveJsonModules: true
and usingimport
for thepackage.json
in theindex.ts
for the cli dir, we ended up introducing an extra level into the build output as including the json import hoisted thesrc
dir intodist
.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](https://github.com/glideapps/quicktype/assets/10782902/6a45cb4b-097a-4802-b9a5-51370224228b)
New Behaviour / Output
Current output:![image](https://github.com/glideapps/quicktype/assets/10782902/d28609fd-200f-4334-996b-c8a8385a0fc0)
How Has This Been Tested?
src
dir is not in the build outputScreenshots (if appropriate):