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

Commit 3a719cf

Browse files
committed
rename lib.deno.d.ts
Signed-off-by: 迷渡 <justjavac@gmail.com>
1 parent 5a9d9cc commit 3a719cf

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed
File renamed without changes.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"scripts": {
77
"prepublishOnly": "tsc",
88
"compile": "tsc",
9-
"types": "deno types > lib/lib.deno_runtime.d.ts"
9+
"types": "deno types > lib/lib.deno.d.ts"
1010
},
1111
"keywords": [
1212
"deno",

src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ module.exports = function init(
8181
return tsLs;
8282
}
8383

84+
logger.info('config:\n' + JSON.stringify(config, null, ' '));
85+
8486
const projectDirectory = project.getCurrentDirectory();
8587
// TypeScript plugins have a `cwd` of `/`, which causes issues with import resolution.
8688
process.chdir(projectDirectory);

src/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export function getDenoDepsDir(): string {
4040

4141
export function getGlobalDtsPath(): string | undefined {
4242
const denoDir = getDenoDir();
43-
const globalDtsPath = path.resolve(denoDir, "lib.deno_runtime.d.ts");
43+
const globalDtsPath = path.resolve(denoDir, "lib.deno.d.ts");
4444

4545
if (fs.existsSync(globalDtsPath)) {
4646
return globalDtsPath;
@@ -57,7 +57,7 @@ export function getLocalDtsPath(
5757
"node_modules",
5858
"typescript-deno-plugin",
5959
"lib",
60-
"lib.deno_runtime.d.ts",
60+
"lib.deno.d.ts",
6161
);
6262

6363
if (fs.existsSync(localDtsPath)) {

0 commit comments

Comments
 (0)