Bump target JS version

This commit is contained in:
Laurențiu Nicola 2022-04-15 18:14:51 +03:00
parent 24cf957627
commit 1698afc05d
2 changed files with 3 additions and 3 deletions

View file

@ -27,7 +27,7 @@
"scripts": {
"vscode:prepublish": "npm run build-base -- --minify",
"package": "vsce package -o rust-analyzer.vsix",
"build-base": "esbuild ./src/main.ts --bundle --outfile=out/main.js --external:vscode --format=cjs --platform=node --target=node14",
"build-base": "esbuild ./src/main.ts --bundle --outfile=out/main.js --external:vscode --format=cjs --platform=node --target=node16",
"build": "npm run build-base -- --sourcemap",
"watch": "npm run build-base -- --sourcemap --watch",
"lint": "tsfmt --verify && eslint -c .eslintrc.js --ext ts ./src ./tests",

View file

@ -1,10 +1,10 @@
{
"compilerOptions": {
"module": "commonjs",
"target": "es2019",
"target": "es2021",
"outDir": "out",
"lib": [
"es2019"
"es2021"
],
"sourceMap": true,
"rootDir": ".",