-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The types of the language service are emitted to the `types` directory. The base `tsconfig` is split off from the solution file. As a result the `include` / `exclude` options are no longer needed. `declarationMap` is enabled, so editors can use _Go to Source Definition_.
- Loading branch information
1 parent
4bc1a86
commit 4b354bb
Showing
9 changed files
with
44 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
*.d.ts | ||
*.d.mts | ||
*.log | ||
*.tgz | ||
*.tsbuildinfo | ||
|
@@ -8,3 +6,4 @@ | |
dist/ | ||
node_modules/ | ||
out/ | ||
types/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
{ | ||
"extends": "..", | ||
"include": ["**/*.js", "./types.d.ts"], | ||
"exclude": ["coverage/", "node_modules/"], | ||
"extends": "../../tsconfig.base.json", | ||
"compilerOptions": { | ||
"declaration": true, | ||
"emitDeclarationOnly": true | ||
"emitDeclarationOnly": true, | ||
"outDir": "types" | ||
} | ||
} |
14 changes: 9 additions & 5 deletions
14
packages/language-service/types.d.ts → packages/language-service/types.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,22 @@ | ||
/** | ||
* @internal | ||
*/ | ||
declare module 'estree' { | ||
export interface BaseNode { | ||
interface BaseNode { | ||
start: number | ||
end: number | ||
} | ||
} | ||
|
||
/** | ||
* @internal | ||
*/ | ||
declare module 'mdast' { | ||
export interface TOML extends Literal { | ||
interface TOML extends Literal { | ||
type: 'toml' | ||
} | ||
|
||
export interface RootContentMap { | ||
interface RootContentMap { | ||
toml: TOML | ||
} | ||
} | ||
|
||
export {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
{ | ||
"extends": "..", | ||
"include": ["**/*.js"], | ||
"exclude": ["coverage/", "node_modules/", "out/"], | ||
"extends": "../../tsconfig.base.json", | ||
"references": [{"path": "../language-service"}], | ||
"compilerOptions": { | ||
"module": "esnext", | ||
"moduleResolution": "bundler", | ||
"noEmit": true | ||
"noEmit": true, | ||
"skipLibCheck": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"compilerOptions": { | ||
"checkJs": true, | ||
"composite": true, | ||
"lib": ["es2021"], | ||
"module": "node16", | ||
"moduleDetection": "force", | ||
"strict": true, | ||
"stripInternal": true, | ||
"target": "es2021" | ||
} | ||
} |