Skip to content

Commit

Permalink
allows strings for package.json repository (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-smart authored Feb 20, 2024
1 parent 7cf7fde commit 84fc99d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/brave-eagles-shop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@effect/build-utils": patch
---

allows strings for package.json repository
11 changes: 7 additions & 4 deletions src/PackageContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,13 @@ export class PackageJson extends Schema.Class<PackageJson>()({
})),
license: Schema.string,
author: Schema.optional(Schema.string),
repository: Schema.struct({
type: Schema.string,
url: Schema.string,
}),
repository: Schema.union(
Schema.string,
Schema.struct({
type: Schema.string,
url: Schema.string,
}),
),
dependencies: Schema.optional(Schema.record(Schema.string, Schema.string)),
peerDependencies: Schema.optional(
Schema.record(Schema.string, Schema.string),
Expand Down

0 comments on commit 84fc99d

Please sign in to comment.