Files
yoga/javascript/tsconfig.json
Nick Gerleman af89315fd4 Fixup TypeScript with export maps (#1284)
Summary:
Pull Request resolved: https://github.com/facebook/yoga/pull/1284

This makes TypeScript resolution play nicely with export maps, and converts the entrypoints to TypeScript.

We remove the non-export-map fallbacks as well, so the export maps are always followed.

Tests are moved to load yoga from its external export, testing the entrypoints.

This moves the only untyped bit to the binary wrapper, which another diff will move.

Reviewed By: yungsters

Differential Revision: D45713689

fbshipit-source-id: 228e6f2c9d53520230707a81e76c3c35fcd46de5
2023-05-09 22:21:01 -07:00

22 lines
498 B
JSON

{
"compilerOptions": {
"target": "es2018",
"module": "commonjs",
"strict": true,
"declaration": true,
"esModuleInterop": true,
"skipLibCheck": true,
// TODO: moduleResolution: "nodenext" is buggy with this if the absolute
// path contains any capital letters
"forceConsistentCasingInFileNames": false,
"baseUrl": ".",
"moduleResolution": "nodenext",
"paths": {
"yoga-layout": ["src"]
}
},
"ts-node": {
"transpileOnly": true
}
}