Преглед на файлове

Display relative paths in the table.

Kamil Piechaczek преди 5 години
родител
ревизия
8affea2a25
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3 1
      scripts/docs/build-content-styles.js

+ 3 - 1
scripts/docs/build-content-styles.js

@@ -614,7 +614,9 @@ function displayNewPluginsTable( newPlugins ) {
 	} );
 
 	for ( const data of newPlugins ) {
-		table.push( [ data.pluginName, data.modulePath ] );
+		const modulePath = normalizePath( data.modulePath.replace( cwd + path.sep, '' ) );
+
+		table.push( [ data.pluginName, modulePath ] );
 	}
 
 	console.log( table.toString() + '\n' );