Skip to content

Commit fd4f646

Browse files
Merge branch 'master' of github.com:Microsoft/TypeScript into non-primitive
2 parents cb97ee8 + 0f78f53 commit fd4f646

File tree

120 files changed

+89083
-83193
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

120 files changed

+89083
-83193
lines changed

.npmignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
built
22
doc
3+
Gulpfile.ts
34
internal
45
issue_template.md
6+
jenkins.sh
57
lib/README.md
8+
netci.groovy
69
pull_request_template.md
710
scripts
811
src

Jakefile.js

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -353,19 +353,16 @@ function prependFile(prefixFile, destinationFile) {
353353
// concatenate a list of sourceFiles to a destinationFile
354354
function concatenateFiles(destinationFile, sourceFiles) {
355355
var temp = "temptemp";
356-
// Copy the first file to temp
357-
if (!fs.existsSync(sourceFiles[0])) {
358-
fail(sourceFiles[0] + " does not exist!");
359-
}
360-
jake.cpR(sourceFiles[0], temp, { silent: true });
361356
// append all files in sequence
362-
for (var i = 1; i < sourceFiles.length; i++) {
357+
var text = "";
358+
for (var i = 0; i < sourceFiles.length; i++) {
363359
if (!fs.existsSync(sourceFiles[i])) {
364360
fail(sourceFiles[i] + " does not exist!");
365361
}
366-
fs.appendFileSync(temp, "\n\n");
367-
fs.appendFileSync(temp, fs.readFileSync(sourceFiles[i]));
362+
if (i > 0) { text += "\n\n"; }
363+
text += fs.readFileSync(sourceFiles[i]).toString().replace(/\r?\n/g, "\n");
368364
}
365+
fs.writeFileSync(temp, text);
369366
// Move the file to the final destination
370367
fs.renameSync(temp, destinationFile);
371368
}

lib/.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text eol=lf

lib/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Read This!
2-
3-
**These files are not meant to be edited by hand.**
4-
If you need to make modifications, the respective files should be changed within the repository's top-level `src` directory.
5-
Running `jake LKG` will then appropriately update the files in this directory.
1+
# Read This!
2+
3+
**These files are not meant to be edited by hand.**
4+
If you need to make modifications, the respective files should be changed within the repository's top-level `src` directory.
5+
Running `jake LKG` will then appropriately update the files in this directory.

lib/cancellationToken.js

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
/*! *****************************************************************************
2-
Copyright (c) Microsoft Corporation. All rights reserved.
3-
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4-
this file except in compliance with the License. You may obtain a copy of the
5-
License at http://www.apache.org/licenses/LICENSE-2.0
6-
7-
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8-
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9-
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10-
MERCHANTABLITY OR NON-INFRINGEMENT.
11-
12-
See the Apache Version 2.0 License for specific language governing permissions
13-
and limitations under the License.
14-
***************************************************************************** */
15-
1+
/*! *****************************************************************************
2+
Copyright (c) Microsoft Corporation. All rights reserved.
3+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4+
this file except in compliance with the License. You may obtain a copy of the
5+
License at http://www.apache.org/licenses/LICENSE-2.0
6+
7+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10+
MERCHANTABLITY OR NON-INFRINGEMENT.
11+
12+
See the Apache Version 2.0 License for specific language governing permissions
13+
and limitations under the License.
14+
***************************************************************************** */
15+
1616
"use strict";
1717
var fs = require("fs");
1818
function createCancellationToken(args) {

0 commit comments

Comments
 (0)