fix(turbo): hash local env inputs

This commit is contained in:
vince 2026-06-20 07:48:54 +02:00
parent 3ff41e771b
commit 24e7e8eda0
2 changed files with 17 additions and 0 deletions

View file

@ -74,6 +74,21 @@ describe("workspace boundaries", () => {
);
});
test("accounts for local env files in cacheable Vite and Storybook task hashes", () => {
const turboConfig = JSON.parse(
readFileSync(join(root, "turbo.json"), "utf8"),
) as {
tasks?: Record<string, { inputs?: string[] }>;
};
for (const taskName of ["build", "build-storybook"]) {
expect(turboConfig.tasks?.[taskName]?.inputs).toEqual([
"$TURBO_DEFAULT$",
".env*",
]);
}
});
test("keeps the website app and reusable UI library as separate packages", () => {
const webPackage = JSON.parse(
readFileSync(join(root, "apps/web/package.json"), "utf8"),