Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@

var CURRENT_YEAR = currentYear();

var INSTALLATION_SECTION_BASIC = [

Check warning on line 89 in lib/node_modules/@stdlib/_tools/scripts/publish_packages.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Identifier name 'INSTALLATION_SECTION_BASIC' is too long (> 25)
'<section class="installation">',
'',
'## Installation',
Expand All @@ -98,7 +98,7 @@
'</section>',
''
].join( '\n' );
var INSTALLATION_SECTION_BUNDLES = [

Check warning on line 101 in lib/node_modules/@stdlib/_tools/scripts/publish_packages.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Identifier name 'INSTALLATION_SECTION_BUNDLES' is too long (> 25)
'<section class="installation">',
'',
'## Installation',
Expand All @@ -120,7 +120,7 @@
'</section>',
''
].join( '\n' );
var INSTALLATION_SECTION_BUNDLES_CLI = [

Check warning on line 123 in lib/node_modules/@stdlib/_tools/scripts/publish_packages.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Identifier name 'INSTALLATION_SECTION_BUNDLES_CLI' is too long (> 25)
'- To use as a general utility for the command line, install the corresponding [CLI package][cli-section] globally.',
''
].join( '\n' );
Expand Down Expand Up @@ -344,7 +344,7 @@
];
var RE_ALLOWED_TOPIC_CHARS = /^[A-Z0-9-]+$/i;
var memoizedNPMversionForDeps = memoize( npmVersion );
var memoizedNPMversionForDevDeps = memoize( npmVersion );

Check warning on line 347 in lib/node_modules/@stdlib/_tools/scripts/publish_packages.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Identifier name 'memoizedNPMversionForDevDeps' is too long (> 25)


// FUNCTIONS //
Expand Down Expand Up @@ -512,7 +512,7 @@
if ( useGitHub ) {
out.devDependencies[ dep ] = 'github:stdlib-js/' + replace( dep, '@stdlib/', '' ) + '#main';
} else {
out.devDependencies[ dep ] = memoizedNPMversionForDevDeps( dep );

Check warning on line 515 in lib/node_modules/@stdlib/_tools/scripts/publish_packages.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

This line has a length of 89. Maximum allowed is 80
}
}
} else {
Expand Down Expand Up @@ -937,7 +937,7 @@
if ( contains( readme, '<section class="links">' ) ) {
readme = replace( readme, '<section class="links">', mainRepoSection( customLicense, branch, !noBundles, extractCLI ) );
} else {
readme += mainRepoSection( customLicense, branch, !noBundles, extractCLI );

Check warning on line 940 in lib/node_modules/@stdlib/_tools/scripts/publish_packages.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

This line has a length of 83. Maximum allowed is 80
readme += '\n\n';
readme += '</section>';
readme += '\n\n';
Expand Down Expand Up @@ -1111,7 +1111,7 @@

// Ensure `npm install` does not automatically build a native add-on...
if ( pkgJSON.gypfile ) {
// TODO: consider removing this once we have determined our native add-on story for individual packages

Check warning on line 1114 in lib/node_modules/@stdlib/_tools/scripts/publish_packages.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Unexpected 'todo' comment: 'TODO: consider removing this once we...'
pkgJSON.gypfile = false;
}
pkgJSON.version = version;
Expand Down Expand Up @@ -1380,7 +1380,7 @@
debug( 'Replace GitHub MathJax equations with SVGs...' );
command = 'find . -type f -name \'*.md\' -print0 | xargs -0 perl -0777 -i -pe \'s/```math\\n([\\s\\S]+?)\\n```\\n\\n//g\'';
shell( command, opts );
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\'';
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\'';
shell( command, opts );

debug( 'Replace GitHub links to individual packages with npm links...' );
Expand Down Expand Up @@ -1548,7 +1548,7 @@
// Select a deterministic batch of packages based on the current day of the year, ensuring all packages get updated over a regular cycle...
nBatches = ceil( pkgs.length / KEEP_ALIVE_SAMPLE_SIZE );
batchIndex = dayOfYear() % nBatches;
pkgs = pkgs.slice( batchIndex * KEEP_ALIVE_SAMPLE_SIZE, ( batchIndex + 1 ) * KEEP_ALIVE_SAMPLE_SIZE );

Check warning on line 1551 in lib/node_modules/@stdlib/_tools/scripts/publish_packages.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

This line has a length of 114. Maximum allowed is 80
}
for ( i = 0; i < pkgs.length; i++ ) {
pkgs[ i ] = replace( pkgs[ i ], '@stdlib/', '' );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ jobs:
- name: 'Replace GitHub MathJax equations with SVGs'
run: |
find . -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe 's/```math\n([\s\S]+?)\n```\n\n//g'
find . -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe 's/<!-- <div class="equation"(.*)(<\/div>\s*-->)/<div class="equation"$1<\/div>/sg'
find . -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe 's/<!-- <div class="equation"(.*?)(<\/div>\s*-->)/<div class="equation"$1<\/div>/sg'

# Replace GitHub links to individual packages with npm links:
- name: 'Replace all GitHub links to individual packages with npm links'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ jobs:
- name: 'Replace GitHub MathJax equations with SVGs'
run: |
find . -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe 's/```math\n([\s\S]+?)\n```\n\n//g'
find . -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe 's/<!-- <div class="equation"(.*)(<\/div>\s*-->)/<div class="equation"$1<\/div>/sg'
find . -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe 's/<!-- <div class="equation"(.*?)(<\/div>\s*-->)/<div class="equation"$1<\/div>/sg'

# Replace GitHub links to individual packages with npm links:
- name: 'Replace all GitHub links to individual packages with npm links'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ jobs:
- name: 'Replace GitHub MathJax equations with SVGs'
run: |
find . -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe 's/```math\n([\s\S]+?)\n```\n\n//g'
find . -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe 's/<!-- <div class="equation"(.*)(<\/div>\s*-->)/<div class="equation"$1<\/div>/sg'
find . -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe 's/<!-- <div class="equation"(.*?)(<\/div>\s*-->)/<div class="equation"$1<\/div>/sg'

# Replace GitHub links to individual packages with npm links:
- name: 'Replace all GitHub links to individual packages with npm links'
Expand Down