Skip to content

Commit

Permalink
refactor: use PackageJson schema from zod-package-json
Browse files Browse the repository at this point in the history
  • Loading branch information
velut committed Apr 12, 2024
1 parent 18cb6cd commit 4b4d622
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 94 deletions.
Binary file modified bun.lockb
Binary file not shown.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@
"tiny-lru": "^11.0.1",
"url-join": "4.0.1",
"validate-npm-package-name": "^5.0.0",
"zod": "^3.22.4"
"zod": "^3.22.4",
"zod-package-json": "^1.0.0"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.15.3",
Expand Down
18 changes: 0 additions & 18 deletions src/bugs.ts

This file was deleted.

32 changes: 0 additions & 32 deletions src/funding.ts

This file was deleted.

5 changes: 1 addition & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ TODO:
@packageDocumentation
*/

export { bugsSchema, type Bugs } from "./bugs";
export { PackageJson } from "zod-package-json";
export { distSchema, type Dist } from "./dist";
export { distTagsSchema, type DistTags } from "./dist-tags";
export { fundingSchema, type Funding } from "./funding";
export {
getRegistryMetadata,
registryMetadataSchema,
Expand All @@ -19,5 +18,3 @@ export {
} from "./get-registry-signing-keys";
export { npmRegistryDownloadsApiUrl, npmRegistryUrl } from "./npm-registry";
export { packageManifestSchema, type PackageManifest } from "./package-manifest";
export { personSchema, type Person } from "./person";
export { repositorySchema, type Repository } from "./repository";
17 changes: 0 additions & 17 deletions src/person.ts

This file was deleted.

22 changes: 0 additions & 22 deletions src/repository.ts

This file was deleted.

0 comments on commit 4b4d622

Please sign in to comment.