mirror of
https://github.com/ueberdosis/tiptap.git
synced 2026-09-14 16:14:40 +08:00
fix: update TypeScript paths to use .ts extensions for better resolution
This commit is contained in:
+1
-33
@@ -4,39 +4,7 @@
|
||||
"skipLibCheck": true,
|
||||
"types": ["node"],
|
||||
"module": "nodenext",
|
||||
"moduleResolution": "nodenext",
|
||||
"paths": {
|
||||
"@tiptap/static-renderer/pm/html-string": [
|
||||
"../packages/static-renderer/src/pm/html-string/index.js",
|
||||
"../packages/static-renderer/src/pm/html-string/index.ts"
|
||||
],
|
||||
"@tiptap/static-renderer/pm/markdown": [
|
||||
"../packages/static-renderer/src/pm/markdown/index.js",
|
||||
"../packages/static-renderer/src/pm/markdown/index.ts"
|
||||
],
|
||||
"@tiptap/static-renderer/pm/react": [
|
||||
"../packages/static-renderer/src/pm/react/index.js",
|
||||
"../packages/static-renderer/src/pm/react/index.ts"
|
||||
],
|
||||
"@tiptap/static-renderer/json/html-string": [
|
||||
"../packages/static-renderer/src/json/html-string/index.js",
|
||||
"../packages/static-renderer/src/json/html-string/index.ts"
|
||||
],
|
||||
"@tiptap/static-renderer/json/react": [
|
||||
"../packages/static-renderer/src/json/react/index.js",
|
||||
"../packages/static-renderer/src/json/react/index.ts"
|
||||
],
|
||||
"@tiptap/*": [
|
||||
"../packages/*/src/index.js",
|
||||
"../packages/*/src",
|
||||
"../packages/*/dist/index.js",
|
||||
"../packages/*/dist",
|
||||
"../packages-deprecated/*/src/index.js",
|
||||
"../packages-deprecated/*/src",
|
||||
"../packages-deprecated/*/dist/index.js",
|
||||
"../packages-deprecated/*/dist"
|
||||
]
|
||||
}
|
||||
"moduleResolution": "nodenext"
|
||||
},
|
||||
"include": [
|
||||
"../packages/*/src/**/*.d.ts",
|
||||
|
||||
@@ -31,13 +31,13 @@
|
||||
],
|
||||
"@tiptap/*": [
|
||||
"packages/*/src/index.js",
|
||||
"packages/*/src",
|
||||
"packages/*/src/index.ts",
|
||||
"packages/*/dist/index.js",
|
||||
"packages/*/dist",
|
||||
"packages/*/dist/index.ts",
|
||||
"packages-deprecated/*/src/index.js",
|
||||
"packages-deprecated/*/src",
|
||||
"packages-deprecated/*/src/index.ts",
|
||||
"packages-deprecated/*/dist/index.js",
|
||||
"packages-deprecated/*/dist"
|
||||
"packages-deprecated/*/dist/index.ts"
|
||||
]
|
||||
},
|
||||
"typeRoots": ["../../node_modules/@types", "../../node_modules/"]
|
||||
|
||||
@@ -2,38 +2,6 @@
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"rootDir": "../../",
|
||||
"paths": {
|
||||
"@tiptap/static-renderer/pm/html-string": [
|
||||
"packages/static-renderer/src/pm/html-string/index.js",
|
||||
"packages/static-renderer/src/pm/html-string/index.ts"
|
||||
],
|
||||
"@tiptap/static-renderer/pm/markdown": [
|
||||
"packages/static-renderer/src/pm/markdown/index.js",
|
||||
"packages/static-renderer/src/pm/markdown/index.ts"
|
||||
],
|
||||
"@tiptap/static-renderer/pm/react": [
|
||||
"packages/static-renderer/src/pm/react/index.js",
|
||||
"packages/static-renderer/src/pm/react/index.ts"
|
||||
],
|
||||
"@tiptap/static-renderer/json/html-string": [
|
||||
"packages/static-renderer/src/json/html-string/index.js",
|
||||
"packages/static-renderer/src/json/html-string/index.ts"
|
||||
],
|
||||
"@tiptap/static-renderer/json/react": [
|
||||
"packages/static-renderer/src/json/react/index.js",
|
||||
"packages/static-renderer/src/json/react/index.ts"
|
||||
],
|
||||
"@tiptap/*": [
|
||||
"packages/*/src/index.js",
|
||||
"packages/*/src",
|
||||
"packages/*/dist/index.js",
|
||||
"packages/*/dist",
|
||||
"packages-deprecated/*/src/index.js",
|
||||
"packages-deprecated/*/src",
|
||||
"packages-deprecated/*/dist/index.js",
|
||||
"packages-deprecated/*/dist"
|
||||
]
|
||||
},
|
||||
"lib": ["esnext", "dom", "dom.iterable", "scripthost"]
|
||||
}
|
||||
}
|
||||
|
||||
+4
-4
@@ -39,13 +39,13 @@
|
||||
],
|
||||
"@tiptap/*": [
|
||||
"packages/*/src/index.js",
|
||||
"packages/*/src",
|
||||
"packages/*/src/index.ts",
|
||||
"packages/*/dist/index.js",
|
||||
"packages/*/dist",
|
||||
"packages/*/dist/index.ts",
|
||||
"packages-deprecated/*/src/index.js",
|
||||
"packages-deprecated/*/src",
|
||||
"packages-deprecated/*/src/index.ts",
|
||||
"packages-deprecated/*/dist/index.js",
|
||||
"packages-deprecated/*/dist"
|
||||
"packages-deprecated/*/dist/index.ts"
|
||||
]
|
||||
},
|
||||
"lib": ["esnext", "dom", "dom.iterable", "scripthost"]
|
||||
|
||||
Reference in New Issue
Block a user