Skip to content

Commit

Permalink
ignoring package folder sometimes leftover from manual test
Browse files Browse the repository at this point in the history
  • Loading branch information
majgis committed Dec 1, 2015
1 parent 26b6131 commit 2c28cce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
@@ -1,2 +1,4 @@
node_modules/
*.tgz
package/

5 changes: 4 additions & 1 deletion index.js
Expand Up @@ -61,7 +61,10 @@ function npmBundle (args, verbose) {
var packageDir = cwd + 'node_modules' + path.sep + packageName + path.sep;
var packageJsonPath = packageDir + 'package.json';
var pkg = bundleDependenciesSync(packageJsonPath);


//remove nested temp directory
rimraf.sync(packageDir + TEMP_DIR_NAME);

//npm pack with bundled dependencies
process.chdir(startDir);
var buffer = child_process.execSync('npm pack ' + packageDir);
Expand Down

0 comments on commit 2c28cce

Please sign in to comment.