Skip to content

Commit

Permalink
fix: packageJsonStruct to allow repository.directory (#2754)
Browse files Browse the repository at this point in the history
When releasing a package from a monorepo the `repository.directory` is
used to identify which package is been released. This is used for the
Github build provenance.

---------

Co-authored-by: Maarten Zuidhoorn <maarten@zuidhoorn.com>
  • Loading branch information
alber70g and Mrtenz authored Sep 26, 2024
1 parent 73d00a0 commit 7d15013
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/snaps-utils/src/manifest/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ export const SnapManifestStruct = object({
description: size(string(), 1, 280),
proposedName: size(string(), 1, 214),
repository: optional(
object({
type({
type: size(string(), 1, Infinity),
url: size(string(), 1, Infinity),
}),
Expand Down
3 changes: 1 addition & 2 deletions packages/snaps-utils/src/types.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import {
instance,
is,
object,
optional,
pattern,
refine,
Expand Down Expand Up @@ -42,7 +41,7 @@ export const NpmSnapPackageJsonStruct = type({
name: NameStruct,
main: optional(size(string(), 1, Infinity)),
repository: optional(
object({
type({
type: size(string(), 1, Infinity),
url: size(string(), 1, Infinity),
}),
Expand Down

0 comments on commit 7d15013

Please sign in to comment.