-
-
Notifications
You must be signed in to change notification settings - Fork 71
feat(cli): sv add --no-git-check #650
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
Conversation
🦋 Changeset detectedLatest commit: 6108cbe 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 |
commit: |
|
Will need to check this in details another time, but makes sense at a first glance. |
manuel3108
left a comment
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 do think this broke something.
pnpm create vite && pnpx https://pkg.pr.new/sveltejs/cli/sv@650 add drizzle runs successfully for some reason, even it shouldn't.
Also I think in general we should take it one step further and completely get rid of the word preconditions in the user facing cli portion. But we can (and probably should) do that in a follow-up pr
|
You are right, I was in a nested svelte-kit application, in which case what I saw even makes sense. Can confirm it's working as expected. |
manuel3108
left a comment
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.
Thank you!
If you want, I think there is even further potential for improvement. Like why is the unsupported check even part of the verifications, if it always throws on fails and the catch is located somewhere else?
As you said in the issue, the unsupported check is not optional, it's a must that it passes. The git check is a can / should.
Should we totally get rid of the concept of verifications in the next step? And check both things independently?
|
I've been using https://github.com/hyunbinseo/svelte-kit-templates/blob/v0.8.21/index.js#L24 Is it a simple rename? If so, specifying this in the change-log would be helpful
|
|
It's a bit more, but in your case you can treat it as a rename. The other check we are currently doing is that you cannot add an addon that does not support pure svelte apps (like drizzle) to a pure svelte app (without kit). But I don't think that matters in your example. |

Closes #240
I've set changeset to
minoras a flag is removed. (Not sure if it's really minor, could be patch also)