@dicebear/schema 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -67,8 +67,8 @@ import optionsSchema from '@dicebear/schema/options.json' assert { type: 'json'
67
67
  **PHP**
68
68
 
69
69
  ```php
70
- $definition = json_decode(file_get_contents(__DIR__ . '/vendor/dicebear/schema/definition.json'), true);
71
- $options = json_decode(file_get_contents(__DIR__ . '/vendor/dicebear/schema/options.json'), true);
70
+ $definition = json_decode(file_get_contents(__DIR__ . '/vendor/dicebear/schema/src/definition.json'), true);
71
+ $options = json_decode(file_get_contents(__DIR__ . '/vendor/dicebear/schema/src/options.json'), true);
72
72
  ```
73
73
 
74
74
  ## Development
@@ -103,3 +103,15 @@ git push origin main --follow-tags
103
103
  **Packagist**
104
104
 
105
105
  Once the repository is linked on [packagist.org](https://packagist.org), new releases are picked up automatically from the same Git tags — no separate step needed.
106
+
107
+ ## Sponsors
108
+
109
+ Advertisement: Many thanks to our sponsors who provide us with free or discounted products.
110
+
111
+ <a href="https://bunny.net/" target="_blank" rel="noopener noreferrer">
112
+ <picture>
113
+ <source media="(prefers-color-scheme: dark)" srcset="https://www.dicebear.com/sponsors/bunny-light.svg">
114
+ <source media="(prefers-color-scheme: light)" srcset="https://www.dicebear.com/sponsors/bunny-dark.svg">
115
+ <img alt="bunny.net" src="https://www.dicebear.com/sponsors/bunny-dark.svg" height="64">
116
+ </picture>
117
+ </a>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dicebear/schema",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "JSON Schema definitions for DiceBear avatar styles and options",
5
5
  "keywords": [
6
6
  "dicebear",
@@ -16,15 +16,25 @@
16
16
  "url": "git+https://github.com/dicebear/schema.git"
17
17
  },
18
18
  "license": "MIT",
19
+ "type": "module",
19
20
  "exports": {
20
- "./definition.json": "./definition.json",
21
- "./options.json": "./options.json"
21
+ "./definition.json": {
22
+ "types": "./dist/definition.min.json",
23
+ "default": "./dist/definition.min.json"
24
+ },
25
+ "./options.json": {
26
+ "types": "./dist/options.min.json",
27
+ "default": "./dist/options.min.json"
28
+ }
22
29
  },
23
30
  "files": [
24
- "definition.json",
25
- "options.json"
31
+ "LICENSE",
32
+ "dist/",
33
+ "src/",
34
+ "README.md"
26
35
  ],
27
36
  "scripts": {
37
+ "build": "bash scripts/build.sh",
28
38
  "format": "prettier --write .",
29
39
  "format:check": "prettier --check .",
30
40
  "test": "node --test tests/**/*.test.js"
@@ -1,5 +1,4 @@
1
1
  {
2
- "$id": "https://static.dicebear.com/schema/v1/definition.json",
3
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
4
3
  "$defs": {
5
4
  "identifier": {
@@ -1,5 +1,4 @@
1
1
  {
2
- "$id": "https://static.dicebear.com/schema/v1/options.json",
3
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
4
3
  "title": "DiceBear options schema",
5
4
  "type": "object",