Skip to content

Commit

Permalink
[fix] add $lib alias to js/tsconfig (#1860)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris authored Jul 9, 2021
1 parent 872840a commit 4c7ccfd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/metal-avocados-lie.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'create-svelte': patch
---

Add \$lib alias to js/tsconfig
1 change: 1 addition & 0 deletions packages/create-svelte/shared/+typescript/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"allowJs": true,
"checkJs": true,
"paths": {
"$lib": ["src/lib"],
"$lib/*": ["src/lib/*"]
}
},
Expand Down
1 change: 1 addition & 0 deletions packages/create-svelte/shared/-typescript/jsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"compilerOptions": {
"baseUrl": ".",
"paths": {
"$lib": ["src/lib"],
"$lib/*": ["src/lib/*"]
}
},
Expand Down

0 comments on commit 4c7ccfd

Please sign in to comment.