docula 0.31.0 → 0.31.2

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/docula.js +5 -2
  2. package/package.json +13 -19
package/dist/docula.js CHANGED
@@ -3,6 +3,7 @@ import fs2 from "fs";
3
3
  import http from "http";
4
4
  import path3 from "path";
5
5
  import process4 from "process";
6
+ import { pathToFileURL } from "url";
6
7
  import handler from "serve-handler";
7
8
  import updateNotifier from "update-notifier";
8
9
 
@@ -919,7 +920,8 @@ var Docula = class {
919
920
  if (fs2.existsSync(sitePath)) {
920
921
  const configFile = `${sitePath}/docula.config.mjs`;
921
922
  if (fs2.existsSync(configFile)) {
922
- this._configFileModule = await import(configFile);
923
+ const absolutePath = path3.resolve(configFile);
924
+ this._configFileModule = await import(pathToFileURL(absolutePath).href);
923
925
  }
924
926
  }
925
927
  }
@@ -939,7 +941,7 @@ var Docula = class {
939
941
  };
940
942
  this._server = http.createServer(
941
943
  async (request, response) => (
942
- /* c8 ignore next */
944
+ /* v8 ignore next -- @preserve */
943
945
  handler(request, response, config)
944
946
  )
945
947
  );
@@ -953,3 +955,4 @@ export {
953
955
  Writr2 as Writr,
954
956
  Docula as default
955
957
  };
958
+ /* v8 ignore next -- @preserve */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "docula",
3
- "version": "0.31.0",
3
+ "version": "0.31.2",
4
4
  "description": "Beautiful Website for Your Projects",
5
5
  "type": "module",
6
6
  "main": "./dist/docula.js",
@@ -51,40 +51,34 @@
51
51
  "docula": "./bin/docula.mjs"
52
52
  },
53
53
  "dependencies": {
54
- "@cacheable/net": "^2.0.1",
54
+ "@cacheable/net": "^2.0.4",
55
55
  "cheerio": "^1.1.2",
56
- "ecto": "^4.6.0",
56
+ "ecto": "^4.7.1",
57
57
  "feed": "^5.1.0",
58
58
  "he": "^1.2.0",
59
59
  "serve-handler": "^6.1.6",
60
60
  "update-notifier": "^7.3.1",
61
- "writr": "^4.5.1"
61
+ "writr": "^5.0.1"
62
62
  },
63
63
  "devDependencies": {
64
- "@biomejs/biome": "^2.2.6",
65
- "@types/express": "^5.0.3",
64
+ "@biomejs/biome": "^2.3.9",
65
+ "@types/express": "^5.0.6",
66
66
  "@types/he": "^1.2.3",
67
67
  "@types/js-yaml": "^4.0.9",
68
- "@types/node": "^24.8.1",
68
+ "@types/node": "^25.0.3",
69
69
  "@types/serve-handler": "^6.1.4",
70
70
  "@types/update-notifier": "^6.0.8",
71
- "@vitest/coverage-v8": "^3.2.4",
71
+ "@vitest/coverage-v8": "^4.0.16",
72
72
  "dotenv": "^17.2.3",
73
- "rimraf": "^6.0.1",
74
- "tsup": "^8.5.0",
75
- "tsx": "^4.20.6",
73
+ "rimraf": "^6.1.2",
74
+ "tsup": "^8.5.1",
75
+ "tsx": "^4.21.0",
76
76
  "typescript": "^5.9.3",
77
- "vitest": "^3.2.4"
77
+ "vitest": "^4.0.16"
78
78
  },
79
79
  "files": [
80
80
  "dist",
81
81
  "template",
82
82
  "bin"
83
- ],
84
- "pnpm": {
85
- "onlyBuiltDependencies": [
86
- "esbuild",
87
- "unrs-resolver"
88
- ]
89
- }
83
+ ]
90
84
  }