Skip to content

Commit 2a852fd

Browse files
committed
build: globally set npm publish provenance
1 parent 2fc7ad7 commit 2a852fd

File tree

3 files changed

+4
-33
lines changed

3 files changed

+4
-33
lines changed

.npmrc

+3
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,6 @@ shrinkwrap = false
2626

2727
# Disable automatically "saving" dependencies on install:
2828
save = false
29+
30+
# Generate provenance metadata:
31+
provenance = true

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

+1-2
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ var CLI_INSTALLATION_SECTION = [
133133
].join( '\n' );
134134

135135
var mainDir = join( __dirname, '..', '..', '..', '..', '..' );
136-
var DOTFILES = [ '.editorconfig', '.gitignore', '.gitattributes', 'CONTRIBUTORS', 'NOTICE', 'CITATION.cff' ];
136+
var DOTFILES = [ '.editorconfig', '.gitignore', '.gitattributes', '.npmrc', 'CONTRIBUTORS', 'NOTICE', 'CITATION.cff' ];
137137

138138
var WORKFLOW_CLOSE_PULLS = [
139139
'#/',
@@ -740,7 +740,6 @@ function publish( pkg, clbk ) {
740740
customLicense = false;
741741
}
742742
fs.copyFileSync( join( __dirname, 'templates', '.npmignore.txt' ), join( dist, '.npmignore' ) );
743-
fs.copyFileSync( join( __dirname, 'templates', '.npmrc.txt' ), join( dist, '.npmrc' ) );
744743
fs.copyFileSync( join( __dirname, 'templates', 'Makefile.txt' ), join( dist, 'Makefile' ) );
745744
fs.copyFileSync( join( __dirname, 'templates', '.eslintrc.js.txt' ), join( dist, '.eslintrc.js' ) );
746745
writeFileSync( join( dist, 'CHANGELOG.md' ), replace( CHANGELOG, '<pkg>', distPkg ) );

lib/node_modules/@stdlib/_tools/scripts/templates/.npmrc.txt

-31
This file was deleted.

0 commit comments

Comments
 (0)