diff --git a/.github/update_license_year.ts b/.github/update_license_year.ts deleted file mode 100644 index 38a84d9..0000000 --- a/.github/update_license_year.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { walk } from 'https://deno.land/std@0.201.0/fs/walk.ts' - -for await (const entry of walk(Deno.cwd(), { exts: ['ts', 'tsx'] })) { - if (!entry.isFile) { - continue - } - - let content = await Deno.readTextFile(entry.path) - - content = content.replace( - `// Copyright ${ - new Date().getFullYear() - 1 - } Samuel Kopp. All rights reserved. Apache-2.0 license.`, - `// Copyright ${ - new Date().getFullYear() - } Samuel Kopp. All rights reserved. Apache-2.0 license.`, - ) - - await Deno.writeTextFile(entry.path, content) -}