Skip to content

Commit 7be29ae

Browse files
committed
refactor(deps): remove circular @socketsecurity/registry dependency
Remove @socketsecurity/registry as a devDependency since the project produces this package. Replace imported types with local type definitions in templates.d.mts to eliminate circular dependency.
1 parent b0b2c41 commit 7be29ae

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@
6262
"@socketregistry/packageurl-js": "1.3.1",
6363
"@socketregistry/scripts": "file:scripts",
6464
"@socketsecurity/lib": "2.0.0",
65-
"@socketsecurity/registry": "2.0.0",
6665
"@types/fs-extra": "11.0.4",
6766
"@types/node": "24.5.2",
6867
"@types/normalize-package-data": "2.4.4",

pnpm-lock.yaml

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/utils/templates.d.mts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,21 @@ import { Content as NPMCliPackageJson } from '@npmcli/package-json'
55
import { SemVer } from 'semver'
66

77
import { PackageURL } from '@socketregistry/packageurl-js'
8-
import { CategoryString, ManifestEntryData } from '@socketsecurity/registry'
98
import { Remap } from '@socketsecurity/lib/objects'
109

10+
declare type CategoryString = 'cleanup' | 'levelup' | 'speedup' | 'tuneup'
11+
declare type InteropString = 'browserify' | 'cjs' | 'esm'
12+
declare type ManifestEntryData = {
13+
categories?: CategoryString[] | undefined
14+
deprecated?: boolean | undefined
15+
engines?: Record<string, string> | undefined
16+
interop?: InteropString[] | undefined
17+
license?: string | undefined
18+
name: string
19+
package: string
20+
version: string
21+
[key: string]: unknown
22+
}
1123
declare type Action =
1224
| LicenseAction
1325
| NpmReadmeAction

0 commit comments

Comments
 (0)