@aaronellington/vite-plugin-inkwell 0.0.5 → 0.0.6
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 +6 -0
- package/package.json +5 -2
- /package/{content.d.ts → global.d.ts} +0 -0
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:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aaronellington/vite-plugin-inkwell",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
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
|
-
"
|
|
33
|
+
"global.d.ts"
|
|
31
34
|
],
|
|
32
35
|
"engines": {
|
|
33
36
|
"node": ">=22"
|
|
File without changes
|