Skip to content

Commit

Permalink
fix for .gitignore being renamed to .npmignore
Browse files Browse the repository at this point in the history
Closes #10

npm calls it a feature. I call it a bug.
npm/npm#1862
  • Loading branch information
kethinov committed May 4, 2014
1 parent 34396dd commit 4eaa8d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ if (cmd && arg) {
preserveTimestamps: false, // Preserve the mtime and atime when copying files
inflateSymlinks: false // Whether to follow symlinks or not when copying files
});
fs.renameSync(path.normalize(arg + '/.npmignore'), path.normalize(arg + '/.gitignore')); // fix to compensate for this "feature" https://github.com/npm/npm/issues/1862
}
catch (e) {
console.error(e);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "roosevelt",
"description": "Roosevelt MVC web framework",
"author": "Eric Newport <[email protected]>",
"version": "0.5.1",
"version": "0.5.2",
"homepage": "https://github.com/kethinov/roosevelt",
"license": "Creative Commons Attribution 4.0 International License",
"main": "roosevelt.js",
Expand Down

0 comments on commit 4eaa8d2

Please sign in to comment.