File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ const previewUpdater = async () => {
5454 config . package ||= defaultPackage ;
5555 config . data ||= < Data > { } ;
5656
57- config . package . name ||= packageLock . name ;
57+ config . package . name ||= packageLock . name || config . repository ?. repo ;
5858 config . data . title ||= titleCase ( config . repository ?. repo ) ;
5959 config . data . description ||=
6060 packageLock . description || config . repository ?. owner ;
Original file line number Diff line number Diff line change 11export interface LockFile {
2- name : string ;
3- description : string ;
2+ name ? : string ;
3+ description ? : string ;
44
55 dependencies ?: Record < string , string > [ ] ;
66 require ?: Record < string , string > [ ] ;
Original file line number Diff line number Diff line change @@ -22,5 +22,9 @@ export const getPackageManager = (config: Config): LockFile => {
2222 return getComposer ( config ) ;
2323 }
2424
25- return getNpm ( config ) ;
25+ if ( hasNpm ( config ) || hasYarn ( config ) ) {
26+ return getNpm ( config ) ;
27+ }
28+
29+ return < LockFile > { } ;
2630} ;
You can’t perform that action at this time.
0 commit comments