Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Move schema.json from project root

Marcin Gębala4cc8e7c8ef28
diff --git a/package.json b/package.json
index 8927850771..3dda6e7d4c 100644
--- a/package.json
+++ b/package.json
@@ -83,7 +83,7 @@
},
"metadata": {
"graphql": {
- "schema": "./schema.json"
+ "schema": "./saleor/static/schema.json"
}
},
"scripts": {
diff --git a/saleor/settings.py b/saleor/settings.py
index 7ba5925d61..ad9bcfda31 100644
--- a/saleor/settings.py
+++ b/saleor/settings.py
@@ -362,8 +362,10 @@ else:
GRAPHENE = {
- 'SCHEMA': 'saleor.graphql.api.schema',
'MIDDLEWARE': [
'graphene_django.debug.DjangoDebugMiddleware'
- ]
+ ],
+ 'SCHEMA': 'saleor.graphql.api.schema',
+ 'SCHEMA_OUTPUT': os.path.join(
+ PROJECT_ROOT, 'saleor', 'static', 'schema.json')
}
diff --git a/schema.json b/saleor/static/schema.json
similarity index 100%
rename from schema.json
rename to saleor/static/schema.json