docus 3.0.2-20250617-151231-2facbea → 3.0.2-20250617-182447-d407155

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/dist/main.mjs +14 -1
  2. package/package.json +1 -1
package/dist/main.mjs CHANGED
@@ -13,11 +13,24 @@ import { resolve } from "path";
13
13
  var appDir = fileURLToPath(new URL("../app", import.meta.url));
14
14
  var pkgDir = fileURLToPath(new URL("..", import.meta.url));
15
15
  async function getNuxtConfig(dir, _opts = {}) {
16
+ const fixLayers = (_, nuxt) => {
17
+ const hasDocsDir = nuxt.options._layers.some((layer) => layer.cwd === dir);
18
+ if (!hasDocsDir) {
19
+ nuxt.options._layers.unshift({
20
+ cwd: dir,
21
+ config: {
22
+ rootDir: dir,
23
+ srcDir: dir
24
+ }
25
+ });
26
+ }
27
+ };
16
28
  global.__DOCS_DIR__ = resolve(dir, "content");
17
29
  return {
18
30
  compatibilityDate: "2025-06-17",
19
31
  extends: [appDir],
20
- modulesDir: [resolve(pkgDir, "node_modules"), resolve(appDir, "node_modules")]
32
+ modulesDir: [resolve(pkgDir, "node_modules"), resolve(appDir, "node_modules")],
33
+ modules: [fixLayers]
21
34
  };
22
35
  }
23
36
 
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "url": "https://github.com/nuxtlabs/docus"
7
7
  },
8
8
  "private": false,
9
- "version": "3.0.2-20250617-151231-2facbea",
9
+ "version": "3.0.2-20250617-182447-d407155",
10
10
  "keywords": [],
11
11
  "license": "MIT",
12
12
  "bin": {