Skip to content

Commit

Permalink
Fix the dts file generation.
Browse files Browse the repository at this point in the history
  • Loading branch information
francois2metz committed Apr 21, 2024
1 parent 0ce4a92 commit a25d8f7
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 50 deletions.
96 changes: 48 additions & 48 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,50 +1,50 @@
{
"compilerOptions": {
"baseUrl" : ".",
"target" : "ESNext",
"useDefineForClassFields": true,
"module" : "ESNext",
"moduleResolution" : "Node",
"strict" : true,
"jsx" : "preserve",
"sourceMap" : true,
"resolveJsonModule" : true,
"esModuleInterop" : true,
"isolatedModules" : true,
"skipLibCheck" : true,
"newLine" : "lf",
"lib" : [
"ESNext",
"DOM",
"dom.iterable",
"scripthost"
],
"paths" : {
"@/*": [
"src/*"
]
},
"types" : [
"node",
"vue",
"geojson",
"maplibre-gl"
]
},
"include" : [
"src/**/*.ts",
"src/**/*.d.ts",
"src/**/*.tsx",
"src/**/*.vue",
"package.json"
],
"exclude" : [
"dist",
"node_modules"
],
"references" : [
{
"path": "./tsconfig.node.json"
}
]
"compilerOptions": {
"baseUrl" : ".",
"target" : "ESNext",
"useDefineForClassFields": true,
"module" : "ESNext",
"moduleResolution" : "Node",
"strict" : true,
"jsx" : "preserve",
"sourceMap" : true,
"resolveJsonModule" : true,
"esModuleInterop" : true,
"isolatedModules" : true,
"skipLibCheck" : true,
"newLine" : "lf",
"lib" : [
"ESNext",
"DOM",
"dom.iterable",
"scripthost"
],
"paths" : {
"@/*": [
"./*"
]
},
"types" : [
"node",
"vue",
"geojson",
"maplibre-gl"
]
},
"include" : [
"lib/**/*.ts",
"lib/**/*.d.ts",
"lib/**/*.tsx",
"lib/**/*.vue",
"package.json"
],
"exclude" : [
"dist",
"node_modules"
],
"references" : [
{
"path": "./tsconfig.node.json"
}
]
}
3 changes: 1 addition & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ import { fileURLToPath } from 'url';
export default defineConfig({
resolve: {
alias: [
{ find: '@', replacement: fileURLToPath(new URL('./', import.meta.url)) },
{ find: /^~(.+)/, replacement: '$1' }
{ find: '@', replacement: fileURLToPath(new URL('.', import.meta.url)) }
]
},
plugins: [
Expand Down

0 comments on commit a25d8f7

Please sign in to comment.