File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 36
36
],
37
37
"scripts" : {
38
38
"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" ,
40
40
"build-site" : " rimraf ./site/README.md && node bin/docula.mjs build -s ./site -o ./site/dist" ,
41
41
"serve-mega" : " rimraf ./test/fixtures/mega-page-site/dist && node bin/docula.mjs serve -s ./test/fixtures/mega-page-site" ,
42
42
"test" : " xo --fix && vitest run --coverage" ,
50
50
"axios" : " ^1.7.7" ,
51
51
"cheerio" : " ^1.0.0" ,
52
52
"ecto" : " ^3.0.8" ,
53
- "express" : " ^4.19.2 " ,
53
+ "express" : " ^4.21.0 " ,
54
54
"feed" : " ^4.2.2" ,
55
55
"gray-matter" : " ^4.0.3" ,
56
56
"he" : " ^1.2.0" ,
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import process from 'node:process';
3
3
import { type DoculaSection } from './builder.js' ;
4
4
5
5
export class DoculaOptions {
6
- public templatePath = path . join ( process . cwd ( ) , './ template' ) ;
6
+ public templatePath = path . join ( import . meta . url , '../../ template' ) . replace ( 'file:' , ' ') ;
7
7
public outputPath = path . join ( process . cwd ( ) , './dist' ) ;
8
8
public sitePath = path . join ( process . cwd ( ) , './site' ) ;
9
9
public githubPath = 'jaredwray/docula' ;
You can’t perform that action at this time.
0 commit comments