Skip to content

Commit

Permalink
use the same year format in the copyright everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Jan 4, 2022
1 parent 6c6340f commit 328f48a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/core-js-builder/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = {
' * core-js ' + version + '\n' +
' * https://github.com/zloirock/core-js\n' +
' * License: http://rock.mit-license.org\n' +
' * © ' + new Date().getFullYear() + ' Denis Pushkarev (zloirock.ru)\n' +
' * © 2014-2022 Denis Pushkarev (zloirock.ru)\n' +
' */',
/* eslint-enable prefer-template -- for better formatting */
};
2 changes: 1 addition & 1 deletion packages/core-js/internals/shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ var store = require('../internals/shared-store');
})('versions', []).push({
version: '3.20.2',
mode: IS_PURE ? 'pure' : 'global',
copyright: '© 2022 Denis Pushkarev (zloirock.ru)'
copyright: 2014-2022 Denis Pushkarev (zloirock.ru)'
});
4 changes: 4 additions & 0 deletions scripts/update-version.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const README_COMPAT = 'packages/core-js-compat/README.md';
const README_DENO = 'deno/corejs/README.md';
const LERNA = 'lerna.json';
const SHARED = 'packages/core-js/internals/shared.js';
const BUILDER_CONFIG = 'packages/core-js-builder/config.js';
const CURRENT_YEAR = now.getFullYear();

const license = await readFile(LICENSE, 'utf8');
Expand All @@ -33,6 +34,9 @@ await writeFile(README_DENO, readmeDeno.replaceAll(PREV_VERSION, NEW_VERSION));
const shared = await readFile(SHARED, 'utf8');
await writeFile(SHARED, shared.replaceAll(PREV_VERSION, NEW_VERSION).replaceAll(OLD_YEAR, CURRENT_YEAR));

const builderConfig = await readFile(BUILDER_CONFIG, 'utf8');
await writeFile(BUILDER_CONFIG, builderConfig.replaceAll(OLD_YEAR, CURRENT_YEAR));

const packages = await readdir('packages');
for (const PATH of await globby('packages/*/package.json')) {
const pkg = await readJson(PATH, 'utf8');
Expand Down

0 comments on commit 328f48a

Please sign in to comment.