@@ -82,7 +82,7 @@ var topics = setTopics.factory({
82
82
83
83
var CURRENT_YEAR = currentYear ( ) ;
84
84
85
- var INSTALLATION_SECTION_BASIC = [
85
+ var INSTALL_SEC_BASIC = [
86
86
'<section class="installation">' ,
87
87
'' ,
88
88
'## Installation' ,
@@ -94,7 +94,7 @@ var INSTALLATION_SECTION_BASIC = [
94
94
'</section>' ,
95
95
''
96
96
] . join ( '\n' ) ;
97
- var INSTALLATION_SECTION_BUNDLES = [
97
+ var INSTALL_SEC_BUNDLES = [
98
98
'<section class="installation">' ,
99
99
'' ,
100
100
'## Installation' ,
@@ -116,11 +116,11 @@ var INSTALLATION_SECTION_BUNDLES = [
116
116
'</section>' ,
117
117
''
118
118
] . join ( '\n' ) ;
119
- var INSTALLATION_SECTION_BUNDLES_CLI = [
119
+ var INSTALL_SEC_BUNDLES_CLI = [
120
120
'- To use as a general utility for the command line, install the corresponding [CLI package][cli-section] globally.' ,
121
121
''
122
122
] . join ( '\n' ) ;
123
- var CLI_INSTALLATION_SECTION = [
123
+ var CLI_INSTALL_SEC = [
124
124
'<section class="installation">' ,
125
125
'' ,
126
126
'## Installation' ,
@@ -339,8 +339,8 @@ var BASIC_GITHUB_TOPICS = [
339
339
'node-js'
340
340
] ;
341
341
var RE_ALLOWED_TOPIC_CHARS = / ^ [ A - Z 0 - 9 - ] + $ / i;
342
- var memoizedNPMversionForDeps = memoize ( npmVersion ) ;
343
- var memoizedNPMversionForDevDeps = memoize ( npmVersion ) ;
342
+ var memoizedNPMverForDeps = memoize ( npmVersion ) ;
343
+ var memoizedNPMverForDevDeps = memoize ( npmVersion ) ;
344
344
345
345
346
346
// FUNCTIONS //
@@ -404,7 +404,7 @@ function populateDeps( pkgJSON, deps, devDeps, mainJSON, useGitHub ) {
404
404
if ( useGitHub ) {
405
405
out . dependencies [ dep ] = 'github:stdlib-js/' + replace ( dep , '@stdlib/' , '' ) + '#main' ;
406
406
} else {
407
- out . dependencies [ dep ] = memoizedNPMversionForDeps ( dep ) ;
407
+ out . dependencies [ dep ] = memoizedNPMverForDeps ( dep ) ;
408
408
}
409
409
}
410
410
} else {
@@ -426,7 +426,8 @@ function populateDeps( pkgJSON, deps, devDeps, mainJSON, useGitHub ) {
426
426
if ( useGitHub ) {
427
427
out . devDependencies [ dep ] = 'github:stdlib-js/' + replace ( dep , '@stdlib/' , '' ) + '#main' ;
428
428
} else {
429
- out . devDependencies [ dep ] = memoizedNPMversionForDevDeps ( dep ) ;
429
+ out . devDependencies [ dep ] =
430
+ memoizedNPMverForDevDeps ( dep ) ;
430
431
}
431
432
}
432
433
} else {
@@ -840,7 +841,8 @@ function publish( pkg, clbk ) {
840
841
if ( contains ( readme , '<section class="links">' ) ) {
841
842
readme = replace ( readme , '<section class="links">' , mainRepoSection ( customLicense , branch , ! noBundles , extractCLI ) ) ;
842
843
} else {
843
- readme += mainRepoSection ( customLicense , branch , ! noBundles , extractCLI ) ;
844
+ readme +=
845
+ mainRepoSection ( customLicense , branch , ! noBundles , extractCLI ) ;
844
846
readme += '\n\n' ;
845
847
readme += '</section>' ;
846
848
readme += '\n\n' ;
@@ -1014,7 +1016,7 @@ function publish( pkg, clbk ) {
1014
1016
1015
1017
// Ensure `npm install` does not automatically build a native add-on...
1016
1018
if ( pkgJSON . gypfile ) {
1017
- // TODO : consider removing this once we have determined our native add-on story for individual packages
1019
+ // Note : consider removing this once we have determined our native add-on story for individual packages
1018
1020
pkgJSON . gypfile = false ;
1019
1021
}
1020
1022
pkgJSON . version = version ;
@@ -1075,7 +1077,7 @@ function publish( pkg, clbk ) {
1075
1077
// Replace `@stdlib/bench` with `@stdlib/bench-harness` in standalone packages:
1076
1078
command = 'find ' + dist + ' -type f -name \'*.js\' -print0 | xargs -0 sed -i "s/\'@stdlib\\/bench\'/\'@stdlib\\/bench-harness\'/g"' ;
1077
1079
shell ( command ) ;
1078
- pkgJSON . devDependencies [ '@stdlib/bench-harness' ] = memoizedNPMversionForDevDeps ( '@stdlib/bench-harness' ) ;
1080
+ pkgJSON . devDependencies [ '@stdlib/bench-harness' ] = memoizedNPMverForDevDeps ( '@stdlib/bench-harness' ) ;
1079
1081
delete pkgJSON . devDependencies [ '@stdlib/bench' ] ;
1080
1082
}
1081
1083
}
@@ -1104,7 +1106,7 @@ function publish( pkg, clbk ) {
1104
1106
1105
1107
// Add `@stdlib/error-tools-fmtprodmsg` in package.json if the package depends on `@stdlib/string-format`:
1106
1108
if ( pkgJSON . dependencies [ '@stdlib/string-format' ] ) {
1107
- fmtProdMsgVersion = memoizedNPMversionForDeps ( '@stdlib/error-tools-fmtprodmsg' ) ;
1109
+ fmtProdMsgVersion = memoizedNPMverForDeps ( '@stdlib/error-tools-fmtprodmsg' ) ;
1108
1110
pkgJSON . dependencies [ '@stdlib/error-tools-fmtprodmsg' ] = fmtProdMsgVersion ;
1109
1111
deps . push ( '@stdlib/error-tools-fmtprodmsg' ) ;
1110
1112
}
@@ -1319,17 +1321,17 @@ function publish( pkg, clbk ) {
1319
1321
1320
1322
if ( isString ( p1 ) ) {
1321
1323
if ( startsWith ( p1 , '## CLI' ) ) {
1322
- return p1 + CLI_INSTALLATION_SECTION + ( p2 || '\n<!-- CLI usage documentation. -->\n' ) + '\n<section class="usage">' ;
1324
+ return p1 + CLI_INSTALL_SEC + ( p2 || '\n<!-- CLI usage documentation. -->\n' ) + '\n<section class="usage">' ;
1323
1325
}
1324
1326
if ( startsWith ( p1 , '<!-- C usage documentation. -->' ) ) {
1325
1327
return p1 + '<section class="usage">' ;
1326
1328
}
1327
1329
}
1328
1330
if ( noBundles ) {
1329
- out = INSTALLATION_SECTION_BASIC ;
1331
+ out = INSTALL_SEC_BASIC ;
1330
1332
} else {
1331
- out = INSTALLATION_SECTION_BUNDLES ;
1332
- out = out . replace ( '<cli>' , ( extractCLI ) ? INSTALLATION_SECTION_BUNDLES_CLI : '' ) ;
1333
+ out = INSTALL_SEC_BUNDLES ;
1334
+ out = out . replace ( '<cli>' , ( extractCLI ) ? INSTALL_SEC_BUNDLES_CLI : '' ) ;
1333
1335
}
1334
1336
out += '\n<section class="usage">' ;
1335
1337
return out ;
0 commit comments