@things-factory/shell 6.0.19 → 6.0.24

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.19",
3
+ "version": "6.0.24",
4
4
  "description": "Core module for framework",
5
5
  "bin": {
6
6
  "things-factory": "bin/things-factory",
@@ -33,6 +33,9 @@
33
33
  "@apollo/client": "^3.6.9",
34
34
  "@apollo/server": "^4.5.0",
35
35
  "@as-integrations/koa": "^0.3.0",
36
+ "@graphql-codegen/cli": "^3.2.2",
37
+ "@graphql-codegen/typescript": "^3.0.2",
38
+ "@graphql-codegen/typescript-resolvers": "^3.1.1",
36
39
  "@graphql-tools/merge": "^8.3.0",
37
40
  "@graphql-tools/schema": "^8.5.0",
38
41
  "@graphql-tools/utils": "^8.8.0",
@@ -106,6 +109,8 @@
106
109
  "pluralize": "^8.0.0",
107
110
  "promises-all": "^1.0.0",
108
111
  "pwa-helpers": "^0.9.1",
112
+ "react": "^18.2.0",
113
+ "react-dom": "^18.2.0",
109
114
  "redux": "^4.0.0",
110
115
  "redux-thunk": "^2.3.0",
111
116
  "regenerator-runtime": "^0.13.2",
@@ -113,7 +118,7 @@
113
118
  "sass": "^1.50.1",
114
119
  "scrollbooster": "^3.0.2",
115
120
  "sweetalert2": "^10.9.0",
116
- "type-graphql": "npm:type-graphql-v2-fork@2.0.0-alpha2",
121
+ "type-graphql": "^2.0.0-beta.1",
117
122
  "typeorm": "^0.3.9",
118
123
  "uuid": "^3.4.0",
119
124
  "web-animations-js": "^2.3.2",
@@ -129,5 +134,5 @@
129
134
  "pg": "^8.7.3",
130
135
  "sqlite3": "^5.0.8"
131
136
  },
132
- "gitHead": "05a9514944178c345d8eec9009cc912b2e55c389"
137
+ "gitHead": "27c1a4c3bcf4f293e7e676caa1f2daa3bb6ded11"
133
138
  }
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,