diff --git a/README.md b/README.md index 0df6107..806acbb 100644 --- a/README.md +++ b/README.md @@ -90,13 +90,7 @@ Create a `tsconfig.json` file in your project root with the following content: ```json { "extends": ["@epic-web/config/typescript"], - "include": [ - "@epic-web/config/reset.d.ts", - "**/*.ts", - "**/*.tsx", - "**/*.js", - "**/*.jsx" - ], + "include": ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx"], "compilerOptions": { "paths": { "#app/*": ["./app/*"], @@ -106,6 +100,12 @@ Create a `tsconfig.json` file in your project root with the following content: } ``` +Create a `reset.d.ts` file in your project with these contents: + +```typescript +import '@epic-web/config/reset.d.ts' +``` +
Customizing TypeScript diff --git a/docs/decisions/001-reset.md b/docs/decisions/001-reset.md index b1514e9..a6a7c02 100644 --- a/docs/decisions/001-reset.md +++ b/docs/decisions/001-reset.md @@ -19,8 +19,8 @@ wouldn't want the reset to be applied. ## Decision -We'll create a `reset.d.ts` file and consumers will have to include it in their -`includes` manually. +We'll create a `reset.d.ts` file and consumers will have to import it in their +project manually. ## Consequences diff --git a/reset.d.ts b/reset.d.ts index 0cc1461..ce73eb3 100644 --- a/reset.d.ts +++ b/reset.d.ts @@ -1,4 +1,3 @@ -import '@total-typescript/ts-reset' import '@total-typescript/ts-reset/dom' import 'react'