Skip to content
Merged
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
20 changes: 10 additions & 10 deletions lib/node_modules/@stdlib/_tools/scripts/publish_packages.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@

var CURRENT_YEAR = currentYear();

var INSTALLATION_SECTION_BASIC = [

Check warning on line 85 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 @@ -94,7 +94,7 @@
'</section>',
''
].join( '\n' );
var INSTALLATION_SECTION_BUNDLES = [

Check warning on line 97 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 @@ -116,7 +116,7 @@
'</section>',
''
].join( '\n' );
var INSTALLATION_SECTION_BUNDLES_CLI = [

Check warning on line 119 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 @@ -340,7 +340,7 @@
];
var RE_ALLOWED_TOPIC_CHARS = /^[A-Z0-9-]+$/i;
var memoizedNPMversionForDeps = memoize( npmVersion );
var memoizedNPMversionForDevDeps = memoize( npmVersion );

Check warning on line 343 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 @@ -426,7 +426,7 @@
if ( useGitHub ) {
out.devDependencies[ dep ] = 'github:stdlib-js/' + replace( dep, '@stdlib/', '' ) + '#main';
} else {
out.devDependencies[ dep ] = memoizedNPMversionForDevDeps( dep );

Check warning on line 429 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 @@ -606,6 +606,16 @@
console.log( 'Rate limit: '+JSON.stringify( info ) );
}

/**
* Adds executable permission to `bin/cli` files.
*
* @private
* @param {Object} git - `git` class instance
*/
function updatePermissions( git ) {
shell( 'find '+git.cwd+' -regex \'.*/bin/cli\' -print0 | xargs -r -0 chmod +x' );
}

/**
* Publishes a package to the respective GitHub repository.
*
Expand Down Expand Up @@ -830,7 +840,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 843 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 @@ -1004,7 +1014,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 1017 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 @@ -1295,16 +1305,6 @@
invokeCallback();
}

/**
* Adds executable permission to `bin/cli` files.
*
* @private
* @param {Object} git - `git` class instance
*/
function updatePermissions( git ) {
shell( 'find '+git.cwd+' -regex \'.*/bin/cli\' -print0 | xargs -r -0 chmod +x' );
}

/**
* Replacer function for inserting an install section before a usage section.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
* limitations under the License.
*/

/* eslint-disable no-new-wrappers */

'use strict';

var Number = require( '@stdlib/number/ctor' );
Expand Down