Skip to content

Commit

Permalink
add icon extension property to package_json
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanatkn committed Nov 1, 2023
1 parent eb3ff9b commit d6c22f4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/wet-brooms-mix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@grogarden/gro': patch
---

add `icon` extension property to `package_json`
2 changes: 2 additions & 0 deletions src/lib/package_json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,14 @@ export const Package_Json = z.intersection(
name: z.string(),
version: z.string(),

// Gro extensions
public: z
.boolean({
description:
'a Gro extension that enables publishing `.well-known/package.json` and `.well-known/src`',
})
.optional(),
icon: z.string({description: 'a Gro extension'}).optional(), // TODO maybe base64 favicon?

private: z.boolean({description: 'disallow npm publish'}).optional(),

Expand Down

0 comments on commit d6c22f4

Please sign in to comment.