Skip to content
This repository was archived by the owner on Nov 16, 2019. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion fstream-npm.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ Packer.prototype.applyIgnores = function (entry, partial, entryObj) {
if (entry === 'node_modules' && this.packageRoot) return true

// package.json main file should never be ignored.
var mainFile = this.package && this.package.main
var mainFile = (this.package && this.package.main) || 'index.js'
if (mainFile && path.resolve(this.path, entry) === path.resolve(this.path, mainFile)) return true

// some files are *never* allowed under any circumstances
Expand Down