Skip to content

Commit

Permalink
Configure remapped govuk-frontend JSDoc types from tsconfig.base.json
Browse files Browse the repository at this point in the history
This is preparation for `import 'govuk-frontend'` from other packages than the review app
  • Loading branch information
colinrotherham committed Jun 1, 2023
1 parent f965598 commit 51615b7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
7 changes: 1 addition & 6 deletions packages/govuk-frontend-review/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,5 @@
"../../shared/lib",
"../../shared/tasks"
],
"exclude": ["./dist/**", "../govuk-frontend/dist/**"],
"compilerOptions": {
"paths": {
"govuk-frontend": ["../govuk-frontend/src/govuk/all.mjs"]
}
}
"exclude": ["./dist/**", "../govuk-frontend/dist/**"]
}
5 changes: 4 additions & 1 deletion tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
"strictBindCallApply": true,
"strictFunctionTypes": true,
"target": "ESNext",
"types": ["jest", "jest-axe", "jest-puppeteer", "node"]
"types": ["jest", "jest-axe", "jest-puppeteer", "node"],
"paths": {
"govuk-frontend": ["./packages/govuk-frontend/src/govuk/all.mjs"]
}
}
}

0 comments on commit 51615b7

Please sign in to comment.