瀏覽代碼

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' );