mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
Fix lint errors in our npm scripts (#159501)
This commit is contained in:
parent
0d690b3a8f
commit
71c216d91f
|
@ -4,7 +4,7 @@
|
||||||
"lib": [
|
"lib": [
|
||||||
"ES2020"
|
"ES2020"
|
||||||
],
|
],
|
||||||
"module": "node12",
|
"module": "node16",
|
||||||
"checkJs": true,
|
"checkJs": true,
|
||||||
"noEmit": true
|
"noEmit": true
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
import { spawn as _spawn } from 'child_process';
|
import { spawn as _spawn } from 'child_process';
|
||||||
import { readdirSync, readFileSync } from 'fs';
|
import { readdirSync, readFileSync } from 'fs';
|
||||||
import { join } from 'path';
|
import { join } from 'path';
|
||||||
import url from 'url'
|
import url from 'url';
|
||||||
|
|
||||||
async function spawn(cmd, args, opts) {
|
async function spawn(cmd, args, opts) {
|
||||||
return new Promise((c, e) => {
|
return new Promise((c, e) => {
|
||||||
|
@ -20,7 +20,7 @@ async function main() {
|
||||||
|
|
||||||
for (const extension of readdirSync('extensions')) {
|
for (const extension of readdirSync('extensions')) {
|
||||||
try {
|
try {
|
||||||
let packageJSON = JSON.parse(readFileSync(join('extensions', extension, 'package.json')).toString());
|
const packageJSON = JSON.parse(readFileSync(join('extensions', extension, 'package.json')).toString());
|
||||||
if (!(packageJSON && packageJSON.scripts && packageJSON.scripts['update-grammar'])) {
|
if (!(packageJSON && packageJSON.scripts && packageJSON.scripts['update-grammar'])) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue