Skip to content

Commit

Permalink
build: resolve lint errors and use dist path
Browse files Browse the repository at this point in the history
  • Loading branch information
Planeshifter committed Oct 5, 2023
1 parent 3678a44 commit 0eba837
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions lib/node_modules/@stdlib/_tools/scripts/publish_packages.js
Original file line number Diff line number Diff line change
Expand Up @@ -1103,9 +1103,12 @@ function publish( pkg, clbk ) {
shell( command, opts );
try {
shell( 'grep -rq proxyquire test/test.js', opts );

// Case: `proxyquire` usage in test file so we copy a boilerplate test file:
fs.copyFileSync( join( __dirname, 'templates', 'test_dist_test.js.txt' ), join( dist, 'test', 'dist', 'test.js' ) );
} catch ( error ) {
debug( 'Error: %s', error.message );

// Case: no `proxyquire` usage in test file so we can reuse the original test file:
command = 'cp test/test.js test/dist';
shell( command, opts );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// MODULES //

var tape = require( 'tape' );
var main = require( './../lib' );
var main = require( './../../dist' );


// TESTS //
Expand Down

0 comments on commit 0eba837

Please sign in to comment.