Skip to content

Commit

Permalink
fix(license): replace placeholders
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfbecker committed Aug 4, 2018
1 parent 42c3e32 commit f8573e8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,10 @@ async function main(): Promise<void> {
if (licenseName !== 'UNLICENSED') {
console.log('📄 Adding LICENSE')
const license = (await githubClient.get(`licenses/${licenseName}`)).body
await writeFile('LICENSE', license.body)
const licenseText = license.body
.replace(/\[year\]/g, new Date().getFullYear())
.replace(/\[fullname\]/g, 'Sourcegraph')
await writeFile('LICENSE', licenseText)
}

const { hasTests } = await prompt<{ hasTests: boolean }>({
Expand Down

0 comments on commit f8573e8

Please sign in to comment.