Skip to content
Open
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 @@ -23,6 +23,7 @@
var path = require( 'path' );
var logger = require( 'debug' );
var mkdirp = require( 'mkdirp' );
var dirname = require( '@stdlib/utils/dirname' );
var objectKeys = require( '@stdlib/utils/keys' );
var writeFile = require( '@stdlib/fs/write-file' );

Expand All @@ -30,7 +31,7 @@
// VARIABLES //

var debug = logger( 'readme-fragment-file-tree:write' );
var BASENAME = 'index.html'; // TODO: consider making this an option (i.e., configurable)

Check warning on line 34 in lib/node_modules/@stdlib/_tools/docs/www/readme-fragment-file-tree/lib/write.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Unexpected 'todo' comment: 'TODO: consider making this an option...'


// MAIN //
Expand Down Expand Up @@ -72,7 +73,7 @@
i += 1;

file = files[ i ];
dpath = path.dirname( file.substring( src.length+1 ) ); // +1 to account for path separator
dpath = dirname( file.substring( src.length+1 ) ); // +1 to account for path separator
dpath = path.join( dest, dpath );

debug( 'Creating output directory: %s', dpath );
Expand Down