@pegasusheavy/nestjs-prisma-graphql 1.2.2 → 1.2.3
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/dist/generate.js +9 -0
- package/dist/generate.js.map +1 -1
- package/dist/index.js +78 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/generate.js
CHANGED
|
@@ -375,6 +375,15 @@ async function generateFiles(args) {
|
|
|
375
375
|
statements: [...imports.toStatements(), ...enums, ...classes]
|
|
376
376
|
});
|
|
377
377
|
}
|
|
378
|
+
const sourceFileCount = project.getSourceFiles().length;
|
|
379
|
+
console.log(
|
|
380
|
+
`nestjs-prisma-graphql: saving ${String(sourceFileCount)} source files to ${output}`
|
|
381
|
+
);
|
|
382
|
+
if (sourceFileCount === 0) {
|
|
383
|
+
throw new Error(
|
|
384
|
+
"nestjs-prisma-graphql: project has 0 source files \u2014 nothing to write"
|
|
385
|
+
);
|
|
386
|
+
}
|
|
378
387
|
if (config.emitCompiled) {
|
|
379
388
|
project.compilerOptions.set({
|
|
380
389
|
declaration: true,
|