@theholocron/docs-theme 1.3.2 → 1.3.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
@@ -17,12 +17,12 @@ import starlight from "@astrojs/starlight";
17
17
  import { defineConfig } from "astro/config";
18
18
 
19
19
  export default defineConfig({
20
- integrations: [
21
- starlight({
22
- plugins: [docsTheme()],
23
- title: "My Docs",
24
- }),
25
- ],
20
+ integrations: [
21
+ starlight({
22
+ plugins: [docsTheme()],
23
+ title: "My Docs",
24
+ }),
25
+ ],
26
26
  });
27
27
  ```
28
28
 
package/dist/loader.mjs CHANGED
@@ -22,7 +22,8 @@ function computeId(filePath, baseDir, slugPrefix) {
22
22
  function resolvePackageContentDir(packageName, root) {
23
23
  const req = createRequire(root);
24
24
  try {
25
- let dir = dirname(req.resolve(packageName));
25
+ const main = req.resolve(packageName);
26
+ let dir = dirname(main);
26
27
  while (dir !== dirname(dir)) {
27
28
  if (existsSync(join(dir, "package.json"))) return join(dir, "content");
28
29
  dir = dirname(dir);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/docs-theme",
3
- "version": "1.3.2",
3
+ "version": "1.3.4",
4
4
  "description": "Starlight plugin providing the shared docs theme.",
5
5
  "keywords": [
6
6
  "astro",
@@ -51,19 +51,19 @@
51
51
  "gray-matter": "^4.0.3"
52
52
  },
53
53
  "devDependencies": {
54
- "@astrojs/starlight": "^0.41.6",
55
- "@theholocron/eslint-config": "^7.7.0",
56
- "@theholocron/tsconfig": "^7.7.0",
57
- "@theholocron/tsdown-config": "^7.7.0",
58
- "@theholocron/vitest-config": "^7.7.0",
59
- "@types/node": "^26.1.2",
54
+ "@astrojs/starlight": "^0.41.7",
55
+ "@theholocron/eslint-config": "^7.15.0",
56
+ "@theholocron/tsconfig": "^7.15.0",
57
+ "@theholocron/tsdown-config": "^7.15.0",
58
+ "@theholocron/vitest-config": "^7.15.0",
59
+ "@types/node": "^26.2.0",
60
60
  "@vitest/coverage-v8": "^4.1.10",
61
- "@vitest/eslint-plugin": "^1.6.23",
62
- "astro": "^7.1.6",
63
- "eslint": "^10.7.0",
64
- "eslint-plugin-n": "^18.2.2",
61
+ "@vitest/eslint-plugin": "^1.6.26",
62
+ "astro": "^7.2.0",
63
+ "eslint": "^10.8.1",
64
+ "eslint-plugin-n": "^18.3.0",
65
65
  "eslint-plugin-simple-import-sort": "^14.0.0",
66
- "globals": "^17.8.0",
66
+ "globals": "^17.9.0",
67
67
  "tsdown": "^0.22.13",
68
68
  "typescript": "^5.9.3",
69
69
  "vitest": "^4.1.10"