Skip to content

Commit fed7712

Browse files
thymikeeSimenB
authored andcommitted
chore: upgrade TS to 3.4.0-dev* for inceremental builds (#8149)
1 parent a5a47f5 commit fed7712

File tree

5 files changed

+19
-5
lines changed

5 files changed

+19
-5
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,5 @@ npm-debug.log
3636
npm-debug.log*
3737
yarn-error.log*
3838
junit.xml
39+
40+
*.tsbuildinfo

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@
1616
- `[*]` Use property initializer syntax in Jest codebase ([#8117](https://github.com/facebook/jest/pull/8117))
1717
- `[docs]` Improve description of optional arguments in ExpectAPI.md ([#8126](https://github.com/facebook/jest/pull/8126)
1818
- `[*]` Move @types/node to the root package.json [#8129](https://github.com/facebook/jest/pull/8129))
19-
- `[*]` Add documentation and tests related to auto-mocking ([#8086](https://github.com/facebook/jest/pull/8099))
19+
- `[*]` Add documentation and tests related to auto-mocking ([#8099](https://github.com/facebook/jest/pull/8099))
2020
- `[*]` Add `jest-watch-typeahead` as a devDependency ([#6449](https://github.com/facebook/jest/pull/6449/files))
21+
- `[*]` upgrade TS to 3.4.0-dev\* for inceremental builds ([#8149](https://github.com/facebook/jest/pull/8149))
2122

2223
### Performance
2324

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
"slash": "^2.0.0",
7171
"string-length": "^2.0.0",
7272
"strip-ansi": "^5.0.0",
73-
"typescript": "^3.3.3",
73+
"typescript": "next",
7474
"webpack": "^4.28.4"
7575
},
7676
"scripts": {

scripts/buildTs.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,19 @@ const packagesWithTs = packages.filter(p =>
2020
fs.existsSync(path.resolve(p, 'tsconfig.json'))
2121
);
2222

23-
const args = ['-b', ...packagesWithTs, ...process.argv.slice(2)];
23+
const args = [
24+
'--max-old-space-size=4096',
25+
'node_modules/.bin/tsc',
26+
'-b',
27+
...packagesWithTs,
28+
...process.argv.slice(2),
29+
];
2430

2531
console.log(chalk.inverse('Building TypeScript definition files'));
2632
process.stdout.write(adjustToTerminalWidth('Building\n'));
2733

2834
try {
29-
execa.sync('tsc', args, {stdio: 'inherit'});
35+
execa.sync('node', args, {stdio: 'inherit'});
3036
process.stdout.write(`${OK}\n`);
3137
} catch (e) {
3238
process.stdout.write('\n');

yarn.lock

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12841,11 +12841,16 @@ typedarray@^0.0.6:
1284112841
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
1284212842
integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=
1284312843

12844-
typescript@*, typescript@^3.3.3:
12844+
typescript@*:
1284512845
version "3.3.3333"
1284612846
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.3.3333.tgz#171b2c5af66c59e9431199117a3bcadc66fdcfd6"
1284712847
integrity sha512-JjSKsAfuHBE/fB2oZ8NxtRTk5iGcg6hkYXMnZ3Wc+b2RSqejEqTaem11mHASMnFilHrax3sLK0GDzcJrekZYLw==
1284812848

12849+
typescript@next:
12850+
version "3.4.0-dev.20190319"
12851+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.4.0-dev.20190319.tgz#7b57c2e975aea2216e172993dbd51bf9f749a4e5"
12852+
integrity sha512-07xlAz0ntyntHs8sDMqy3JMjTV/yfWhOuPcmJWCQCQehDWBD/YyrBDOOvHgACTBuiE+bIjkTaT7J14nz32dkZw==
12853+
1284912854
ua-parser-js@^0.7.18:
1285012855
version "0.7.19"
1285112856
resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-0.7.19.tgz#94151be4c0a7fb1d001af7022fdaca4642659e4b"

0 commit comments

Comments
 (0)