Skip to content

Commit

Permalink
[api] Add .jitsuignore support
Browse files Browse the repository at this point in the history
Fixes #83.
  • Loading branch information
mmalecki committed May 28, 2013
1 parent 229b3ca commit fef3929
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/jitsu/package.js
Expand Up @@ -371,7 +371,10 @@ package.createTarball = function (dir, version, callback) {
var name = [jitsu.config.get('username'), pkg.name, version || pkg.version].join('-') + '.tgz',
tarball = path.join(jitsu.config.get('tmproot'), name);

fstreamNpm({ path: dir })
fstreamNpm({
path: dir,
ignoreFiles: ['.jitsuignore', '.npmignore', '.gitignore', 'package.json']
})
.on('error', callback)
.pipe(tar.Pack())
.on('error', callback)
Expand Down

2 comments on commit fef3929

@3rd-Eden
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just wondering.. Why is package.json included as ignoreFile?

@mmalecki
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See this function Arnout. fstream-npm also sources files to ignore from package.json and we still want to support that.

Please sign in to comment.