This commit is contained in:
Dirk Baeumer 2021-02-10 17:51:20 +01:00
Родитель d40bdefd10
Коммит 1c947a4369
7 изменённых файлов: 669 добавлений и 262 удалений

17
build/bin/all.js Normal file
Просмотреть файл

@ -0,0 +1,17 @@
#!/usr/bin/env node
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
const path = require('path');
const child_process = require('child_process')
const root = path.dirname(path.dirname(__dirname));
const args = process.argv.slice(2);
const folders = ['protocol', 'tsc', 'npm', 'sqlite', 'tooling', 'util', 'tsc-tests', 'lsif'];
for (const folder of folders) {
child_process.spawnSync(`npm ${args.join(' ')}`, { cwd: path.join(root, folder), shell: true, stdio: 'inherit' });
}

Просмотреть файл

@ -1,3 +1,4 @@
#!/usr/bin/env node
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.

Просмотреть файл

@ -1,11 +1,15 @@
#!/usr/bin/env node
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
let path = require('path');
let fs = require('fs');
let shell = require('shelljs');
const path = require('path');
const fs = require('fs');
const shell = require('shelljs');
let root = path.dirname(path.dirname(__dirname));
let current = process.cwd();
const root = path.dirname(path.dirname(__dirname));
const current = process.cwd();
/**
* @param {string} target

Просмотреть файл

@ -1,2 +1,6 @@
#!/usr/bin/env node
/* --------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* ------------------------------------------------------------------------------------------ */
require('../../node_modules/typescript/lib/tsc.js')

2
package-lock.json сгенерированный
Просмотреть файл

@ -1,6 +1,6 @@
{
"name": "lsif-node",
"version": "0.4.0",
"version": "0.5.2",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

Просмотреть файл

@ -26,14 +26,14 @@
"typescript": "^3.9.7"
},
"scripts": {
"postinstall": "cd protocol && npm install && cd ../tsc && npm install && cd ../npm && npm install && cd ../sqlite && npm install && cd ../tooling && npm install && cd ../util && npm install && cd ../lsif && npm install && cd .. && npm run symlink && cd samples/typescript && npm install && cd ../javascript && npm install && cd ../..",
"postinstall": "node ./build/bin/all.js install && npm run symlink && cd samples/typescript && npm install && cd ../javascript && npm install && cd ../..",
"symlink": "node ./build/bin/symlink.js",
"compile": "tsc -b ./tsconfig.json",
"compile:build": "cd build/azure-pipelines/tasks && tsc -p ./tsconfig.json",
"watch": "tsc -b ./tsconfig.watch.json -w",
"watch:build": "cd build/azure-pipelines/tasks && tsc -p ./tsconfig.json -w",
"lint": "cd protocol && npm run lint && cd ../tsc && npm run lint && cd ../npm && npm run lint && cd ../sqlite && npm run lint && cd ../tooling && npm run lint && cd ../util && npm run lint && cd ..",
"clean": "cd protocol && npm run clean && cd ../tooling && npm run clean && cd ../tsc && npm run clean && cd ../npm && npm run clean && cd ../sqlite && npm run clean && cd ../tooling && npm run clean && cd ..",
"lint": "node ./build/bin/all.js run lint",
"clean": "node ./build/bin/all.js run clean",
"test": "cd util && npm run test:ci && cd ../tsc && npm run test && cd .."
}
}

887
tsc-tests/package-lock.json сгенерированный

Разница между файлами не показана из-за своего большого размера Загрузить разницу