Skip to content
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

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

Merged
merged 2 commits into from
May 13, 2024

Conversation

inferrinizzard
Copy link
Contributor

@inferrinizzard inferrinizzard commented May 13, 2024

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?

  • Check that build succeeds and that the src dir is not in the build output

Screenshots (if appropriate):

@dvdsgl dvdsgl merged commit 2d4ce03 into glideapps:master May 13, 2024
23 checks passed
Comment on lines -13 to -14
"baseUrl": "src",
"resolveJsonModule": true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make sense 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG]: no quicktype binary for 23.0.159 release
3 participants