diff --git a/index.js b/index.js index fc328c7..7e55382 100644 --- a/index.js +++ b/index.js @@ -34,6 +34,7 @@ const defaultRules = [ 'npm-debug.log', '**/.npmrc', '.*.swp', + '.DS_Store', '**/.DS_Store/**', '._*', '**/._*/**', diff --git a/test/include-gitignore.js b/test/include-gitignore.js index d656ccb..5ecb702 100644 --- a/test/include-gitignore.js +++ b/test/include-gitignore.js @@ -38,6 +38,11 @@ t.test('setup', t => { '!.gitignore' ) + fs.writeFileSync( + path.join(pkg, '/.DS_Store'), + 'do not include me' + ) + fs.writeFileSync( path.join(pkg, 'package.json'), JSON.stringify(json, null, 2)