Skip to content

Commit

Permalink
+ fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yracnet committed Jan 10, 2025
1 parent 1e8a70a commit ff8d828
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
3 changes: 0 additions & 3 deletions packages/plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@
"type": "git",
"url": "https://github.com/yracnet/vite-plugin-api-routes"
},
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
Expand Down
11 changes: 0 additions & 11 deletions packages/plugin/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,17 +108,6 @@ In your `src/vite-env.d.ts`, add the following line:
/// <reference path="../.api/env.d.ts" />
```

#### Option 2: Add to `tsconfig.json`

In your `tsconfig.json`, add the path reference under the `compilerOptions`:

```json
{
"compilerOptions": {
"types": ["vite-plugin-api-routes"]
}
}
```

### Step 7: Run the Server

Expand Down

0 comments on commit ff8d828

Please sign in to comment.