Skip to content

Commit

Permalink
Use .js extension for index exports to make .d.ts discovery work
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Sangervasi committed Feb 19, 2023
1 parent ed8f27f commit ad0aeb1
Show file tree
Hide file tree
Showing 6 changed files with 1,458 additions and 137 deletions.
44 changes: 20 additions & 24 deletions base.tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,7 @@
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"~/*": [
"./src/*"
]
},
// Syntax
"lib": [
"dom",
"dom.iterable",
"esnext"
],
// Output
"outDir": "dist",
// General
// Type Checking
"allowJs": true,
"allowSyntheticDefaultImports": true,
"declaration": true,
"declarationMap": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"incremental": true,
"inlineSourceMap": true,
Expand All @@ -33,10 +15,24 @@
"skipLibCheck": true,
"strict": true,
"strictNullChecks": true,

// Env
"lib": ["dom", "dom.iterable", "esnext"],
"target": "ES6",
"resolveJsonModule": true
"resolveJsonModule": true,

// Modules
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"baseUrl": ".",
"paths": {
"~/*": ["./src/*"]
},

// Emit
"declaration": true,
"declarationMap": true,
"outDir": "dist"
},
"include": [
"src"
]
}
"include": ["src"]
}
File renamed without changes.
6 changes: 3 additions & 3 deletions package-examples/server/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ad0aeb1

Please sign in to comment.