Skip to content

Commit 1a1f8c5

Browse files
authored
build: fix baseUrl of typescript config (#26)
1 parent c03c3b3 commit 1a1f8c5

File tree

4 files changed

+12
-13
lines changed

4 files changed

+12
-13
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.DS_Store
22
test-report.junit.xml
3+
tsconfig.tsbuildinfo
34
coverage/
45
dist/
56
docs/

tsconfig.json

+5-7
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
"strict": true,
66

77
// Modules
8-
"baseUrl": ".",
8+
"baseUrl": "./src/",
99
"module": "ESNext",
1010
"moduleResolution": "Node",
1111
"paths": {
12-
"@/*": ["./src/*"],
13-
"react": ["./node_modules/preact/compat"],
14-
"react-dom": ["./node_modules/preact/compat"]
12+
"@/*": ["./*"],
13+
"react": ["../node_modules/preact/compat"],
14+
"react-dom": ["../node_modules/preact/compat"]
1515
},
1616

1717
// Emit
@@ -30,7 +30,5 @@
3030
"lib": ["DOM"],
3131
"skipLibCheck": true, // Only concerned w/ type checking the package code.
3232
"target": "ES2018" // Use same target as obsidian-dataview.
33-
},
34-
"include": ["./src/**/*"],
35-
"exclude": ["node_modules"]
33+
}
3634
}

typedoc.config.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export default {
2+
entryPoints: ["./src/"],
3+
entryPointStrategy: "expand",
4+
exclude: ["./docs/**/*", "./node_modules/**/*", "**/__tests__/**/*", "**/*.const.ts"],
5+
plugin: ["typedoc-plugin-coverage", "typedoc-github-theme"],
6+
};

typedoc.json

-6
This file was deleted.

0 commit comments

Comments
 (0)