-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
26 lines (24 loc) · 1.64 KB
/
tsconfig.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// This tsconfig.json file defines the TypeScript compiler options for the project.
// It ensures type safety, generates declaration files, and configures the output for seamless integration with the Rollup build process.
// For detailed information on TypeScript compiler options, refer to:
// https://www.typescriptlang.org/tsconfig
{
"compilerOptions": {
"declaration": true, // Generate .d.ts declaration files for better tooling and type safety.
"emitDeclarationOnly": false, // Emit both JavaScript and declaration files.
"declarationMap": false, // Don't generate source maps for declaration files.
"rootDir": ".", // Specify the root directory for source files.
"outDir": "build", // Output compiled JavaScript files to this directory.
"moduleResolution": "node", // Use Node.js' module resolution strategy.
"esModuleInterop": true, // Enables interoperability between CommonJS and ES Modules.
"verbatimModuleSyntax": false, // Preserve 'import' and 'export' statements in the output.
"target": "esnext", // Compile to the latest JavaScript version.
"module": "esnext", // Use the latest ECMAScript module syntax.
"strict": true, // Enable all strict type-checking options.
"composite": false, // Don't enable project references for incremental builds.
"noUnusedLocals": true, // Report errors on unused local variables.
"noUnusedParameters": true // Report errors on unused parameters.
},
"include": ["src"], // Include all TypeScript files within the 'src' directory and its subdirectories.
"exclude": ["node_modules", "dist"] // Exclude the 'node_modules' and 'dist' directories from compilation.
}