diff options
Diffstat (limited to 'examples/framework-react')
-rw-r--r-- | examples/framework-react/astro.config.mjs | 1 | ||||
-rw-r--r-- | examples/framework-react/package.json | 5 | ||||
-rw-r--r-- | examples/framework-react/src/env.d.ts | 1 | ||||
-rw-r--r-- | examples/framework-react/tsconfig.json | 4 |
4 files changed, 6 insertions, 5 deletions
diff --git a/examples/framework-react/astro.config.mjs b/examples/framework-react/astro.config.mjs index 4b5a68ec0..36ed34a5e 100644 --- a/examples/framework-react/astro.config.mjs +++ b/examples/framework-react/astro.config.mjs @@ -1,3 +1,4 @@ +// @ts-check import { defineConfig } from 'astro/config'; import react from '@astrojs/react'; diff --git a/examples/framework-react/package.json b/examples/framework-react/package.json index 3abf9f8db..2e7bb73c4 100644 --- a/examples/framework-react/package.json +++ b/examples/framework-react/package.json @@ -5,16 +5,15 @@ "private": true, "scripts": { "dev": "astro dev", - "start": "astro dev", "build": "astro build", "preview": "astro preview", "astro": "astro" }, "dependencies": { - "@astrojs/react": "^3.6.3", + "@astrojs/react": "^3.7.0-beta.1", "@types/react": "^18.3.12", "@types/react-dom": "^18.3.1", - "astro": "^4.16.16", + "astro": "^5.0.0-beta.11", "react": "^18.3.1", "react-dom": "^18.3.1" } diff --git a/examples/framework-react/src/env.d.ts b/examples/framework-react/src/env.d.ts deleted file mode 100644 index e16c13c69..000000000 --- a/examples/framework-react/src/env.d.ts +++ /dev/null @@ -1 +0,0 @@ -/// <reference path="../.astro/types.d.ts" /> diff --git a/examples/framework-react/tsconfig.json b/examples/framework-react/tsconfig.json index e726bd0b9..92a18df90 100644 --- a/examples/framework-react/tsconfig.json +++ b/examples/framework-react/tsconfig.json @@ -1,5 +1,7 @@ { - "extends": "astro/tsconfigs/base", + "extends": "astro/tsconfigs/strict", + "include": [".astro/types.d.ts", "**/*"], + "exclude": ["dist"], "compilerOptions": { "jsx": "react-jsx", "jsxImportSource": "react" |