@snowtop/ent 0.1.0-alpha105 → 0.1.0-alpha107
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 +1 -1
- package/schema/field.js +1 -0
- package/scripts/custom_graphql.js +5 -1
package/package.json
CHANGED
package/schema/field.js
CHANGED
|
@@ -602,6 +602,7 @@ class IntegerEnumField extends BaseField {
|
|
|
602
602
|
type: options.tsType,
|
|
603
603
|
graphQLType: options.graphQLType,
|
|
604
604
|
deprecatedIntEnumMap: options.deprecated,
|
|
605
|
+
disableUnknownType: options.disableUnknownType,
|
|
605
606
|
};
|
|
606
607
|
let count = 0;
|
|
607
608
|
for (const _ in options.map) {
|
|
@@ -149,7 +149,11 @@ async function captureDynamic(filePath, gqlCapture) {
|
|
|
149
149
|
}
|
|
150
150
|
return await new Promise((resolve, reject) => {
|
|
151
151
|
// do we eventually need tsconfig-paths here or do we get it by default because child process?
|
|
152
|
-
const
|
|
152
|
+
const args = ["--swc", filePath];
|
|
153
|
+
if (process.env.DISABLE_SWC) {
|
|
154
|
+
args.shift();
|
|
155
|
+
}
|
|
156
|
+
const r = (0, child_process_1.spawn)("ts-node", args);
|
|
153
157
|
const datas = [];
|
|
154
158
|
r.stdout.on("data", (data) => {
|
|
155
159
|
datas.push(data.toString());
|