Skip to content

Commit

Permalink
Add "outDir": "./dist" to tsconfig.json (#853)
Browse files Browse the repository at this point in the history
* Add "outDir": "./dist" to tsconfig.json

Add "outDir": "./dist" to tsconfig.json to fix "Cannot write file '.../astro.config.mjs" because it would overwrite input file.` error.

* Add comment for new option line

Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
  • Loading branch information
inwardmovement and delucis authored Jun 26, 2022
1 parent 4b699fe commit 28a3bfa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pages/en/guides/typescript.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ Some TypeScript configuration options require special attention in Astro. Below
// Enable stricter transpilation for better output.
"isolatedModules": true,
// Add type definitions for our Vite runtime.
"types": ["vite/client"]
"types": ["vite/client"],
// Tell TypeScript where your build output is
"outDir": "./dist"
}
}
```
Expand Down

0 comments on commit 28a3bfa

Please sign in to comment.