Przeglądaj źródła

Display relative paths in the table.

Kamil Piechaczek 5 lat temu
rodzic
commit
8affea2a25
1 zmienionych plików z 3 dodań i 1 usunięć
  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' );