@things-factory/shell 6.0.21 → 6.0.25

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/shell",
3
- "version": "6.0.21",
3
+ "version": "6.0.25",
4
4
  "description": "Core module for framework",
5
5
  "bin": {
6
6
  "things-factory": "bin/things-factory",
@@ -31,8 +31,14 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "@apollo/client": "^3.6.9",
34
+ "@apollo/federation": "^0.38.1",
35
+ "@apollo/gateway": "^2.4.0",
34
36
  "@apollo/server": "^4.5.0",
37
+ "@apollo/subgraph": "^2.4.0",
35
38
  "@as-integrations/koa": "^0.3.0",
39
+ "@graphql-codegen/cli": "^3.2.2",
40
+ "@graphql-codegen/typescript": "^3.0.2",
41
+ "@graphql-codegen/typescript-resolvers": "^3.1.1",
36
42
  "@graphql-tools/merge": "^8.3.0",
37
43
  "@graphql-tools/schema": "^8.5.0",
38
44
  "@graphql-tools/utils": "^8.8.0",
@@ -115,7 +121,7 @@
115
121
  "sass": "^1.50.1",
116
122
  "scrollbooster": "^3.0.2",
117
123
  "sweetalert2": "^10.9.0",
118
- "type-graphql": "npm:type-graphql-v2-fork@2.0.0-alpha2",
124
+ "type-graphql": "^2.0.0-beta.1",
119
125
  "typeorm": "^0.3.9",
120
126
  "uuid": "^3.4.0",
121
127
  "web-animations-js": "^2.3.2",
@@ -131,5 +137,5 @@
131
137
  "pg": "^8.7.3",
132
138
  "sqlite3": "^5.0.8"
133
139
  },
134
- "gitHead": "074a4f460d08fed4bc7e9882aa57f4c120cf0f11"
140
+ "gitHead": "8a987a42de944dc915b8cfddb047eb7bc0d4ba41"
135
141
  }
package/server/schema.ts CHANGED
@@ -6,6 +6,8 @@ import { mergeSchemas } from '@graphql-tools/schema'
6
6
  import { loader, orderedModuleNames } from '@things-factory/env'
7
7
  import { deepMerge } from '@things-factory/utils'
8
8
 
9
+ const path = require('path')
10
+
9
11
  export async function schema() {
10
12
  const schemas = orderedModuleNames
11
13
  .map(dep => loader(dep).schema)
@@ -142,7 +144,12 @@ export async function schema() {
142
144
  schemas: [
143
145
  await buildSchema({
144
146
  resolvers: schemas.resolverClasses,
145
- dateScalarMode: 'timestamp'
147
+ dateScalarMode: 'timestamp',
148
+ // automatically create `schema.gql` file with schema definition
149
+ // in project's working directory
150
+ // or create the file with schema in selected path
151
+ emitSchemaFile: process.env.NODE_ENV == 'development'
152
+ // emitSchemaFile: path.resolve(__dirname, 'snapshots/schema', 'schema.gql')
146
153
  })
147
154
  ],
148
155
  typeDefs,