합치며 고친 것: 두 브랜치가 따로는 맞고 합치면 어긋나는 곳 둘. - 1105/12-04(실행 격리 브랜치)는 `vite.config.ts`가 `scripts/lib/run-isolation.ts`를 가져오게 해, 저장소를 임시 루트에 복사해 빌드하는 두 목록(`scripts/scale/measure-feature-shape-growth.ts`, `tests/unit/product-feature-selection-build.test.ts`)에 그 파일을 더했다. 1105/15-03(이 브랜치)은 두 목록을 `scripts/lib/vite-build-inputs.ts` 하나로 옮겼다. 두 파일의 충돌은 15-03 쪽으로 풀고, 옮긴 목록에 `scripts/lib/run-isolation.ts`를 더한다. 더하지 않으면 `tests/unit/vite-build-inputs.test.ts`가 그 파일 이름을 대며 실패하고, 임시 루트 빌드 두 곳이 "Could not resolve './scripts/lib/run-isolation.ts'"로 실패한다. - `scripts/lib/removal-fixture.ts`의 문서 테스트 목록에 03-01(HTTP 판정 브랜치)과 16-01(이 브랜치)이 각자 한 줄씩 더했다. 두 줄을 모두 둔다. 검증: desktop batch에서 확인. node scripts/run-vitest.ts run tests/unit/vite-build-inputs.test.ts tests/unit/feature-shape-growth.test.ts tests/unit/product-feature-selection-build.test.ts Refs: 1105/12-04, 1105/15-03, 1105/03-01, 1105/16-01
22 lines
873 B
TypeScript
22 lines
873 B
TypeScript
/**
|
|
* 1105/15-03. The files `vite build` reads from the repository root, for the
|
|
* measurements and tests that copy them into a temporary root and build
|
|
* there: scripts/scale/measure-feature-shape-growth.ts (initial JavaScript
|
|
* record) and tests/unit/product-feature-selection-build.test.ts
|
|
* (`VITE_PRODUCT_FEATURES=none`). Each used to keep its own copy of this list;
|
|
* a new local import in vite.config.ts broke both, and both had to be edited
|
|
* (7f9a515, 799ab7f). tests/unit/vite-build-inputs.test.ts fails, naming the
|
|
* file, when vite.config.ts imports a local file this list does not cover.
|
|
*/
|
|
export const VITE_BUILD_INPUTS = Object.freeze([
|
|
"src",
|
|
"public",
|
|
"index.html",
|
|
"package.json",
|
|
"vite.config.ts",
|
|
"tsconfig.base.json",
|
|
"tsconfig.app.json",
|
|
"scripts/lib/run-isolation.ts",
|
|
"scripts/lib/vite-module-inventory.ts",
|
|
] as const);
|