@@ -14,14 +14,7 @@ module.exports = function( Release ) {
14
14
releaseFiles = {
15
15
"jquery-VER.js" : devFile ,
16
16
"jquery-VER.min.js" : minFile ,
17
- "jquery-VER.min.map" : mapFile //,
18
- // Disable these until 2.0 defeats 1.9 as the ONE TRUE JQUERY
19
- // "jquery.js": devFile,
20
- // "jquery.min.js": minFile,
21
- // "jquery.min.map": mapFile,
22
- // "jquery-latest.js": devFile,
23
- // "jquery-latest.min.js": minFile,
24
- // "jquery-latest.min.map": mapFile
17
+ "jquery-VER.min.map" : mapFile
25
18
} ,
26
19
27
20
googleFilesCDN = [
@@ -46,27 +39,23 @@ module.exports = function( Release ) {
46
39
unpathedFile = key . replace ( / V E R / g, Release . newVersion ) ,
47
40
releaseFile = cdnFolder + "/" + unpathedFile ;
48
41
49
- // Beta releases don't update the jquery-latest etc. copies
50
- if ( ! Release . preRelease || key . indexOf ( "VER" ) >= 0 ) {
51
-
52
- if ( / \. m a p $ / . test ( releaseFile ) ) {
53
- // Map files need to reference the new uncompressed name;
54
- // assume that all files reside in the same directory.
55
- // "file":"jquery.min.js","sources":["jquery.js"]
56
- text = fs . readFileSync ( builtFile , "utf8" )
57
- . replace ( / " f i l e " : " ( [ ^ " ] + ) " , " s o u r c e s " : \[ " ( [ ^ " ] + ) " \] / ,
58
- "\"file\":\"" + unpathedFile . replace ( / \. m i n \. m a p / , ".min.js" ) +
59
- "\",\"sources\":[\"" + unpathedFile . replace ( / \. m i n \. m a p / , ".js" ) + "\"]" ) ;
60
- fs . writeFileSync ( releaseFile , text ) ;
61
- } else if ( / \. m i n \. j s $ / . test ( releaseFile ) ) {
62
- // Remove the source map comment; it causes way too many problems.
63
- // Keep the map file in case DevTools allow manual association.
64
- text = fs . readFileSync ( builtFile , "utf8" )
65
- . replace ( / \/ \/ # s o u r c e M a p p i n g U R L = \S + / , "" ) ;
66
- fs . writeFileSync ( releaseFile , text ) ;
67
- } else if ( builtFile !== releaseFile ) {
68
- shell . cp ( "-f" , builtFile , releaseFile ) ;
69
- }
42
+ if ( / \. m a p $ / . test ( releaseFile ) ) {
43
+ // Map files need to reference the new uncompressed name;
44
+ // assume that all files reside in the same directory.
45
+ // "file":"jquery.min.js","sources":["jquery.js"]
46
+ text = fs . readFileSync ( builtFile , "utf8" )
47
+ . replace ( / " f i l e " : " ( [ ^ " ] + ) " , " s o u r c e s " : \[ " ( [ ^ " ] + ) " \] / ,
48
+ "\"file\":\"" + unpathedFile . replace ( / \. m i n \. m a p / , ".min.js" ) +
49
+ "\",\"sources\":[\"" + unpathedFile . replace ( / \. m i n \. m a p / , ".js" ) + "\"]" ) ;
50
+ fs . writeFileSync ( releaseFile , text ) ;
51
+ } else if ( / \. m i n \. j s $ / . test ( releaseFile ) ) {
52
+ // Remove the source map comment; it causes way too many problems.
53
+ // Keep the map file in case DevTools allow manual association.
54
+ text = fs . readFileSync ( builtFile , "utf8" )
55
+ . replace ( / \/ \/ # s o u r c e M a p p i n g U R L = \S + / , "" ) ;
56
+ fs . writeFileSync ( releaseFile , text ) ;
57
+ } else if ( builtFile !== releaseFile ) {
58
+ shell . cp ( "-f" , builtFile , releaseFile ) ;
70
59
}
71
60
} ) ;
72
61
}
0 commit comments