aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorDave Methvin <dave.methvin@gmail.com>2013-09-19 09:06:19 -0400
committerDave Methvin <dave.methvin@gmail.com>2013-09-19 09:06:19 -0400
commitd79c036ad6cbf0da3593da98410f17bb6b272639 (patch)
tree572cafad45363852858b3ddc5b4d99d852370ef6 /build
parent94ae7133449b2d0f5aab7e1a7f7190be65924145 (diff)
downloadjquery-d79c036ad6cbf0da3593da98410f17bb6b272639.tar.gz
jquery-d79c036ad6cbf0da3593da98410f17bb6b272639.zip
Update release script for sourcmap syntax change
Diffstat (limited to 'build')
-rw-r--r--build/release.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/build/release.js b/build/release.js
index 886387995..e0780a012 100644
--- a/build/release.js
+++ b/build/release.js
@@ -119,7 +119,7 @@ function checkGitStatus( next ) {
dieIfReal( "Branches don't match: Wanted " + branch + ", got " + onBranch );
}
if ( /Changes to be committed/i.test( stdout ) ) {
- dieIfReal( "Please commit changed files before attemping to push a release." );
+ dieIfReal( "Please commit changed files before attempting to push a release." );
}
if ( /Changes not staged for commit/i.test( stdout ) ) {
dieIfReal( "Please stash files before attempting to push a release." );
@@ -167,10 +167,10 @@ function makeReleaseCopies( next ) {
} else if ( /\.min\.js$/.test( releaseFile ) ) {
// Minified files point back to the corresponding map;
// again assume one big happy directory.
- // "//@ sourceMappingURL=jquery.min.map"
+ // "//# sourceMappingURL=jquery.min.map"
text = fs.readFileSync( builtFile, "utf8" )
- .replace( /\/\/@ sourceMappingURL=\S+/,
- "//@ sourceMappingURL=" + unpathedFile.replace( /\.js$/, ".map" ) );
+ .replace( /\/\/# sourceMappingURL=\S+/,
+ "//# sourceMappingURL=" + unpathedFile.replace( /\.js$/, ".map" ) );
fs.writeFileSync( releaseFile, text );
} else if ( builtFile !== releaseFile ) {
copy( builtFile, releaseFile );