media-type-detector
Version:
Detects and categorizes media files (image, video, document, etc.) from a Blob using file-type.
17 lines (16 loc) • 1.08 kB
JSON
{
"compilerOptions": {
"target": "ES2019", // Good balance for wide compatibility
"module": "ESNext", // Fine for ESM or bundling with tools
"moduleResolution": "Node", // Correct resolution strategy
"lib": ["DOM", "ESNext"], // Enables both Node-like and browser types
"declaration": true, // Generates .d.ts files for typings
"outDir": "dist", // Output directory for compiled files
"strict": true, // Enables all strict type checks
"esModuleInterop": true, // Allows default imports from CommonJS
"skipLibCheck": true, // Optional: Speeds up build, skips type checks on node_modules
"forceConsistentCasingInFileNames": true // Optional: Catches case-sensitivity issues (important on CI)
},
"include": ["src"],
"exclude": [ "dist", "node_modules", "**/*.test.ts", "**/__mocks__/**" ]
}