Open imme-emosol opened 3 days ago
Given that the current 'step 4' "Setup path aliases" is conditional, it could perhaps be changed into a suggestion at the end of 'step 3' "Install dependencies" ?
And the code example can perhaps be replaced by a [<a>
/reference][sk-c-alias]?
A rephrasing might also be useful, to reflect that this optional task also relates to specifying a location for the components and utils, next to being related to an (optionally) changed [$lib
][sk-m-lib]. For instance :
By default, shadcn-svelte uses the [$lib alias][sk-m-lib] to locate its components and utils. When other import aliases are to be used, the next step uses [SvelteKit's alias][sk-c-alias] to resolve those import aliases to a path/location for the components and utils
Change Type
Addition
Proposed Changes
When the project does not have either-or
{t,j}sconfig.json
, depending on the (optional)components.json#typescript
value, eitheror
will be shown.
This can be resolved by adding either-or
{t,j}sconfig.json
with content:Perhaps this can/should be added to
sites/docs/src/content/installation/sveltekit.md
.Another option might be to change
packages/cli/src/utils/sveltekit.ts
.However, this is posted as Docs Issue, since posting as feature-request will not be considered here :
Yet another thing that can be observed, is that the link in the error-message points to
#opt-out-of-typescript
, even when there is nocomponents.json
(yet) and also whencomponents.json
contains"typescript": false
(which is what is mentioned at that anchor).