@aerobuilt/content 0.3.2 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +5 -2
  2. package/package.json +16 -16
package/README.md CHANGED
@@ -27,7 +27,10 @@ const docs = defineCollection({
27
27
  directory: 'content/docs',
28
28
  include: '**/*.md',
29
29
  schema: z.object({ title: z.string(), published: z.boolean().optional() }),
30
- transform: async doc => ({ ...doc, data: { ...doc.data, slug: doc._meta.slug } }),
30
+ transform: async doc => ({
31
+ ...doc,
32
+ data: { ...doc.data, slug: doc._meta.slug },
33
+ }),
31
34
  })
32
35
 
33
36
  export default defineConfig({ collections: [docs] })
@@ -44,7 +47,7 @@ export default defineConfig({ collections: [docs] })
44
47
  return docs.map((doc) => ({ params: { slug: doc._meta.slug }, props: doc }))
45
48
  }
46
49
 
47
- const doc = aero.props
50
+ const doc = Aero.props
48
51
  const { html } = await render(doc)
49
52
  </script>
50
53
  <article each="{ doc in [doc] }">
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@aerobuilt/content",
3
- "version": "0.3.2",
4
- "type": "module",
3
+ "version": "0.3.3",
4
+ "private": false,
5
+ "homepage": "https://github.com/aerobuilt/aero",
5
6
  "license": "MIT",
6
7
  "author": "Jamie Wilson",
7
8
  "repository": {
@@ -9,12 +10,11 @@
9
10
  "url": "https://github.com/aerobuilt/aero.git",
10
11
  "directory": "packages/content"
11
12
  },
12
- "homepage": "https://github.com/aerobuilt/aero",
13
- "private": false,
14
- "types": "./dist/index.d.mts",
15
13
  "files": [
16
14
  "dist"
17
15
  ],
16
+ "type": "module",
17
+ "types": "./dist/index.d.mts",
18
18
  "exports": {
19
19
  ".": {
20
20
  "types": "./dist/index.d.mts",
@@ -44,11 +44,21 @@
44
44
  "dependencies": {
45
45
  "fast-glob": "^3.3.3",
46
46
  "gray-matter": "^4.0.3",
47
+ "rehype-stringify": "^10.0.0",
47
48
  "remark": "^15.0.1",
48
49
  "remark-rehype": "^11.0.0",
49
- "rehype-stringify": "^10.0.0",
50
50
  "unified": "^11.0.0"
51
51
  },
52
+ "devDependencies": {
53
+ "@shikijs/rehype": "^3.0.0",
54
+ "@shikijs/transformers": "^3.0.0",
55
+ "@types/node": "^25.3.0",
56
+ "tsdown": "^0.21.0-beta.2",
57
+ "typescript": "^5.9.3",
58
+ "vite": "8.0.0-beta.15",
59
+ "vitest": "^4.0.18",
60
+ "zod": "^4.3.6"
61
+ },
52
62
  "peerDependencies": {
53
63
  "vite": "^8.0.0-0",
54
64
  "zod": "^4.0.0"
@@ -61,16 +71,6 @@
61
71
  "optional": true
62
72
  }
63
73
  },
64
- "devDependencies": {
65
- "@shikijs/rehype": "^3.0.0",
66
- "@shikijs/transformers": "^3.0.0",
67
- "@types/node": "^25.3.0",
68
- "tsdown": "^0.21.0-beta.2",
69
- "typescript": "^5.9.3",
70
- "vite": "8.0.0-beta.15",
71
- "vitest": "^4.0.18",
72
- "zod": "^4.3.6"
73
- },
74
74
  "scripts": {
75
75
  "build": "tsdown src/index.ts src/types.ts src/vite.ts src/markdown.ts src/render.ts src/processor.ts --format esm --dts --clean --out-dir dist",
76
76
  "typecheck": "tsc --noEmit",