graphql-codegen-modules-gen
Advanced tools
Comparing version 1.1.0 to 1.1.1
{ | ||
"name": "graphql-codegen-modules-gen", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "", | ||
"scripts": { | ||
"test": "node ./src/cli /home/jycouet/udev/gh/my-minion-mr/packages/main/src/lib/modules", | ||
"build": "rollup --config ./rollup.config.js", | ||
@@ -7,0 +8,0 @@ "pack": "yarn pack", |
@@ -23,5 +23,8 @@ import { | ||
function getFiles(source) { | ||
return readdirSync(source, { withFileTypes: true }) | ||
.filter((dirent) => dirent.isFile()) | ||
.map((dirent) => dirent.name); | ||
if (existsSync(source)) { | ||
return readdirSync(source, { withFileTypes: true }) | ||
.filter((dirent) => dirent.isFile()) | ||
.map((dirent) => dirent.name); | ||
} | ||
return []; | ||
} | ||
@@ -78,8 +81,2 @@ | ||
); | ||
console.log( | ||
" \x1b[32m", | ||
"✔", | ||
"\x1b[0m", | ||
`Merge resolvers [${moduleNames.length} modules]` | ||
); | ||
@@ -136,2 +133,9 @@ /* typedefs.ts */ | ||
"\x1b[0m", | ||
`Merge resolvers [${moduleNames.length} modules]` | ||
); | ||
console.log( | ||
" \x1b[32m", | ||
"✔", | ||
"\x1b[0m", | ||
`Merge typedefs [${moduleNames.length} modules]` | ||
@@ -138,0 +142,0 @@ ); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13364
286