-
Notifications
You must be signed in to change notification settings - Fork 369
Expand file tree
/
Copy pathtsconfig.base.json
More file actions
41 lines (41 loc) · 1.63 KB
/
Copy pathtsconfig.base.json
File metadata and controls
41 lines (41 loc) · 1.63 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
{
"compilerOptions": {
"allowJs": true,
"checkJs": true,
"esModuleInterop": true,
"module": "ESNext",
"moduleResolution": "Node",
"noEmit": true,
"noImplicitThis": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"strict": false,
"strictBindCallApply": true,
"strictFunctionTypes": true,
"strictNullChecks": true,
"target": "ESNext",
"types": [],
"paths": {
"@govuk-frontend/config": ["./shared/config/index.js"],
"@govuk-frontend/helpers": ["./shared/helpers/index.js"],
"@govuk-frontend/helpers/*": ["./shared/helpers/*.js"],
"@govuk-frontend/helpers/jest/*": ["./shared/helpers/jest/*"],
"@govuk-frontend/lib": ["./shared/lib/index.js"],
"@govuk-frontend/lib/*": ["./shared/lib/*.js"],
"@govuk-frontend/stats": ["./shared/stats/src/index.mjs"],
"@govuk-frontend/tasks": ["./shared/tasks/index.mjs"],
// `govuk-frontend` resolves to the compiled file in `dist`, which do not
// provide type informations. We need to map it to `src` for TypeScript
// to access types when importing `govuk-frontend` in other workspaces in the repository
"govuk-frontend": ["./packages/govuk-frontend/src/govuk/all.mjs"],
// When importing individual files from `dist`, we want the bundlers to resolve
// the actual file in `dist` so set the path to `dist` in `import`. However for TypeScript to access the types,
// we need to point it at the file in src.
"govuk-frontend/dist/*": ["./packages/govuk-frontend/src/*"]
}
},
"exclude": ["**/dist", "**/node_modules"],
"typeAcquisition": {
"enable": false
}
}