@@ -15,12 +15,7 @@ import path from 'path'
1515import { readFile , writeFile } from '../util/files'
1616import { errorToUndefined } from '../util/errorToUndefined'
1717import { PackageJson } from '../actions/verify/types'
18- import {
19- developTestSnippet ,
20- getLicenseText ,
21- installationSnippet ,
22- v3BannerNotice ,
23- } from '../util/readme'
18+ import { developTestSnippet , getLicenseText , installationSnippet } from '../util/readme'
2419import { getUserInfo } from '../util/user'
2520
2621export const semverWorkflowPreset : Preset = {
@@ -78,10 +73,9 @@ async function updateReadme(options: InjectOptions) {
7873 const readmePath = path . join ( basePath , 'README.md' )
7974 const readme = ( await readFile ( readmePath , 'utf8' ) . catch ( errorToUndefined ) ) ?? ''
8075
81- const { v3Banner, install, usage, developTest, license, releaseSnippet} =
82- await readmeSnippets ( options )
76+ const { install, usage, developTest, license, releaseSnippet} = await readmeSnippets ( options )
8377
84- const prependSections = missingSections ( readme , [ v3Banner , install , usage ] )
78+ const prependSections = missingSections ( readme , [ install , usage ] )
8579 const appendSections = missingSections ( readme , [ license , developTest , releaseSnippet ] )
8680
8781 if ( prependSections . length || appendSections . length ) {
@@ -117,7 +111,6 @@ async function readmeSnippets(options: InjectOptions) {
117111 `
118112
119113 return {
120- v3Banner : v3BannerNotice ( ) ,
121114 install,
122115 usage,
123116 license,
0 commit comments