Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/content/docs/zh-cn/guides/imports.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ import logoUrl from '../../assets/logo.png?url';

在这个示例中,开发者需要理解 `src/pages/about/company.astro`, `src/components/controls/Button.astro` 和 `src/assets/logo.png` 间的关系。如果移动了 `company.astro` 文件,那么这些导入也都需要更新。

你可以在 `tsconfig.json` 或 `jsconfig.json` 中添加导入别名。
你可以在 `tsconfig.json` 中添加导入别名。

```json title="tsconfig.json" ins={5-6}
{
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/zh-cn/guides/typescript.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ import type { SomeType } from './script';

## 导入别名

Astro 支持你在 `tsconfig.json` 和 `jsconfig.json` 文件里的 `paths` 配置所定义的 [导入别名](/zh-cn/guides/imports/#别名)。
Astro 支持你在 `tsconfig.json` 文件里的 `paths` 配置所定义的 [导入别名](/zh-cn/guides/imports/#别名)。

```astro title="src/pages/about/nate.astro" "@components" "@layouts"
---
Expand Down
10 changes: 2 additions & 8 deletions src/content/docs/zh-cn/reference/cli-reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ Global Flags

#### `--tsconfig <path-to-file>`

指定手动使用的 `tsconfig.json` 或 `jsconfig.json` 文件。如果未提供,Astro 将尝试找到配置,或自动推断项目的配置。
指定手动使用的 `tsconfig.json` 文件。如果未提供,Astro 将尝试找到配置,或自动推断项目的配置。

#### `--minimumFailingSeverity <error|warning|hint>`

Expand Down Expand Up @@ -292,12 +292,6 @@ astro preferences enable devToolbar
astro preferences reset devToolbar
```

`list` 命令打印所有可配置用户偏好的当前设置。它还支持机器可读的 `--json` 输出。

```shell
astro preferences list
```

## `astro telemetry`

为当前 CLI 用户设置遥测配置。遥测是匿名数据,可让 Astro 团队深入了解最常使用哪些 Astro 功能。有关更多信息,请参阅 [Astro 的遥测页面](https://astro.build/telemetry/)。
Expand Down Expand Up @@ -539,4 +533,4 @@ process.exit(exitCode)

### `astro logout`

登出 Astro Studio 并移除任何本地存储的身份验证密钥。
登出 Astro Studio 并移除任何本地存储的身份验证密钥。