-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.json
More file actions
62 lines (52 loc) · 1.64 KB
/
Copy pathtsconfig.json
File metadata and controls
62 lines (52 loc) · 1.64 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/*
================================================================
TypeScript Configuration (`tsconfig.json`)
================================================================
Author: Dipen Chavan (hexdee606)
Version: 0.1.0
Last Modified: 2025-11-20
Description:
This configuration sets up the TypeScript compiler for an NPM-ready
Node.js library. It supports full typing, module resolution, and
clean output in a dist/ directory.
Notes:
- Compiles all TypeScript from `src/` into `dist/`
- Generates type declarations (e.g., `reporter.d.ts`)
- Uses strict type checking for reliability
- JavaScript interoperability is supported
- Ready to use with Playwright reporters or any Node CLI tool
================================================================
*/
{
"compilerOptions": {
// Language features
"target": "ES2020",
"module": "node16",
// Output
"outDir": "./dist",
"declaration": true,
"declarationMap": true, // Optional: helps with IDE navigation
"sourceMap": true, // Optional: helpful for debugging
// Type safety
"strict": true,
"esModuleInterop": true,
"moduleResolution": "node16",
"allowJs": true, // Allows importing .js if needed
// Alias support (add paths here if you need aliases)
"paths": {}
},
// Include the main TypeScript source files
"include": [
"src/**/*"
],
// Exclude things we don’t want compiled
"exclude": [
"node_modules",
"dist",
"test", // CI-only, not for library consumers
"**/*.spec.ts"
],
"typeAcquisition": {
"enable": false
}
}