1
0
mirror of synced 2025-11-08 12:57:47 +00:00

fix(CLI): always update the year in LICENSE

This commit is contained in:
Jason Dreyzehner
2018-03-20 21:06:39 -04:00
parent 369a3b46b6
commit 2ec3741182
2 changed files with 7 additions and 2 deletions

View File

@@ -446,7 +446,7 @@ test(`${
'test-5/.gitignore': '71f7e4ca0e9977a8815c0290c9ddbb1a',
'test-5/.npmignore': 'd32d96087924f360f31b0438bb69d17e',
'test-5/.prettierignore': '1da1ce4fdb868f0939608fafd38f9683',
'test-5/LICENSE': 'd11b4dba04062af8bd80b052066daf1c',
'test-5/LICENSE': '8786d80048d9c837477dc3b807aaf598',
'test-5/README.md': '8fc7ecb21d7d47289e4b2469eea4db39',
'test-5/package.json': '187446ae1d92fddaa89b859d3adc6527',
'test-5/src/index.ts': '5025093b4dc30524d349fd1cc465ed30',
@@ -492,7 +492,7 @@ test(`${TestDirectories.six}: Sandboxed: yarn, no initial commit`, async t => {
'test-6/.travis.yml': '8ba04203d5a1c6e0304fef52123a45fc',
'test-6/.vscode/launch.json': '17407a15e4276d088a9bbe9ae886fa65',
'test-6/.vscode/settings.json': '10c634c5fef6ecd298b6e41bf159f2cc',
'test-6/LICENSE': '1dfe8c78c6af40fc14ea3b40133f1fa5',
'test-6/LICENSE': '1f08fdd25d16c4ee8d5233b9cb7f6051',
'test-6/README.md': 'd809bcbf240f44b51b575a3d49936232',
'test-6/appveyor.yml': 'c889f967e607510860d754a031fdf93c',
'test-6/package.json': 'a7a94f6c500a05c90e475049103ba26e',

View File

@@ -123,6 +123,11 @@ export async function typescriptStarter(
from: 'Jason Dreyzehner',
to: fullName
});
await replace({
files: join(projectPath, 'LICENSE'),
from: '2017',
to: new Date().getUTCFullYear()
});
spinnerLicense.succeed();
const spinnerDelete = ora('Deleting unnecessary files').start();