summaryrefslogtreecommitdiff
path: root/examples/framework-react
diff options
context:
space:
mode:
authorGravatar Emanuele Stoppa <my.burning@gmail.com> 2024-11-28 11:12:46 +0000
committerGravatar GitHub <noreply@github.com> 2024-11-28 11:12:46 +0000
commitc50882daf67666694cd4bd1b3a594db547cf0bc4 (patch)
treeb14c589497c8f371f220751f963c9ab13e8232d7 /examples/framework-react
parent875f8b9185daa52f7870ac71ed9f5854bc679327 (diff)
parent84ce4be5227cf71ac3f7c82c90718625fe58b1f6 (diff)
downloadastro-c50882daf67666694cd4bd1b3a594db547cf0bc4.tar.gz
astro-c50882daf67666694cd4bd1b3a594db547cf0bc4.tar.zst
astro-c50882daf67666694cd4bd1b3a594db547cf0bc4.zip
Merge pull request #12551 from withastro/next
Diffstat (limited to 'examples/framework-react')
-rw-r--r--examples/framework-react/astro.config.mjs1
-rw-r--r--examples/framework-react/package.json5
-rw-r--r--examples/framework-react/src/env.d.ts1
-rw-r--r--examples/framework-react/tsconfig.json4
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..420f9b53d 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": "^4.0.0-beta.2",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
- "astro": "^4.16.16",
+ "astro": "^5.0.0-beta.12",
"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"