File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34480,7 +34480,7 @@ const previewUpdater = async () => {
3448034480 config.readme = readmePath;
3448134481 config.package ||= defaults_1.defaultPackage;
3448234482 config.data ||= {};
34483- config.package.name ||= packageLock.name;
34483+ config.package.name ||= packageLock.name || config.repository?.repo ;
3448434484 config.data.title ||= (0, strings_1.titleCase)(config.repository?.repo);
3448534485 config.data.description ||=
3448634486 packageLock.description || config.repository?.owner;
@@ -34898,7 +34898,10 @@ const getPackageManager = (config) => {
3489834898 if ((0, exports.hasComposer)(config)) {
3489934899 return (0, exports.getComposer)(config);
3490034900 }
34901- return (0, exports.getNpm)(config);
34901+ if ((0, exports.hasNpm)(config) || (0, exports.hasYarn)(config)) {
34902+ return (0, exports.getNpm)(config);
34903+ }
34904+ return {};
3490234905};
3490334906exports.getPackageManager = getPackageManager;
3490434907
You can’t perform that action at this time.
0 commit comments