diff --git a/lib/get-files.js b/lib/get-files.js index dfb8846..3fb611e 100644 --- a/lib/get-files.js +++ b/lib/get-files.js @@ -98,11 +98,6 @@ async function npm( ) ); - // Always include the "main" file - if (pkg.main) { - search.push(require.resolve(resolve(path, pkg.main), 'may-exclude')); // Pkg: may-exclude suppresses warnings - } - // Compile list of ignored patterns and files const npmIgnore = await maybeRead(resolve(path, '.npmignore'), null); const gitIgnore = npmIgnore === null @@ -277,7 +272,7 @@ async function explode(paths, { accepts, debug }) { try { s = await stat(path); } catch (e) { - // In case the file comes from `files` or `main` + // In case the file comes from `files` // and it wasn't specified with `.js` by the user path = file + '.js';