Skip to content

Commit

Permalink
i18n(zh-cn): Update project-structure.mdx (#8960)
Browse files Browse the repository at this point in the history
* i18n(zh-cn): Update `project-structure.mdx`

* Update src/content/docs/zh-cn/basics/project-structure.mdx

Co-authored-by: liruifengv <liruifeng1024@gmail.com>

---------

Co-authored-by: liruifengv <liruifeng1024@gmail.com>
  • Loading branch information
Nin3lee and liruifengv authored Aug 2, 2024
1 parent 1072521 commit 7180b78
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/content/docs/zh-cn/basics/project-structure.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ JavaScript 包管理器用它来管理依赖关系。它也定义了通常用于

该文件在每个入门模板中都会生成,它包括你的 Astro 项目的配置。你可以在这里指定要使用的集成、构建选项、服务器选项以及其他内容。

Astro 支持多种 JavaScript 配置文件格式:`astro.config.js``astro.config.mjs``astro.config.cjs` 以及 `astro.config.ts`。大多数情况下,我们更建议使用 `.mjs`,如果你想在配置文件中编写 TypeScript 则建议使用 `.ts`

TypeScript 配置文件加载是使用 [`tsm`](https://github.com/lukeed/tsm) 来进行处理的,并且会遵循你项目中的 `tsconfig` 选项。

参见[配置参考](/zh-cn/reference/configuration-reference/)了解关于配置的更多细节。

### `tsconfig.json`
Expand Down

0 comments on commit 7180b78

Please sign in to comment.