소스 검색

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