Skip to content

Commit 7b8fbf4

Browse files
authored
Merge pull request #189 from jaredwray/upgrading-express-to-4.21.0
upgrading express to 4.21.0
2 parents 014eb72 + 4941153 commit 7b8fbf4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
],
3737
"scripts": {
3838
"clean": "rimraf ./dist ./coverage ./node_modules ./package-lock.json ./yarn.lock ./pnpm-lock.yaml ./site/README.md ./site/dist",
39-
"build": "rimraf ./dist && tsup src/docula.ts --format cjs,esm --dts --clean",
39+
"build": "rimraf ./dist && tsup src/docula.ts --format esm --dts --clean",
4040
"build-site": "rimraf ./site/README.md && node bin/docula.mjs build -s ./site -o ./site/dist",
4141
"serve-mega": "rimraf ./test/fixtures/mega-page-site/dist && node bin/docula.mjs serve -s ./test/fixtures/mega-page-site",
4242
"test": "xo --fix && vitest run --coverage",
@@ -50,7 +50,7 @@
5050
"axios": "^1.7.7",
5151
"cheerio": "^1.0.0",
5252
"ecto": "^3.0.8",
53-
"express": "^4.19.2",
53+
"express": "^4.21.0",
5454
"feed": "^4.2.2",
5555
"gray-matter": "^4.0.3",
5656
"he": "^1.2.0",

src/options.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import process from 'node:process';
33
import {type DoculaSection} from './builder.js';
44

55
export class DoculaOptions {
6-
public templatePath = path.join(process.cwd(), './template');
6+
public templatePath = path.join(import.meta.url, '../../template').replace('file:', '');
77
public outputPath = path.join(process.cwd(), './dist');
88
public sitePath = path.join(process.cwd(), './site');
99
public githubPath = 'jaredwray/docula';

0 commit comments

Comments
 (0)