@aaronellington/vite-plugin-inkwell 0.0.5 → 0.0.7

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.
package/README.md CHANGED
@@ -24,6 +24,12 @@ export default defineConfig({
24
24
  });
25
25
  ```
26
26
 
27
+ For TypeScript support of `inkwell:*` imports, add a reference in a `.d.ts` file (e.g. `env.d.ts`):
28
+
29
+ ```typescript
30
+ /// <reference types="@aaronellington/vite-plugin-inkwell/types" />
31
+ ```
32
+
27
33
  ## Usage
28
34
 
29
35
  Import a content directory using the `inkwell:` prefix. The path resolves relative to the importing file:
@@ -1,6 +1,5 @@
1
- import type { ContentItem } from "./dist/types.js"
2
-
3
1
  declare module "inkwell:*" {
2
+ import type { ContentItem } from "@aaronellington/vite-plugin-inkwell"
4
3
  const collection: ContentItem[]
5
4
  export default collection
6
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aaronellington/vite-plugin-inkwell",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "description": "A Vite plugin that transforms directories of markdown files into typed, lazy-loaded content collections with frontmatter parsing, asset hashing, and HMR.",
5
5
  "license": "MIT",
6
6
  "author": "Aaron Ellington",
@@ -23,11 +23,14 @@
23
23
  ".": {
24
24
  "types": "./dist/index.d.ts",
25
25
  "default": "./dist/index.js"
26
+ },
27
+ "./types": {
28
+ "types": "./global.d.ts"
26
29
  }
27
30
  },
28
31
  "files": [
29
32
  "dist",
30
- "content.d.ts"
33
+ "global.d.ts"
31
34
  ],
32
35
  "engines": {
33
36
  "node": ">=22"