Skip to content

Commit 88054e4

Browse files
committed
chore: cleanup and maintenance
- Remove .node-version file and add to .gitignore - Update .gitignore patterns for docs/archive and .claude directories - Minor registry source code improvements - Remove orphaned type definition files
1 parent f1828a5 commit 88054e4

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Desktop.ini
77
$RECYCLE.BIN/
88

99
# Scratch and temp files
10-
/.claude
10+
**/.claude/
1111
Do
1212
DOING
1313
TODO
@@ -16,6 +16,7 @@ SCRATCH
1616
WIP
1717
*.local
1818
.local.*
19+
.node-version
1920

2021
# Environment files
2122
/.env
@@ -76,3 +77,6 @@ test/**/.tmp-*
7677

7778
# Generated files
7879
CHANGELOG.md
80+
81+
# Archive directories
82+
**/docs/archive/

.node-version

Lines changed: 0 additions & 1 deletion
This file was deleted.

registry/src/index.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,14 @@ export function getManifestData(
2020
packageName?: string,
2121
): Manifest | ManifestEntry[] | ManifestEntryData | ManifestEntry | undefined {
2222
try {
23-
const manifestData = require('../manifest.json')
23+
const manifestData = require('../manifest.json') as Manifest
2424

2525
if (!ecosystem) {
2626
return manifestData
2727
}
2828

29-
const ecoData = manifestData[ecosystem]
29+
const ecoData: ManifestEntry[] | undefined =
30+
manifestData[ecosystem as keyof Manifest]
3031
if (!ecoData) {
3132
return undefined
3233
}
@@ -36,7 +37,7 @@ export function getManifestData(
3637
}
3738

3839
// ecoData is an array of [purl, data] entries
39-
const entry = ecoData.find(
40+
const entry: ManifestEntry | undefined = ecoData.find(
4041
([_purl, data]: ManifestEntry) => data.package === packageName,
4142
)
4243
return entry ? entry[1] : undefined

0 commit comments

Comments
 (0)