Skip to content

Commit 132970f

Browse files
committed
ci: fix type-checking
1 parent 3a73e51 commit 132970f

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,5 @@
99
// type-check sources
1010
"include": [
1111
"src",
12-
"typescript/test"
1312
]
1413
}

typescript/src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ const thisPluginMarker = Symbol('__essentialPluginsMarker__')
2323
// just to see wether issue is resolved
2424
let _configuration: Configuration
2525
const c: GetConfig = key => get(_configuration, key)
26+
//@ts-ignore
2627
export = ({ typescript }: { typescript: typeof ts }) => {
2728
ts = typescript
2829
return {
@@ -48,7 +49,7 @@ export = ({ typescript }: { typescript: typeof ts }) => {
4849
? handleSpecialCommand(info, fileName, position, options.triggerCharacter as TriggerCharacterCommand, _configuration)
4950
: undefined
5051
// handled specialCommand request
51-
if (specialCommandResult !== undefined) return specialCommandResult
52+
if (specialCommandResult !== undefined) return specialCommandResult as any
5253
prevCompletionsMap = {}
5354
const scriptSnapshot = info.project.getScriptSnapshot(fileName)
5455
// have no idea in which cases its possible, but we can't work without it

typescript/tsconfig.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
{
22
"extends": "@zardoy/tsconfig/node",
33
"compilerOptions": {
4-
"noEmit": false,
5-
"rootDir": "src",
4+
// "noEmit": false,
5+
// "rootDir": "src",
6+
"module": "ESNext",
7+
"noEmit": true,
68
"sourceMap": true,
79
"lib": [
810
"ESNext"
911
],
1012
"outDir": "build"
1113
},
1214
"include": [
13-
"src"
15+
"src",
16+
"test"
1417
]
1518
}

0 commit comments

Comments
 (0)