From cee500b49d36286421a9e45a0cb3406f5d565ae2 Mon Sep 17 00:00:00 2001 From: Samuel Kopp <62482066+boywithkeyboard@users.noreply.github.com> Date: Wed, 27 Sep 2023 20:50:09 +0200 Subject: [PATCH] refactor: remove script to update license year --- .github/update_license_year.ts | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 .github/update_license_year.ts 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) -}