-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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] package overrides #2358
[feat] package overrides #2358
Conversation
🦋 Changeset detectedLatest commit: 1c2fb23 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
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.
The refactorings are good, but I'm not sure about the addition of this. What other use cases for this are there besides the super-duper-niche-case in the referenced issue? Maybe split the refactorings out into a separate PR to get these in first, and then discuss on the addition of the config.
Good idea, I've opened up a separate PR for that. Other than the one in the issue, I can't think of any right now, tbh. |
I think a more flexible solution might be to have a |
We're currently only modifying the |
I wasn't necessarily thinking that, but I think I like that solution even better 😄 |
Well, it was a combined efforts 😀 |
But, as dummdidumm said, I'm not sure what's the use case other than the super-duper-niche referenced issue. I feel it's become a lot more flexible (still not sure about the name |
preprocess: preprocess(), | ||
kit: { | ||
package: { | ||
override: (pkg) => ({ ...pkg, svelte: 'index.js' }) |
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.
I think svelte
is being added automatically now, right? So this test seems a bit confusing that we're adding something that is normally already there (or maybe it's updating it?). Perhaps it'd be clearer to just add something foo: 'bar'
?
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.
Yes, this test is based on the issue, which needed to replace the svelte
key (src/lib/index.ts
-> index.js
)
This generally seems okay to me. I feel like there will be other use cases we haven't anticipated. But if you don't think it's necessary and prefer to close it that's fine too. What do you think @dummdidumm ? |
I'd say it won't hurt to leave it in draft mode for a few more weeks/months to see if any requests come up that make this a needed feature. But I would definitely not merge it right now. |
✔️ Deploy Preview for kit-demo canceled. 🔨 Explore the source changes: 1c2fb23 🔍 Inspect the deploy log: https://app.netlify.com/sites/kit-demo/deploys/61e9de3c71623300078632f5 |
It's been a few months, what's the status of this? Do we need it or should we close it? |
There hasn't been any activity around the issue itself as well, I guess we don't really need this (I surely don't) and also close the referenced issue as "won't do". |
I'm late to the party, but I have the exact same problem as #2242 in my monorepo. I would like to have:
If
|
Resolves #2242
There's a lot of changes here, but it's mostly refactors and cleanups for reusability.