## Summary - removes the deleted taskStuck helper from dashboard package exports and local build/test aliases - removes the dependency-graph plugin TypeScript path for the deleted dashboard module - adds a script regression so the removed module cannot be reintroduced as a stale alias ## Test Plan - pnpm test:scripts -- scripts/__tests__/dashboard-stuck-task-removal.test.mjs - pnpm check:changesets - pnpm exec eslint scripts/__tests__/dashboard-stuck-task-removal.test.mjs packages/dashboard/vite.config.ts packages/dashboard/vitest.config.ts - pnpm --filter @fusion/dashboard typecheck - pnpm --filter @fusion-plugin-examples/dependency-graph build - pnpm --filter @fusion/dashboard build <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Removed stale stuck-task references from dashboard package and build configurations. * Prevented unavailable task-stuck utilities from being exposed or resolved. * **Tests** * Added validation to ensure removed task-stuck references do not reappear in dashboard or plugin configuration. * **Documentation** * Recorded the cleanup in the project’s release notes. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
22 lines
799 B
JavaScript
22 lines
799 B
JavaScript
import assert from "node:assert/strict";
|
|
import { readFileSync } from "node:fs";
|
|
import test from "node:test";
|
|
import { URL } from "node:url";
|
|
|
|
const staleModule = "@fusion/dashboard/app/utils/taskStuck";
|
|
const files = [
|
|
"packages/dashboard/package.json",
|
|
"packages/dashboard/vite.config.ts",
|
|
"packages/dashboard/vitest.config.ts",
|
|
"packages/dashboard/tsconfig.app.json",
|
|
"packages/dashboard/tsconfig.test-check.json",
|
|
"plugins/fusion-plugin-dependency-graph/tsconfig.json",
|
|
];
|
|
|
|
test("removed taskStuck module has no package, build, test, or plugin aliases", () => {
|
|
for (const file of files) {
|
|
const source = readFileSync(new URL(`../../${file}`, import.meta.url), "utf8");
|
|
assert.equal(source.includes(staleModule), false, `${file} still references ${staleModule}`);
|
|
}
|
|
});
|