diff options
Diffstat (limited to 'examples/with-markdoc')
-rw-r--r-- | examples/with-markdoc/astro.config.mjs | 1 | ||||
-rw-r--r-- | examples/with-markdoc/package.json | 5 | ||||
-rw-r--r-- | examples/with-markdoc/src/content.config.ts | 5 | ||||
-rw-r--r-- | examples/with-markdoc/src/env.d.ts | 1 | ||||
-rw-r--r-- | examples/with-markdoc/tsconfig.json | 4 |
5 files changed, 11 insertions, 5 deletions
diff --git a/examples/with-markdoc/astro.config.mjs b/examples/with-markdoc/astro.config.mjs index 29d846359..517f5a62e 100644 --- a/examples/with-markdoc/astro.config.mjs +++ b/examples/with-markdoc/astro.config.mjs @@ -1,3 +1,4 @@ +// @ts-check import { defineConfig } from 'astro/config'; import markdoc from '@astrojs/markdoc'; diff --git a/examples/with-markdoc/package.json b/examples/with-markdoc/package.json index 71e7cb04a..7db09ea88 100644 --- a/examples/with-markdoc/package.json +++ b/examples/with-markdoc/package.json @@ -5,13 +5,12 @@ "private": true, "scripts": { "dev": "astro dev", - "start": "astro dev", "build": "astro build", "preview": "astro preview", "astro": "astro" }, "dependencies": { - "@astrojs/markdoc": "^0.11.5", - "astro": "^4.16.16" + "@astrojs/markdoc": "^0.12.0-beta.0", + "astro": "^5.0.0-beta.11" } } diff --git a/examples/with-markdoc/src/content.config.ts b/examples/with-markdoc/src/content.config.ts new file mode 100644 index 000000000..79743326e --- /dev/null +++ b/examples/with-markdoc/src/content.config.ts @@ -0,0 +1,5 @@ +import { defineCollection } from 'astro:content'; + +export const collections = { + docs: defineCollection({}) +}; diff --git a/examples/with-markdoc/src/env.d.ts b/examples/with-markdoc/src/env.d.ts deleted file mode 100644 index e16c13c69..000000000 --- a/examples/with-markdoc/src/env.d.ts +++ /dev/null @@ -1 +0,0 @@ -/// <reference path="../.astro/types.d.ts" /> diff --git a/examples/with-markdoc/tsconfig.json b/examples/with-markdoc/tsconfig.json index e51e06270..0dc098dd7 100644 --- a/examples/with-markdoc/tsconfig.json +++ b/examples/with-markdoc/tsconfig.json @@ -1,5 +1,7 @@ { - "extends": "astro/tsconfigs/base", + "extends": "astro/tsconfigs/strict", + "include": [".astro/types.d.ts", "**/*"], + "exclude": ["dist"], "compilerOptions": { "strictNullChecks": true } |