Skip to content

Commit

Permalink
chore(infra): update path aliasing to include internal packages (#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
mimshins authored Nov 13, 2024
1 parent 6db3d2d commit b06d938
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
8 changes: 1 addition & 7 deletions dev/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@
href="https://fonts.googleapis.com/css2?family=Vazirmatn:[email protected]&display=swap"
rel="stylesheet"
/>
<link
rel="stylesheet"
href="../packages/theme/src/index.css"
/>
<link
rel="stylesheet"
href="./src/index.css"
Expand All @@ -38,7 +34,5 @@
></script>
<title>Vite + Lit + TS</title>
</head>
<body>
<h1>Vite + Lit</h1>
</body>
<body></body>
</html>
1 change: 1 addition & 0 deletions dev/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
import "@tapsioss/theme";
// Import modules using path aliases
// i.e. `import "@tapsioss/web-components/avatar";`
13 changes: 11 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,19 @@

"baseUrl": ".",
"paths": {
// Icons metadata
"@tapsioss/icons": ["./packages/icons/dist"],
"@tapsioss/icons/*": ["./packages/icons/dist/*"],

"@tapsioss/web-components/*": ["./packages/web-components/dist/*"]
// Web Component Icons
"@tapsioss/web-icons": ["./packages/web-icons/dist"],
"@tapsioss/web-icons/*": ["./packages/web-icons/dist/*"],
// React Icons
"@tapsioss/react-icons": ["./packages/react-icons/dist"],
"@tapsioss/react-icons/*": ["./packages/react-icons/dist/*"],
// Web Components
"@tapsioss/web-components/*": ["./packages/web-components/dist/*"],
// Tokens
"@tapsioss/theme": ["./packages/theme/dist/index.css"]
}
},
"include": ["**/*.ts", "**/*.tsx"],
Expand Down

0 comments on commit b06d938

Please sign in to comment.