File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1- import { join } from 'node:path' ;
1+ import { basename , join } from 'node:path' ;
22import packageJson from '../package.json' ;
33
44/**
@@ -146,7 +146,7 @@ const DEFAULT_OPTIONS: DefaultOptions = {
146146 urlRegex : URL_REGEX ,
147147 name : packageJson . name ,
148148 version : ( process . env . NODE_ENV === 'local' && '0.0.0' ) || packageJson . version ,
149- repoName : process . cwd ( ) ?. split ?. ( '/' ) ?. pop ?. ( ) ?. trim ?. ( ) ,
149+ repoName : basename ( process . cwd ( ) || '' ) . trim ( ) ,
150150 contextPath : ( process . env . NODE_ENV === 'local' && '/' ) || process . cwd ( ) ,
151151 docsPath : ( process . env . NODE_ENV === 'local' && '/documentation' ) || join ( process . cwd ( ) , 'documentation' ) ,
152152 llmsFilesPath : ( process . env . NODE_ENV === 'local' && '/llms-files' ) || join ( process . cwd ( ) , 'llms-files' )
You can’t perform that action at this time.
0 commit comments