-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve error message when a Svelte config is not found (#3219)
* Improve an error message for MODULE_NOT_FOUND * Add a changeset * Update a changeset Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com> * Move some error messages * Move some error messages again * Update * remove support for svelte.config.cjs * tweak changeset * simplify config error handling * simplify further * lint * update test Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com> Co-authored-by: Rich Harris <hello@rich-harris.dev>
- Loading branch information
1 parent
a59c89f
commit 1a7c0da
Showing
14 changed files
with
62 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@sveltejs/kit': patch | ||
--- | ||
|
||
Improve error message when svelte.config.js is not found |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
packages/kit/src/packaging/test/fixtures/resolve-alias/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"name": "resolve-alias", | ||
"version": "1.0.0", | ||
"description": "package using $lib alias" | ||
"description": "package using $lib alias", | ||
"type": "module" | ||
} |
5 changes: 0 additions & 5 deletions
5
packages/kit/src/packaging/test/fixtures/resolve-alias/svelte.config.cjs
This file was deleted.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
packages/kit/src/packaging/test/fixtures/resolve-alias/svelte.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import preprocess from 'svelte-preprocess'; | ||
|
||
export default { | ||
preprocess: preprocess() | ||
}; |
3 changes: 2 additions & 1 deletion
3
packages/kit/src/packaging/test/fixtures/typescript/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"name": "typescript", | ||
"version": "1.0.0", | ||
"description": "standard typescript package" | ||
"description": "standard typescript package", | ||
"type": "module" | ||
} |
5 changes: 0 additions & 5 deletions
5
packages/kit/src/packaging/test/fixtures/typescript/svelte.config.cjs
This file was deleted.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
packages/kit/src/packaging/test/fixtures/typescript/svelte.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import preprocess from 'svelte-preprocess'; | ||
|
||
export default { | ||
preprocess: preprocess() | ||
}; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.