Skip to content

Commit

Permalink
feat: Started ignoring node_modules folders by default
Browse files Browse the repository at this point in the history
  • Loading branch information
freaktechnik committed Jun 14, 2016
1 parent 25b60d9 commit 5eff6d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/cmd/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ export class FileFilter {
'**/*.xpi',
'**/*.zip',
'**/.*', // any hidden file
'**/node_modules',
];
}

Expand Down
4 changes: 4 additions & 0 deletions tests/test-cmd/test.build.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,10 @@ describe('build', () => {
assert.equal(filter.wantFile('some.xpi'), true);
assert.equal(filter.wantFile('manifest.json'), false);
});

it('ignores node_modules by default', () => {
assert.equal(defaultFilter.wantFile('path/to/node_modules'), false);
});

});

Expand Down

0 comments on commit 5eff6d5

Please sign in to comment.