Deprecate typescript and typescript-services packages

This commit is contained in:
Andy Hanson
2016-10-07 13:44:02 -07:00
parent 9fda03b256
commit 24ecbf0839
6 changed files with 12 additions and 4354 deletions

View File

@@ -40,6 +40,18 @@
"typingsPackageName": "linqsharp",
"sourceRepoURL": "https://github.com/brunolm/LinqSharp",
"asOfVersion": "1.0.0"
},
{
"libraryName": "TypeScript",
"typingsPackageName": "typescript",
"sourceRepoURL": "https://github.com/Microsoft/TypeScript",
"asOfVersion": "2.0.0"
},
{
"libraryName": "TypeScript",
"typingsPackageName": "typescript-services",
"sourceRepoURL": "https://github.com/Microsoft/TypeScript",
"asOfVersion": "2.0.0"
}
]
}

File diff suppressed because it is too large Load Diff

View File

@@ -1,19 +0,0 @@
{
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"noImplicitAny": true,
"strictNullChecks": false,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"typescriptServices-tests.ts"
]
}

View File

@@ -1,21 +0,0 @@
// transpile
function transpile(input: string): string {
return ts.transpile(input, { module: ts.ModuleKind.CommonJS });
}
// compile
function compile(fileNames: string[], options: ts.CompilerOptions): number {
let program = ts.createProgram(fileNames, options);
let emitResult = program.emit();
let allDiagnostics = ts.getPreEmitDiagnostics(program).concat(emitResult.diagnostics);
allDiagnostics.forEach(diagnostic => {
let { line, character } = diagnostic.file.getLineAndCharacterOfPosition(diagnostic.start);
let message = ts.flattenDiagnosticMessageText(diagnostic.messageText, '\n');
console.log(`${diagnostic.file.fileName} (${line + 1},${character + 1}): ${message}`);
});
let exitCode = emitResult.emitSkipped ? 1 : 0;
return exitCode;
}

2148
typescript/index.d.ts vendored

File diff suppressed because it is too large Load Diff

View File

@@ -1,18 +0,0 @@
{
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"noImplicitAny": true,
"strictNullChecks": false,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts"
]
}