summaryrefslogtreecommitdiff
path: root/examples/framework-preact
diff options
context:
space:
mode:
Diffstat (limited to 'examples/framework-preact')
-rw-r--r--examples/framework-preact/astro.config.mjs1
-rw-r--r--examples/framework-preact/package.json3
-rw-r--r--examples/framework-preact/src/env.d.ts1
-rw-r--r--examples/framework-preact/tsconfig.json4
4 files changed, 5 insertions, 4 deletions
diff --git a/examples/framework-preact/astro.config.mjs b/examples/framework-preact/astro.config.mjs
index b1c8d1150..1d726f9fe 100644
--- a/examples/framework-preact/astro.config.mjs
+++ b/examples/framework-preact/astro.config.mjs
@@ -1,3 +1,4 @@
+// @ts-check
import { defineConfig } from 'astro/config';
import preact from '@astrojs/preact';
diff --git a/examples/framework-preact/package.json b/examples/framework-preact/package.json
index 7293b436c..445c836fc 100644
--- a/examples/framework-preact/package.json
+++ b/examples/framework-preact/package.json
@@ -5,7 +5,6 @@
"private": true,
"scripts": {
"dev": "astro dev",
- "start": "astro dev",
"build": "astro build",
"preview": "astro preview",
"astro": "astro"
@@ -13,7 +12,7 @@
"dependencies": {
"@astrojs/preact": "^3.5.3",
"@preact/signals": "^1.3.0",
- "astro": "^4.16.13",
+ "astro": "^5.0.0-beta.8",
"preact": "^10.24.3"
}
}
diff --git a/examples/framework-preact/src/env.d.ts b/examples/framework-preact/src/env.d.ts
deleted file mode 100644
index e16c13c69..000000000
--- a/examples/framework-preact/src/env.d.ts
+++ /dev/null
@@ -1 +0,0 @@
-/// <reference path="../.astro/types.d.ts" />
diff --git a/examples/framework-preact/tsconfig.json b/examples/framework-preact/tsconfig.json
index bdd1b5a88..c8983c2ef 100644
--- a/examples/framework-preact/tsconfig.json
+++ b/examples/framework-preact/tsconfig.json
@@ -1,5 +1,7 @@
{
- "extends": "astro/tsconfigs/base",
+ "extends": "astro/tsconfigs/strict",
+ "include": [".astro/types.d.ts", "**/*"],
+ "exclude": ["dist"],
"compilerOptions": {
// Preact specific settings
"jsx": "react-jsx",