@@ -1248,23 +1248,6 @@ function publish( pkg, clbk ) {
1248
1248
}
1249
1249
}
1250
1250
}
1251
- for ( dep in pkgJSON . devDependencies ) {
1252
- if ( hasOwnProp ( pkgJSON . devDependencies , dep ) ) {
1253
- escaped = replace ( dep , '@' , '\\@' ) ;
1254
- escaped = replace ( escaped , '/' , '\\/' ) ;
1255
- command = [
1256
- 'if ! find lib -name "*.js" -exec grep -q "' + escaped + '" {} + && ! grep -q -s "' + escaped + '" manifest.json && ! grep -q -s "' + escaped + '" include.gypi; then' ,
1257
- ' printf "false"' ,
1258
- 'else' ,
1259
- ' printf "true"' ,
1260
- 'fi'
1261
- ] . join ( '\n' ) ;
1262
- found = shell ( command , opts ) . toString ( ) ;
1263
- if ( found === 'false' ) {
1264
- delete pkgJSON . devDependencies [ dep ] ;
1265
- }
1266
- }
1267
- }
1268
1251
1269
1252
debug ( 'Replace GitHub MathJax equations with SVGs...' ) ;
1270
1253
command = 'find . -type f -name \'*.md\' -print0 | xargs -0 perl -0777 -i -pe \'s/```math\\n([\\s\\S]+?)\\n```\\n\\n//g\'' ;
@@ -1280,8 +1263,9 @@ function publish( pkg, clbk ) {
1280
1263
command = 'find . -type f -name \'*.md\' -print0 | xargs -0 perl -0777 -i -pe "s/\\`\\`\\`\n\nAlternatively,[^<]+<\\/section>/\\`\\`\\`\n\n<\\/section>/"' ;
1281
1264
shell ( command , opts ) ;
1282
1265
1283
- // Set `scripts` field to an empty object and update `directories` field :
1266
+ // Set `scripts` and `devDependencies` to an empty object and update `directories`:
1284
1267
pkgJSON . scripts = { } ;
1268
+ pkgJSON . devDependencies = { } ;
1285
1269
if ( pkgJSON . directories ) {
1286
1270
delete pkgJSON . directories . benchmark ;
1287
1271
delete pkgJSON . directories . example ;
0 commit comments