39 lines
1.0 KiB
JSON
39 lines
1.0 KiB
JSON
{
|
|
"compilerOptions": {
|
|
// add Bun type definitions
|
|
"types": ["bun-types"],
|
|
|
|
// enable latest features
|
|
"lib": ["esnext"],
|
|
"module": "esnext",
|
|
"target": "esnext",
|
|
|
|
// if TS 5.x+
|
|
"moduleResolution": "bundler",
|
|
"noEmit": true,
|
|
"allowImportingTsExtensions": true,
|
|
"moduleDetection": "force",
|
|
|
|
"jsx": "react-jsx", // support JSX
|
|
"allowJs": true, // allow importing `.js` from `.ts`
|
|
"esModuleInterop": true, // allow default imports for CommonJS modules
|
|
|
|
// best practices
|
|
"strict": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"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"],
|
|
}
|
|
}
|
|
}
|