Skip to content

Commit

Permalink
fix: remove unnecessary configuration from tsconfig (#130)
Browse files Browse the repository at this point in the history
* fix: remove unnecessary configuration from typescript

* chore: format

* fix: remove unnecesary vite config
  • Loading branch information
VmMad authored May 30, 2023
1 parent 5534355 commit f9e138b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 18 deletions.
6 changes: 5 additions & 1 deletion svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ const config = {
preprocess: preprocess(),

kit: {
adapter: adapter()
adapter: adapter(),
alias: {
$components: 'src/lib/components',
'$components/*': 'src/lib/components/*'
}
}
}

Expand Down
12 changes: 2 additions & 10 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,7 @@
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"baseUrl": ".",
"allowJs": true,
"checkJs": true,
"paths": {
"$lib": ["src/lib"],
"$lib/*": ["src/lib/*"],
"$components": ["src/lib/components"],
"$components/*": ["src/lib/components/*"]
}
},
"include": ["src/**/*.d.ts", "src/**/*.js", "src/**/*.ts", "src/**/*.svelte"]
"checkJs": true
}
}
8 changes: 1 addition & 7 deletions vite.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
import { sveltekit } from '@sveltejs/kit/vite'
import path from 'path'

/** @type {import('vite').UserConfig} */
const config = {
plugins: [sveltekit()],
resolve: {
alias: {
$components: path.resolve('./src/lib/components')
}
}
plugins: [sveltekit()]
}

export default config

0 comments on commit f9e138b

Please sign in to comment.