Skip to content

Commit 3de9630

Browse files
committed
Merge branch 'master' into vfs
2 parents bb05381 + d0ab164 commit 3de9630

File tree

4 files changed

+17
-12
lines changed

4 files changed

+17
-12
lines changed

Jakefile.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ var child_process = require("child_process");
99
var fold = require("travis-fold");
1010
var ts = require("./lib/typescript");
1111

12-
1312
// Variables
1413
var compilerDirectory = "src/compiler/";
1514
var serverDirectory = "src/server/";
@@ -87,7 +86,7 @@ var servicesSources = filesFromConfig("./src/services/tsconfig.json");
8786
var cancellationTokenSources = filesFromConfig(path.join(serverDirectory, "cancellationToken/tsconfig.json"));
8887
var typingsInstallerSources = filesFromConfig(path.join(serverDirectory, "typingsInstaller/tsconfig.json"));
8988
var watchGuardSources = filesFromConfig(path.join(serverDirectory, "watchGuard/tsconfig.json"));
90-
var serverSources = filesFromConfig(path.join(serverDirectory, "tsconfig.json"))
89+
var serverSources = filesFromConfig(path.join(serverDirectory, "tsconfig.json"));
9190
var languageServiceLibrarySources = filesFromConfig(path.join(serverDirectory, "tsconfig.library.json"));
9291

9392
var typesMapOutputPath = path.join(builtLocalDirectory, 'typesMap.json');
@@ -361,14 +360,14 @@ function compile(outFile, sources, prefixes, useBuiltCompiler, opts, callback) {
361360
options.push("--target", opts.target);
362361
}
363362
else {
364-
options.push("--target es5");
363+
options.push("--target", "es5");
365364
}
366365

367366
if (opts.lib) {
368367
options.push("--lib", opts.lib);
369368
}
370369
else {
371-
options.push("--lib es5");
370+
options.push("--lib", "es5");
372371
}
373372

374373
execCompiler(useBuiltCompiler, options.concat(sources), function (error) {
@@ -526,7 +525,7 @@ file(buildProtocolDts, [buildProtocolTs, buildProtocolJs, typescriptServicesDts]
526525
complete();
527526
});
528527
ex.run();
529-
}, { async: true })
528+
}, { async: true });
530529

531530
// The generated diagnostics map; built for the compiler and for the 'generate-diagnostics' task
532531
file(diagnosticInfoMapTs, [processDiagnosticMessagesJs, diagnosticMessagesJson], function () {
@@ -646,7 +645,7 @@ compileFile(servicesFile, servicesSources, [builtLocalDirectory, copyright].conc
646645
// Stanalone/web definition file using global 'ts' namespace
647646
jake.cpR(standaloneDefinitionsFile, nodeDefinitionsFile, { silent: true });
648647
var definitionFileContents = fs.readFileSync(nodeDefinitionsFile).toString();
649-
definitionFileContents = removeConstModifierFromEnumDeclarations(definitionFileContents)
648+
definitionFileContents = removeConstModifierFromEnumDeclarations(definitionFileContents);
650649
fs.writeFileSync(standaloneDefinitionsFile, definitionFileContents);
651650

652651
// Official node package definition file, pointed to by 'typings' in package.json
@@ -1288,15 +1287,15 @@ task("build-rules-end", [], function () {
12881287
var lintTargets = compilerSources
12891288
.concat(harnessSources)
12901289
// Other harness sources
1291-
.concat(["instrumenter.ts"].map(function (f) { return path.join(harnessDirectory, f) }))
1290+
.concat(["instrumenter.ts"].map(function (f) { return path.join(harnessDirectory, f); }))
12921291
.concat(serverSources)
12931292
.concat(tslintRulesFiles)
12941293
.concat(servicesSources)
12951294
.concat(typingsInstallerSources)
12961295
.concat(cancellationTokenSources)
12971296
.concat(["Gulpfile.ts"])
12981297
.concat([nodeServerInFile, perftscPath, "tests/perfsys.ts", webhostPath])
1299-
.map(function (p) { return path.resolve(p) });
1298+
.map(function (p) { return path.resolve(p); });
13001299
// keep only unique items
13011300
lintTargets = Array.from(new Set(lintTargets));
13021301

@@ -1338,9 +1337,10 @@ desc("Runs tslint on the compiler sources. Optional arguments are: f[iles]=regex
13381337
task("lint", ["build-rules"], () => {
13391338
if (fold.isTravis()) console.log(fold.start("lint"));
13401339
const fileMatcher = process.env.f || process.env.file || process.env.files;
1340+
13411341
const files = fileMatcher
13421342
? `src/**/${fileMatcher}`
1343-
: "Gulpfile.ts 'scripts/generateLocalizedDiagnosticMessages.ts' 'scripts/tslint/**/*.ts' 'src/**/*.ts' --exclude 'src/lib/*.d.ts'";
1343+
: `Gulpfile.ts scripts/generateLocalizedDiagnosticMessages.ts "scripts/tslint/**/*.ts" "src/**/*.ts" --exclude "src/lib/*.d.ts"`;
13441344
const cmd = `node node_modules/tslint/bin/tslint ${files} --formatters-dir ./built/local/tslint/formatters --format autolinkableStylish`;
13451345
console.log("Linting: " + cmd);
13461346
jake.exec([cmd], () => {

src/compiler/commandLineParser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1796,7 +1796,7 @@ namespace ts {
17961796

17971797
function getDefaultCompilerOptions(configFileName?: string) {
17981798
const options: CompilerOptions = getBaseFileName(configFileName) === "jsconfig.json"
1799-
? { allowJs: true, maxNodeModuleJsDepth: 2, allowSyntheticDefaultImports: true, skipLibCheck: true }
1799+
? { allowJs: true, maxNodeModuleJsDepth: 2, allowSyntheticDefaultImports: true, skipLibCheck: true, noEmit: true }
18001800
: {};
18011801
return options;
18021802
}

src/harness/unittests/convertCompilerOptionsFromJson.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,7 @@ namespace ts {
459459
maxNodeModuleJsDepth: 2,
460460
allowSyntheticDefaultImports: true,
461461
skipLibCheck: true,
462+
noEmit: true,
462463
module: ModuleKind.CommonJS,
463464
target: ScriptTarget.ES5,
464465
noImplicitAny: false,
@@ -488,6 +489,7 @@ namespace ts {
488489
maxNodeModuleJsDepth: 2,
489490
allowSyntheticDefaultImports: true,
490491
skipLibCheck: true,
492+
noEmit: true,
491493
module: ModuleKind.CommonJS,
492494
target: ScriptTarget.ES5,
493495
noImplicitAny: false,
@@ -512,7 +514,8 @@ namespace ts {
512514
allowJs: true,
513515
maxNodeModuleJsDepth: 2,
514516
allowSyntheticDefaultImports: true,
515-
skipLibCheck: true
517+
skipLibCheck: true,
518+
noEmit: true
516519
},
517520
errors: [{
518521
file: undefined,
@@ -534,7 +537,8 @@ namespace ts {
534537
allowJs: true,
535538
maxNodeModuleJsDepth: 2,
536539
allowSyntheticDefaultImports: true,
537-
skipLibCheck: true
540+
skipLibCheck: true,
541+
noEmit: true
538542
},
539543
errors: []
540544
}

src/harness/unittests/telemetry.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ namespace ts.projectSystem {
205205
allowSyntheticDefaultImports: true,
206206
maxNodeModuleJsDepth: 2,
207207
skipLibCheck: true,
208+
noEmit: true
208209
};
209210

210211
it("sends telemetry for typeAcquisition settings", () => {

0 commit comments

Comments
 (0)