File tree Expand file tree Collapse file tree 2 files changed +13
-6
lines changed
packages/cli/lib/commands Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' preact-cli ' : patch
3+ ---
4+
5+ Removes the archived & non-recommended 'material' template from 'preact list' output
Original file line number Diff line number Diff line change @@ -11,12 +11,14 @@ module.exports = async function () {
1111 process . stdout . write ( '\n' ) ;
1212 info ( 'Available official templates: \n' ) ;
1313
14- repos . map ( repo => {
15- const description = repo . description ? ` - ${ repo . description } ` : '' ;
16- process . stdout . write (
17- ` ⭐️ ${ bold ( magenta ( repo . name ) ) } ${ description } \n`
18- ) ;
19- } ) ;
14+ repos
15+ . filter ( repo => ! repo . archived )
16+ . forEach ( repo => {
17+ const description = repo . description ? ` - ${ repo . description } ` : '' ;
18+ process . stdout . write (
19+ ` ⭐️ ${ bold ( magenta ( repo . name ) ) } ${ description } \n`
20+ ) ;
21+ } ) ;
2022
2123 process . stdout . write ( '\n' ) ;
2224 } catch ( err ) {
You can’t perform that action at this time.
0 commit comments