Skip to content

Commit d576e65

Browse files
committed
build: explicitly set dev deps to empty object for now
1 parent 559639c commit d576e65

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

lib/node_modules/@stdlib/_tools/scripts/publish_packages.js

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1248,23 +1248,6 @@ function publish( pkg, clbk ) {
12481248
}
12491249
}
12501250
}
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-
}
12681251

12691252
debug( 'Replace GitHub MathJax equations with SVGs...' );
12701253
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 ) {
12801263
command = 'find . -type f -name \'*.md\' -print0 | xargs -0 perl -0777 -i -pe "s/\\`\\`\\`\n\nAlternatively,[^<]+<\\/section>/\\`\\`\\`\n\n<\\/section>/"';
12811264
shell( command, opts );
12821265

1283-
// Set `scripts` field to an empty object and update `directories` field:
1266+
// Set `scripts` and `devDependencies` to an empty object and update `directories`:
12841267
pkgJSON.scripts = {};
1268+
pkgJSON.devDependencies = {};
12851269
if ( pkgJSON.directories ) {
12861270
delete pkgJSON.directories.benchmark;
12871271
delete pkgJSON.directories.example;

0 commit comments

Comments
 (0)