Skip to content

Commit

Permalink
Use fstream to set executable bit on directories
Browse files Browse the repository at this point in the history
  • Loading branch information
dvonlehman committed Dec 23, 2016
1 parent 9955fc0 commit 896b147
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"func-names": 0,
"one-var": 0,
"no-use-before-define": [2, "nofunc"],
"new-cap": [2, { "capIsNewExceptions": ["Readable", "Writable", "Extract"] }],
"new-cap": [2, { "capIsNewExceptions": ["Readable", "Writable", "Extract", "Reader"] }],
"no-unused-vars": [2, {
"varsIgnorePattern": "debug",
"argsIgnorePattern": "(err|settings|options)"
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
node_modules
.tar.gz
/**/aero-deploy.tar.gz
*.log
3 changes: 2 additions & 1 deletion commands/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const request = require('request');
const urlJoin = require('url-join');
const camelCase = require('camel-case');
const pack = require('tar-pack').pack;
const fstream = require('fstream');
const uuid = require('node-uuid');
const Promise = require('bluebird');
const promiseUntil = require('promise-until');
Expand Down Expand Up @@ -132,7 +133,7 @@ function createTarball(deployDirectory, program) {
return new Promise((resolve, reject) => {
log.debug('Create deployment bundle %s', tarballFile);

pack(deployDirectory, {filter})
pack(fstream.Reader(deployDirectory, {filter}))
.pipe(outStream)
.on('error', reject)
.on('close', () => {
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aerobatic-cli",
"version": "1.0.3",
"version": "1.0.4",
"description": "Command line interface for Aerobatic static hosting platform",
"main": "bin/aero",
"bin": {
Expand All @@ -22,6 +22,7 @@
"config": "^1.21.0",
"file-type": "^3.9.0",
"fs-promise": "^0.5.0",
"fstream": "^1.0.10",
"inquirer": "^1.2.2",
"isemail": "^2.2.1",
"js-yaml": "^3.6.1",
Expand Down

0 comments on commit 896b147

Please sign in to comment.