| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Install the latest version of sv from 4ac39c1: pnx https://pkg.svelte.dev/sv/c/4ac39c1c041d0dd99dfdb8d3f5b108fa3a0ca5ad createOpen in pkg.svelte.dev: https://pkg.svelte.dev/repos/cli/pr/1216 Note This PR is from a fork. A maintainer must approve approve each commit before it can be built and installed. |
Sorry, something went wrong.
🦋 Changeset detectedLatest commit: 4ac39c1 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 |
Sorry, something went wrong.
| { | ||
| projectName: 'my-addon', | ||
| template: 'addon', | ||
| args: [] | ||
| } |
There was a problem hiding this comment.
Do we need a test for this? (Right now, CI is failing probably because snapshots are missing).
I think that having 1 test for addon is ok (if it's only the name update)
Sorry, something went wrong.
| @@ -0,0 +1,32 @@ | |||
| // https://npmx.dev/package/validate-npm-package-name#user-content-naming-rules | |||
| export const validateProjectName = (value: string | undefined): string | undefined => { | |||
There was a problem hiding this comment.
This validation of package name is not really belonging to this PR (tests as well)
Sorry, something went wrong.
|
Here we would need to adjust docs & a changeset (patch) as it's a significative change. |
Sorry, something went wrong.
| const parentDirName = path.basename(path.dirname(projectPath)); | ||
| let projectName = parentDirName.startsWith('@') ? `${parentDirName}/${basename}` : basename; | ||
|
|
||
| if (template === 'addon' && !projectName.startsWith('@')) { |
There was a problem hiding this comment.
@jycouet The issue with the tests is that previously, prompt was skipped if the project path is valid, defined by @my-org/sv' which produces .test-output/cli/@my-org/sv. Now the range of valid names have expanded and so I removed this change.
2 directions to go:
Sorry, something went wrong.
There was a problem hiding this comment.
I implemented --addon-name just to get a passing CI, still looking for maintainer to decide on a direction
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Closes #1101
Description
It currently accepts @<org>, <pkg>, and @<org>/<pkg>. Also went a little overboard with the name validation. We can pare it down.
Checklist