Skip to content

Commit

Permalink
feat: 🎸 added import alias #src/ which works in node by default
Browse files Browse the repository at this point in the history
  • Loading branch information
mjancarik committed Jan 24, 2025
1 parent 181302a commit 8247e2f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions packages/create-widget/template/jsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"compilerOptions": {
"baseUrl": "./",
"paths": {
"#src/*": [
"./src/*"
],
"@/*": [
"./src/*"
],
Expand Down
2 changes: 1 addition & 1 deletion packages/create-widget/template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@
"node": ">=20.0.0"
},
"imports": {
"@/*": "./src/*"
"#src/*": "./src/*"
}
}

0 comments on commit 8247e2f

Please sign in to comment.