Skip to content

Commit a858e3c

Browse files
committed
trying to use nodenext
1 parent ac2030e commit a858e3c

File tree

6 files changed

+3355
-3379
lines changed

6 files changed

+3355
-3379
lines changed

.vscode/settings.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@
1111
"editor.formatOnSave": true,
1212
"markdownlint.config": {
1313
"MD033": false
14-
}
14+
},
15+
"typescript.tsdk": "node_modules/typescript/lib"
1516
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -400,4 +400,4 @@
400400
"email": "xsro@foxmail.com"
401401
},
402402
"license": "MIT"
403-
}
403+
}

src/test/suite/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as path from 'path';
2-
import * as Mocha from 'mocha';
3-
import * as glob from 'glob';
2+
import Mocha from 'mocha';
3+
import glob from 'glob';
44
import * as vscode from 'vscode';
55

66
export function run(): Promise<void> {

src/utils/fetch.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33

44
export const fetch =
55
process.platform
6-
? eval("(...args) => import('node-fetch').then(({default: fetch}) => fetch(...args))")
6+
? (...args: any[]) => import('node-fetch').then(({ default: fetch }) => (fetch as any)(...args))
77
: window.fetch;

tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"compilerOptions": {
3-
"module": "commonjs",
3+
"module": "node12",
44
"target": "es2017",
55
"outDir": "dist",
66
"lib": [

0 commit comments

Comments
 (0)