Skip to content

Commit f3fb6a3

Browse files
committed
refactor(lint): remove dead files and consolidate schema cluster from smell audit
- Delete 10 dead files left over from earlier fusion-lint split/rename commits, confirmed to have zero importers and no package.json export references: - cli-plugins/ai-index/src/bin/create-file-stream.ts (superseded by diverged, actively-used createFileStream$ in embed.ts) - cli/src/lib/app/{assert-package,resolve-app-package,resolve-entry-point}.ts - cli/src/lib/utils/{assert-file-exists,assert-git-repository,assert-number,assert-object-entries,fetch-multiple-package-info}.ts - react/router/src/routes/route-factories.ts - Consolidate cli/src/bin/helpers/template-*-schema.ts (5 tiny mutually-referencing zod schema files) into template.schemas.ts Verified via fusion-lint (0 warnings, 1203 files), tsc -b --force (cli, cli-plugin-ai-index, react-router), and vitest (19/19 passed).
1 parent ddae808 commit f3fb6a3

21 files changed

Lines changed: 80 additions & 425 deletions
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@equinor/fusion-framework-cli-plugin-ai-index": patch
3+
---
4+
5+
Internal: Remove dead `src/bin/create-file-stream.ts` left over from the fusion-lint file-splitting cleanup. Its `createFileStream` export had zero importers and was superseded by the actively-used, diverged local `createFileStream$` in `embed.ts`. No change to CLI behavior.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@equinor/fusion-framework-cli": patch
3+
---
4+
5+
Internal: Remove dead code left over from the fusion-lint file-splitting cleanup — `src/lib/app/assert-package.ts`, `resolve-app-package.ts`, `resolve-entry-point.ts`, and `src/lib/utils/assert-file-exists.ts`, `assert-git-repository.ts`, `assert-number.ts`, `assert-object-entries.ts`, `fetch-multiple-package-info.ts` had zero importers and were not exported from any package entry point. Also consolidate the `src/bin/helpers/template-*-schema.ts` cluster (5 tiny mutually-referencing zod schema files) into a single `template.schemas.ts`. No change to the public API or CLI behavior.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@equinor/fusion-framework-react-router": patch
3+
---
4+
5+
Internal: Remove dead `src/routes/route-factories.ts` barrel file left over from the fusion-lint filename-convention cleanup. It had zero importers and was never wired into the package's public entry point. No change to the public API.

packages/cli-plugins/ai-index/src/bin/create-file-stream.ts

Lines changed: 0 additions & 43 deletions
This file was deleted.

packages/cli/src/bin/helpers/ProjectTemplate.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import type { ConsoleLogger } from '@equinor/fusion-framework-cli/bin';
2-
import type { TemplateResource } from './template-resource-schema.js';
3-
import type { TemplateItem } from './template-item-schema.js';
2+
import type { TemplateResource, TemplateItem } from './template.schemas.js';
43
import { copyFileSync, cpSync, existsSync } from 'node:fs';
54
import { join } from 'node:path';
65

packages/cli/src/bin/helpers/parse-templates-manifest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { z } from 'zod';
2-
import { TemplatesManifestSchema, type TemplatesManifest } from './templates-manifest-schema.js';
2+
import { TemplatesManifestSchema, type TemplatesManifest } from './template.schemas.js';
33

44
/**
55
* Validates and parses a template manifest JSON string.

packages/cli/src/bin/helpers/template-item-schema.ts

Lines changed: 0 additions & 14 deletions
This file was deleted.

packages/cli/src/bin/helpers/template-resource-dir-schema.ts

Lines changed: 0 additions & 14 deletions
This file was deleted.

packages/cli/src/bin/helpers/template-resource-file-schema.ts

Lines changed: 0 additions & 16 deletions
This file was deleted.

packages/cli/src/bin/helpers/template-resource-schema.ts

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)