2023-07-20 23:47:32 -04:00
|
|
|
{
|
|
|
|
"compilerOptions": {
|
2023-08-15 20:30:19 -04:00
|
|
|
// add Bun type definitions
|
|
|
|
"types": ["bun-types"],
|
|
|
|
|
|
|
|
// enable latest features
|
|
|
|
"lib": ["esnext"],
|
2023-07-20 23:47:32 -04:00
|
|
|
"module": "esnext",
|
|
|
|
"target": "esnext",
|
2023-08-15 20:30:19 -04:00
|
|
|
|
|
|
|
// if TS 5.x+
|
2023-07-20 23:47:32 -04:00
|
|
|
"moduleResolution": "bundler",
|
2023-08-15 20:30:19 -04:00
|
|
|
"noEmit": true,
|
2023-07-20 23:47:32 -04:00
|
|
|
"allowImportingTsExtensions": true,
|
2023-08-15 20:30:19 -04:00
|
|
|
"moduleDetection": "force",
|
|
|
|
|
|
|
|
"jsx": "react-jsx", // support JSX
|
|
|
|
"allowJs": true, // allow importing `.js` from `.ts`
|
|
|
|
"esModuleInterop": true, // allow default imports for CommonJS modules
|
|
|
|
|
|
|
|
// best practices
|
2023-07-20 23:47:32 -04:00
|
|
|
"strict": true,
|
|
|
|
"forceConsistentCasingInFileNames": true,
|
2023-08-21 16:50:09 -04:00
|
|
|
"skipLibCheck": true,
|
|
|
|
|
|
|
|
// engine path
|
|
|
|
"paths": {
|
|
|
|
"@engine/*": ["../engine/*"],
|
|
|
|
"@engine/components": ["../engine/components"],
|
|
|
|
"@engine/config": ["../engine/config"],
|
|
|
|
"@engine/entities": ["../engine/entities"],
|
|
|
|
"@engine/interfaces": ["../engine/interfaces"],
|
|
|
|
"@engine/structures": ["../engine/structures"],
|
|
|
|
"@engine/systems": ["../engine/systems"],
|
|
|
|
"@engine/utils": ["../engine/utils"],
|
|
|
|
}
|
2023-07-20 23:47:32 -04:00
|
|
|
}
|
|
|
|
}
|