mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Update Typescript version (#51831)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/51831 Changelog: [Internal] Reviewed By: robhogan Differential Revision: D76018604 fbshipit-source-id: b16be849d155d608306a8778cea540f0096a66b0
This commit is contained in:
committed by
Facebook GitHub Bot
parent
79d2e2a365
commit
8d1bcd8aeb
@@ -432,7 +432,13 @@ function validateTypeScriptDefs(packageName /*: string */) {
|
||||
noEmit: true,
|
||||
skipLibCheck: false,
|
||||
};
|
||||
const program = ts.createProgram(files, compilerOptions);
|
||||
const program = ts.createProgram(
|
||||
files,
|
||||
ts.convertCompilerOptionsFromJson(
|
||||
compilerOptions,
|
||||
path.resolve(PACKAGES_DIR, packageName),
|
||||
),
|
||||
);
|
||||
const emitResult = program.emit();
|
||||
|
||||
if (emitResult.diagnostics.length) {
|
||||
|
||||
Reference in New Issue
Block a user