-
Notifications
You must be signed in to change notification settings - Fork 29
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
feat(application-config): shared tsconfig.json
#2628
Conversation
🦋 Changeset detectedLatest commit: cb2b2ea The changes in this PR will be included in the next version bump. This PR includes changesets to release 7 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Deploy preview for merchant-center-application-kit ready! ✅ Preview Built with commit cb2b2ea. |
packages/tsconfig/README.md
Outdated
|
||
```json | ||
{ | ||
"extends": "@commercetools-frontend/tsconfig" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be
"extends": "@commercetools-frontend/tsconfig" | |
"extends": "@commercetools-frontend/tsconfig/tsconfig.json" |
However, seeing this makes me wonder if we really need an extra package for it...maybe we can include the tsconfig.json
file in one of the required packages like application-config
or application-shell
... 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we update this example here, I believe we should also update it in the changeset.
Regarding the question raised about whether creating or not a new package, personally I think the application-config
package would be a good fit to export this configuration file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in 6dbbc90
tsconfig.json
as a packagetsconfig.json
shared as a package
tsconfig.json
shared as a packagetsconfig.json
tsconfig.json
tsconfig.json
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Having a file tsconfig/tsconfig.json
seemed a bit unnecessary to me, so I renamed it to tsconfig-mc-app.json
.
I also cleaned up a bit the default options and removed the types
option, as this is usually project/repo specific and should be provided on demand.
Ref #1668
Summary
Exposes a base
tsconfig.json
file to extend in Custom Applications.