aboutsummaryrefslogtreecommitdiffstats
path: root/build/release.js
diff options
context:
space:
mode:
authorTimmy Willison <timmywillisn@gmail.com>2013-11-15 10:23:23 -0500
committerTimmy Willison <timmywillisn@gmail.com>2013-11-15 10:32:13 -0500
commitb04b3861802606a114c936e753c0f20da6e8b236 (patch)
tree8f1c12a7d7a03ee2f428b3fcdb9bc96dce38aa70 /build/release.js
parent6f74abb7bfd08f88c9f89e6840ec52cb4c38e133 (diff)
downloadjquery-b04b3861802606a114c936e753c0f20da6e8b236.tar.gz
jquery-b04b3861802606a114c936e753c0f20da6e8b236.zip
Release script: Add .npmignore and keep .gitignore when creating the tag
Diffstat (limited to 'build/release.js')
-rw-r--r--build/release.js23
1 files changed, 3 insertions, 20 deletions
diff --git a/build/release.js b/build/release.js
index d4c4475d5..e2008f855 100644
--- a/build/release.js
+++ b/build/release.js
@@ -304,27 +304,10 @@ function commitDistFiles( next ) {
var pkgClone = readJSON( "package.json" );
delete pkgClone.scripts;
fs.writeFileSync( "package.json", JSON.stringify( pkgClone, null, "\t" ) );
- fs.unlinkSync( ".gitignore" );
// Add files to be committed
- git( [ "add", "package.json", devFile, minFile, mapFile, sizzleLoc ], function() {
- // Remove unneeded files
- git( [ "rm", "-r",
- "build",
- "speed",
- "test",
- ".editorconfig",
- ".gitattributes",
- ".gitignore",
- ".jscs.json",
- ".jshintignore",
- ".jshintrc",
- ".mailmap",
- ".travis.yml",
- "Gruntfile.js",
- "README.md"
- ], function() {
- git( [ "commit", "-m", releaseVersion ], next, debug );
- }, debug );
+ // Use force to add normally ignored files
+ git( [ "add", "-f", "package.json", devFile, minFile, mapFile, sizzleLoc ], function() {
+ git( [ "commit", "-m", releaseVersion ], next, debug );
}, debug );
}