Browse Source

Display relative paths in the table.

Kamil Piechaczek 5 năm trước cách đây
mục cha
commit
8affea2a25
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  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' );