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

Sharing tsconfig across packages #359

Merged
merged 3 commits into from
Nov 29, 2023
Merged

Sharing tsconfig across packages #359

merged 3 commits into from
Nov 29, 2023

Conversation

oveddan
Copy link
Collaborator

@oveddan oveddan commented Nov 14, 2023

No description provided.

@oveddan
Copy link
Collaborator Author

oveddan commented Nov 14, 2023

Current dependencies on/for this PR:

This stack of pull requests is managed by Graphite.

@@ -1,23 +1,7 @@
{
"extends": "tsconfig/tsconfig.json",
Copy link
Collaborator

Choose a reason for hiding this comment

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

would it be smart to call this "@zoralabs/tsconfig" even it it's private in the case there is a package collision?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

not a bad idea - also would improve understandability of what the import references. will do.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ok I tried that, but now get an error:
error Couldn't find package "@zorlabs/tsconfig@*" required by "@zoralabs/[email protected]" on the "npm" registry.

See #361

I believe its a limitation of private packages within the same repo that they cannot be namespaced like that.

what if we called it zoralabs-tsconfig ?

Copy link
Collaborator

Choose a reason for hiding this comment

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

👍

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

@@ -0,0 +1,9 @@
{
"name": "tsconfig",
Copy link
Collaborator

Choose a reason for hiding this comment

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

thoughts on @zoralabs/tsconfig even if it's never published would prevent collisions.

Copy link
Collaborator

@iainnash iainnash left a comment

Choose a reason for hiding this comment

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

great!

@oveddan oveddan merged commit fd7c94d into main Nov 29, 2023
@oveddan oveddan deleted the shared-tsconfig branch November 29, 2023 22:18
iainnash pushed a commit that referenced this pull request Jan 5, 2024
* wip on shared tsconfig

* update to use shared tsconfig

* adding missing config
iainnash pushed a commit that referenced this pull request Jan 11, 2024
* wip on shared tsconfig

* update to use shared tsconfig

* adding missing config
iainnash pushed a commit that referenced this pull request Jan 11, 2024
* wip on shared tsconfig

* update to use shared tsconfig

* adding missing config
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.

2 participants