Skip to content

Commit

Permalink
chore: add baseUrl and path aliases to tsconfig files
Browse files Browse the repository at this point in the history
  • Loading branch information
nebrask committed Dec 25, 2024
1 parent 1ce1f1b commit 4924650
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
8 changes: 6 additions & 2 deletions packages/morph/tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,15 @@
"module": "ESNext",
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"skipLibCheck": true,
"baseUrl": ".",
"paths": {
"react": ["./node_modules/preact/compat/"],
"react-dom": ["./node_modules/preact/compat/"]
"react-dom": ["./node_modules/preact/compat/"],
"@/*": [
"./src/*"
]
},

/* Bundler mode */
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
Expand Down
16 changes: 13 additions & 3 deletions packages/morph/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
{
"files": [],
"references": [
{ "path": "./tsconfig.app.json" },
{ "path": "./tsconfig.node.json" }
]
{
"path": "./tsconfig.app.json"
},
{
"path": "./tsconfig.node.json"
}
],
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
}
}
}

0 comments on commit 4924650

Please sign in to comment.