Skip to content
This repository was archived by the owner on Sep 4, 2020. It is now read-only.

Commit 2e85780

Browse files
committed
release v1.2.4
1 parent 4f58dd5 commit 2e85780

File tree

2 files changed

+21
-21
lines changed

2 files changed

+21
-21
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "typescript-deno-plugin",
3-
"version": "1.2.3",
3+
"version": "1.2.4",
44
"description": "Deno language service plugin for TypeScript",
55
"main": "out/index.js",
66
"scripts": {
@@ -19,12 +19,12 @@
1919
"url": "https://github.com/justjavac/typescript-deno-plugin.git"
2020
},
2121
"dependencies": {
22-
"mock-require": "^3.0.3",
23-
"typescript": "^3.4.4"
22+
"mock-require": "^3.0.3"
2423
},
2524
"devDependencies": {
2625
"@types/mock-require": "^2.0.0",
2726
"@types/node": "^11.10.4",
28-
"tslint": "^5.13.1"
27+
"tslint": "^5.13.1",
28+
"typescript": "^3.4.4"
2929
}
3030
}

src/index.ts

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,26 @@ import { getDenoDir } from "./shared";
1010

1111
let logger: Logger;
1212

13-
// see https://github.com/denoland/deno/blob/2debbdacb935cfe1eb7bb8d1f40a5063b339d90b/js/compiler.ts#L159-L170
14-
const OPTIONS: ts_module.CompilerOptions = {
15-
allowJs: true,
16-
checkJs: true,
17-
esModuleInterop: true,
18-
module: ts_module.ModuleKind.ESNext,
19-
moduleResolution: ts_module.ModuleResolutionKind.NodeJs,
20-
noEmit: true,
21-
outDir: "$deno$",
22-
removeComments: true,
23-
resolveJsonModule: true,
24-
sourceMap: true,
25-
target: ts_module.ScriptTarget.ESNext,
26-
typeRoots: []
27-
};
28-
2913
export = function init({ typescript }: { typescript: typeof ts_module }) {
3014
// Make sure Deno imports the correct version of TS
3115
mockRequire("typescript", typescript);
3216

17+
// see https://github.com/denoland/deno/blob/2debbdacb935cfe1eb7bb8d1f40a5063b339d90b/js/compiler.ts#L159-L170
18+
const OPTIONS: ts_module.CompilerOptions = {
19+
allowJs: true,
20+
checkJs: true,
21+
esModuleInterop: true,
22+
module: typescript.ModuleKind.ESNext,
23+
moduleResolution: typescript.ModuleResolutionKind.NodeJs,
24+
noEmit: true,
25+
outDir: "$deno$",
26+
removeComments: true,
27+
resolveJsonModule: true,
28+
sourceMap: true,
29+
target: typescript.ScriptTarget.ESNext,
30+
typeRoots: []
31+
};
32+
3333
return {
3434
create(info: ts_module.server.PluginCreateInfo): ts_module.LanguageService {
3535
logger = Logger.forPlugin(info);
@@ -92,7 +92,7 @@ export = function init({ typescript }: { typescript: typeof ts_module }) {
9292

9393
onConfigurationChanged(config: any) {
9494
logger.info(`onConfigurationChanged: ${JSON.stringify(config)}`);
95-
},
95+
}
9696
};
9797
};
9898

0 commit comments

Comments
 (0)