nuxt-llms 0.1.2 → 0.1.4

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
@@ -240,7 +240,7 @@ export default defineNuxtConfig({
240
240
  })
241
241
  ```
242
242
 
243
- Checkout the [Nuxt Content documentation](https://content.nuxt.com/docs/usage/content-pages) for more information on how to write your content files.
243
+ Checkout the [Nuxt Content documentation](https://content.nuxt.com/docs/files/markdown) for more information on how to write your content files.
244
244
 
245
245
  And checkout the [Nuxt Content llms documentation](https://content.nuxt.com/docs/advanced/llms) for more information on how to customize LLMs contents with `nuxt-llms` and `@nuxt/content`.
246
246
 
package/dist/module.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
- "name": "Nuxt LLMS",
2
+ "name": "nuxt-llms",
3
3
  "configKey": "llms",
4
- "version": "0.1.2",
4
+ "version": "0.1.4",
5
+ "docs": "https://github.com/nuxtlabs/nuxt-llms",
5
6
  "builder": {
6
- "@nuxt/module-builder": "0.8.4",
7
- "unbuild": "2.0.0"
7
+ "@nuxt/module-builder": "1.0.2",
8
+ "unbuild": "3.6.1"
8
9
  }
9
10
  }
package/dist/module.mjs CHANGED
@@ -1,9 +1,13 @@
1
1
  import { defineNuxtModule, useLogger, createResolver, addServerImports, addServerHandler, addPrerenderRoutes } from '@nuxt/kit';
2
2
 
3
- const module = defineNuxtModule({
3
+ const version = "0.1.4";
4
+
5
+ const module$1 = defineNuxtModule({
4
6
  meta: {
5
- name: "Nuxt LLMS",
6
- configKey: "llms"
7
+ name: "nuxt-llms",
8
+ configKey: "llms",
9
+ version,
10
+ docs: "https://github.com/nuxtlabs/nuxt-llms"
7
11
  },
8
12
  defaults: {},
9
13
  setup(options, nuxt) {
@@ -40,4 +44,4 @@ const module = defineNuxtModule({
40
44
  }
41
45
  });
42
46
 
43
- export { module as default };
47
+ export { module$1 as default };
@@ -10,7 +10,7 @@ export default eventHandler(async (event) => {
10
10
  `# ${llms.title || "Documentation"}`
11
11
  ];
12
12
  if (llms.description) {
13
- document.push(`> ${options.description}`);
13
+ document.push(`> ${llms.description}`);
14
14
  }
15
15
  for (const section of llms.sections) {
16
16
  document.push(`## ${section.title}`);
@@ -1,6 +1,6 @@
1
1
  import type { H3Event } from 'h3';
2
- import type { ModuleOptions } from 'nuxt-llms';
3
2
  import type { NitroRuntimeHooks } from 'nitropack/types';
3
+ import type { ModuleOptions } from 'nuxt-llms';
4
4
  /**
5
5
  * @deprecated Custom hooks are deprecated in favor of NitroRuntimeHooks.
6
6
  */
package/dist/types.d.mts CHANGED
@@ -1,7 +1,9 @@
1
1
  import type { NuxtModule } from '@nuxt/schema'
2
2
 
3
- import type { default as Module } from './module.js'
3
+ import type { default as Module } from './module.mjs'
4
4
 
5
5
  export type ModuleOptions = typeof Module extends NuxtModule<infer O> ? Partial<O> : Record<string, any>
6
6
 
7
- export { default } from './module.js'
7
+ export { default } from './module.mjs'
8
+
9
+ export * from '../dist/runtime/types.js'
package/package.json CHANGED
@@ -1,18 +1,24 @@
1
1
  {
2
2
  "name": "nuxt-llms",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Generate llms.txt documentation for your Nuxt application",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/nuxtlabs/nuxt-llms.git"
8
8
  },
9
+ "keywords": [
10
+ "nuxt",
11
+ "llms",
12
+ "documentation",
13
+ "generator",
14
+ "nuxt-module"
15
+ ],
9
16
  "license": "MIT",
10
17
  "type": "module",
11
18
  "exports": {
12
19
  ".": {
13
- "types": "./dist/module.d.ts",
14
- "import": "./dist/module.mjs",
15
- "require": "./dist/module.cjs"
20
+ "types": "./dist/module.d.mts",
21
+ "import": "./dist/module.mjs"
16
22
  },
17
23
  "./runtime": {
18
24
  "types": "./dist/runtime/index.d.ts",
@@ -20,8 +26,8 @@
20
26
  "require": "./dist/runtime/index.js"
21
27
  }
22
28
  },
23
- "main": "./dist/module.cjs",
24
- "types": "./dist/module.d.ts",
29
+ "main": "./dist/module.mjs",
30
+ "types": "./dist/module.d.mts",
25
31
  "files": [
26
32
  "dist"
27
33
  ],
@@ -36,25 +42,26 @@
36
42
  "test": "vitest run",
37
43
  "test:watch": "vitest watch",
38
44
  "test:types": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit",
39
- "verify": "npm run dev:prepare && npm run lint && npm run test && npm run typecheck"
45
+ "verify": "npm run dev:prepare && npm run prepack && npm run lint && npm run test && npm run typecheck"
40
46
  },
41
47
  "dependencies": {
42
- "@nuxt/kit": "^3.16.1"
48
+ "@nuxt/kit": "^4.2.2"
43
49
  },
44
50
  "devDependencies": {
45
- "nuxt-llms": "link:.",
46
- "@nuxt/devtools": "^2.3.1",
47
- "@nuxt/eslint-config": "^1.2.0",
48
- "@nuxt/module-builder": "^0.8.4",
49
- "@nuxt/schema": "^3.16.1",
50
- "@nuxt/test-utils": "^3.17.2",
51
- "@types/node": "latest",
52
- "changelogen": "^0.6.1",
53
- "eslint": "^9.23.0",
54
- "nuxt": "^3.16.1",
55
- "typescript": "~5.6.0",
56
- "vitest": "^3.0.9",
57
- "vue-tsc": "^2.2.2"
51
+ "@nuxt/content": "^3.10.0",
52
+ "@nuxt/devtools": "^3.1.1",
53
+ "@nuxt/eslint-config": "^1.12.1",
54
+ "@nuxt/module-builder": "^1.0.2",
55
+ "@nuxt/schema": "^4.2.2",
56
+ "@nuxt/test-utils": "^3.23.0",
57
+ "@types/node": "^25.0.7",
58
+ "changelogen": "^0.6.2",
59
+ "eslint": "^9.39.2",
60
+ "nuxt": "^4.2.2",
61
+ "nuxt-llms": "link:",
62
+ "typescript": "~5.9.3",
63
+ "vitest": "^4.0.17",
64
+ "vue-tsc": "^3.2.2"
58
65
  },
59
- "packageManager": "pnpm@10.6.5"
66
+ "packageManager": "pnpm@10.28.0"
60
67
  }
package/dist/module.cjs DELETED
@@ -1,5 +0,0 @@
1
- module.exports = function(...args) {
2
- return import('./module.mjs').then(m => m.default.call(this, ...args))
3
- }
4
- const _meta = module.exports.meta = require('./module.json')
5
- module.exports.getMeta = () => Promise.resolve(_meta)
package/dist/module.d.ts DELETED
@@ -1,7 +0,0 @@
1
- import * as _nuxt_schema from '@nuxt/schema';
2
- import { ModuleOptions } from '../dist/runtime/types.js';
3
- export * from '../dist/runtime/types.js';
4
-
5
- declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
6
-
7
- export { _default as default };
package/dist/types.d.ts DELETED
@@ -1,7 +0,0 @@
1
- import type { NuxtModule } from '@nuxt/schema'
2
-
3
- import type { default as Module } from './module'
4
-
5
- export type ModuleOptions = typeof Module extends NuxtModule<infer O> ? Partial<O> : Record<string, any>
6
-
7
- export { default } from './module'