Skip to content

Commit

Permalink
docs: use full path everywhere to avoid ambiguity
Browse files Browse the repository at this point in the history
  • Loading branch information
haoqunjiang committed Apr 21, 2023
1 parent 7ece9da commit 75026bd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ Add one of the available configurations to your `tsconfig.json`:
### The Base Configuration (Runtime-agnostic)

```json
"extends": "@vue/tsconfig"
"extends": "@vue/tsconfig/tsconfig.json"
```

### Configuration for Browser Environment

```json
"extends": [
"@vue/tsconfig",
"@vue/tsconfig/tsconfig.json",
"@vue/tsconfig/tsconfig.dom.json"
]
```
Expand All @@ -44,14 +44,14 @@ Then extend the Node.js tsconfig and the Vue tsconfig in your `tsconfig.json`:
```json
"extends": [
"@tsconfig/node18/tsconfig.json",
"@vue/tsconfig"
"@vue/tsconfig/tsconfig.json"
],
"compilerOptions": [
"types": ["node"]
]
```

Make sure to place `@vue/tsconfig` *after* `@tsconfig/node18` so that it takes precedence.
Make sure to place `@vue/tsconfig/tsconfig.json` *after* `@tsconfig/node18/tsconfig.json` so that it takes precedence.

## Migrating from TypeScript < 5.0

Expand All @@ -60,7 +60,7 @@ Make sure to place `@vue/tsconfig` *after* `@tsconfig/node18` so that it takes p

```json
"extends": [
"@vue/tsconfig",
"@vue/tsconfig/tsconfig.json",
"@vue/tsconfig/tsconfig.dom.json"
]
```
Expand All @@ -78,7 +78,7 @@ Some configurations have been updated, which might affect your projects:
```json
{
"extends": [
"@vue/tsconfig",
"@vue/tsconfig/tsconfig.json",
"@vue/tsconfig/tsconfig.dom.json"
],
"compilerOptions": {
Expand Down

0 comments on commit 75026bd

Please sign in to comment.