diff --git a/.changeset/brave-eagles-shop.md b/.changeset/brave-eagles-shop.md new file mode 100644 index 0000000..25f9b02 --- /dev/null +++ b/.changeset/brave-eagles-shop.md @@ -0,0 +1,5 @@ +--- +"@effect/build-utils": patch +--- + +allows strings for package.json repository diff --git a/src/PackageContext.ts b/src/PackageContext.ts index 5de46e2..bf9bbb7 100644 --- a/src/PackageContext.ts +++ b/src/PackageContext.ts @@ -52,10 +52,13 @@ export class PackageJson extends Schema.Class()({ })), 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),