From e83aa892b4619ee0662e236125bf8daf5bb2615d Mon Sep 17 00:00:00 2001 From: vorotamoroz Date: Mon, 26 Oct 2026 15:46:55 +0000 Subject: [PATCH] Move Vite build-file copying into scripts Keep the Node.js build helper and its tests in the build-script directory recognised by Community review. Update the Vite import and unit CI path filters while preserving the copy behaviour and release artefacts. --- .github/workflows/unit-ci.yml | 2 ++ {utils => scripts}/copy-build-files.ts | 0 {utils => scripts}/copy-build-files.unit.spec.ts | 0 vite.config.ts | 2 +- 4 files changed, 3 insertions(+), 1 deletion(-) rename {utils => scripts}/copy-build-files.ts (100%) rename {utils => scripts}/copy-build-files.unit.spec.ts (100%) diff --git a/.github/workflows/unit-ci.yml b/.github/workflows/unit-ci.yml index 9df08f2d..80147fd4 100644 --- a/.github/workflows/unit-ci.yml +++ b/.github/workflows/unit-ci.yml @@ -13,6 +13,7 @@ on: - 'src/**' - 'test/**' - '_tools/**' + - 'scripts/**' - 'package.json' - 'package-lock.json' - 'tsconfig.json' @@ -51,6 +52,7 @@ on: - 'src/**' - 'test/**' - '_tools/**' + - 'scripts/**' - 'package.json' - 'package-lock.json' - 'tsconfig.json' diff --git a/utils/copy-build-files.ts b/scripts/copy-build-files.ts similarity index 100% rename from utils/copy-build-files.ts rename to scripts/copy-build-files.ts diff --git a/utils/copy-build-files.unit.spec.ts b/scripts/copy-build-files.unit.spec.ts similarity index 100% rename from utils/copy-build-files.unit.spec.ts rename to scripts/copy-build-files.unit.spec.ts diff --git a/vite.config.ts b/vite.config.ts index e4195f74..bb55bdd0 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -6,7 +6,7 @@ import path from "path"; import { fileURLToPath } from "node:url"; import fs from "node:fs"; import { platform } from "node:process"; -import { copyBuildFiles } from "./utils/copy-build-files"; +import { copyBuildFiles } from "./scripts/copy-build-files"; const __dirname = path.dirname(fileURLToPath(import.meta.url)); function readJson(filePath: string) {