Skip to content

Commit 2d6b2bc

Browse files
committed
build: turn comments into debug calls
1 parent 90eceac commit 2d6b2bc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1243,17 +1243,17 @@ function publish( pkg, clbk ) {
12431243
}
12441244
}
12451245

1246-
// Replace GitHub MathJax equations with SVGs:
1246+
debug( 'Replace GitHub MathJax equations with SVGs...' );
12471247
command = 'find . -type f -name \'*.md\' -print0 | xargs -0 perl -0777 -i -pe \'s/```math\\n([\\s\\S]+?)\\n```\\n\\n//g\'';
12481248
shell( command, opts );
12491249
command = 'find . -type f -name \'*.md\' -print0 | xargs -0 perl -0777 -i -pe \'s/<!-- <div class="equation"(.*)(<\\/div>\\s*-->)/<div class="equation"$1<\\/div>/sg\'';
12501250
shell( command, opts );
12511251

1252-
// Replace GitHub links to individual packages with npm links:
1252+
debug( 'Replace GitHub links to individual packages with npm links...' );
12531253
command = 'find . -type f -name \'*.md\' -print0 | xargs -0 sed -Ei \'/tree\\/main/b; s/@stdlib\\/([^:]*)\\]: https:\\/\\/github.com\\/stdlib-js/@stdlib\\/\\1\\]: https:\\/\\/www.npmjs.com\\/package\\/@stdlib/g\'';
12541254
shell( command, opts );
12551255

1256-
// Replace list with links to other branches from installation section:
1256+
debug( 'Replace list with links to other branches from installation section...' );
12571257
command = 'find . -type f -name \'*.md\' -print0 | xargs -0 perl -0777 -i -pe "s/\\`\\`\\`\n\nAlternatively,[^<]+<\\/section>/\\`\\`\\`\n\n<\\/section>/"';
12581258
shell( command, opts );
12591259

0 commit comments

Comments
 (0)