mirror of
https://github.com/VSCodeVim/Vim.git
synced 2024-10-26 20:23:50 +03:00
Upgrade to node v14
Recent VS Code versions ship with electron 13, which is built from node 14. This just affects the docker environment we run tests in and the node type definitions.
This commit is contained in:
parent
163d1bf38e
commit
f1186203af
@ -1,4 +1,4 @@
|
|||||||
FROM node:12
|
FROM node:14
|
||||||
|
|
||||||
ARG DEBIAN_FRONTEND=noninteractive
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
|
@ -1148,7 +1148,7 @@
|
|||||||
"@types/glob": "7.2.0",
|
"@types/glob": "7.2.0",
|
||||||
"@types/lodash": "4.14.175",
|
"@types/lodash": "4.14.175",
|
||||||
"@types/mocha": "9.0.0",
|
"@types/mocha": "9.0.0",
|
||||||
"@types/node": "12.20.33",
|
"@types/node": "14.17.27",
|
||||||
"@types/parsimmon": "1.10.6",
|
"@types/parsimmon": "1.10.6",
|
||||||
"@types/sinon": "10.0.4",
|
"@types/sinon": "10.0.4",
|
||||||
"@types/source-map-support": "0.5.4",
|
"@types/source-map-support": "0.5.4",
|
||||||
|
@ -80,7 +80,7 @@ export async function unlink(path: string): Promise<void> {
|
|||||||
await vscode.workspace.fs.delete(vscode.Uri.parse(path));
|
await vscode.workspace.fs.delete(vscode.Uri.parse(path));
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function readFileAsync(path: string, encoding: string): Promise<string> {
|
export async function readFileAsync(path: string, encoding: BufferEncoding): Promise<string> {
|
||||||
const ret = await vscode.workspace.fs.readFile(vscode.Uri.parse(path));
|
const ret = await vscode.workspace.fs.readFile(vscode.Uri.parse(path));
|
||||||
return ret.toString();
|
return ret.toString();
|
||||||
}
|
}
|
||||||
@ -92,7 +92,7 @@ export async function mkdirAsync(path: string, options: any): Promise<void> {
|
|||||||
export async function writeFileAsync(
|
export async function writeFileAsync(
|
||||||
path: string,
|
path: string,
|
||||||
content: string,
|
content: string,
|
||||||
encoding: string
|
encoding: BufferEncoding
|
||||||
): Promise<void> {
|
): Promise<void> {
|
||||||
return vscode.workspace.fs.writeFile(vscode.Uri.parse(path), Buffer.from(content));
|
return vscode.workspace.fs.writeFile(vscode.Uri.parse(path), Buffer.from(content));
|
||||||
}
|
}
|
||||||
|
@ -90,20 +90,20 @@ export async function unlink(path: string): Promise<void> {
|
|||||||
fs.unlinkSync(path);
|
fs.unlinkSync(path);
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function readFileAsync(path: string, encoding: string): Promise<string> {
|
export async function readFileAsync(path: string, encoding: BufferEncoding): Promise<string> {
|
||||||
return promisify(fs.readFile)(path, encoding);
|
return promisify(fs.readFile)(path, encoding);
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function mkdirAsync(path: string, options: any): Promise<void> {
|
export async function mkdirAsync(path: string, options: any): Promise<void> {
|
||||||
return promisify(fs.mkdir)(path, options);
|
await promisify(fs.mkdir)(path, options);
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function writeFileAsync(
|
export async function writeFileAsync(
|
||||||
path: string,
|
path: string,
|
||||||
content: string,
|
content: string,
|
||||||
encoding: string
|
encoding: BufferEncoding
|
||||||
): Promise<void> {
|
): Promise<void> {
|
||||||
return promisify(fs.writeFile)(path, content, encoding);
|
await promisify(fs.writeFile)(path, content, encoding);
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function accessAsync(path: string, mode: number) {
|
export async function accessAsync(path: string, mode: number) {
|
||||||
|
10
yarn.lock
10
yarn.lock
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
|
|
||||||
"@babel/code-frame@^7.0.0":
|
"@babel/code-frame@^7.0.0":
|
||||||
version "7.10.7"
|
version "7.10.4"
|
||||||
resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.10.4.tgz#168da1a36e90da68ae8d49c0f1b48c7c6249213a"
|
resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.10.4.tgz#168da1a36e90da68ae8d49c0f1b48c7c6249213a"
|
||||||
integrity sha512-vG6SvB6oYEhvgisZNFRmRCUkLz11c7rp+tbNTynGqc6mS1d5ATd/sGyV6W0KZZnXRKMTzZDRgQT3Ou9jhpAfUg==
|
integrity sha512-vG6SvB6oYEhvgisZNFRmRCUkLz11c7rp+tbNTynGqc6mS1d5ATd/sGyV6W0KZZnXRKMTzZDRgQT3Ou9jhpAfUg==
|
||||||
dependencies:
|
dependencies:
|
||||||
@ -233,10 +233,10 @@
|
|||||||
resolved "https://registry.yarnpkg.com/@types/node/-/node-14.11.2.tgz#2de1ed6670439387da1c9f549a2ade2b0a799256"
|
resolved "https://registry.yarnpkg.com/@types/node/-/node-14.11.2.tgz#2de1ed6670439387da1c9f549a2ade2b0a799256"
|
||||||
integrity sha512-jiE3QIxJ8JLNcb1Ps6rDbysDhN4xa8DJJvuC9prr6w+1tIh+QAbYyNF3tyiZNLDBIuBCf4KEcV2UvQm/V60xfA==
|
integrity sha512-jiE3QIxJ8JLNcb1Ps6rDbysDhN4xa8DJJvuC9prr6w+1tIh+QAbYyNF3tyiZNLDBIuBCf4KEcV2UvQm/V60xfA==
|
||||||
|
|
||||||
"@types/node@12.20.33":
|
"@types/node@14.17.27":
|
||||||
version "12.20.33"
|
version "14.17.27"
|
||||||
resolved "https://registry.yarnpkg.com/@types/node/-/node-12.20.33.tgz#24927446e8b7669d10abacedd16077359678f436"
|
resolved "https://registry.yarnpkg.com/@types/node/-/node-14.17.27.tgz#5054610d37bb5f6e21342d0e6d24c494231f3b85"
|
||||||
integrity sha512-5XmYX2GECSa+CxMYaFsr2mrql71Q4EvHjKS+ox/SiwSdaASMoBIWE6UmZqFO+VX1jIcsYLStI4FFoB6V7FeIYw==
|
integrity sha512-94+Ahf9IcaDuJTle/2b+wzvjmutxXAEXU6O81JHblYXUg2BDG+dnBy7VxIPHKAyEEDHzCMQydTJuWvrE+Aanzw==
|
||||||
|
|
||||||
"@types/parse-json@^4.0.0":
|
"@types/parse-json@^4.0.0":
|
||||||
version "4.0.0"
|
version "4.0.0"
|
||||||
|
Loading…
Reference in New Issue
Block a user